diff options
Diffstat (limited to 'net/openvswitch/files')
-rwxr-xr-x | net/openvswitch/files/openvswitch.init | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/openvswitch/files/openvswitch.init b/net/openvswitch/files/openvswitch.init index f4a88edcf..abbbbf792 100755 --- a/net/openvswitch/files/openvswitch.init +++ b/net/openvswitch/files/openvswitch.init @@ -121,6 +121,7 @@ ovs_bridge_port_add() { } ovs-vsctl --may-exist add-port "$name" "$port" ${type:+ -- set interface "$port" type="$type"} + ovs_bridge_port_up "$port" __port_list="$__port_list ${port} " } @@ -162,6 +163,7 @@ ovs_bridge_port_add_complex() { ovs-vsctl --may-exist add-port "$bridge" "$port" ${tag:+tag="$tag"} \ ${ofport:+ -- set interface "$port" ofport_request="$ofport"} \ ${type:+ -- set interface "$port" type="$type"} + ovs_bridge_port_up "$port" __port_list="$__port_list ${port} " } @@ -174,6 +176,12 @@ ovs_bridge_port_cleanup() { done } +ovs_bridge_port_up() { + local port="$1" + + ip link set dev "$port" up +} + ovs_bridge_validate_datapath_id() { local dpid="$1" |