Displaying 3 results from an estimated 3 matches for "bintf".
Did you mean:
intf
2016 Jan 29
2
generate interface MAC addresses in a particular order
...lf.domain.XMLDesc()
root = ET.fromstring(vmXml)
devices = root.find('./devices')
intf = ET.SubElement(devices,'interface')
intf.set('type', 'bridge')
src = ET.SubElement(intf,'source')
src.set('bridge', bIntf)
model = ET.SubElement(intf,'model')
model.set('type', 'e1000')
xml = ET.tostring(root)
self.conn.defineXML(xml)
Now the problem I have is that the MAC addresses are auto-generated and
because of this there is no way to predict which interfa...
2016 Feb 01
1
Re: generate interface MAC addresses in a particular order
...; > devices = root.find('./devices')
> >
> > intf = ET.SubElement(devices,'interface')
> > intf.set('type', 'bridge')
> > src = ET.SubElement(intf,'source')
> > src.set('bridge', bIntf)
> > model = ET.SubElement(intf,'model')
> > model.set('type', 'e1000')
> >
> > xml = ET.tostring(root)
> > self.conn.defineXML(xml)
> >
> > Now the problem I have is that the MAC addresses are auto-ge...
2016 Jan 31
0
Re: generate interface MAC addresses in a particular order
...ot = ET.fromstring(vmXml)
> devices = root.find('./devices')
>
> intf = ET.SubElement(devices,'interface')
> intf.set('type', 'bridge')
> src = ET.SubElement(intf,'source')
> src.set('bridge', bIntf)
> model = ET.SubElement(intf,'model')
> model.set('type', 'e1000')
>
> xml = ET.tostring(root)
> self.conn.defineXML(xml)
>
> Now the problem I have is that the MAC addresses are auto-generated and
> because of this...