def create_lr(self, vn_fixtures, vni=None, devices=None, **kwargs): vn_ids = [vn.uuid for vn in vn_fixtures] vni = vni or str(get_random_vxlan_id(min=10000)) self.logger.info('Creating Logical Router with VN uuids: %s, VNI %s'%( vn_ids, vni)) lr = self.useFixture(LogicalRouterFixture( connections=self.connections, connected_networks=vn_ids, vni=vni, vxlan_enabled=True, **kwargs)) return lr
def create_logical_router(self, vn_fixtures, vni=None, devices=None, **kwargs): vn_ids = [vn.uuid for vn in vn_fixtures] vni = vni or str(get_random_vxlan_id(min=10000)) self.logger.info('Creating Logical Router with VN uuids: %s, VNI %s'%( vn_ids, vni)) lr = self.useFixture(LogicalRouterFixture( connections=self.connections, connected_networks=vn_ids, vni=vni, **kwargs)) for spine in devices or self.spines: if kwargs.get('is_public_lr') == True: if 'dc_gw' not in self.inputs.get_prouter_rb_roles(spine.name): continue lr.add_physical_router(spine.uuid) return lr
def create_logical_router(self, vn_fixtures, vni=None, **kwargs): vn_ids = [vn.uuid for vn in vn_fixtures] vni = vni or str(get_random_vxlan_id(min=10000)) self.logger.info('Creating Logical Router with VN uuids: %s, VNI %s'%( vn_ids, vni)) lr = self.useFixture(LogicalRouterFixture( connections=self.connections, connected_networks=vn_ids, vni=vni, **kwargs)) for spine in self.spines: if kwargs.get('is_public_lr') == True: if 'dc_gw' not in self.inputs.get_prouter_rb_roles(spine.name): continue lr.add_physical_router(spine.uuid) return lr