update ce_ntp.py and remove the root tag name to find all nodes (#56976)
* add a maintainer * update ce_ntp.py and remove the root tag name to find all node * update ce_ntp.py and remove the root tag name to find all node
This commit is contained in:
parent
9e1f184b2d
commit
0137c4343b
1 changed files with 1 additions and 1 deletions
|
@ -442,7 +442,7 @@ class Ntp(object):
|
|||
|
||||
# get all ntp config info
|
||||
root = ElementTree.fromstring(xml_str)
|
||||
ntpsite = root.findall("data/ntp/ntpUCastCfgs/ntpUCastCfg")
|
||||
ntpsite = root.findall("ntp/ntpUCastCfgs/ntpUCastCfg")
|
||||
for nexthop in ntpsite:
|
||||
ntp_dict = dict()
|
||||
for ele in nexthop:
|
||||
|
|
Loading…
Reference in a new issue