code: def _create_vlanprofile(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()
              vp1 = handle.GetManagedObject(
                  None,
                  self.ucsmsdk.FabricLanCloud.ClassId(),
                  {self.ucsmsdk.FabricLanCloud.DN: const.VLAN_PATH})
              if not vp1:
                  LOG.warning('UCS Manager network driver Vlan Profile '
                              'path at %s missing', const.VLAN_PATH)
                  return False
  
              # Create a vlan profile with the given vlan_id
              vp2 = handle.AddManagedObject(
                  vp1,
                  self.ucsmsdk.FabricVlan.ClassId(),
                  {self.ucsmsdk.FabricVlan.COMPRESSION_TYPE:
                   const.VLAN_COMPRESSION_TYPE,
                   self.ucsmsdk.FabricVlan.DN: vlan_profile_dest,
                   self.ucsmsdk.FabricVlan.SHARING: const.NONE,
                   self.ucsmsdk.FabricVlan.PUB_NW_NAME: "",
                   self.ucsmsdk.FabricVlan.ID: str(vlan_id),
                   self.ucsmsdk.FabricVlan.MCAST_POLICY_NAME: "",
                   self.ucsmsdk.FabricVlan.NAME: vlan_name,
                   self.ucsmsdk.FabricVlan.DEFAULT_NET: "no"})
  
              handle.CompleteTransaction()
              if vp2:
                  LOG.debug('UCS Manager network driver Created Vlan '
                            'Profile %s at %s', vlan_name, vlan_profile_dest)
                  return True
  
          except Exception as e:
              return self._handle_ucsm_exception(e, 'Vlan Profile',
                                                 vlan_name, ucsm_ip)
docs: Creates VLAN profile to be assosiated with the Port Profile.