#NEWLINE# def test_set_bpdugard_to_default( self ) : #NEWLINE# #INDENT# for dut in self . duts : #NEWLINE# #INDENT# intf = random_interface ( dut ) #NEWLINE# dut . config ( [ ( 'default interface %s' % intf ) , ( 'interface %s' % intf ) , 'spanning-tree bpduguard enable' ] ) #NEWLINE# resource = dut . api ( 'stp' ) . interfaces #NEWLINE# result = resource . set_bpduguard ( intf , default = True ) #NEWLINE# self . assertTrue ( result , ( 'dut=%s' % dut ) )