Skip to content

Commit

Permalink
fix for removing extra networks
Browse files Browse the repository at this point in the history
  • Loading branch information
abessiari committed Mar 12, 2024
1 parent f5e3c8b commit ea2e34b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion fabfed/provider/fabric/fabric_slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@ def init(self, destroy_phase):
if not destroy_phase:
self.slice_created = self.slice_object.get_state() == "StableOK"
self.existing_nodes = [node.get_name() for node in self.slice_object.get_nodes()]
self.existing_networks = [net.get_name() for net in self.slice_object.get_networks()]
self.existing_networks = []

for net in self.slice_object.get_networks():
net_name = net.get_name()

if "_aux" in net_name or FABRIC_IPV4_NET_NAME in net_name or FABRIC_IPV6_NET_NAME in net_name:
continue

self.existing_networks.append(net_name)

@property
def name(self) -> str:
Expand Down

0 comments on commit ea2e34b

Please sign in to comment.