summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRunar Borge <runar@borge.nu>2018-08-18 01:44:11 +0200
committerRunar Borge <runar@borge.nu>2018-08-18 01:44:11 +0200
commitd61112ec29507158ba640a2f23a3a63dccee4cf6 (patch)
tree5c2c8b40c6b1fd668420151e508af316db6be00a /scripts
parent86088fa6e0816cb7e79ce497a89df2d004bc4764 (diff)
downloadvyos-1x-d61112ec29507158ba640a2f23a3a63dccee4cf6.tar.gz
vyos-1x-d61112ec29507158ba640a2f23a3a63dccee4cf6.zip
T786: Add tagNode value as a Env.variable passed into config script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-command-templates5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/build-command-templates b/scripts/build-command-templates
index 07e7d522a..a7312f77b 100755
--- a/scripts/build-command-templates
+++ b/scripts/build-command-templates
@@ -226,7 +226,10 @@ def make_node_def(props):
node_def += "syntax:expression: {0}\n".format(props["constraint"])
if "owner" in props:
- node_def += "end: sudo sh -c \"{0}\"\n".format(props["owner"])
+ if "tag" in props:
+ node_def += "end: sudo sh -c \"VALUE='$VAR(@)' {0}\"\n".format(props["owner"])
+ else:
+ node_def += "end: sudo sh -c \"{0}\"\n".format(props["owner"])
if debug:
print("The contents of the node.def file:\n", node_def)