[Libvirt-cim] Libvirt-cim] [PATCH] [Draft] add ethernetport device type, testing result

Wayne Xia xiawenc at linux.vnet.ibm.com
Thu Sep 8 07:37:13 UTC 2011


     this patch also made ethernetport a bit different from networkport:
ethernetport would include the ports on the bridge/switch, not only the
ports on the VMs. The bridge/swtich is named with a prefix "VS_".

testing result:
A VM "test1" with 2 ports, is started, then:

wbemcli -nl ein
'http://root:123456xwc@localhost:5988/root/virt:KVM_EthernetPort'
localhost:5988/root/virt:KVM_EthernetPort.CreationClassName="KVM_EthernetPort",DeviceID="test/52:54:00:74:bf:1f",SystemCreationClassName="KVM_ComputerSystem",SystemName="test"
localhost:5988/root/virt:KVM_EthernetPort.CreationClassName="KVM_EthernetPort",DeviceID="test1/52:54:00:6e:0c:0b",SystemCreationClassName="KVM_ComputerSystem",SystemName="test1"
localhost:5988/root/virt:KVM_EthernetPort.CreationClassName="KVM_EthernetPort",DeviceID="VS_br0/vnet0",SystemCreationClassName="KVM_ComputerSystem",SystemName="VS_br0"
localhost:5988/root/virt:KVM_EthernetPort.CreationClassName="KVM_EthernetPort",DeviceID="test1/52:54:00:a5:60:4a",SystemCreationClassName="KVM_ComputerSystem",SystemName="test1"
localhost:5988/root/virt:KVM_EthernetPort.CreationClassName="KVM_EthernetPort",DeviceID="VS_default/vnet1",SystemCreationClassName="KVM_ComputerSystem",SystemName="VS_default"

-- 
Best Regards

Wayne Xia
mail:xiawenc at linux.vnet.ibm.com
tel:86-010-82450803




More information about the Libvirt-cim mailing list