Skip to content

Bug fix: #4011 #4012 - "show run acl", "show run interfaces" - traceback when no ACL_RULE/INTERFACE is present.#4226

Merged
jleveque merged 3 commits intosonic-net:masterfrom
noaOrMlnx:show_run_acl_bugfix
Mar 30, 2020
Merged

Bug fix: #4011 #4012 - "show run acl", "show run interfaces" - traceback when no ACL_RULE/INTERFACE is present.#4226
jleveque merged 3 commits intosonic-net:masterfrom
noaOrMlnx:show_run_acl_bugfix

Conversation

@noaOrMlnx
Copy link
Collaborator

Signed-off-by: Noa Or [email protected]

- What I did

- How I did it
Change logic in main to take data only if the var given in var_json appears in DB.

- How to verify it

  • Make sure running configuration doesn't contain ACL_RULE:
    show run all | grep -r '"ACL_RULE"'
    should print nothing.

  • run command:
    show run acl
    Nothing should be printed and no error should appear.

  • Make sure running configuration doesn't contain INTERFACE:
    show run all | grep -r '"INTERFACE"'
    should print nothing.

  • run command:
    show run interfaces
    Nothing should be printed and no error should appear.

- Description for the changelog

N/A

- A picture of a cute animal (not mandatory but encouraged)

…LE/INTERFACE is present in configuration

- Change logic in main to take data only if the var_json appears in DB.

Signed-off-by: Noa Or <[email protected]>
@noaOrMlnx
Copy link
Collaborator Author

retest vsimage please

2 similar comments
@noaOrMlnx
Copy link
Collaborator Author

retest vsimage please

@noaOrMlnx
Copy link
Collaborator Author

retest vsimage please

@liat-grozovik
Copy link
Collaborator

@jleveque can you please review unittest and approve?

@jleveque jleveque merged commit 1a0067e into sonic-net:master Mar 30, 2020
abdosi pushed a commit that referenced this pull request Apr 15, 2020
…ack when no ACL_RULE/INTERFACE is present. (#4226)

* Fix bugs - "show run acl/interfaces" returns traceback when no ACL_RULE/INTERFACE is present in configuration
- Change logic in main to take data only if the var_json appears in DB.
- Add unit testing for bug fix & fix comments

Signed-off-by: Noa Or <[email protected]>
tiantianlv pushed a commit to SONIC-DEV/sonic-buildimage that referenced this pull request Apr 24, 2020
…terfaces" - traceback when no ACL_RULE/INTERFACE is present. (sonic-net#4226)

* Fix bugs - "show run acl/interfaces" returns traceback when no ACL_RULE/INTERFACE is present in configuration
- Change logic in main to take data only if the var_json appears in DB.
- Add unit testing for bug fix & fix comments

Signed-off-by: Noa Or <[email protected]>
mssonicbld added a commit that referenced this pull request Feb 19, 2026
…atically (#25250)

#### Why I did it
src/sonic-utilities
```
* 0315da21 - (HEAD -> 202511, origin/202511) [LACP retry-count] Syntax Fix for Trixie (#4280) (6 hours ago) [Yair Raviv]
* 4420954e - Fix dump port state CLI command crash on multi-asic platforms (#4276) (5 days ago) [mssonicbld]
* a3ad30be - [Mellanox] Add restricted sysfs list for fw control modules (#4202) (13 days ago) [mssonicbld]
* 16390921 - Fix j2 files not getting packaged (#4252) (13 days ago) [mssonicbld]
* 6b9b0dce - [hft]: HFT config/show cli (#4243) (2 weeks ago) [mssonicbld]
* 529b6479 - [sfputil] Fix issue: should not do low power mode or reset for non-present ports (#4241) (2 weeks ago) [mssonicbld]
* ad70c8f2 - Update bash completions for sonic-utilities commands (#4234) (3 weeks ago) [mssonicbld]
* 667f4b32 - [202511][GCU] Update WRED_PROFILE and BUFFER_POOL validators for GCU (#4226) (3 weeks ago) [Dev Ojha]
* 88b3899d - Fix sonic-kdump-config for running commands with pipe (#4220) (3 weeks ago) [mssonicbld]
* e4881b02 - Skip IP range duplicate check in validate_bgp_peer_group for different vnets (#4215) (4 weeks ago) [mssonicbld]
* 9c24925a - Fix syntax and semantic errors in kdump remote feature (#4212) (4 weeks ago) [mssonicbld]
```
#### How I did it
#### How to verify it
#### Description for the changelog
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.

4 participants