parameters: (bridge)
return_statement: return os.listdir(BRIDGE_PORTS % bridge)
docstring: Get all ports from a bridge.
  
      Args:
          bridge (str): the name of the OVS bridge.
  
      Returns:
          List[str]: a list with all ports.
docstring_summary: Get all ports from a bridge.
docstring_tokens: Get all ports from a bridge .
function: def ports(bridge):
      """Get all ports from a bridge.
  
      Args:
          bridge (str): the name of the OVS bridge.
  
      Returns:
          List[str]: a list with all ports.
  
      """
      if bridge in ovs_bridges():
          return ovs_bridge_ports(bridge)
  
      return os.listdir(BRIDGE_PORTS % bridge)
function_tokens: def ports ( bridge ) : if bridge in ovs_bridges ( ) : return ovs_bridge_ports ( bridge ) return os . listdir ( BRIDGE_PORTS % bridge )