Page MenuHomePhabricator

[wireguard] - use VYOS_TAGNODE_VALUE to determine changed tagNodes
Closed, InvalidPublicFEATURE REQUEST

Description

From slack:

  1. determine tagNode instance try: bridge['br_name'] = os.environ['VYOS_TAGNODE_VALUE'] except KeyError as E: print("Interface not specified")

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close

Event Timeline

hagbard claimed this task.Aug 6 2019, 3:44 PM
hagbard created this task.
hagbard updated the task description. (Show Details)
hagbard added a comment.EditedAug 7 2019, 7:23 PM
diff --git a/scripts/build-command-templates b/scripts/build-command-templates
index a7312f7..ba80ead 100755
--- a/scripts/build-command-templates
+++ b/scripts/build-command-templates
@@ -227,7 +227,7 @@ def make_node_def(props):
 
     if "owner" in props:
         if "tag" in props:
-            node_def += "end: sudo sh -c \"VALUE='$VAR(@)' {0}\"\n".format(props["owner"])
+            node_def += "end: sudo sh -c \"VYOS_TAGNODE_VALUE='$VAR(@)' {0}\"\n".format(props["owner"])
         else:
             node_def += "end: sudo sh -c \"{0}\"\n".format(props["owner"])
pasik added a subscriber: pasik.Aug 7 2019, 7:37 PM
hagbard closed this task as Invalid.Sep 3 2019, 3:45 PM

Duplicate: T1628

c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.Tue, Nov 12, 9:18 PM