#NEWLINE# def _bsd_stp( br , state , iface ) : #NEWLINE# #INDENT# '\n    Internal, sets STP state. On BSD-like, it is required to specify the\n    STP physical interface\n    ' #NEWLINE# kernel = __grains__ [ 'kernel' ] #NEWLINE# if ( kernel == 'NetBSD' ) : #NEWLINE# #INDENT# cmd = _tool_path ( 'brconfig' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# cmd = _tool_path ( 'ifconfig' ) #NEWLINE# #UNINDENT# if ( ( not iface ) or ( not iface ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return __salt__ [ 'cmd.run' ] ( '{0} {1} {2} {3}' . format ( cmd , br , state , iface ) , python_shell = False )