Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions systemvm/debian/opt/cloud/bin/cs/CsAddress.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ def get_interfaces(self):

def get_guest_if_by_network_id(self):
guest_interface = None
lowest_network_id = 1000
lowest_network_id = None
for interface in self.get_interfaces():
if interface.is_guest() and interface.is_added():
if not self.config.is_vpc():
return interface
network_id = self.config.guestnetwork().get_network_id(interface.get_device())
if network_id and network_id < lowest_network_id:
if network_id and (lowest_network_id is None or network_id < lowest_network_id):
lowest_network_id = network_id
guest_interface = interface
return guest_interface
Expand Down
Loading