summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-02 15:15:56 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-02 15:15:56 -0800
commit7b21bfc5b266518b205677a5866c49ffb17cf2f9 (patch)
tree5512916c01d732e7c9f1e7e062a36cd56a5c15a6
parentb9a99871b9afc380cf004341219496997fb4451b (diff)
downloadvyatta-cfg-quagga-7b21bfc5b266518b205677a5866c49ffb17cf2f9.tar.gz
vyatta-cfg-quagga-7b21bfc5b266518b205677a5866c49ffb17cf2f9.zip
Convert to bonding vif to use netlink.
-rw-r--r--templates/interfaces/bonding/node.tag/vif/node.def6
1 files changed, 2 insertions, 4 deletions
diff --git a/templates/interfaces/bonding/node.tag/vif/node.def b/templates/interfaces/bonding/node.tag/vif/node.def
index e61567ff..ddda4d70 100644
--- a/templates/interfaces/bonding/node.tag/vif/node.def
+++ b/templates/interfaces/bonding/node.tag/vif/node.def
@@ -2,10 +2,8 @@ tag:
type: u32
help: Set Virtual Local Area Network (VLAN) ID
syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 4094; "VLAN ID must be between 0 and 4094"
-create: sudo modprobe 8021q
- sudo vconfig add "$VAR(../@)" "$VAR(@)"
+create: sudo ip link add link $VAR(../@) name "$VAR(../@).$VAR(@)" type vlan id $VAR(@)
sudo ip link set "$VAR(../@).$VAR(@)" up
- /opt/vyatta/sbin/vyatta-link-detect $VAR(../@).$VAR(@) on
-delete: sudo vconfig rem "$VAR(../@).$VAR(@)"
+delete: sudo ip link delete link "$VAR(../@).$VAR(@)" type vlan id $VAR(@)
comp_help: possible completions:
<0-4094> Set VLAN ID