Esempio n. 1
0
 def start_router(self):
     self.check_master_status(2, showall=True)
     self.debug('Starting stopped routers')
     for router in self.routers:
         self.debug('Router %s has state %s' % (router.id, router.state))
         if router.state == "Stopped":
             self.debug('Starting stopped router %s' % router.id)
             cmd = startRouter.startRouterCmd()
             cmd.id = router.id
             self.apiclient.startRouter(cmd)
 def start_routers(self):
     self.check_routers_state(showall=True)
     self.logger.debug('Starting stopped routers')
     for router in self.routers:
         self.logger.debug('Router %s has state %s' % (router.id, router.state))
         if router.state == "Stopped":
             self.logger.debug('Starting stopped router %s' % router.id)
             cmd = startRouter.startRouterCmd()
             cmd.id = router.id
             self.apiclient.startRouter(cmd)
Esempio n. 3
0
    def start_vpcrouter(self, router):
        self.debug("Starting router ID: %s" % router.id)
        cmd = startRouter.startRouterCmd()
        cmd.id = router.id
        self.apiclient.startRouter(cmd)

        routers = list_routers(self.apiclient,
                               account=self.account.name,
                               domainid=self.account.domainid,
                               zoneid=self.zone.id)
        self.assertEqual(isinstance(routers, list), True,
                         "Check for list routers response return valid data")
        router = routers[0]
        self.assertEqual(router.state, 'Running',
                         "Check list router response for router state")
    def start_vpcrouter(self, router):
        # Start the VPC Router
        self.debug("Starting router ID: %s" % router.id)
        cmd = startRouter.startRouterCmd()
        cmd.id = router.id
        self.apiclient.startRouter(cmd)

        routers = list_routers(self.apiclient,
                                        account=self.account.name,
                                        domainid=self.account.domainid,
                                        zoneid=self.zone.id
                                        )
        self.assertEqual(isinstance(routers, list),
                                True,
                                "Check for list routers response return valid data"
                                )
        router = routers[0]
        self.assertEqual(router.state,
                        'Running',
                        "Check list router response for router state"
                        )
 def start_routers(self):
     self.logger.debug('Starting routers')
     for router in self.routers:
         cmd = startRouter.startRouterCmd()
         cmd.id = router.id
         self.apiclient.startRouter(cmd)
 def start_routers(self):
     self.logger.debug('Starting routers')
     for router in self.routers:
         cmd = startRouter.startRouterCmd()
         cmd.id = router.id
         self.apiclient.startRouter(cmd)