update ospf modules to fix bugs as software version changes (#56974)

This commit is contained in:
xuxiaowei0512 2019-05-30 00:40:31 +08:00 committed by Nathaniel Case
parent 0137c4343b
commit b7f4e2a190
2 changed files with 14 additions and 13 deletions

View file

@ -1047,7 +1047,7 @@ class OspfVrf(object):
# get the vpn address family and RD text
ospf_sites = root.findall(
"data/ospfv2/ospfv2comm/ospfSites/ospfSite")
"ospfv2/ospfv2comm/ospfSites/ospfSite")
if ospf_sites:
for ospf_site in ospf_sites:
ospf_ele_info = dict()
@ -1063,7 +1063,8 @@ class OspfVrf(object):
"spfScheduleIntervalType"]:
ospf_ele_info[
ospf_site_ele.tag] = ospf_site_ele.text
self.ospf_info["ospfsite"].append(ospf_ele_info)
if ospf_ele_info["processId"] == self.ospf:
self.ospf_info["ospfsite"].append(ospf_ele_info)
def get_proposed(self):
"""get proposed info"""