mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-30 18:07:52 +00:00
openflow: sync pending change from openwrt-packages
c0daf3aaf openvswitch: bring up member ports Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
This commit is contained in:
committed by
John Crispin
parent
f599a42618
commit
839f43c010
@@ -17,7 +17,7 @@ include ./openvswitch.mk
|
|||||||
#
|
#
|
||||||
PKG_NAME:=openvswitch
|
PKG_NAME:=openvswitch
|
||||||
PKG_VERSION:=$(ovs_version)
|
PKG_VERSION:=$(ovs_version)
|
||||||
PKG_RELEASE:=9
|
PKG_RELEASE:=10
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://www.openvswitch.org/releases/
|
PKG_SOURCE_URL:=https://www.openvswitch.org/releases/
|
||||||
PKG_HASH:=5c7baed537364d43af36c15dde298c95d35cb2cb3204b4d3fe9b0fc73c97f16d
|
PKG_HASH:=5c7baed537364d43af36c15dde298c95d35cb2cb3204b4d3fe9b0fc73c97f16d
|
||||||
|
|||||||
@@ -121,6 +121,7 @@ ovs_bridge_port_add() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ovs-vsctl --may-exist add-port "$name" "$port" ${type:+ -- set interface "$port" type="$type"}
|
ovs-vsctl --may-exist add-port "$name" "$port" ${type:+ -- set interface "$port" type="$type"}
|
||||||
|
ovs_bridge_port_up "$port"
|
||||||
__port_list="$__port_list ${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"} \
|
ovs-vsctl --may-exist add-port "$bridge" "$port" ${tag:+tag="$tag"} \
|
||||||
${ofport:+ -- set interface "$port" ofport_request="$ofport"} \
|
${ofport:+ -- set interface "$port" ofport_request="$ofport"} \
|
||||||
${type:+ -- set interface "$port" type="$type"}
|
${type:+ -- set interface "$port" type="$type"}
|
||||||
|
ovs_bridge_port_up "$port"
|
||||||
__port_list="$__port_list ${port} "
|
__port_list="$__port_list ${port} "
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -174,6 +176,12 @@ ovs_bridge_port_cleanup() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ovs_bridge_port_up() {
|
||||||
|
local port="$1"
|
||||||
|
|
||||||
|
ip link set dev "$port" up
|
||||||
|
}
|
||||||
|
|
||||||
ovs_bridge_validate_datapath_id() {
|
ovs_bridge_validate_datapath_id() {
|
||||||
local dpid="$1"
|
local dpid="$1"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user