diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2014-03-01 21:44:34 +0100 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2014-03-01 22:17:13 +0100 |
commit | 6d83ce0798af47143a9698847f05b272e3fcb7e0 (patch) | |
tree | 3950e69786654fd7593165a40fb69e4123bef3b1 /src/lib/connections/vlan | |
parent | 23ae1791917d48da7237d918f19dfa55a6a13d8f (diff) | |
download | netctl-6d83ce0798af47143a9698847f05b272e3fcb7e0.tar.gz netctl-6d83ce0798af47143a9698847f05b272e3fcb7e0.tar.xz |
Minor improvements to bridge/vlan code
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" |