Skip to content
Command line utilities for the SONiC project
Python Shell Awk
Branch: master
Clone or download

Latest commit

bsun-sudo and Bing Sun Fix is_mgmt_vrf_enabled when MGMT_VRF_CONFIG is not present the confi…
…g DB (#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>
Latest commit c52e268 May 14, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github [PR template] Add reminder to add/modify/remove unit tests as appropr… Oct 22, 2019
acl_loader Changes to support acl-loader and mirror-session config commands for … May 13, 2020
clear Remove dependency on click-default-group package (#903) May 9, 2020
config Changes to support acl-loader and mirror-session config commands for … May 13, 2020
connect Remove dependency on click-default-group package (#903) May 9, 2020
consutil Fix more Python warnings (#869) Apr 8, 2020
counterpoll Add buffer pool watermark support in watermarkstat and counterpoll (#521 Jun 4, 2019
crm Fix more Python warnings (#869) Apr 8, 2020
data/etc/bash_completion.d [fwutil]: Command-line utility for interacting with platform componen… Feb 20, 2020
debug
doc
fwutil [fwutil]: Fix firmware update command. (#895) Apr 29, 2020
pddf_fanutil Fix even more Python warnings (#873) Apr 9, 2020
pddf_ledutil Fix more Python warnings (#869) Apr 8, 2020
pddf_psuutil Fix even more Python warnings (#873) Apr 9, 2020
pddf_thermalutil Fix even more Python warnings (#873) Apr 9, 2020
pfc Fix more Python warnings (#869) Apr 8, 2020
pfcwd Fixes bug for PFCWD feature parameters (#838) Apr 7, 2020
psuutil Fix even more Python warnings (#873) Apr 9, 2020
scripts [fanshow] Add column drawer name and led status to output of show pla… May 13, 2020
sfputil
show Fix is_mgmt_vrf_enabled when MGMT_VRF_CONFIG is not present the confi… May 14, 2020
sonic-utilities-tests [psushow] Add a column to display LED color to show platform psustatu… Apr 30, 2020
sonic_installer Fix even more Python warnings (#873) Apr 9, 2020
ssdutil Fix Python warnings (#867) Apr 8, 2020
undebug Remove dependency on click-default-group package (#903) May 9, 2020
utilities_common Fix more Python warnings (#869) Apr 8, 2020
.gitignore [acl-loader] egress mirror action support and action ASIC support che… Oct 7, 2019
MANIFEST.in Add MANIFEST.in so that stdeb includes data files in package (#13) Mar 2, 2017
README.md [doc]: add ltgm and jenkins badge (#875) Apr 9, 2020
ThirdPartyLicenses.txt Remove extra trailing newlines at EOF (#82) Jul 14, 2017
pytest.ini Refix: Validate acl.json after parsing, add unit test (#322) Sep 19, 2018
setup.cfg use pytest in setuptools (#490) Mar 22, 2019
setup.py Remove dependency on click-default-group package (#903) May 9, 2020
stdeb.cfg [sonic_cli]: Fix bash completion for 'show' command (#12) Mar 1, 2017

README.md

Total alerts Language grade: Python

Build

SONiC: Software for Open Networking in the Cloud

sonic-utilities

Command-line utilities for SONiC

How to run unit test

python2 -m py.test -v

Contribution guide

All contributors must sign a contribution license agreement (CLA) before contributions can be accepted. This process is now automated via a GitHub bot when submitting new pull request. If the contributor has not yet signed a CLA, the bot will create a comment on the pull request containing a link to electronically sign the CLA.

GitHub Workflow

We're following basic GitHub Flow. If you have no idea what we're talking about, check out GitHub's official guide. Note that merge is only performed by the repository maintainer.

Guide for performing commits:

  • Isolate each commit to one component/bugfix/issue/feature
  • Use a standard commit message format:
[component/folder touched]: Description intent of your changes

[List of changes]

Signed-off-by: Your Name your@email.com

For example:

swss-common: Stabilize the ConsumerTable

* Fixing autoreconf
* Fixing unit-tests by adding checkers and initialize the DB before start
* Adding the ability to select from multiple channels
* Health-Monitor - The idea of the patch is that if something went wrong with the notification channel,
  we will have the option to know about it (Query the LLEN table length).

  Signed-off-by: John Doe user@dev.null
  • Each developer should fork this repository and add the team as a Contributor
  • Push your changes to your private fork and do "pull-request" to this repository
  • Use a pull request to do code review
  • Use issues to keep track of what is going on
You can’t perform that action at this time.