FIX: ovs-ofctl missing flow table issue
This commit is contained in:
@@ -322,10 +322,11 @@ def render_python(plan: ExecutionPlan) -> str:
|
||||
)
|
||||
elif node.type is NodeType.SWITCH:
|
||||
lines.append(
|
||||
" nodes[%s] = net.addSwitch(%s)"
|
||||
" nodes[%s] = net.addSwitch(%s, failMode=%r)"
|
||||
% (
|
||||
_python_string(node.name),
|
||||
_python_string(node.name),
|
||||
node.switch_fail_mode,
|
||||
)
|
||||
)
|
||||
else:
|
||||
@@ -469,7 +470,7 @@ def _self_test() -> None:
|
||||
ast.parse(source)
|
||||
|
||||
assert "net.addHost('h1', ip=None)" in source
|
||||
assert "net.addSwitch('s1')" in source
|
||||
assert "net.addSwitch('s1', failMode='standalone')" in source
|
||||
assert "net.addLink(" in source
|
||||
assert "cls=TCLink" in source
|
||||
assert "dnsmasq" in source
|
||||
|
||||
Reference in New Issue
Block a user