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>vp1 = handle.query_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 = self.ucsmsdk.fabricVlan(<EOL>parent_mo_or_dn=vp1,<EOL>name=vlan_name,<EOL>compression_type=const.VLAN_COMPRESSION_TYPE,<EOL>sharing=const.NONE,<EOL>pub_nw_name="<STR_LIT>",<EOL>id=str(vlan_id),<EOL>mcast_policy_name="<STR_LIT>",<EOL>default_net="<STR_LIT>")<EOL>handle.add_mo(vp2)<EOL>handle.commit()<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 able associated with the Port Profile.