def resource_setup(cls):
super(RouterRbacTest, cls).resource_setup()
# Create a network with external gateway so that
# ``external_gateway_info`` policies can be validated.
post_body = {'router:external': True}
cls.network = cls.create_network(**post_body)
cls.subnet = cls.create_subnet(cls.network)
cls.ip_range = netaddr.IPRange(
cls.subnet['allocation_pools'][0]['start'],
cls.subnet['allocation_pools'][0]['end'])
cls.router = cls.create_router()
评论列表
文章目录