Skip to content

Commit

Permalink
Update main.py. Fix key error
Browse files Browse the repository at this point in the history
  • Loading branch information
knewell committed Sep 27, 2019
1 parent 8890c0b commit d4341d0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,10 @@ def loadFlowRouteConfig(self):

for table in ['inet', 'inet6']:
if table == 'inet6':
if 'flow' in _vrf_data['rib'][0]:
_data = _vrf_data['rib'][0]['flow']
family = 'v6'
if 'rib' in _vrf_data:
if 'flow' in _vrf_data['rib'][0]:
_data = _vrf_data['rib'][0]['flow']
family = 'v6'
else:
if 'flow' in _vrf_data:
_data = _vrf_data['flow']
Expand Down

0 comments on commit d4341d0

Please sign in to comment.