Esempio n. 1
0
 def create_routes_info(self, site_conn_id, conn_info):
     """Collect/create attributes for static routes."""
     routes_info = []
     for peer_cidr in conn_info.get("peer_cidrs", []):
         route = {u"destination-network": peer_cidr, u"outgoing-interface": site_conn_id}
         route_id = csr_client.make_route_id(peer_cidr, site_conn_id)
         routes_info.append((route_id, route))
     return routes_info
Esempio n. 2
0
 def create_routes_info(self, site_conn_id, conn_info):
     """Collect/create attributes for static routes."""
     routes_info = []
     for peer_cidr in conn_info.get('peer_cidrs', []):
         route = {u'destination-network': peer_cidr,
                  u'outgoing-interface': site_conn_id}
         route_id = csr_client.make_route_id(peer_cidr, site_conn_id)
         routes_info.append((route_id, route))
     return routes_info