update to fix a bug (#58207)
This commit is contained in:
parent
e0f3e404c9
commit
4a6c86715a
1 changed files with 4 additions and 2 deletions
|
@ -284,13 +284,13 @@ class BfdView(object):
|
||||||
root = ElementTree.fromstring(xml_str)
|
root = ElementTree.fromstring(xml_str)
|
||||||
|
|
||||||
# get bfd global info
|
# get bfd global info
|
||||||
glb = root.find("data/bfd/bfdSchGlobal")
|
glb = root.find("bfd/bfdSchGlobal")
|
||||||
if glb:
|
if glb:
|
||||||
for attr in glb:
|
for attr in glb:
|
||||||
bfd_dict["global"][attr.tag] = attr.text
|
bfd_dict["global"][attr.tag] = attr.text
|
||||||
|
|
||||||
# get bfd session info
|
# get bfd session info
|
||||||
sess = root.find("data/bfd/bfdCfgSessions/bfdCfgSession")
|
sess = root.find("bfd/bfdCfgSessions/bfdCfgSession")
|
||||||
if sess:
|
if sess:
|
||||||
for attr in sess:
|
for attr in sess:
|
||||||
bfd_dict["session"][attr.tag] = attr.text
|
bfd_dict["session"][attr.tag] = attr.text
|
||||||
|
@ -497,6 +497,8 @@ class BfdView(object):
|
||||||
return
|
return
|
||||||
|
|
||||||
self.end_state["session"] = bfd_dict.get("session")
|
self.end_state["session"] = bfd_dict.get("session")
|
||||||
|
if self.end_state == self.existing:
|
||||||
|
self.changed = False
|
||||||
|
|
||||||
def work(self):
|
def work(self):
|
||||||
"""worker"""
|
"""worker"""
|
||||||
|
|
Loading…
Reference in a new issue