Exemplo n.º 1
0
    def start_VPC_VRouter(self, router):
        # Start the VPC Router
        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")
Exemplo n.º 2
0
    def start_VPC_VRouter(self, router):
        # Start the VPC Router
        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")