#NEWLINE# def send_edit_string( self , nexus_host , confstr ) : #NEWLINE# #INDENT# 'Sends any XML snippet to Nexus switch.' #NEWLINE# starttime = time . time ( ) #NEWLINE# confstr = self . create_xml_snippet ( confstr ) #NEWLINE# self . _edit_config ( nexus_host , target = 'running' , config = confstr , allowed_exc_strs = [ 'VLAN with the same name exists' , "Can't modify state for extended" , 'Command is only allowed on VLAN' ] ) #NEWLINE# self . capture_and_print_timeshot ( nexus_host , 'send_edit' , switch = nexus_host )