def get_create_vlan(self, nexus_host, vlanid, vni, conf_str):
starttime = time.time()<EOL>if vni:<EOL><INDENT>body_snip = snipp.BODY_VXLAN_ALL_INCR % (vlanid, vni)<EOL><DEDENT>else:<EOL><INDENT>body_snip = snipp.BODY_VLAN_ALL_INCR % vlanid<EOL><DEDENT>conf_str += body_snip + snipp.BODY_VLAN_ALL_CONT<EOL>self.capture_and_print_timeshot(<EOL>starttime, "<STR_LIT>",<EOL>switch=nexus_host)<EOL>return conf_str<EOL>
Returns an XML snippet for create VLAN on a Nexus Switch.