From d77880937b43a323a53a23c5306e88d3cfc214cb Mon Sep 17 00:00:00 2001 From: Kim Hagen Date: Thu, 5 Feb 2015 15:47:47 +0100 Subject: Bug #352 - QinQ - changing the ethertype value of vif-s --- .../interfaces/bonding/node.tag/vif-s/node.def | 16 +++++----------- .../node.tag/vif-s/node.tag/ethertype/node.def | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+), 11 deletions(-) create mode 100644 templates/interfaces/bonding/node.tag/vif-s/node.tag/ethertype/node.def (limited to 'templates/interfaces/bonding') diff --git a/templates/interfaces/bonding/node.tag/vif-s/node.def b/templates/interfaces/bonding/node.tag/vif-s/node.def index 5a2e8dee..dcec3900 100644 --- a/templates/interfaces/bonding/node.tag/vif-s/node.def +++ b/templates/interfaces/bonding/node.tag/vif-s/node.def @@ -5,14 +5,8 @@ help: QinQ TAG-S Virtual Local Area Network (VLAN) ID syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 4094; "VLAN ID must be between 0 and 4094" val_help: u32:0-4094; VLAN ID -create: read -a SLAVES /dev/null 2>&1 + ip link add link $VAR(../../@) name "$VAR(../../@).$VAR(../@)" type vlan proto $ETHTYPE id $VAR(../@) || exit 1 + ip link set "$VAR(../../@).$VAR(../@)" up + /opt/vyatta/sbin/vyatta-link-detect "$VAR(../../@).$VAR(../@)" on -- cgit v1.2.3