diff options
Diffstat (limited to 'src/lib/connections/vlan')
-rw-r--r-- | src/lib/connections/vlan | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/connections/vlan b/src/lib/connections/vlan index b34a67e..037c971 100644 --- a/src/lib/connections/vlan +++ b/src/lib/connections/vlan @@ -10,6 +10,9 @@ vlan_up() { if is_interface "$Interface"; then report_error "Interface '$Interface' already exists" return 1 + elif [[ $VLANID != +([[:digit:]]) ]]; then + report_error "Invalid VLAN identifier: '$VLANID'" + return 1 else bring_interface_up "$BindsToInterfaces" interface_add vlan "$Interface" "$BindsToInterfaces" id "$VLANID" |