We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5f3dcf commit a62d839Copy full SHA for a62d839
1 file changed
src/openstack_mcp_server/tools/network_tools.py
@@ -1059,10 +1059,8 @@ def add_router_interface(
1059
"""
1060
conn = get_openstack_conn()
1061
args: dict = {}
1062
- if subnet_id is not None:
1063
- args["subnet_id"] = subnet_id
1064
- if port_id is not None:
1065
- args["port_id"] = port_id
+ args["subnet_id"] = subnet_id
+ args["port_id"] = port_id
1066
res = conn.network.add_interface_to_router(router_id, **args)
1067
return RouterInterface(
1068
router_id=res.get("router_id", router_id),
0 commit comments