功能 #5288
nms.xml需要支持xpath获取值
0%
描述
gnb-nms.xml需要支持xpath获取值
历史记录
由 钱 伯宁 更新于 9 天 之前
- 指派给 从 钱 伯宁 变更为 薛 泽庆
gnb_agent已自测成功,待与网管联调。
修改接口:
Request is: <edit-config><target><running/></target><operation>update</operation><gnb-nms xmlns="http://www.yunzhiruantong.com/yzrt/yzmm/gnb-nms">{"type":".xpath","extension":"","value":"\u003cconfig xpath=\"/gnb-nms:GNB-NMS/LOCAL_CONFIG/NET_CHECK_CONFIG/NET_CHECK_NAME\"\u003e\u003cxpathVal\u003etest123\u003c/xpathVal\u003e\u003c/config\u003e"}</gnb-nms></edit-config>
RecvResp.RawReply is: <data>{"result":"success","data":"ok","code":0}</data>
获取接口:
Request is: <get-config><target><running/></target><operation>query</operation><gnb-nms xmlns="http://www.yunzhiruantong.com/yzrt/yzmm/gnb-nms">{"type":".xpath","extension":"","value":"\u003cconfig xpath=\"/gnb-nms:GNB-NMS/LOCAL_CONFIG/NET_CHECK_CONFIG/NET_CHECK_NAME\"\u003e\u003cxpathVal\u003e\u003c/xpathVal\u003e\u003c/config\u003e"}</gnb-nms></get-config>
RecvResp.RawReply is: <data>{"result":"success","data":"[{\"module\":\"gnb-nms\",\"data\":\"\\u003cconfig xpath=\\\"/gnb-nms:GNB-NMS/LOCAL_CONFIG/NET_CHECK_CONFIG/NET_CHECK_NAME\\\"\\u003etest123\\u003c/config\\u003e\"}]","code":0}</data>
由 薛 泽庆 更新于 9 天 之前
- 指派给 从 薛 泽庆 变更为 马 党旗
agent返回从数组修改为对象:Request is: <get-config><target><running/></target><operation>query</operation><gnb-nms xmlns="http://www.yunzhiruantong.com/yzrt/yzmm/gnb-nms">{"type":".xpath","extension":"","value":"\u003cconfig xpath=\"/gnb-nms:GNB-NMS/LOCAL_CONFIG/NET_CHECK_CONFIG/NET_CHECK_NAME\"\u003e\u003cxpathVal\u003e\u003c/xpathVal\u003e\u003c/config\u003e"}</gnb-nms></get-config>
RecvResp.RawReply is: <data>{"result":"success","data":"{\"module\":\"gnb-nms\",\"data\":\"\\u003cconfig xpath=\\\"/gnb-nms:GNB-NMS/LOCAL_CONFIG/NET_CHECK_CONFIG/NET_CHECK_NAME\\\"\\u003eeth2\\u003c/config\\u003e\"}","code":0}</data>
网管由原来的根据网元请求nms修改为根据内部版本号获取文件,减少请求次数,提高页面加载速度
nms由原来的全文件获取修改,替换成内部版本号大于等于535以后xpath获取及修改