def find_interfaces(*args):
 brs = _os_dispatch('brshow')
 if (not brs):
  return None
 iflist = {}
 for iface in args:
  for br in brs:
   try:
    if (iface in brs[br]['interfaces']):
     iflist[iface] = br
   except Exception:
    pass
 return iflist

def find_interfaces ( * args ) : brs = _os_dispatch ( 'brshow' ) if ( not brs ) : return None iflist = { } for iface in args : for br in brs : try : if ( iface in brs [ br ] [ 'interfaces' ] ) : iflist [ iface ] = br except Exception : pass return iflist
returns the bridge to which the interfaces are bond to cli example: .