test_routers_rbac.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:patrole 作者: openstack 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号