original_docstring: Ensure that all datapaths are provisioned.
  
          This function will make sure that all datapaths with ports bound to
          our chassis have its namespace, VETH pair and OVS port created and
          metadata proxy is up and running.
  
          :return: A list with the namespaces that are currently serving
          metadata
          
docstring: Ensure that all datapaths are provisioned.
  This function will make sure that all datapaths with ports bound to
  our chassis have its namespace, VETH pair and OVS port created and
  metadata proxy is up and running.
docstring_tokens: Ensure that all datapaths are provisioned . This function will make sure that all datapaths with ports bound to our chassis have its namespace VETH pair and OVS port created and metadata proxy is up and running .
code: def ensure_all_networks_provisioned(self):
          """Ensure that all datapaths are provisioned.
  
          This function will make sure that all datapaths with ports bound to
          our chassis have its namespace, VETH pair and OVS port created and
          metadata proxy is up and running.
  
          :return: A list with the namespaces that are currently serving
          metadata
          """
          # Retrieve all ports in our Chassis with type == ''
          ports = self.sb_idl.get_ports_on_chassis(self.chassis)
          datapaths = {str(p.datapath.uuid) for p in ports if p.type == ''}
          namespaces = []
          # Make sure that all those datapaths are serving metadata
          for datapath in datapaths:
              netns = self.provision_datapath(datapath)
              if netns:
                  namespaces.append(netns)
  
          return namespaces
code_tokens: def ensure_all_networks_provisioned ( self ) : ports = self . sb_idl . get_ports_on_chassis ( self . chassis ) datapaths = { str ( p . datapath . uuid ) for p in ports if p . type == '' } namespaces = [ ] for datapath in datapaths : netns = self . provision_datapath ( datapath ) if netns : namespaces . append ( netns ) return namespaces
short_docstring: Ensure that all datapaths are provisioned.
short_docstring_tokens: Ensure that all datapaths are provisioned .
comment: """Ensure that all datapaths are provisioned.
  
          This function will make sure that all datapaths with ports bound to
          our chassis have its namespace, VETH pair and OVS port created and
          metadata proxy is up and running.
  
          :return: A list with the namespaces that are currently serving
          metadata
          """$SEP$# Retrieve all ports in our Chassis with type == ''$SEP$# Make sure that all those datapaths are serving metadata