Loading src/load_generator/load_gen/RequestGenerator.py +8 −2 Original line number Original line Diff line number Diff line Loading @@ -255,10 +255,16 @@ class RequestGenerator: circuit_id = '{:03d}'.format(vlan_id + 100) circuit_id = '{:03d}'.format(vlan_id + 100) src_device_name = self._device_data[src_device_uuid]['name'] src_device_name = self._device_data[src_device_uuid]['name'] src_router_id = ROUTER_ID.get(src_device_name, '10.0.0.{:d}'.format(int(src_device_name.replace('R', '')))) src_endpoint_name = self._device_endpoint_data[src_device_uuid][src_endpoint_uuid]['name'] src_router_id = ROUTER_ID.get(src_device_name) src_router_num = int(src_device_name.replace('R', '')) if src_router_id is None: src_router_id = '10.0.0.{:d}'.format(src_router_num) dst_device_name = self._device_data[dst_device_uuid]['name'] dst_device_name = self._device_data[dst_device_uuid]['name'] dst_router_id = ROUTER_ID.get(dst_device_name, '10.0.0.{:d}'.format(int(dst_device_name.replace('R', '')))) dst_endpoint_name = self._device_endpoint_data[dst_device_uuid][dst_endpoint_uuid]['name'] dst_router_num = int(dst_device_name.replace('R', '')) dst_router_id = ROUTER_ID.get(dst_device_name) if dst_router_id is None: dst_router_id = '10.0.0.{:d}'.format(dst_router_num) config_rules = [ config_rules = [ json_config_rule_set('/settings', { json_config_rule_set('/settings', { Loading Loading
src/load_generator/load_gen/RequestGenerator.py +8 −2 Original line number Original line Diff line number Diff line Loading @@ -255,10 +255,16 @@ class RequestGenerator: circuit_id = '{:03d}'.format(vlan_id + 100) circuit_id = '{:03d}'.format(vlan_id + 100) src_device_name = self._device_data[src_device_uuid]['name'] src_device_name = self._device_data[src_device_uuid]['name'] src_router_id = ROUTER_ID.get(src_device_name, '10.0.0.{:d}'.format(int(src_device_name.replace('R', '')))) src_endpoint_name = self._device_endpoint_data[src_device_uuid][src_endpoint_uuid]['name'] src_router_id = ROUTER_ID.get(src_device_name) src_router_num = int(src_device_name.replace('R', '')) if src_router_id is None: src_router_id = '10.0.0.{:d}'.format(src_router_num) dst_device_name = self._device_data[dst_device_uuid]['name'] dst_device_name = self._device_data[dst_device_uuid]['name'] dst_router_id = ROUTER_ID.get(dst_device_name, '10.0.0.{:d}'.format(int(dst_device_name.replace('R', '')))) dst_endpoint_name = self._device_endpoint_data[dst_device_uuid][dst_endpoint_uuid]['name'] dst_router_num = int(dst_device_name.replace('R', '')) dst_router_id = ROUTER_ID.get(dst_device_name) if dst_router_id is None: dst_router_id = '10.0.0.{:d}'.format(dst_router_num) config_rules = [ config_rules = [ json_config_rule_set('/settings', { json_config_rule_set('/settings', { Loading