Skip to content

Commit 6467d37

Browse files
committed
fix cables
1 parent 9586cd2 commit 6467d37

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

generators/common.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,10 @@ async def create_oob_connections(
959959
},
960960
)
961961

962+
# Set the connector relationship on both interfaces
963+
source_endpoint.connector.id = cable.id
964+
target_endpoint.connector.id = cable.id
965+
962966
batch.add(
963967
task=source_endpoint.save, allow_upsert=True, node=source_endpoint
964968
)

generators/generate_dc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ async def create_fabric_peering(self) -> None:
125125
},
126126
)
127127

128+
# Set the connector relationship on both interfaces
129+
source_endpoint.connector.id = cable.id
130+
target_endpoint.connector.id = cable.id
131+
128132
batch.add(
129133
task=source_endpoint.save, allow_upsert=True, node=source_endpoint
130134
)

0 commit comments

Comments
 (0)