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 Management Framework Release 1.0 #18

Merged
merged 886 commits into from
Dec 23, 2019
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
886 commits
Select commit Hold shift + click to select a range
5d35a8d
[JIRA SONIC-9259] Add range limit to mtu in sonic-port.
asha-behera Sep 11, 2019
17688c3
Merge pull request #104 from project-arlo/fix/on-change-subscribe
PrabhuSreenivasan Sep 11, 2019
00e479a
Merge pull request #105 from project-arlo/master
PrabhuSreenivasan Sep 11, 2019
3693d5d
Signature chnage for transformer functions
ranjinidn Sep 11, 2019
583c16c
modified acl-key xfmr to return integer and enhanced the get-req hand…
s-mari Sep 11, 2019
df0f7ff
make common-app as default to handle acl, add the field-xfmr for acl …
kwangsuk Sep 11, 2019
5fdc27d
[JIRA SONIC-9203] Added IP_TYPE field with value ANY in DEFAULT_RULE.
maheshwari-mayank Sep 11, 2019
a28f38c
Merge branch 'master' of https://github.com/project-arlo/sonic-mgmt-f…
Sep 11, 2019
f066a71
Fix for bugs 96, 97 and 107
Sep 11, 2019
12a708d
Addressed the comment to sort the speed
Sep 11, 2019
2eb5d98
Fix sonic get query failure
ranjinidn Sep 11, 2019
021c903
fix to exclude key-leaf data populating db-filed value and removed co…
s-mari Sep 11, 2019
359267c
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
s-mari Sep 11, 2019
2f0d6ec
Change MAX_MTU to 9216 in platform_dummy file as well, since it
Sep 11, 2019
99bbbcf
Fix for bugs 96, 97 and 107 (Speed is not displaying properly) (#109)
justinejose91 Sep 11, 2019
103d4ff
Merge branch 'master' of https://github.com/project-arlo/sonic-mgmt-f…
Sep 11, 2019
a0479a9
fix for show process not working (#110)
arunsundark Sep 11, 2019
f2290f4
added unit8 yang data0type support for get-req
s-mari Sep 11, 2019
6ff960d
Fix crash for get leaf query
ranjinidn Sep 12, 2019
02b246d
cleanup code to showcase overloaded methods
kwangsuk Sep 12, 2019
3b2722c
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
kwangsuk Sep 12, 2019
5611f15
Merge "[JIRA SONIC-9259] Device is crashing when configuring max MTU …
Sep 12, 2019
f8e9e47
Merge "[JIRA SONIC-9203] Added IP_TYPE field with value ANY in DEFAUL…
Sep 12, 2019
26bc7a9
Merge pull request #111 from project-arlo/master
PrabhuSreenivasan Sep 12, 2019
fe6e760
[JIRA SONIC-9466] merge mgmt-framework bug fixes from Dell - 12th Sept
Sep 12, 2019
cdb8731
fix the build error
redfish-api Sep 12, 2019
e8efc95
Fis get leaf crash, remove unsed annotations
ranjinidn Sep 12, 2019
a1ce1c8
[JIRA SONIC-9426] CVL throws error when trying to configure IP address.
asha-behera Sep 11, 2019
2960edd
Merge "[JIRA SONIC-9426] CVL throws error when trying to configure I…
Sep 12, 2019
eefb649
[JIRA SONIC-9494] CVL Error seen when performing no description on …
asha-behera Sep 12, 2019
5ee2f33
[JIRA SONIC-9420] Updated Help string to display max length of ACL is 63
maheshwari-mayank Sep 12, 2019
c554914
Merge "[JIRA SONIC-9259] Add range limit to mtu in sonic-port." into …
Sep 12, 2019
cb39c67
[JIRA SONIC-9496] Disabled nonyang demo app
sachinholla Sep 12, 2019
ff617fb
Adding Interface table entry with just name, before the one with ifname
Sep 12, 2019
4e21516
Merge "[JIRA SONIC-9494] CVL Error seen when performing no descripti…
Sep 12, 2019
71d0eeb
add get-validate to validate a YANG node durin data translation back …
redfish-api Sep 12, 2019
8d272a3
Fix crash during update request to leaflist
ranjinidn Sep 12, 2019
5bf7cc6
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
ranjinidn Sep 12, 2019
8fe4bcd
Merge "[JIRA SONIC-9420] Updated Help string to display max length of…
Sep 12, 2019
13f3776
Merge "[JIRA SONIC-9496] Disabled nonyang demo app" into broadcom_sonic
Sep 12, 2019
49773f3
Merge remote-tracking branch 'project-arlo_sonic-mgmt-framework/brcm_…
Sep 12, 2019
17787ff
Fix top level delete
ranjinidn Sep 13, 2019
af193f0
Fix: Incorrect LLDP neighbor TTL (#117)
GarrickHe Sep 13, 2019
78b12e8
Bugfix for creating 2 interface entries when IP is configured, and wh…
justinejose91 Sep 13, 2019
c3d18d7
Merge pull request #119 from project-arlo/master
PrabhuSreenivasan Sep 13, 2019
fcc8cc2
[JIRA SONIC-9314] Modified the MAX_PRIORITY constant to 65536, to he…
maheshwari-mayank Sep 12, 2019
ce6ce51
[JIRA SONIC-9472] Modified logic in Jinja template for "show ip
maheshwari-mayank Sep 13, 2019
d9b5c4c
Merge pull request #118 from project-arlo/brcm_poc
dutta-partha Sep 13, 2019
c239b21
[JIRA SONIC-9521] Merge mgmt-framework changes by Dell team - 13th Sep
Sep 13, 2019
c3d2210
[JIRA SONIC-9486] Permit only TLS1.2 or higher in REST Server
sachinholla Sep 13, 2019
cc47b64
Merge "[JIRA SONIC-9521] Merge mgmt-framework changes by Dell team -…
Sep 13, 2019
fad5658
Merge branch 'master' of https://github.com/project-arlo/sonic-mgmt-f…
Sep 13, 2019
bb6aa73
Merge "[JIRA SONIC-9472] Modified logic in Jinja template for "show i…
Sep 13, 2019
e79b679
added yang annotations
s-mari Sep 13, 2019
1b5b715
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
s-mari Sep 13, 2019
7acd5c8
Get case - leaf-list support in Transformer core for Sonic and OC yang.
amrutasali Sep 13, 2019
f569d66
add the field transformer for forwarding-action
kwangsuk Sep 13, 2019
237bc63
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
kwangsuk Sep 13, 2019
29e9422
Merge "[JIRA SONIC-9486] Permit only TLS1.2 or higher in REST Server"…
Sep 13, 2019
b7f3b33
Set case - leaf-list support in transformer core for OC yang
amrutasali Sep 13, 2019
f56a61e
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
amrutasali Sep 13, 2019
a3c4bbe
provision to get data for sibling container from the module level
s-mari Sep 13, 2019
30d7657
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
s-mari Sep 13, 2019
4db2adf
Merge branch 'broadcom_sonic' of ssh://gerrit-lvn-07.lvn.broadcom.net…
Sep 14, 2019
27a8fa8
Merge remote-tracking branch 'project-arlo_sonic-mgmt-framework/brcm_…
Sep 14, 2019
0b77d82
Merge pull request #122 from project-arlo/brcm_poc
sachinholla Sep 14, 2019
fd1ca1a
Fixed variable scope issue while processing leaf data to redis DB
amrutasali Sep 14, 2019
97ffbdd
fix license header
Sep 17, 2019
e1721a3
Updated license statement for REST server sources
sachinholla Sep 17, 2019
6f63b84
Update license header
dutta-partha Sep 17, 2019
31b70f2
update broadcom license for pyang plugin for openAPI
faraazc Sep 17, 2019
ae3ddf5
Updated License statement
maheshwari-mayank Sep 17, 2019
cafc734
Update broadcom license
anand-kumar-subramanian Sep 17, 2019
16a1306
DB Access Layer: Update Broadcom License
a-barboza Sep 17, 2019
2a6f718
Add validate callback function support for acl. Children will inherit…
ranjinidn Sep 18, 2019
dfcf679
Add copyright/license headers (#123)
Tejaswi-Goel Sep 18, 2019
3809d6f
move json creation for sonic-yang to map
s-mari Sep 18, 2019
d36eb73
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
s-mari Sep 18, 2019
99720f5
Moving unwanted CVL YANG to testdata
dutta-partha Sep 18, 2019
4dd512a
Updated Makefiles
dutta-partha Sep 18, 2019
a271437
Delete file checked in mistakenly.
dutta-partha Sep 18, 2019
692beca
Updated new Makefile with license, copy schema from testdata/schema a…
dutta-partha Sep 18, 2019
3670f60
Merge remote-tracking branch 'remotes/origin/cvl_yang_cleanup' into c…
dutta-partha Sep 18, 2019
1b9a60f
Updated License statement
maheshwari-mayank Sep 18, 2019
0091580
Update License statement
maheshwari-mayank Sep 18, 2019
1f21041
Merge pull request #124 from project-arlo/brcm_license
PrabhuSreenivasan Sep 18, 2019
50a2380
Merge pull request #125 from project-arlo/cvl_yang_cleanup
dutta-partha Sep 18, 2019
4706b9c
Merge pull request #126 from project-arlo/master
dutta-partha Sep 18, 2019
7d7768f
update broadcom license and made changes to keep the diff file in the…
mbalachandar Sep 18, 2019
d50801c
error handling and code clean-up
s-mari Sep 18, 2019
52fa484
update broadcom license to the diff files which are created for patch…
mbalachandar Sep 18, 2019
b4ca046
Add error handling in xlate_utils.go
ranjinidn Sep 19, 2019
fdcdfc4
fix the uint64 encoding, fix the ygot bug in handling the union type of
kwangsuk Sep 19, 2019
9659b84
For a Get req on individual terminal node- Fix overloaded function pr…
amrutasali Sep 19, 2019
1ace0a0
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
amrutasali Sep 19, 2019
b6ebc29
table transformer support
s-mari Sep 19, 2019
7a722a2
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
s-mari Sep 19, 2019
2fdee4b
CLI skeletion for VLAN feature: config, show and its templates
Sep 19, 2019
473b389
Made changes to keep the patch files into single patch file
mbalachandar Sep 19, 2019
b769aa9
Cleanup of unused code
ranjinidn Sep 19, 2019
664b420
Updated the ygot patch file
mbalachandar Sep 19, 2019
77a8dff
Changes for supporting show command with dummy data
Sep 20, 2019
a592fd3
Merge pull request #132 from project-arlo/brcm_license
PrabhuSreenivasan Sep 20, 2019
2a6f01f
add the union type
kwangsuk Sep 20, 2019
9366616
Update Makefile
dutta-partha Sep 20, 2019
a56b6d9
Merge pull request #133 from project-arlo/cvl_yang_cleanup
dutta-partha Sep 20, 2019
fffeffc
CLI skeleton for Port channel
Tejaswi-Goel Sep 20, 2019
428045f
sync from master into transformer-phase1 branch
s-mari Sep 20, 2019
feddf92
Add post transformer infra
ranjinidn Sep 20, 2019
5180159
CVL changes for SONiC YANG
dutta-partha Sep 21, 2019
58da2b5
CVL changes for SONiC YANG
dutta-partha Sep 21, 2019
dafb981
Merge pull request #135 from project-arlo/transformer-phase1
kwangsuk Sep 23, 2019
5363ce0
Initial support for table transformer
amrutasali Sep 23, 2019
4c5a210
Fix issues in initial commit for table transformer
amrutasali Sep 23, 2019
5d8ded4
copy the misisng lines from transformer-phase1
kwangsuk Sep 23, 2019
78c96d9
add missing lines from transforer-phase1
kwangsuk Sep 24, 2019
f0afe93
Merge pull request #137 from project-arlo/transformer-phase2
dutta-partha Sep 24, 2019
b7f5146
support for table transformer for crud and get operation
s-mari Sep 25, 2019
6cced54
Extend annotations for augmentations in oc-yang
ranjinidn Sep 25, 2019
da35b70
Addressing the comments mentioned
Sep 25, 2019
4cdb8c5
Fixed alignment of XML files
Sep 25, 2019
d5d6b80
Cleanup of the xml files
Sep 25, 2019
de22d29
Handle nested groupings for augmentation
ranjinidn Sep 25, 2019
840510e
Merge pull request #138 from project-arlo/transformer-phase2
kwangsuk Sep 25, 2019
045cbf9
changed the xSpecMap to xYangSpecMap for code clarity and added new f…
s-mari Sep 25, 2019
56f747a
Merge branch 'transformer-phase1' into transformer-phase2
s-mari Sep 25, 2019
006737e
Changes to remove dummy json file
Tejaswi-Goel Sep 25, 2019
1e06004
Merge pull request #129 from project-arlo/vlan_cli_skeleton
kwangsuk Sep 25, 2019
2fb01d0
Merge branch 'master' of https://github.com/project-arlo/sonic-mgmt-f…
Tejaswi-Goel Sep 25, 2019
ce598cf
Enhanced transformer core to support user-defined key-delimiter/conca…
amrutasali Sep 25, 2019
20d14e1
basic support for sonic-yang annotation
s-mari Sep 26, 2019
5c7e649
Merge branch 'transformer-phase2' of https://github.com/project-arlo/…
s-mari Sep 26, 2019
021209a
Fill cvl KeySpec with DbName read from annotation
ranjinidn Sep 26, 2019
e1d4cf7
More changes for CVL YANG
dutta-partha Sep 26, 2019
483030f
Fix table get in Traverse for App DB with ":" separator
ranjinidn Sep 27, 2019
60da390
added support to invoke container level key transformer
s-mari Sep 27, 2019
73b1ecf
added code to pass the current ygot node to the key xfmr function
s-mari Sep 27, 2019
98822f9
added support for sonic yang non-config db get request
s-mari Sep 27, 2019
2a17ea2
Data base specific key-delimiter support in transformer core - Sonic Get
amrutasali Sep 27, 2019
7a257f7
Changes in show port-channel command
Tejaswi-Goel Sep 26, 2019
e99533e
Add checks for xpath entry in xYangSpecMap and xDbSpecMap
ranjinidn Sep 30, 2019
7753aad
Chk for list type to create keySpec
ranjinidn Sep 30, 2019
2f5eb5b
workaround for VLAN_MEMBER_TABLE list level get due to translib.gener…
amrutasali Sep 30, 2019
277063b
Merge branch 'transformer-phase2' of https://github.com/project-arlo/…
amrutasali Sep 30, 2019
6ca2b16
added key-name support for oc yang and support to create and push tab…
s-mari Oct 1, 2019
d3c9f62
Merge branch 'transformer-phase2' of https://github.com/project-arlo/…
s-mari Oct 1, 2019
3fba930
Updated Makefile
dutta-partha Oct 1, 2019
ec52141
Merge branch 'master' into cvl_changes_sonic_yang
dutta-partha Oct 1, 2019
ae33c02
OC Yang Get case - DB type based key-delimiter support in transformer
amrutasali Oct 1, 2019
ecd1701
CVl changes for SONiC YANG
dutta-partha Oct 1, 2019
149b6d0
CVL changes for SONiC YANG
dutta-partha Oct 1, 2019
47b02e3
Merge branch 'sonic_yang_changes_1.0' of https://github.com/project-a…
dutta-partha Oct 1, 2019
f032ec5
Merge pull request #144 from project-arlo/sonic_yang_changes_1.0
dutta-partha Oct 1, 2019
57eadde
Add check for no xfmrFunc defined case
ranjinidn Oct 1, 2019
4474149
Correct naming convention for Interface commands
Tejaswi-Goel Oct 2, 2019
2fc250f
Changed processLeafList() function name to checkAndProcessLeafList() …
amrutasali Oct 2, 2019
8f67a66
Merge pull request #134 from project-arlo/cli-portChannel
Tejaswi-Goel Oct 2, 2019
f793f74
fix for vlan get-req crash
s-mari Oct 2, 2019
3e79fc5
sonic yang get case handling for table instance level
ranjinidn Oct 2, 2019
a79ee26
Handle nested db-name annotations for oc
ranjinidn Oct 2, 2019
d9cfab1
Merge branch 'master' into transformer-phase2
ranjinidn Oct 2, 2019
8d567e0
Import module name of the annotated module in annotate template file
ranjinidn Oct 3, 2019
8148935
Added table transformer method prototype.
Oct 3, 2019
4d30c1a
Merge branch 'transformer-phase2' of https://github.com/project-arlo/…
Oct 3, 2019
ff13d87
Added table transformer extension
Oct 3, 2019
3dc5b52
Merge pull request #148 from project-arlo/transformer-phase2
kwangsuk Oct 3, 2019
c584abd
Include the prefix for the module where the grouping is used in annot…
ranjinidn Oct 3, 2019
32e52dc
Merge branch 'master' into transformer-phase2
ranjinidn Oct 3, 2019
3446cf7
Merge pull request #150 from project-arlo/transformer-phase2
kwangsuk Oct 3, 2019
99d2ae8
Include unique namespace, Use the prefix of the including module
ranjinidn Oct 3, 2019
f246081
Merge branch 'master' into transformer-phase2
ranjinidn Oct 3, 2019
c1239f3
Merge pull request #152 from project-arlo/transformer-phase2
kwangsuk Oct 3, 2019
16b1085
xspec map and cru support in transformer infra per revised sonic-yang…
s-mari Oct 3, 2019
1043f56
Management interface cli tree, actioner implementation and sonic yang…
rvasanthm Oct 3, 2019
ecec01e
sFlow CLI Template (#147)
GarrickHe Oct 3, 2019
727d0fe
added code to support reading db data for get req per revised sonic-yang
s-mari Oct 3, 2019
1de0b35
rearranged the code to call the table transformer and collect data be…
s-mari Oct 4, 2019
857355a
Fixed table transformer GET case issues :
amrutasali Oct 4, 2019
7ad2c64
Merge branch 'transformer-phase2' of https://github.com/project-arlo/…
amrutasali Oct 4, 2019
f726b75
Handle delete for restructured sonic yang
ranjinidn Oct 4, 2019
b36c2d0
Strip augmented module names in xpath to reference xYangSpecMap
ranjinidn Oct 4, 2019
a8746cc
transformer infra support for revised sonic-yang GET req
s-mari Oct 7, 2019
b140aba
Merge branch 'transformer-phase2' of https://github.com/project-arlo/…
s-mari Oct 7, 2019
24016ff
Handle delete for restructured sonic acl
ranjinidn Oct 7, 2019
e3331fb
Fix the leaf level get for restructured sonic yang
ranjinidn Oct 7, 2019
88970cb
Merge pull request #143 from project-arlo/cvl_changes_sonic_yang
kwangsuk Oct 7, 2019
4270151
Merge branch 'master' into transformer-phase2
ranjinidn Oct 7, 2019
891cad5
Make file changes to generate sonic yaml files
ranjinidn Oct 8, 2019
dc35394
Merge pull request #155 from project-arlo/transformer-phase2
kwangsuk Oct 8, 2019
0f131b5
support table transformer - GET case on leaf or nested container
amrutasali Oct 8, 2019
7a2353b
Get for sonic yang at instance level to return single instance data
ranjinidn Oct 9, 2019
e973031
Use new xpathPredicate function that removes augmented module name in…
ranjinidn Oct 9, 2019
b520bf5
Merge branch 'master' into transformer-phase2
ranjinidn Oct 9, 2019
a0fa28d
Merge branch 'master' of https://github.com/project-arlo/sonic-mgmt-f…
Oct 10, 2019
7d836d7
Bug fixed for not showing GB instead of Gx
Oct 10, 2019
9df719d
Add Copyright info
ranjinidn Oct 10, 2019
d9402d2
Merge pull request #157 from project-arlo/arlo_bug_fix
joyas-joseph Oct 10, 2019
30e941a
Sonic yang restructuring fix terminal node leaf/leaf-list cases
amrutasali Oct 10, 2019
42a9b54
merge conflict resolution on xlate_to_db.go
amrutasali Oct 10, 2019
5226709
revert accidently added local changes in xspec.go
amrutasali Oct 10, 2019
032de57
Merge branch 'master' into transformer-phase2
ranjinidn Oct 10, 2019
4326ff7
Clean up of files and add missed items during merge
ranjinidn Oct 10, 2019
75d960d
exclude annotation file from generating ocbinds
kwangsuk Oct 11, 2019
91ff58b
fix Makefile in installing yang files from cv/schema
kwangsuk Oct 11, 2019
450413a
add back the cv/schema/*yin
kwangsuk Oct 11, 2019
b39c568
Fixed list instance level GET issue
amrutasali Oct 11, 2019
211f17e
Merge branch 'transformer-phase1' into transformer_merge
Oct 13, 2019
eea6d40
Merge branch 'transformer_merge' into transformer-phase2
PrabhuSreenivasan Oct 13, 2019
ca4b330
Merge pull request #173 from project-arlo/transformer-phase2
PrabhuSreenivasan Oct 13, 2019
ed91f22
Merge pull request #174 from project-arlo/transformer_merge
kwangsuk Oct 14, 2019
ffa2ee6
Revert "Merge pull request #173 from project-arlo/transformer-phase2"
Oct 16, 2019
8c88d0f
Revert "Merge branch 'transformer-phase1' into transformer_merge"
Oct 16, 2019
eba99a9
Merge pull request #179 from project-arlo/transformer_merge
PrabhuSreenivasan Oct 17, 2019
773f0c2
commit Transformer codes for community PR
redfish-api Oct 23, 2019
a90c6a4
Update Makefile
PrabhuSreenivasan Oct 23, 2019
d45575f
Update Makefile
PrabhuSreenivasan Oct 23, 2019
4d0d472
undo ygot patch changes done by kwan
Oct 23, 2019
745c88f
update the patch file
redfish-api Oct 25, 2019
e505d38
Merge pull request #196 from project-arlo/transformer_merge
PrabhuSreenivasan Oct 25, 2019
04e57d0
Patch goyang files to make rules
ranjinidn Oct 31, 2019
05ebee9
Merge pull request #230 from project-arlo/transformer_merge
PrabhuSreenivasan Nov 1, 2019
16d1842
Add missing models list file
ranjinidn Nov 6, 2019
e7e3c13
Remove network-instance yang
ranjinidn Nov 6, 2019
75cb499
Merge pull request #250 from project-arlo/transformer_merge
kwangsuk Nov 6, 2019
90f0159
Merge pull request #262 from project-arlo/release_1.0
dutta-partha Nov 11, 2019
e952191
Addressing PR review comments.
dutta-partha Nov 11, 2019
7068f05
Add new file entry in goyang.patch file
ranjinidn Nov 12, 2019
818601c
Merge pull request #266 from project-arlo/transformer_merge
kwangsuk Nov 12, 2019
2140dcd
Incorporating review comments - phase2
dutta-partha Nov 12, 2019
ea4dfe3
Adding comment for TRACE_ONERROR
dutta-partha Nov 12, 2019
9b254a4
Moving go-server.sh to tools/test/rest-server.sh
dutta-partha Nov 12, 2019
10bb47f
Correcting regex pattern for key names
dutta-partha Nov 13, 2019
d2e50d3
Correct error code if key does not exist
dutta-partha Nov 13, 2019
ec1ef75
Merge pull request #267 from project-arlo/cvl_sonic_yang_changes_rel_1.0
kwangsuk Nov 13, 2019
d86bcf3
Address review comments
joyas-joseph Nov 14, 2019
fe8cc2b
Address review comments
joyas-joseph Nov 14, 2019
a9e5a85
Merge pull request #276 from project-arlo/release_1.0_port
kwangsuk Nov 14, 2019
f133db1
Address PR review comments - phase2
dutta-partha Nov 15, 2019
d97e540
Merge branch 'release_1.0' into cvl_sonic_yang_changes_rel_1.0
dutta-partha Nov 15, 2019
20869c8
Merge pull request #278 from project-arlo/cvl_sonic_yang_changes_rel_1.0
dutta-partha Nov 15, 2019
ed8d2ba
Add validation for speed and description (#291)
joyas-joseph Nov 20, 2019
6190029
Updated the Makefile to have go pkg version, and renamed the ACL CLI …
mbalachandar Nov 21, 2019
38b31e2
Update control
PrabhuSreenivasan Nov 22, 2019
8e3c120
Merge pull request #321 from project-arlo/release_1.0
dutta-partha Dec 5, 2019
d41e895
Moving jsonquery patch in patches/jsonquery.patch file, updating
dutta-partha Dec 5, 2019
f1900a0
Minor change in test case.
dutta-partha Dec 5, 2019
4772e73
Updating makefile
dutta-partha Dec 5, 2019
0ac2447
Checkout jsonquery only once.
dutta-partha Dec 5, 2019
f4f62ab
Use git clean before patching to ensure no files are left behind
seiferteric Dec 5, 2019
62806cd
Merge pull request #322 from project-arlo/cvl_sonic_yang_changes_rel_1.0
PrabhuSreenivasan Dec 6, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

.vscode
*.code-workspace
pkg/*
build
gopkgs
__pycache__
*.pyc
*.rdb
*.swp

*.yin
*.tree
src/translib/ocbinds/ocbinds.go

148 changes: 148 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
################################################################################
# #
# Copyright 2019 Broadcom. The term Broadcom refers to Broadcom Inc. and/or #
# its subsidiaries. #
# #
# 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. #
# #
################################################################################

.PHONY: all clean cleanall codegen rest-server rest-clean yamlGen cli

TOPDIR := $(abspath .)
BUILD_DIR := $(TOPDIR)/build
export TOPDIR

ifeq ($(BUILD_GOPATH),)
export BUILD_GOPATH=$(TOPDIR)/gopkgs
endif

export GOPATH=$(BUILD_GOPATH):$(TOPDIR)

ifeq ($(GO),)
GO := /usr/local/go/bin/go
export GO
endif

INSTALL := /usr/bin/install

MAIN_TARGET = sonic-mgmt-framework_1.0-01_amd64.deb

GO_DEPS_LIST = github.com/gorilla/mux \
github.com/Workiva/go-datastructures/queue \
github.com/openconfig/goyang \
github.com/openconfig/ygot/ygot \
github.com/go-redis/redis \
github.com/golang/glog \
github.com/pkg/profile \
gopkg.in/go-playground/validator.v9 \
golang.org/x/crypto/ssh \
github.com/antchfx/jsonquery \
github.com/antchfx/xmlquery \
github.com/facette/natsort \
github.com/philopon/go-toposort


REST_BIN = $(BUILD_DIR)/rest_server/main
CERTGEN_BIN = $(BUILD_DIR)/rest_server/generate_cert


all: build-deps go-deps go-redis-patch go-patch translib rest-server cli

build-deps:
mkdir -p $(BUILD_DIR)

go-deps: $(GO_DEPS_LIST)

go-redis-patch: go-deps
cd $(BUILD_GOPATH)/src/github.com/go-redis/redis; git checkout d19aba07b47683ef19378c4a4d43959672b7cec8 2>/dev/null ; true; \
$(GO) install -v -gcflags "-N -l" $(BUILD_GOPATH)/src/github.com/go-redis/redis

$(GO_DEPS_LIST):
$(GO) get -v $@

cli: rest-server
$(MAKE) -C src/CLI

cvl: go-deps go-patch go-redis-patch
$(MAKE) -C src/cvl
$(MAKE) -C src/cvl/schema
$(MAKE) -C src/cvl/testdata/schema

cvl-test:
$(MAKE) -C src/cvl gotest

rest-server: translib
$(MAKE) -C src/rest

rest-clean:
$(MAKE) -C src/rest clean

translib: cvl
$(MAKE) -C src/translib

codegen:
$(MAKE) -C models

yamlGen:
$(MAKE) -C models/yang
$(MAKE) -C models/yang/sonic

go-patch: go-deps
cd $(BUILD_GOPATH)/src/github.com/openconfig/ygot/; git reset --hard HEAD; git checkout 724a6b18a9224343ef04fe49199dfb6020ce132a 2>/dev/null ; true; \
cd ../; cp $(TOPDIR)/ygot-modified-files/ygot.patch .; \
patch -p1 < ygot.patch; rm -f ygot.patch; \
$(GO) install -v -gcflags "-N -l" $(BUILD_GOPATH)/src/github.com/openconfig/ygot/ygot; \
cd $(BUILD_GOPATH)/src/github.com/openconfig/goyang/; git reset --hard HEAD; git checkout 064f9690516f4f72db189f4690b84622c13b7296 >/dev/null ; true; \
cp $(TOPDIR)/goyang-modified-files/goyang.patch .; \
patch -p1 < goyang.patch; rm -f goyang.patch; \
$(GO) install -v -gcflags "-N -l" $(BUILD_GOPATH)/src/github.com/openconfig/goyang

install:
$(INSTALL) -D $(REST_BIN) $(DESTDIR)/usr/sbin/rest_server
$(INSTALL) -D $(CERTGEN_BIN) $(DESTDIR)/usr/sbin/generate_cert
$(INSTALL) -d $(DESTDIR)/usr/sbin/schema/
$(INSTALL) -d $(DESTDIR)/usr/sbin/lib/
$(INSTALL) -d $(DESTDIR)/usr/models/yang/
$(INSTALL) -D $(TOPDIR)/models/yang/sonic/*.yang $(DESTDIR)/usr/models/yang/
$(INSTALL) -D $(TOPDIR)/models/yang/sonic/common/*.yang $(DESTDIR)/usr/models/yang/
$(INSTALL) -D $(TOPDIR)/src/cvl/schema/*.yin $(DESTDIR)/usr/sbin/schema/
$(INSTALL) -D $(TOPDIR)/src/cvl/testdata/schema/*.yin $(DESTDIR)/usr/sbin/schema/
$(INSTALL) -D $(TOPDIR)/models/yang/*.yang $(DESTDIR)/usr/models/yang/
$(INSTALL) -D $(TOPDIR)/config/transformer/models_list $(DESTDIR)/usr/models/yang/
$(INSTALL) -D $(TOPDIR)/models/yang/common/*.yang $(DESTDIR)/usr/models/yang/
$(INSTALL) -D $(TOPDIR)/models/yang/annotations/*.yang $(DESTDIR)/usr/models/yang/
cp -rf $(TOPDIR)/build/rest_server/dist/ui/ $(DESTDIR)/rest_ui/
cp -rf $(TOPDIR)/build/cli $(DESTDIR)/usr/sbin/
cp -rf $(TOPDIR)/build/swagger_client_py/ $(DESTDIR)/usr/sbin/lib/
cp -rf $(TOPDIR)/src/cvl/conf/cvl_cfg.json $(DESTDIR)/usr/sbin/cvl_cfg.json

ifeq ($(SONIC_COVERAGE_ON),y)
echo "" > $(DESTDIR)/usr/sbin/.test
endif

$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
mv $* $(DEST)/

clean: rest-clean
$(MAKE) -C src/cvl clean
$(MAKE) -C src/translib clean
$(MAKE) -C src/cvl/schema clean
$(MAKE) -C src/cvl cleanall
rm -rf build/*
rm -rf debian/.debhelper
rm -rf $(BUILD_GOPATH)/src/github.com/openconfig/goyang/annotate.go

cleanall:
$(MAKE) -C src/cvl cleanall
rm -rf build/*
90 changes: 90 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
## SONiC Management Framework Repo

### Build Instruction
Please note that the build instruction in this guide has only been tested on Ubuntu 16.04.
#### Pre-rerequisit
##### User permissions:
`sudo usermod -aG sudo $USER`
`sudo usermod -aG docker $USER`

##### Packages to be installed:
`sudo apt-get install git docker`

#### Steps to build and create an installer
1. git clone https://github.com/project-arlo/sonic-buildimage.git
2. cd sonic-buildimage/
3. sudo modprobe overlay
4. make init
5. make configure PLATFORM=broadcom
6. Run the prefetch python script to download all binaries (see below for the script).
7. To build mgmt-framework container:
`BLDENV=stretch make target/docker-sonic-mgmt-framework.gz`
8. To build Debian Stretch, if not already downloaded:
`BLDENV=stretch make stretch`
9. To build the ONIE installer:
`BLDENV=stretch make target/sonic-broadcom.bin`

#### Faster builds
In order to speed up the process of build, you can prefetch the latest debian files from Azure server, and just build what you need.

Here is a python script you could use to fetch latest prebuilt objects (deb, gz, ko, etc) from SONiC Jenkins cluster:

import os
import shutil
import urllib.request
from html.parser import HTMLParser

UPSTREAM_PREFIX = 'https://sonic-jenkins.westus2.cloudapp.azure.com/job/broadcom/job/buildimage-brcm-all/lastSuccessfulBuild/artifact/'

def get_all_bins(target_path, extension):
"""Get all files matching the given extension from the target path"""
print('Fetching %s*%s' % (target_path, extension))
os.makedirs(target_path, exist_ok=True)

req = urllib.request.urlopen(UPSTREAM_PREFIX + target_path)
data = req.read().decode()

class Downloader(HTMLParser):
"""Class to parse retrieved data, match against the given extension,
and download the matching files to the given target directory"""
def handle_starttag(self, tag, attrs):
"""Handle only <a> tags"""
if tag == 'a':
for attr, val in attrs:
if attr == 'href' and val.endswith(extension):
self.download_file(val)

@staticmethod
def download_file(path):
filename = os.path.join(target_path, path)
freq = urllib.request.urlopen(UPSTREAM_PREFIX + target_path + path)

print('\t%s' % path)
with open(filename, 'wb') as fp:
shutil.copyfileobj(freq, fp)


parser = Downloader()
parser.feed(data)
print()

get_all_bins('target/debs/stretch/', '.deb')
get_all_bins('target/files/stretch/', '.ko')
get_all_bins('target/python-debs/', '.deb')
get_all_bins('target/python-wheels/', '.whl')
get_all_bins('target/', '.gz')



##### Incremental builds
Just clean up the deb's/gz that require re-build, and build again. Here is an exmple:

##### To build deb file for sonic-mgmt-framework

BLDENV=stretch make target/debs/stretch/sonic-mgmt-framework_1.0-01_amd64.deb-clean
BLDENV=stretch make target/debs/stretch/sonic-mgmt-framework_1.0-01_amd64.deb

##### To build sonic-mgmt-framework docker alone

BLDENV=stretch make target/docker-sonic-mgmt-framework.gz-clean
BLDENV=stretch make target/docker-sonic-mgmt-framework.gz
3 changes: 3 additions & 0 deletions config/transformer/models_list
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#List yang models transformer need to load
openconfig-acl.yang
openconfig-acl-annot.yang
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sonic-mgmt-framework (1.0-01) UNRELEASED; urgency=low

* Initial release.

-- Prabhu Sreenivasan <[email protected]> Tue, 18 Jun 2019 00:25:19 +0000
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
12 changes: 12 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Source: sonic-mgmt-framework
Maintainer: Prabhu Sreenivasan <[email protected]>
Build-Depends: debhelper (>= 8.0.0),
dh-systemd
Standards-Version: 3.9.3
Section: net

Package: sonic-mgmt-framework
Priority: extra
Architecture: amd64
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: SONiC Management Framework
7 changes: 7 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/make -f
%:
dh $@ --with systemd


override_dh_shlibdeps:
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info -l$(shell pwd)/build/cli/target/.libs/:$(shell pwd)/build/cli/.libs/
Loading