#NEWLINE# def test_set_mtu( self ) : #NEWLINE# #INDENT# for dut in self . duts : #NEWLINE# #INDENT# intf = random_interface ( dut ) #NEWLINE# dut . config ( [ ( 'default interface %s' % intf ) , ( 'interface %s' % intf ) , 'ip address 111.111.111.111/24' ] ) #NEWLINE# resource = dut . api ( 'ipinterfaces' ) #NEWLINE# result = resource . set_mtu ( intf , 2000 ) #NEWLINE# self . assertTrue ( result , ( 'dut=%s' % dut ) ) #NEWLINE# config = dut . run_commands ( ( 'show running-config interfaces %s' % intf ) , 'text' ) #NEWLINE# self . assertIn ( 'mtu 2000' , config [ 0 ] [ 'output' ] , ( 'dut=%s' % dut ) ) #NEWLINE# dut . config ( ( 'default interface %s' % self ) )