forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sonic-yang-mgmt]: Move yang models to src/sonic-yang-models and bui…
…ld infra changes. (#54) * [sonic-yang-mgmt]: Move yang models to src/sonic-yang-models and build infra changes. 1.) Move yang models to src/sonic-yang-models. 2.) New build infra for src/sonic-yang-models. 3.) Change in build infra for src/sonic-yang-mgmt. 4.) Makefile changes to make sonic-yang-mgmt depend on sonic-yang-models. 5.) Test files changes. * [sonic-yang-mgmt/setup.py]: Find path of dependencies of os environment. Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com * [sonic-yang-mgmt/setup.py]: Change Python tag from Py2 to Py. Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com * [sonic-extension.yang]: Re-add sonic-extension file. Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com * [sonic-slave-jessie/Dockerfile.j2]: Remove ijson from jessie. Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com * [LICENSE]: Changing sonic-yang-mgmt LICENSE. Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com * [sonic-yang-models/LICENSE]: Changing license to APACHE. Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com * [rules/sonic-yang-mgmt-py2.mk]: Reverting back to PY2. Changes: -- Reverting back to PY2. -- Keeping package environment varible name to SONIC_YANG_MGMT_PY Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com * [sonic-yang-models/setup.py]: Address LGTM issues and rebasing. Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com
- Loading branch information
Praveen Chaudhary
authored
Apr 8, 2020
1 parent
97e6b7a
commit 71326e7
Showing
26 changed files
with
270 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
# sonic-yang-mgmt python2 wheel | ||
|
||
SONIC_YANG_MGMT_PY2 = sonic_yang_mgmt-1.0-py2-none-any.whl | ||
$(SONIC_YANG_MGMT_PY2)_SRC_PATH = $(SRC_PATH)/sonic-yang-mgmt | ||
$(SONIC_YANG_MGMT_PY2)_PYTHON_VERSION = 2 | ||
$(SONIC_YANG_MGMT_PY2)_DEBS_DEPENDS = $(LIBYANG) | ||
SONIC_YANG_MGMT_PY = sonic_yang_mgmt-1.0-py2-none-any.whl | ||
$(SONIC_YANG_MGMT_PY)_SRC_PATH = $(SRC_PATH)/sonic-yang-mgmt | ||
$(SONIC_YANG_MGMT_PY)_PYTHON_VERSION = 2 | ||
$(SONIC_YANG_MGMT_PY)_DEBS_DEPENDS = $(LIBYANG) | ||
$(SONIC_YANG_MGMT_PY)_DEPENDS = $(SONIC_YANG_MODELS_PY3) | ||
|
||
SONIC_PYTHON_WHEELS += $(SONIC_YANG_MGMT_PY2) | ||
SONIC_PYTHON_WHEELS += $(SONIC_YANG_MGMT_PY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SONIC_YANG_MODELS_PY3 = sonic_yang_models-1.0-py3-none-any.whl | ||
$(SONIC_YANG_MODELS_PY3)_SRC_PATH = $(SRC_PATH)/sonic-yang-models | ||
$(SONIC_YANG_MODELS_PY3)_PYTHON_VERSION = 3 | ||
$(SONIC_YANG_MODELS_PY3)_DEBS_DEPENDS = $(LIBYANG) | ||
|
||
SONIC_PYTHON_WHEELS += $(SONIC_YANG_MODELS_PY3) | ||
export SONIC_YANG_MODELS_PY3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,13 @@ | ||
GNU GENERAL PUBLIC LICENSE | ||
Version 3, 29 June 2007 | ||
Copyright 2019 Microsoft, Inc | ||
|
||
Copyright (C) 2019 Praveen Chaudhary | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
Also add information on how to contact you by electronic and paper mail. | ||
|
||
You should also get your employer (if you work as a programmer) or school, | ||
if any, to sign a "copyright disclaimer" for the program, if necessary. | ||
For more information on this, and how to apply and follow the GNU GPL, see | ||
<http://www.gnu.org/licenses/>. | ||
|
||
The GNU General Public License does not permit incorporating your program | ||
into proprietary programs. If your program is a subroutine library, you | ||
may consider it more useful to permit linking proprietary applications with | ||
the library. If this is what you want to do, use the GNU Lesser General | ||
Public License instead of this License. But first, please read | ||
<http://www.gnu.org/philosophy/why-not-lgpl.html>. | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
" | ||
This Package contains YANG models for sonic which are written with guidelines mentioned in | ||
https://github.com/Azure/SONiC/blob/master/doc/mgmt/SONiC_YANG_Model_Guidelines.md. | ||
|
||
In future this package will include python yang libraries which will be used with sonic utilities | ||
pacakge to validate the config. | ||
This package includes python yang libraries which will be used with sonic utilities | ||
pacakge to validate the config. This python libraries are written on top of libyang | ||
and also provides functionality to translate the config from SONiC ConfigDB to SONiC | ||
YANG and vice-versa. | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
======= | ||
Credits | ||
======= | ||
|
||
Development Lead | ||
---------------- | ||
|
||
LNOS-CODERS <lnos-coders@linkedin.com> | ||
MSFT-LINUX-DEV <linuxnetdev@microsoft.com> | ||
|
||
Contributors | ||
------------ | ||
|
||
Praveen Chaudhary <pchaudhary@linkedin.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Copyright 2019 Microsoft, Inc | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
" | ||
This Package contains YANG models for sonic which are written with guidelines mentioned in | ||
https://github.com/Azure/SONiC/blob/master/doc/mgmt/SONiC_YANG_Model_Guidelines.md. | ||
" |
Oops, something went wrong.