summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-08-12 12:15:03 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-08-12 12:15:03 -0700
commit88c83f7a41733c6f838d38014f375b56d271e65f (patch)
treee1f931bf1b5a4d0454e7f96b053b94e5b8d0b8d9
parent6a824168c957ec8739707bde71aaf404d250250d (diff)
downloadvyatta-cfg-88c83f7a41733c6f838d38014f375b56d271e65f.tar.gz
vyatta-cfg-88c83f7a41733c6f838d38014f375b56d271e65f.zip
Change back to vyatta-vtysh
-rw-r--r--templates/interfaces/ethernet/node.def3
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.def3
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