diff options
author | Daniil Baturin <daniil@baturin.org> | 2017-10-30 19:20:23 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2017-10-30 19:20:23 +0100 |
commit | a8e0efb231ca8d1b4a06088dcb5a8010a18545cc (patch) | |
tree | 5d99e3504f524393d78a291746dbaf0d5a7c6caa /templates | |
parent | cd45e4ca25bca5a0ee9d47271ea2db4f22eaf305 (diff) | |
download | vyatta-cfg-system-a8e0efb231ca8d1b4a06088dcb5a8010a18545cc.tar.gz vyatta-cfg-system-a8e0efb231ca8d1b4a06088dcb5a8010a18545cc.zip |
T435: Fix ingress-qos-mapping/egress-qos-mapping to VLAN configuration
Diffstat (limited to 'templates')
-rw-r--r-- | templates/interfaces/ethernet/node.tag/vif/node.def | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.def b/templates/interfaces/ethernet/node.tag/vif/node.def index a1bd652b..7e4f62d8 100644 --- a/templates/interfaces/ethernet/node.tag/vif/node.def +++ b/templates/interfaces/ethernet/node.tag/vif/node.def @@ -6,12 +6,12 @@ syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 4094; "VLAN ID must be between 0 a val_help: u32:0-4094; VLAN ID create: if [ -n "$VAR(./egress-qos)" ]; then - opt-e=" egress-qos-map $VAR(./egress-qos/@) " + opt_e=" egress-qos-map $VAR(./egress-qos/@) " fi if [ -n "$VAR(./ingress-qos)" ]; then - opt-in=" ingress-qos-map $VAR(./ingress-qos/@) " + opt_in=" ingress-qos-map $VAR(./ingress-qos/@) " fi - if ! ip link add link $VAR(../@) name "$VAR(../@).$VAR(@)" type vlan id $VAR(@) $opt-e $opt-in + if ! ip link add link $VAR(../@) name "$VAR(../@).$VAR(@)" type vlan id $VAR(@) $opt_e $opt_in then echo "Error creating VLAN device $VAR(../@).$VAR(@)" exit 1 fi |