You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2022/12/21 16:18:12 UTC

[GitHub] [trafficserver] brbzull0 commented on a diff in pull request #9264: records.config to records.yaml

brbzull0 commented on code in PR #9264:
URL: https://github.com/apache/trafficserver/pull/9264#discussion_r1054573773


##########
tools/records/convert2yaml.py:
##########
@@ -0,0 +1,306 @@
+#!/usr/bin/env python3
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+import argparse
+import sys
+import json
+import traceback
+import yaml
+import tempfile
+import fileinput
+
+import io
+
+from io import StringIO
+from string import Template
+from pydoc import locate
+from jsonschema import validate
+from jsonschema.exceptions import ValidationError
+from colorama import init, Fore, Back, Style
+init(autoreset=True)
+
+Remapped_Vars = {}
+
+Renamed_Records = {
+    # as it can have a numeric value [0-2]
+    'proxy.config.output.logfile': 'proxy.config.output.logfile.name',
+    'proxy.config.exec_thread.autoconfig': 'proxy.config.exec_thread.autoconfig.enabled',
+    'proxy.config.hostdb': 'proxy.config.hostdb.enabled',
+    'proxy.config.tunnel.prewarm': 'proxy.config.tunnel.prewarm.enabled',
+    'proxy.config.ssl.origin_session_cache': 'proxy.config.ssl.origin_session_cache.enabled',
+    'proxy.config.ssl.session_cache': 'proxy.config.ssl.session_cache.value',

Review Comment:
   Added some details on the PR description. Thanks.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org