Commit af56d8de authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

NBI Component - SSE Telemetry:

- Fixed handling of target link and selection of controller
parent 22f6bb3d
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -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',