Skip to content

[aclshow]: Add aclshow utility to view ACL info and counters#18

Merged
stcheng merged 5 commits intosonic-net:masterfrom
andriymoroz-mlnx:master
Apr 5, 2017
Merged

[aclshow]: Add aclshow utility to view ACL info and counters#18
stcheng merged 5 commits intosonic-net:masterfrom
andriymoroz-mlnx:master

Conversation

@andriymoroz-mlnx
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

@jleveque jleveque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add this script to the Python package build under "scripts=[...]" in setup.py.

scripts/aclshow Outdated
self.validate_ports()

def setup_db_connections(self):

Copy link
Copy Markdown
Contributor

@jleveque jleveque Mar 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove empty line (#74) for consistency.

scripts/aclshow Outdated
print("ACL Tables to show:", len(self.acl_tables))

def fetch_acl_rules():

Copy link
Copy Markdown
Contributor

@jleveque jleveque Mar 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove empty line (#164) for consistency

Copy link
Copy Markdown
Contributor

@stcheng stcheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/Azure/sonic-py-swsssdk this is the library to connect to the db. I think it is better to use the library to connect and hide all the db functions behind the library so that the script here only calls limited intuitive APIs.

@svc-acs
Copy link
Copy Markdown
Collaborator

svc-acs commented Mar 24, 2017

Build triggered. sha1 is merged.

@svc-acs
Copy link
Copy Markdown
Collaborator

svc-acs commented Mar 24, 2017

Build started sha1 is merged.

@svc-acs
Copy link
Copy Markdown
Collaborator

svc-acs commented Mar 24, 2017

No test results found.

@andriymoroz-mlnx
Copy link
Copy Markdown
Collaborator Author

Updated. Now we need sswsdk on switch

@liatgrozovik
Copy link
Copy Markdown

Can we merge this tool and update submodule pointers?

@lguohan
Copy link
Copy Markdown
Contributor

lguohan commented Apr 4, 2017

@stcheng and @jleveque , please approve or indicate if there is any further changes needed?

scripts/aclshow Outdated
Copy link
Copy Markdown
Contributor

@jleveque jleveque Apr 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should change from sswsdk.SonicV2Connector() to swsssdk.SonicV2Connector() to work with new module name.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@stcheng stcheng merged commit 2ca359b into sonic-net:master Apr 5, 2017
samaity added a commit to samaity/sonic-utilities that referenced this pull request Mar 19, 2020
…es. (sonic-net#18)

Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
mihirpat1 pushed a commit to mihirpat1/sonic-utilities that referenced this pull request Sep 15, 2023
[sfp_util] open eeprom files with buffering disabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants