From 54f2a88ad5a49441d6c6d16611e8f2fc4984756a Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Fri, 13 Apr 2007 16:39:20 -0400 Subject: [PATCH] Fixed use of net device names --- src/virtManager/createnet.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/virtManager/createnet.py b/src/virtManager/createnet.py index 077420dc0..034b9a85c 100644 --- a/src/virtManager/createnet.py +++ b/src/virtManager/createnet.py @@ -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")