summaryrefslogtreecommitdiff
path: root/scripts/build-command-templates
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2020-08-28 15:50:31 -0500
committerJohn Estabrook <jestabro@vyos.io>2020-08-31 09:57:00 -0500
commit87d60d5bb08326de8f7d11ba199ee44b6ce34c76 (patch)
tree5e9a4e0b2289b2c7d0a1232d5a7a95eeb6f09a38 /scripts/build-command-templates
parenteeeab0197c6e54eda5c2ec59a91f93403618a58b (diff)
downloadvyos-1x-87d60d5bb08326de8f7d11ba199ee44b6ce34c76.tar.gz
vyos-1x-87d60d5bb08326de8f7d11ba199ee44b6ce34c76.zip
configd: T2582: add shim var to node.def
Diffstat (limited to 'scripts/build-command-templates')
-rwxr-xr-xscripts/build-command-templates6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/build-command-templates b/scripts/build-command-templates
index 457adbec2..d6585b0cc 100755
--- a/scripts/build-command-templates
+++ b/scripts/build-command-templates
@@ -225,11 +225,13 @@ def make_node_def(props):
if "constraint" in props:
node_def += "syntax:expression: {0}\n".format(props["constraint"])
+ shim = '${vyshim}'
+
if "owner" in props:
if "tag" in props:
- node_def += "end: sudo sh -c \"VYOS_TAGNODE_VALUE='$VAR(@)' {0}\"\n".format(props["owner"])
+ node_def += "end: sudo sh -c \"{1} VYOS_TAGNODE_VALUE='$VAR(@)' {0}\"\n".format(props["owner"], shim)
else:
- node_def += "end: sudo sh -c \"{0}\"\n".format(props["owner"])
+ node_def += "end: sudo sh -c \"{1} {0}\"\n".format(props["owner"], shim)
if debug:
print("The contents of the node.def file:\n", node_def)