def createVnicEther(inUcsmHost, vnicInfoStr):
        """Configures vNIC interface in UCS Manager."""
        logging.debug('creating vnic-ether')
        vnicInfoList = ast.literal_eval(vnicInfoStr)

        pDn = "org-root/ls-" + vnicInfoList["LsServer"]
        vnicEtherDn = pDn + "/ether-" + vnicInfoList[VnicEther.NAME]

	vnicEtherOrder = VnicEther.CONST_ORDER_UNSPECIFIED

	if vnicInfoList.keys() in VnicEther.ORDER:
		logging.debug('VnicEther Order specified %s' %(vnicInfoList[VnicEther.ORDER]))
		vnicEtherOrder = vnicInfoList[VnicEther.ORDER]
	pass

        vnicEtherList = {VnicEther.NAME: vnicInfoList[VnicEther.NAME], \
                         VnicEther.SWITCH_ID: vnicInfoList[VnicEther.SWITCH_ID], \
                         VnicEther.IDENT_POOL_NAME: vnicInfoList[VnicEther.IDENT_POOL_NAME], \
			 VnicEther.ORDER: vnicEtherOrder}

        # add vnicEther to the LsServer
        addObjectToUcs(inUcsmHost, pDn, LsServer.ClassId(), VnicEther.ClassId(), vnicEtherList, vnicEtherDn)

        vnicEtherIfDn = vnicEtherDn + "/if-" + vnicInfoList["VlanName"]
        vnicEtherIfList = {VnicEtherIf.NAME: vnicInfoList["VlanName"], \
                           VnicEtherIf.DEFAULT_NET: vnicInfoList[VnicEtherIf.DEFAULT_NET]}

        # Add the Vlan to vnicEther created above.
        addObjectToUcs(inUcsmHost, vnicEtherDn, VnicEther.ClassId(), VnicEtherIf.ClassId(), vnicEtherIfList, vnicEtherIfDn)
dataset/ETHPy150Open Havate/havate-openstack/proto-build/gui/horizon/Horizon_GUI/openstack_dashboard/static-raw/scripts/UcsUtils.py/createVnicEther/swapped operands of `in`