Hey Dan, list, It seems to me that virt-manager could do with more information about the virtual network devices, the DHCP leases on them, maybe a view of the arp table, etc. To this end, I've abused Dan's .glade file a bit and put some stub code in virtManger/host.py Could I get some comments and some recommendations for next steps? It's been a while since I've done any glade'ing... Cheers, C.J.
diff -r e95681a690fd src/virtManager/host.py --- a/src/virtManager/host.py Thu Jan 14 10:09:52 2010 -0500 +++ b/src/virtManager/host.py Mon Jan 18 13:45:41 2010 -0800 @@ -100,6 +100,7 @@ "on_menu_help_contents_activate": self.show_help, "on_net_add_clicked": self.add_network, "on_net_delete_clicked": self.delete_network, + "on_net_properties_clicked": self.network_properties, "on_net_stop_clicked": self.stop_network, "on_net_start_clicked": self.start_network, "on_net_autostart_toggled": self.net_autostart_changed, @@ -292,6 +293,16 @@ self.err.show_err(_("Error deleting network: %s") % str(e), "".join(traceback.format_exc())) + def network_properties(self, src): + net = self.current_network() + if net is None: + return + + result = self.err.yes_no(_("Are you sure you see the properties " + "of network %s?") % net.get_name()) + if not result: + return + def start_network(self, src): net = self.current_network() if net is None: diff -r e95681a690fd src/vmm-host.glade --- a/src/vmm-host.glade Thu Jan 14 10:09:52 2010 -0500 +++ b/src/vmm-host.glade Mon Jan 18 13:45:41 2010 -0800 @@ -905,6 +905,27 @@ <property name="position">3</property> </packing> </child> + <child> + <widget class="GtkButton" id="net-properties"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="receives_default">True</property> + <property name="tooltip" translatable="yes">Network Properties</property> + <signal name="clicked" handler="on_net_properties_clicked"/> + <child> + <widget class="GtkImage" id="image8"> + <property name="visible">True</property> + <property name="stock">gtk-properties</property> + </widget> + </child> + </widget> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">4</property> + </packing> + </child> </widget> <packing> <property name="position">0</property>
Attachment:
signature.asc
Description: This is a digitally signed message part
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list