update vrf to fix bugs (#57270)

* update vrf

* update vrf
This commit is contained in:
xuxiaowei0512 2019-06-08 01:03:54 +08:00 committed by Nathaniel Case
commit 76e06fa7c2
3 changed files with 5 additions and 6 deletions

View file

@ -214,7 +214,7 @@ class Vrf(object):
root = ElementTree.fromstring(xml_str)
vpn_instances = root.findall(
"data/l3vpn/l3vpncomm/l3vpnInstances/l3vpnInstance")
"l3vpn/l3vpncomm/l3vpnInstances/l3vpnInstance")
if vpn_instances:
for vpn_instance in vpn_instances:
if vpn_instance.find('vrfName').text == self.vrf: