def CreateEthernetNgpfPy(deviceGroupObj, ethernetName): print '\nCreateEthernetNgpfPy: %s : %s' % (deviceGroupObj, ethernetName) ethernetObj = ixNet.add(deviceGroupObj, 'ethernet') ixNet.setMultiAttribute(ethernetObj, '-name', 'ethernetName') ixNet.commit() return ethernetObj