#NEWLINE# def __init__( self , interface ) : #NEWLINE# #INDENT# super ( TrunkShouldHaveVlanMembers , self ) . __init__ ( msg = '\nFor trunk interface, please ensure either vlan members is configured or inner-vlan-id-list is configured\n' , severity = 'error' , err_type = 'protocol' , tag = 'operation-failed' , info = { #NEWLINE# #INDENT# 'bad-element' : 'ethernet-switching' , #NEWLINE# #UNINDENT# } , path = '\n[edit interfaces {} unit 0 family]\n' . format ( interface ) )