Skip to content

Commit

Permalink
Merge "Reinitialize routing instance refs in routing policy on start …
Browse files Browse the repository at this point in the history
…up" into R3.0
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 26, 2016
2 parents fd40697 + c094b23 commit 847919d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/config/schema-transformer/config_db.py
Expand Up @@ -3827,6 +3827,13 @@ def __init__(self, name, obj=None):
self.service_instances = {}
self.routing_instances = set()
self.update(obj)
ri_refs = self.obj.get_routing_instance_refs() or []
for ref in ri_refs:
ri_name = ':'.join(ref['to'])
self.routing_instances.add(ri_name)
ri = RoutingInstanceST.get(ri_name)
if ri:
ri.routing_policys[self.name] = ref['attr']['sequence']
# end __init__

def update(self, obj=None):
Expand Down

0 comments on commit 847919d

Please sign in to comment.