diff options
author | Christian Poessinger <christian@poessinger.com> | 2017-12-09 13:34:43 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2017-12-09 13:34:43 +0100 |
commit | ae1e4c704bb324831fb15b6e243710f94700d3f2 (patch) | |
tree | 0d4160c06d10d435f01c021ce8b8fac4791f1280 /scripts | |
parent | 3939aedea2cf488eb4639c4ca69756997aed6a7c (diff) | |
parent | a919de476a97a9037c49207d04aae18118ef3fd7 (diff) | |
download | vyos-1x-ae1e4c704bb324831fb15b6e243710f94700d3f2.tar.gz vyos-1x-ae1e4c704bb324831fb15b6e243710f94700d3f2.zip |
Merge branch 'add-mdns-repeater' into current
* add-mdns-repeater:
Update 'debian/changelog'
Add 'vyos-update-mdns-repeater.py' functionality
Bugfix: 'multi:' statement must be on top of generated 'node.def' file
Initial interface description for 'mdns repeater'
Add debian packaging files to .gitignore
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build-command-templates | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/build-command-templates b/scripts/build-command-templates index 09c7dc8c4..ff0ce05f0 100755 --- a/scripts/build-command-templates +++ b/scripts/build-command-templates @@ -113,7 +113,7 @@ def get_properties(p): error_msg = p.find("constraintErrorMessage").text except: pass - + vce = p.findall("constraint") vc = [] for v in vce: @@ -180,12 +180,12 @@ def make_node_def(props): if "tag" in props: node_def += "tag:\n" - if "type" in props: - node_def += "type: {0}\n".format(props["type"]) - if "multi" in props: node_def += "multi:\n" + if "type" in props: + node_def += "type: {0}\n".format(props["type"]) + if "priority" in props: node_def += "priority: {0}\n".format(props["priority"]) @@ -236,7 +236,7 @@ def process_node(n, tmpl_dir): props["type"] = "txt" if node_type == "tagNode": props["tag"] = "True" - + with open(os.path.join(make_path(my_tmpl_dir), "node.def"), "w") as f: f.write(make_node_def(props)) |