[Octa-list] rhev.list_networks

Henry Robertson henry at redhat.com
Mon Apr 18 13:41:47 UTC 2011


Yes, we recommend using separate networks for RHEV management vs. Networks for VMs. Preferably, separate Ethernet as well.

-Henry

Henry Robertson
Sr. Enterprise Architect
Red Hat, Inc.
(c) 540.222.0215

----- Original Message -----
From: "Greg Swift" <gregswift at gmail.com>
To: octa-list at redhat.com
Sent: Friday, April 15, 2011 6:52:43 PM
Subject: [Octa-list] rhev.list_networks


So... should you really be skipping rhevm? 

-greg 

def list_networks(self): 
networks = [] 

(response, status, reason) = self.request('GET', 'networks') 
xml = ElementTree.XML(response) 

for network in xml: 
vm_id = network.attrib['id'] 
name = network.findtext('name') 
description = network.findtext('description') 

# skip the management networks 
if name == 'rhevm' or description == 'Management Network': continue 

networks.append( { 'id' : vm_id, 
'name' : name, 
'description' : description } ) 

return networks 


_______________________________________________
Octa-list mailing list
Octa-list at redhat.com
https://www.redhat.com/mailman/listinfo/octa-list




More information about the Octa-list mailing list