diff options
-rw-r--r-- | templates/interfaces/ethernet/node.def | 3 | ||||
-rw-r--r-- | templates/interfaces/ethernet/node.tag/vif/node.def | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/templates/interfaces/ethernet/node.def b/templates/interfaces/ethernet/node.def index 5e3df91..c0547f7 100644 --- a/templates/interfaces/ethernet/node.def +++ b/templates/interfaces/ethernet/node.def @@ -7,7 +7,8 @@ syntax:expression: exec " \ exit 1 ; \ fi ; " update: sudo ip link set "$VAR(@)" up - vtysh -c "configure terminal" -c "interface $VAR(@)" -c "link-detect" + ${vyatta_sbindir}/vyatta-vtysh -c "configure terminal" \ + -c "interface $VAR(@)" -c "link-detect" delete: sudo ip link set "$VAR(@)" down allowed: for dev in /sys/class/net/*; do if [[ -d $dev && -L $dev/device ]] diff --git a/templates/interfaces/ethernet/node.tag/vif/node.def b/templates/interfaces/ethernet/node.tag/vif/node.def index f0317ce..92e9022 100644 --- a/templates/interfaces/ethernet/node.tag/vif/node.def +++ b/templates/interfaces/ethernet/node.tag/vif/node.def @@ -5,7 +5,8 @@ syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 4094; "VLAN ID must be between 0 a create: sudo modprobe 8021q sudo vconfig add "$VAR(../@)" "$VAR(@)" sudo ip link set "$VAR(../@).$VAR(@)" up - vtysh -c "configure terminal" -c "interface $VAR(../@).$VAR(@)" -c "link-detect" + ${vyatta_sbindir}/vyatta-vtysh -c "configure terminal" \ + -c "interface $VAR(../@).$VAR(@)" -c "link-detect" delete: sudo vconfig rem "$VAR(../@).$VAR(@)" comp_help: possible completions: <0-4094> Set VLAN ID |