File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments