mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-10-27 10:25:25 +03:00
Fixed use of net device names
This commit is contained in:
parent
25902bfe27
commit
54f2a88ad5
@ -92,8 +92,9 @@ class vmmCreateNetwork(gobject.GObject):
|
||||
fw_list.pack_start(text, True)
|
||||
fw_list.add_attribute(text, 'text', 0)
|
||||
fw_model.append([_("NAT to any physical device"), True, None])
|
||||
for name in self.conn.list_net_device_names():
|
||||
fw_model.append([_("NAT to physical device %s") % (name), True, name])
|
||||
for path in self.conn.list_net_device_paths():
|
||||
net = self.conn.get_net_device(path)
|
||||
fw_model.append([_("NAT to physical device %s") % (net.get_name()), True, net.get_name()])
|
||||
|
||||
def reset_state(self):
|
||||
notebook = self.window.get_widget("create-pages")
|
||||
|
Loading…
Reference in New Issue
Block a user