diff options
Diffstat (limited to 'templates/interfaces')
-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..b9925177 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 |