diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-08-12 12:15:03 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-08-12 12:15:03 -0700 |
commit | 88c83f7a41733c6f838d38014f375b56d271e65f (patch) | |
tree | e1f931bf1b5a4d0454e7f96b053b94e5b8d0b8d9 | |
parent | 6a824168c957ec8739707bde71aaf404d250250d (diff) | |
download | vyatta-cfg-88c83f7a41733c6f838d38014f375b56d271e65f.tar.gz vyatta-cfg-88c83f7a41733c6f838d38014f375b56d271e65f.zip |
Change back to vyatta-vtysh
-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 |