-
Notifications
You must be signed in to change notification settings - Fork 666
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
[config] Add Initial draft of Breakout Mode subcommand #766
Conversation
6ff70e7
to
a87bd6b
Compare
retest this please |
a87bd6b
to
8c6cefd
Compare
Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com> Integrating sonicMgmt API Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
8c6cefd
to
4f5f45e
Compare
Hi, @samaity. I had tried to integrate this PR, and also PR's (links below) that you mentioned in the "How I did it" section. And after that when I try to run the command:
I have the output like that:
So, should I integrate something else? |
@praveen-li, can you provide some info? |
Yeah, we need PR 3861 to make it work. That PR is still in review. Thx. |
Hi, @praveen-li, I had tried to integrate PR 3861. After that I have a compilations errors that are related to sonic-yang, the issue appears when building sonic-mgmt-framework (compilation output below). So, should I integrate something else? |
Not sure about the errors in sonic-mgmt-framework, Because sonic-yang-mgmt and sonic-mgmt-framework, should not be related. BTW, hope you are able to build sonic-yang-mgmt PKG, |
@samaity: Please fix conflicts. |
Hi, @samaity @praveen-li. I had integrated buildimage-PR3909, utilities-PR765, utilities-PR766, buildimage-PR3861. Then in sonic-buildimage/rules/config, I disabled sonic-mgmt-framework to avoid compilation errors (that I described in above comment). And after all those steps, I still have errors when I run next command on the switch:
Have someone of you faced such an issue, and should I integrate something else? |
Kindly check if you have sonic_yang_mgmt PKG installed in pip. So "pip list | grep yang" must show sonic_yang_mgmt. Also "pip3 list | grep yang" must show sonic_yang_models. |
This pull request introduces 6 alerts when merging 2072a5a into 7e52ef9 - view on LGTM.com new alerts:
|
Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
This pull request introduces 1 alert when merging 8410e7d into ffd0bd1 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging ff80160 into 221b593 - view on LGTM.com new alerts:
|
Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
Hi, @samaity. Could you please tell me, approximately when do you plan to integrate sonic-buildimage-PR3909? Because there are merge conflicts that are hard to resolve properly if you are not a feature owner. |
We are working on the conflicts, should resolve it next week, will review the PR with MSFT next week too. |
conflicts have been removed from sonic-buildimage #3909 PR and PR has been approved. Thanks! |
94185f1
to
5221c8f
Compare
retest this please |
Retest this please |
Retest this please |
@jleveque I have raised a PR for vs docker package dependency. Can you approve and merge the PR? |
retest this please |
Retest this please |
…4990) Added required packages to enabled YANG dependency check for Dynamic Port Breakout in VS container. [sonic-utilities PR #766](sonic-net/sonic-utilities#766) has a dependency on it. Getting error like the following without this fix: `ImportError: No module named yang - required module not found` Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
Retest this please |
1 similar comment
Retest this please |
Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
7dda670
to
a7f55b5
Compare
Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
Retest this please |
Added breakout subcommand in config command Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
6cfb3ecb0248768da0a91e5f7fb4477c5da7eb4e (HEAD -> 201911, origin/201911) [build]: allow to use extra inc/lib location to build the package (sonic-net#595) 40d34872d3b7f354adac67f084eebf6ee467f779 Merge pull request sonic-net#846 from xumia/azp-201911 76ac50f147a7d820b19d8d7628a67f2fe4f5159b Disable the build test 6c9cf655b8b5b152cab1d578e05eddf8238b81b0 Fix branch reference error ca8d81d37a9b0294098f161b036d330d9ff461e0 [ci]: download artifacts from master branch (sonic-net#768) 0cbf4d55c67a9f8f52715f95536f3588acf06c4a [ci]: use sonicbld pool (sonic-net#766) b6f1265ee9bd86f8a5e909a6f1e9b2384497c906 [ci]: add build for arm64 and armhf (sonic-net#757) 9ec0a7da64d479b124815edc5b505fb88b2532a0 CI: add azure pipeline CI/CD (sonic-net#754) 1436dbe02cd3c56f796c6b3398d4075cd05d97e0 Fix RIF issue (sonic-net#835) Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Sangita Maity sangitamaity0211@gmail.com
Signed-off-by: Sangita Maity sangitamaity0211@gmail.com
- What I did
Added breakout subcommand in config command.
- How I did it
There are four basic functions needed before breakout any interface. It uses portconfig.py in sonic build image.
This Pr also has a dependency on below PRs.
sonic-buildimage #3909
sonic-utilities #765
sonic-buildimage #4960
[sonic-buildimage #4990] Enable DPB dependency check using YANG model in VS container (#45) sonic-buildimage#4990)
readJsonFile: provides platform.json output which is needed to know supported mode and port attributes.
_get_option: Provides dynamic mode option as per user argument i.e. interface name
_validate_interface_mode: Validate Parent interface and user selected mode before starting deletetion or addition process
shutdown_interfaces: shut down all the interfaces which need to be deleted.
How to verify it
Verified using VS test case mentioned here