def _delete_vlan_profile(self, handle, vlan_id, ucsm_ip):
        """Deletes VLAN Profile from UCS Manager."""
        vlan_name = self.make_vlan_name(vlan_id)
        vlan_profile_dest = (const.VLAN_PATH + const.VLAN_PROFILE_PATH_PREFIX +
                             vlan_name)
        try:
            handle.StartTransaction()
            obj = handle.GetManagedObject(
                None,
                self.ucsmsdk.FabricVlan.ClassId(),
                {self.ucsmsdk.FabricVlan.DN: vlan_profile_dest})

            if obj:
                handle.RemoveManagedObject(obj)

            handle.CompleteTransaction()

        except Exception as e:
            # Raise a Neutron exception. Include a description of
            # the original  exception.
            raise cexc.UcsmConfigFailed(config=vlan_id,
                                        ucsm_ip=ucsm_ip, exc=e)
def _delete_vlan_profile ( self , handle , vlan_id , ucsm_ip ) : vlan_name = self . make_vlan_name ( vlan_id ) vlan_profile_dest = ( const . VLAN_PATH + const . VLAN_PROFILE_PATH_PREFIX + vlan_name ) try : handle . StartTransaction ( ) obj = handle . GetManagedObject ( None , self . ucsmsdk . FabricVlan . ClassId ( ) , { self . ucsmsdk . FabricVlan . DN : vlan_profile_dest } ) if obj : handle . RemoveManagedObject ( obj ) handle . CompleteTransaction ( ) except Exception as e : raise cexc . UcsmConfigFailed ( config = vlan_id , ucsm_ip = ucsm_ip , exc = e )
Deletes VLAN Profile from UCS Manager.