From: Anurag Dwivedi Date: Wed, 26 Apr 2017 07:08:14 +0000 (-0400) Subject: NSR XPATH fix for rwconmantasklet X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=55b74ac2c17906380105d91d211d7e5713bb0f22;p=osm%2FSO.git NSR XPATH fix for rwconmantasklet Signed-off-by: Anurag Dwivedi --- diff --git a/rwcm/plugins/rwconman/rift/tasklets/rwconmantasklet/rwconman_config.py b/rwcm/plugins/rwconman/rift/tasklets/rwconmantasklet/rwconman_config.py index 4b010b6d..c3ef3e75 100644 --- a/rwcm/plugins/rwconman/rift/tasklets/rwconmantasklet/rwconman_config.py +++ b/rwcm/plugins/rwconman/rift/tasklets/rwconmantasklet/rwconman_config.py @@ -1360,11 +1360,13 @@ class XPaths(object): @staticmethod def nsr_config(k=None): - return ("C,/nsr:ns-instance-config/nsr:nsr[nsr:id='{}']".format(k) if k is not None else "") + return ("C,/nsr:ns-instance-config/nsr:nsr" + + ("[nsr:id='{}']".format(k) if k is not None else "")) @staticmethod def vlr(k=None): - return ("D,/vlr:vlr-catalog/vlr:vlr[vlr:id='{}']".format(k) if k is not None else "") + return ("D,/vlr:vlr-catalog/vlr:vlr" + + ("[vlr:id='{}']".format(k) if k is not None else "")) class ConfigManagerDTS(object): ''' This class either reads from DTS or publishes to DTS '''