Skip to content

Commit

Permalink
Merge pull request #2635 from sever-sever/T5749
Browse files Browse the repository at this point in the history
T5749: Add a more scrict search for get_vrf method
  • Loading branch information
c-po authored Dec 14, 2023
2 parents 4508fb2 + 2ebac5a commit 2de7be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/vyos/ifconfig/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class Interface(Control):
},
'vrf': {
'shellcmd': 'ip -json -detail link list dev {ifname}',
'format': lambda j: jmespath.search('[*].master | [0]', json.loads(j)),
'format': lambda j: jmespath.search('[?linkinfo.info_slave_kind == `vrf`].master | [0]', json.loads(j)),
},
}

Expand Down

0 comments on commit 2de7be3

Please sign in to comment.