Skip to content

Commit dd68195

Browse files
committed
fix cables
1 parent 50da30e commit dd68195

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

generators/common.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -955,11 +955,9 @@ async def create_oob_connections(
955955
data={
956956
"status": "connected",
957957
"cable_type": "cat6", # Use cat6 for management/console connections
958+
"connected_endpoints": [source_endpoint.id, target_endpoint.id],
958959
},
959960
)
960-
await cable.connected_endpoints.fetch()
961-
cable.connected_endpoints.add(source_endpoint.id)
962-
cable.connected_endpoints.add(target_endpoint.id)
963961

964962
batch.add(
965963
task=source_endpoint.save, allow_upsert=True, node=source_endpoint

generators/generate_dc.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,9 @@ async def create_fabric_peering(self) -> None:
121121
data={
122122
"status": "connected",
123123
"cable_type": "dac-passive",
124+
"connected_endpoints": [source_endpoint.id, target_endpoint.id],
124125
},
125126
)
126-
await cable.connected_endpoints.fetch()
127-
cable.connected_endpoints.add(source_endpoint.id)
128-
cable.connected_endpoints.add(target_endpoint.id)
129127

130128
batch.add(
131129
task=source_endpoint.save, allow_upsert=True, node=source_endpoint

0 commit comments

Comments
 (0)