Skip to content

Commit

Permalink
Merge "contrail-topology failed on no api-server"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 27, 2016
2 parents ac1d2dd + 0b83d1e commit e343e64
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -22,7 +22,7 @@ def __init__(self, config):
self.uve = LinkUve(self._config)
self.sleep_time()
self._keep_running = True
self._vnc = self._config.vnc_api()
self._vnc = None

def stop(self):
self._keep_running = False
Expand Down Expand Up @@ -106,7 +106,10 @@ def _chk_lnk(self, pre, index):

def bms_links(self, prouter, ifm):
if not self._vnc:
self._vnc = self._config.vnc_api()
try:
self._vnc = self._config.vnc_api()
except:
print 'Proceeding without any api-server'
if self._vnc:
try:
for li in self._vnc.logical_interfaces_list()[
Expand Down

0 comments on commit e343e64

Please sign in to comment.