#NEWLINE# def create_and_trunk_vlan( self , nexus_host , vlan_id , vlan_name , intf_type , nexus_port , vni , is_native ) : #NEWLINE# #INDENT# 'Create VLAN and trunk it on the specified ports.' #NEWLINE# starttime = time . time ( ) #NEWLINE# self . create_vlan ( nexus_host , vlan_id , vlan_name , vni ) #NEWLINE# LOG . debug ( 'NexusDriver created VLAN: %s' , vlan_id ) #NEWLINE# if nexus_port : #NEWLINE# #INDENT# self . send_enable_vlan_on_trunk_int ( nexus_host , vlan_id , intf_type , nexus_port , is_native ) #NEWLINE# #UNINDENT# self . capture_and_print_timeshot ( starttime , 'create_all' , switch = nexus_port )