Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix is_mgmt_vrf_enabled when MGMT_VRF_CONFIG is not present the confi…
…g DB (sonic-net#885) Fix is_mgmt_vrf_enabled for the case where MGMT_VRF_CONFIG is not at all in the config DB. This is the case where mgmt vrf is never configured. The function throws error at File "/usr/lib/python2.7/dist-packages/show/main.py", line 651, in is_mgmt_vrf_enabled mvrf_dict = json.loads(p.stdout.read()) Two show commands uses is_mgmt_vrf_enabled. "show mgmt-vrf" and "show ntp" Both commands throw error if mgmt vrf is never configured Co-authored-by: Bing Sun <Bing_Sun@dell.com>
- Loading branch information