Skip to content

Commit b0f87b2

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix brctl calls"
2 parents 0610413 + da18895 commit b0f87b2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/neutron_plugins/linuxbridge_agent

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function neutron_plugin_configure_dhcp_agent {
4848

4949
function neutron_plugin_configure_l3_agent {
5050
local conf_file=$1
51-
sudo brctl addbr $PUBLIC_BRIDGE
51+
sudo ip link add $PUBLIC_BRIDGE type bridge
5252
set_mtu $PUBLIC_BRIDGE $PUBLIC_BRIDGE_MTU
5353
}
5454

tools/worlddump.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ def network_dump():
165165
_header("Network Dump")
166166

167167
_dump_cmd("bridge link")
168-
_dump_cmd("brctl show")
168+
if _find_cmd("brctl"):
169+
_dump_cmd("brctl show")
169170
_dump_cmd("ip link show type bridge")
170171
ip_cmds = ["neigh", "addr", "link", "route"]
171172
for cmd in ip_cmds + ['netns']:

0 commit comments

Comments
 (0)