summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.def b/templates/interfaces/ethernet/node.tag/vif/node.def
index cd2eb0b..b7af406 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.def
@@ -5,6 +5,8 @@ syntax: $(@) >= 0 && $(@) <= 4095; "VLAN ID must be between 0 and 4095"
create: "sudo modprobe 8021q"; "Error loading 802.1q driver"
create: "sudo vconfig add $(../@) $(@)"; "Error adding VLAN id $(@) to dev $(../@)"
create: "sudo ip link set $(../@).$(@) up"; "Error enabling VLAN id $(@) on dev $(../@)"
+update: "\\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $(../@).$(@)\" \
+ -c \"link-detect\"; "
delete: "sudo vconfig rem $(../@).$(@)"; "Error removing VLAN id $(@) from dev $(../@)"
#comp_help: possible completions:
# <0-4095> Set VLAN ID