Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sonic-vlan.yang]: Correct Pattern for VLAN. #5165

Merged
merged 1 commit into from
Aug 15, 2020

Conversation

praveen-li
Copy link
Collaborator

@praveen-li praveen-li commented Aug 12, 2020

Changes:
-- Correct Pattern for VLAN.
-- Add Special Test support.
-- Add first special test to load VLAN 1-4094.
-- Add lanes in ports. [Need to make test pass with new test code.]
-- Make Sure None test gets no output from libyang while config load.

[yangModelTesting.py]: INCORRECT VLAN_NAME FIELD IN VLAN TABLE test.

Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com

- Why I did it
Changes:
-- Correct Pattern for VLAN.
-- Add Special Test support.
-- Add first special test to load VLAN 1-4094.
-- Add lanes in ports. [Need to make test pass with new test code.]
-- Make Sure None test gets no output from libyang while config load.

- How I did it

Changes:
-- Correct Pattern for VLAN.
-- Add Special Test support.
-- Add first special test to load VLAN 1-4094.
-- Add lanes in ports. [Need to make test pass with new test code.]
-- Make Sure None test gets no output from libyang while config load.

- How to verify it
Built with new Tests:

INFO:YANG-TEST:
------------------- Test 8: INCORRECT VLAN_NAME FIELD IN VLAN TABLE.---------------------
libyang[0]: Value "Vlan8090" does not satisfy the constraint "Vlan([0-9]{1,3}|[1-3][0-9]{3}|[4][0][0-8][0-9]|[4][0][9][0-4])" (range, length,
 or pattern). (path: /sonic-vlan:sonic-vlan/VLAN/VLAN_LIST[vlan_name='Vlan8090']/vlan_name)
INFO:YANG-TEST:INCORRECT VLAN_NAME FIELD IN VLAN TABLE. Passed

INFO:YANG-TEST:
------------------- Test 20: VLAN TEST.---------------------
INFO:YANG-TEST:All Test Passed

pchaudha@server05:/home/pchaudha/srcCode/azure_myforks/sonic-buildimage$ ls -l target/python-wheels/sonic_yang_models-1.0-py3-none-any.whl
-rw-r--r-- 1 pchaudha pchaudha 12645 Aug 12 14:07 target/python-wheels/sonic_yang_models-1.0-py3-none-any.whl
pchaudha@server05:/home/pchaudha/srcCode/azure_myforks/sonic-buildimage$ date
Wed Aug 12 14:30:07 PDT 2020
- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006

This fix is to resolve a bug, which exists both in Master and 202006 branches.
- Description for the changelog

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

Changes:
-- Correct Pattern for VLAN.
-- Add Special Test support.
-- Add first special test to load VLAN 1-4094.
-- Add lanes in ports.
-- Make Sure None test gets no output from libyang while config load.

[yangModelTesting.py]: INCORRECT VLAN_NAME FIELD IN VLAN TABLE test.

Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com
@praveen-li
Copy link
Collaborator Author

retest mellanox please

@praveen-li
Copy link
Collaborator Author

Kindly review

@lguohan
Copy link
Collaborator

lguohan commented Aug 13, 2020

lgtm, can you enable the coverage for the unit test?

@lguohan lguohan merged commit 32539a1 into sonic-net:master Aug 15, 2020
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
Changes:
-- Correct Pattern for VLAN.
-- Add Special Test support.
-- Add first special test to load VLAN 1-4094.
-- Add lanes in ports.
-- Make Sure None test gets no output from libyang while config load.

[yangModelTesting.py]: INCORRECT VLAN_NAME FIELD IN VLAN TABLE test.

Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants