FIX: ovs-ofctl missing flow table issue

This commit is contained in:
2026-09-26 19:10:56 +03:00
parent 46f814effc
commit 92a322eedb
2 changed files with 16 additions and 3 deletions
+3 -2
View File
@@ -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