Skip to content

Commit

Permalink
VRouters not showing up in UI(double commit)
Browse files Browse the repository at this point in the history
Change-Id: I244e81aaa6996f9fccf52610f7526a12dea83842
Partial-Fix: #1432072
  • Loading branch information
tedghose committed May 5, 2015
1 parent ef7df5c commit 284941a
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -39,8 +39,12 @@ def get_vrouters(self):
self.vrouter_macs = {}
for vr in self.analytic_api.list_vrouters():
d = self.analytic_api.get_vrouter(vr, 'VrouterAgent:phy_if')
d.update(self.analytic_api.get_vrouter(vr,
'VrouterAgent:self_ip_list'))
if 'VrouterAgent' not in d:
d['VrouterAgent'] = {}
_ipl = self.analytic_api.get_vrouter(vr,
'VrouterAgent:self_ip_list')
if 'VrouterAgent' in _ipl:
d['VrouterAgent'].update(_ipl['VrouterAgent'])
if 'VrouterAgent' not in d or\
'self_ip_list' not in d['VrouterAgent'] or\
'phy_if' not in d['VrouterAgent']:
Expand Down

0 comments on commit 284941a

Please sign in to comment.