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

added mclag sonic yang #7622

Merged
merged 59 commits into from
Jan 27, 2022
Merged

Conversation

gitsabari
Copy link
Contributor

Why I did it

How I did it

Added mclag sonic yang file for the MCLAG enhancements as per HLD: sonic-net/SONiC#596

How to verify it

try rest APIs

Description for the changelog

Added mclag sonic yang

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

@rlhui
Copy link
Contributor

rlhui commented Jun 15, 2021

Tests are missing? Thanks.

@gitsabari
Copy link
Contributor Author

/azpw run azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@gitsabari
Copy link
Contributor Author

@zhangyanzhao
unrelated build issue. can you please get some help for this build issue. other than this. this PR can be merged once build done
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
make: *** [slave.mk:796: target/docker-gbsyncd-vs.gz] Error 2

@zhangyanzhao
Copy link
Collaborator

Rajesh Vel in BRCM will come back later.

@gitsabari
Copy link
Contributor Author

@zhangyanzhao
there seems to be generic issue. there are some test cases failing and it is not related to this change
please get some help to resolve this and also this PR can be merged it is already approved by yang.

======= 4 failed, 1631 passed, 3 skipped, 8 warnings in 1270.60 seconds ========

def test_extend__path_with_refs_to_children__extended_moves(self):
    self.verify(OperationType.REMOVE,
                ["PORT"],
                tc_ops=[{'op':'remove', 'path':'/PORT/Ethernet0'}],
                ex_ops=[{'op': 'remove', 'path': '/VLAN_MEMBER/Vlan1000|Ethernet0'},
                        {'op': 'remove', 'path': '/ACL_TABLE/NO-NSW-PACL-V4/ports/0'},
                        {'op': 'remove', 'path': '/VLAN_MEMBER/Vlan1000|Ethernet4'},
                        {'op': 'remove', 'path': '/ACL_TABLE/DATAACL/ports/0'},
                        {'op': 'remove', 'path': '/VLAN_MEMBER/Vlan1000|Ethernet8'},
                        {'op': 'remove', 'path': '/ACL_TABLE/EVERFLOWV6/ports/0'},
                        {'op': 'remove', 'path': '/ACL_TABLE/EVERFLOW/ports/0'},
                      {'op': 'remove', 'path': '/ACL_TABLE/EVERFLOWV6/ports/1'}])

tests/generic_config_updater/patch_sorter_test.py:1690:


tests/generic_config_updater/patch_sorter_test.py:1708: in verify
self.verify_moves(ex_ops, moves)
tests/generic_config_updater/patch_sorter_test.py:1712: in verify_moves
self.assertCountEqual(ex_ops, moves_ops)
E AssertionError: Element counts were not equal:
E First has 1, Second has 0: {'op': 'remove', 'path': '/VLAN_MEMBER/Vlan1000|Ethernet0'}
E First has 1, Second has 0: {'op': 'remove', 'path': '/VLAN_MEMBER/Vlan1000|Ethernet4'}
E First has 1, Second has 0: {'op': 'remove', 'path': '/VLAN_MEMBER/Vlan1000|Ethernet8'}
------- generated xml file: /sonic/src/sonic-utilities/test-results.xml --------

@zhangyanzhao zhangyanzhao added the Triaged this issue has been triaged label Jan 20, 2022
@zhangyanzhao
Copy link
Collaborator

zhangyanzhao commented Jan 20, 2022

LeafRef has a known issue which may be the root cause for the build failure. Try union leaf.

@ghooo
Copy link
Contributor

ghooo commented Jan 20, 2022

One of the imports in the sonic-mclag.yang file might be breaking backlinks and hence breaking sonic-utilities UTs. It is a known problem, check issue #9312

@Praveen-Brcm
Copy link
Contributor

Hi All the specific sonic yang files covers all the MCLAG configuration commands.

Praveen-Brcm
Praveen-Brcm previously approved these changes Jan 25, 2022
Copy link
Contributor

@arlakshm arlakshm left a comment

Choose a reason for hiding this comment

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

lgtm

@qiluo-msft qiluo-msft merged commit 018a649 into sonic-net:master Jan 27, 2022
@qiluo-msft qiluo-msft added the Request for 202111 Branch For PRs being requested for 202111 branch label Jan 27, 2022
@judyjoseph
Copy link
Contributor

@gitsabari Please raise a separate PR for 202111 branch as there are merge conflicts.

@judyjoseph judyjoseph removed the Request for 202111 Branch For PRs being requested for 202111 branch label Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triaged this issue has been triaged YANG YANG model related changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.