VLAN_PORT_INTERFIX="v"
-function vlan_init() {
+vlan_init() {
ebtables-restore <<EOF
*filter
:INPUT ACCEPT
EOF
}
-function vlan_create() {
+vlan_create() {
local device=${1}
assert isset device
return ${ret}
}
-function vlan_remove() {
+vlan_remove() {
local device=${1}
assert isset device
device_delete ${device}
}
-function vlan_get_parent() {
+vlan_get_parent() {
local device=${1}
assert isset device
return ${EXIT_ERROR}
}
-function vlan_get_id() {
+vlan_get_id() {
local device=${1}
assert isset device
return ${EXIT_ERROR}
}
-function vlan_get_by_parent_and_vid() {
+vlan_get_by_parent_and_vid() {
local parent=${1}
assert isset parent