edit output yaml

This commit is contained in:
2026-03-16 02:05:31 +03:00
parent 35cf7d4dd7
commit 94e635e9f3
3 changed files with 12 additions and 8 deletions
+7 -4
View File
@@ -21,11 +21,14 @@ def make_yaml(topology: Topology, output_path: Path) -> None:
if len(interfaces_with_device) >= 2:
data["networks"].append(
# {
# network.name: [
# f"{iface.device.name}.{iface.name}"
# for iface in interfaces_with_device
# ]
# }
{
network.name: [
f"{iface.device.name}.{iface.name}"
for iface in interfaces_with_device
]
"name": network.name,
}
)