#NEWLINE# def disable_vlan_on_trunk_int( self , nexus_host , vlanid , intf_type , interface , is_native ) : #NEWLINE# #INDENT# 'Disable a VLAN on a trunk interface.' #NEWLINE# starttime = time . time ( ) #NEWLINE# confstr = '' #NEWLINE# if is_native : #NEWLINE# #INDENT# snippet = snipp . CMD_NO_VLAN_INT_NATIVE_SNIPPET #NEWLINE# confstr = ( snippet % ( intf_type , interface , intf_type ) ) #NEWLINE# #UNINDENT# snippet = snipp . CMD_NO_VLAN_INT_SNIPPET #NEWLINE# confstr += ( snippet % ( intf_type , interface , vlanid , intf_type ) ) #NEWLINE# confstr = self . create_xml_snippet ( confstr ) #NEWLINE# self . _edit_config ( nexus_host , target = 'running' , config = confstr ) #NEWLINE# self . capture_and_print_timeshot ( starttime , 'delif' , switch = nexus_host )