def _create_vlanprofile(self, handle, vlan_id, ucsm_ip):
vlan_name = self.make_vlan_name(vlan_id)<EOL>vlan_profile_dest = (const.VLAN_PATH + const.VLAN_PROFILE_PATH_PREFIX +<EOL>vlan_name)<EOL>try:<EOL><INDENT>handle.StartTransaction()<EOL>vp1 = handle.GetManagedObject(<EOL>None,<EOL>self.ucsmsdk.FabricLanCloud.ClassId(),<EOL>{self.ucsmsdk.FabricLanCloud.DN: const.VLAN_PATH})<EOL>if not vp1:<EOL><INDENT>LOG.warning('<STR_LIT>'<EOL>'<STR_LIT>', const.VLAN_PATH)<EOL>return False<EOL><DEDENT>vp2 = handle.AddManagedObject(<EOL>vp1,<EOL>self.ucsmsdk.FabricVlan.ClassId(),<EOL>{self.ucsmsdk.FabricVlan.COMPRESSION_TYPE:<EOL>const.VLAN_COMPRESSION_TYPE,<EOL>self.ucsmsdk.FabricVlan.DN: vlan_profile_dest,<EOL>self.ucsmsdk.FabricVlan.SHARING: const.NONE,<EOL>self.ucsmsdk.FabricVlan.PUB_NW_NAME: "<STR_LIT>",<EOL>self.ucsmsdk.FabricVlan.ID: str(vlan_id),<EOL>self.ucsmsdk.FabricVlan.MCAST_POLICY_NAME: "<STR_LIT>",<EOL>self.ucsmsdk.FabricVlan.NAME: vlan_name,<EOL>self.ucsmsdk.FabricVlan.DEFAULT_NET: "<STR_LIT>"})<EOL>handle.CompleteTransaction()<EOL>if vp2:<EOL><INDENT>LOG.debug('<STR_LIT>'<EOL>'<STR_LIT>', vlan_name, vlan_profile_dest)<EOL>return True<EOL><DEDENT><DEDENT>except Exception as e:<EOL><INDENT>return self._handle_ucsm_exception(e, '<STR_LIT>',<EOL>vlan_name, ucsm_ip)<EOL><DEDENT>
Creates VLAN profile to be assosiated with the Port Profile.