Loading src/nbi/service/sse_telemetry/create_subscription.py +9 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,15 @@ class CreateSubscription(Resource): if not xpath_network: MSG = 'Resource({:s} => {:s}) not found in SIMAP Server' raise Exception(MSG.format(str(xpath_filter), str(xpath_filter_prefix))) network_id = xpath_network['network-id'] networks = xpath_network.get('ietf-network:network', list()) if len(networks) != 1: MSG = 'Resource({:s} => {:s}) wrong number of entries: {:s}' raise Exception(MSG.format( str(xpath_filter), str(xpath_filter_prefix), str(xpath_network) )) network = networks[0] network_id = network['network-id'] controller_name_map = { 'e2e' : 'TFS-E2E', 'agg' : 'TFS-AGG', Loading Loading
src/nbi/service/sse_telemetry/create_subscription.py +9 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,15 @@ class CreateSubscription(Resource): if not xpath_network: MSG = 'Resource({:s} => {:s}) not found in SIMAP Server' raise Exception(MSG.format(str(xpath_filter), str(xpath_filter_prefix))) network_id = xpath_network['network-id'] networks = xpath_network.get('ietf-network:network', list()) if len(networks) != 1: MSG = 'Resource({:s} => {:s}) wrong number of entries: {:s}' raise Exception(MSG.format( str(xpath_filter), str(xpath_filter_prefix), str(xpath_network) )) network = networks[0] network_id = network['network-id'] controller_name_map = { 'e2e' : 'TFS-E2E', 'agg' : 'TFS-AGG', Loading