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

Broadcom sonic share to master merge #25

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1154 commits
Select commit Hold shift + click to select a range
fef6450
Merge "[JIRA SONIC-10514] - REST Client for CLI (Replacement for Swag…
Oct 13, 2019
60e32f2
[JIRA SONIC-9722] "show interface status" command displaying with the…
Oct 14, 2019
b234074
Merge pull request #171 from project-arlo/brcm_poc
dutta-partha Oct 14, 2019
bc80b51
Merge branch 'master' of https://github.com/project-arlo/sonic-mgmt-f…
Oct 14, 2019
fc8ce62
Handle Table transformer Get on list instance level
amrutasali Oct 14, 2019
98309b5
Merge branch 'master' into transformer-phase2
ranjinidn Oct 14, 2019
306c0cc
Merge pull request #176 from project-arlo/master
a-barboza Oct 14, 2019
fb91227
[JIRA SONIC-10470] Merge project-arlo/brcm_poc --> broadcom_sonic
a-barboza Oct 14, 2019
d7acb5b
fixed yang leaf NONE to NULL field-value pair issue in return map.
s-mari Oct 15, 2019
22d7e0c
Merge branch 'master' of https://github.com/project-arlo/sonic-mgmt-f…
ViramShah91 Oct 15, 2019
38e9d88
[JIRA SONIC-10089] Fixed CVL failure during configuration due to recent
maheshwari-mayank Oct 15, 2019
086bad4
[JIRA SONIC-9827] mgmt-framework CLI script (sonic-cli) issue
Oct 15, 2019
fdcb0bd
[JIRA SONIC-10530] Initial checkin for L2VXLAN manageability support
srj102 Oct 12, 2019
1767baa
Merge branch 'master' into sflow
GarrickHe Oct 15, 2019
23d066e
Addressed the review comments.
Oct 15, 2019
9d25172
retrieve key value for annotated key entry in sonic yang
ranjinidn Oct 15, 2019
e9a1fc6
retrieve key value for annotated key entry in sonic yang
ranjinidn Oct 15, 2019
b487fe6
Merge pull request #178 from project-arlo/transformer-phase2
kwangsuk Oct 15, 2019
ee8da75
[JIRA SONIC-10047] fixed the acl create in cli, since acl cli sends i…
mbalachandar Oct 15, 2019
4b21de6
Merge "[JIRA SONIC-9827] mgmt-framework CLI script (sonic-cli) issue"…
Oct 16, 2019
95ab49c
Merge "[JIRA SONIC-10047] fixed the acl create in cli, since acl cli …
Oct 16, 2019
ae113d6
[JIRA SONIC-10089] Fixed ACL UT failures.
maheshwari-mayank Oct 16, 2019
d0ac21c
[JIRA SONIC-10089] Added PATCH support. Fixed GET issue when vlan_intf
maheshwari-mayank Oct 16, 2019
7ec9bfb
[JIRA SONIC-10542] - OpenAPI generator - Handle duplicate URI params
faraazbrcm Oct 15, 2019
980f232
Merge "[JIRA SONIC-10530] Initial checkin for L2VXLAN manageability s…
Oct 16, 2019
ed0666b
Merge "[JIRA SONIC-10089] Fixed ACL UT failures." into broadcom_sonic
Oct 16, 2019
e45f7d0
Merge "[JIRA SONIC-10089] Added PATCH support. Fixed GET issue when v…
Oct 16, 2019
4098720
Merge "[JIRA SONIC-10542] - OpenAPI generator - Handle duplicate URI …
Oct 16, 2019
5fc8578
added code to get the keyname from container
s-mari Oct 16, 2019
911cf51
Support for VLAN feature. (#162)
justinejose91 Oct 16, 2019
5ada9be
Add module name to dbSpecMap
ranjinidn Oct 16, 2019
55a01ab
Update sFlow YANG
GarrickHe Oct 16, 2019
3273aa1
Merge branch 'master' into sflow
GarrickHe Oct 16, 2019
39308ee
Optimization for avoiding the processing if the URI is not what we su…
Oct 16, 2019
7828642
Merge branch 'master' of https://github.com/project-arlo/sonic-mgmt-f…
Oct 16, 2019
efe5001
Optimization for not building tree when the targetURI is not supporte…
justinejose91 Oct 17, 2019
6726214
[JIRA SONIC-714] PTP Command line support for klish.
lyndonsiao Oct 17, 2019
60f4153
Fix subtree transformer nil map/crash issue(OC-Interface/counters issue)
amrutasali Oct 17, 2019
1c5773a
fix for list key not being added to uri to list level get(no instance…
amrutasali Oct 17, 2019
92509b4
[JIRA SONIC-10089] Added GET support for few additional URIs. Added
maheshwari-mayank Oct 18, 2019
ca6cbe0
Dell ztp dev (#184)
arunsundark Oct 18, 2019
93adff2
Merge branch 'master' of https://github.com/project-arlo/sonic-mgmt-f…
Oct 18, 2019
0c70ce2
Fixes for bugs #180 and #186
Oct 18, 2019
1e0c0b8
Fixes for bugs #180 and #186 (#188)
justinejose91 Oct 18, 2019
f1ff67d
Merge pull request #190 from project-arlo/master
a-barboza Oct 19, 2019
13f7337
[JIRA SONIC-10059]Bulking phase I, DB access layer changes
anand-kumar-subramanian Oct 19, 2019
014f20d
[JIRA SONIC-10470] Merge project-arlo/brcm_poc --> broadcom_sonic
a-barboza Oct 20, 2019
fe1dd70
[JIRA SONIC-10089] Added Vlan membership and Portchannel membership
maheshwari-mayank Oct 21, 2019
0074524
Merge remote-tracking branch 'broadcom/broadcom_sonic' into brcm_poc
a-barboza Oct 21, 2019
e4744ef
Merge pull request #191 from project-arlo/brcm_poc
a-barboza Oct 21, 2019
a055708
FDB backend
ViramShah91 Oct 21, 2019
7b48d9f
container level GET - exit after processing subtree transformer
amrutasali Oct 21, 2019
f5081f6
Annotate sFlow YANG + update actioner script
GarrickHe Oct 21, 2019
016d572
added code to call the subtree xfmr annotated at top level
s-mari Oct 21, 2019
daddb21
Merge "[JIRA SONIC-10059]Bulking phase I, DB access layer changes" in…
Oct 22, 2019
1a8bc34
[JIRA SONIC-10150] Dont use swagger client sdk in ACL CLIs
sachinholla Oct 22, 2019
5220a9a
added code to support non-key based table entries but with yang-key
s-mari Oct 22, 2019
6063380
FDB backend support
ViramShah91 Oct 23, 2019
6a9f842
Merge branch 'master' into dell_fdb_cli
ViramShah91 Oct 23, 2019
af192bb
Unmarshal failure fix(partial) - GET query for inner conatiner and li…
amrutasali Oct 23, 2019
020c9fb
[JIRA SONIC-10089] Added few GO test based UTs for STP app. Added
maheshwari-mayank Oct 23, 2019
7572e6c
Merge branch 'brcm_license'
Oct 23, 2019
0534b12
clean up code
ViramShah91 Oct 23, 2019
7f3c44a
[JIRA SONIC-10486] Handle duplicate path param names in NewPathInfo
sachinholla Oct 23, 2019
da718df
[JIRA SONIC-10150] Dont generate swagger client for all yangs
sachinholla Oct 23, 2019
99e1282
Unmarshal fix for list instance level Get
amrutasali Oct 23, 2019
eed9139
[JIRA SONIC-10089] Fixed issue of non retrievel of operational info when
maheshwari-mayank Oct 23, 2019
fc59062
Yang default value fill support: for oc-yang having tablename annotat…
s-mari Oct 23, 2019
9cdfd50
Merge branch 'transformer-phase2' of https://github.com/project-arlo/…
s-mari Oct 23, 2019
ac5920f
sFlow CLI implementation
GarrickHe Oct 23, 2019
74fcfce
Unmarshall related fixes for translib ygotTarget population covering :
amrutasali Oct 23, 2019
514ab0a
Merge branch 'transformer-phase2' of https://github.com/project-arlo/…
amrutasali Oct 23, 2019
416a8ab
Support get case for outerlist not associated with redis table but in…
ranjinidn Oct 24, 2019
b9e8cd4
[JIRA SONIC-11025] - OpenAPI Generator - Fix prefix in Swagger
faraazbrcm Oct 24, 2019
b248b1d
[JIRA SONIC-9739] Fix JSON map parsing using patch, CVL test fix.
dutta-partha Oct 24, 2019
310327f
Add default rule for ACL
ranjinidn Oct 24, 2019
de3a26c
Merge with latest changes for Unmarshall fix
ranjinidn Oct 24, 2019
ab804cb
[JIRA SONIC-714] Implemented remaining show commands from PTP HLD
lyndonsiao Oct 24, 2019
2b5dfeb
Addressing comments
ViramShah91 Oct 24, 2019
914798c
[JIRA SONIC-11086] Added KLISH for drop monitor and tailstamp.
asha-behera Oct 25, 2019
e6ccb6c
[JIRA SONIC-10089] Added support for Bpdu_filter at global level and
maheshwari-mayank Oct 25, 2019
70e36c9
Corrections in the vlan yang for get only container
Oct 25, 2019
e004bc5
Merge branch 'master' of https://github.com/project-arlo/sonic-mgmt-f…
Oct 25, 2019
eff9ea4
Integrate with CVL orderdered and dependency table list :
amrutasali Oct 25, 2019
346494f
Merge pull request #199 from project-arlo/vlan_feature
dutta-partha Oct 25, 2019
4f182b8
Add ErrorDB to translib/db.
bhaveshdell Oct 25, 2019
964f7b8
add xml and jinja template for mgmt vrf
Oct 25, 2019
da550a2
Merge "[JIRA SONIC-10486] Handle duplicate path param names in NewPat…
Oct 25, 2019
4a9b31d
Merge "[JIRA SONIC-10089] Fixed issue of non retrievel of operational…
Oct 25, 2019
c3428d5
Common app changes to use the CVL table ordering for CRUD operations
ranjinidn Oct 25, 2019
5db1b7e
Handle deletion at sonic module level
ranjinidn Oct 25, 2019
2b538d6
Merge branch 'master' into transformer-phase2
ranjinidn Oct 25, 2019
c03c9d1
corrected a log message
amrutasali Oct 25, 2019
0dedfa9
Add goyang patch rule in Makefile
ranjinidn Oct 26, 2019
2ad65f3
Merge branch 'transformer-phase2' of https://github.com/project-arlo/…
ranjinidn Oct 26, 2019
2f8c922
Add missed out goyang.patch file
ranjinidn Oct 26, 2019
d9e1cd3
Remove stale files
ranjinidn Oct 26, 2019
0f0193e
Merge pull request #204 from project-arlo/transformer-phase2
kwangsuk Oct 26, 2019
f64f88c
Added CLI support for PVST and RPVST config and show commands
mhampasagar Oct 26, 2019
e74fb73
Added CLI support for Spanning Tree Prtocol (PVST and RPVST) config a…
mhampasagar Oct 26, 2019
9a7c066
Merge branch 'PVST_CLI' of https://github.com/project-arlo/sonic-mgmt…
mhampasagar Oct 26, 2019
3720ed1
Merge "[JIRA SONIC-10089] Added support for Bpdu_filter at global lev…
maheshwari-mayank Oct 26, 2019
89c211d
Merge "[JIRA SONIC-11025] - OpenAPI Generator - Fix prefix in Swagger…
Oct 26, 2019
5402b46
enabled post-xfmr support for repalce and update operation and defaul…
s-mari Oct 26, 2019
ffeab9b
enable field-xfmr support while filling yang default values
s-mari Oct 26, 2019
6f6b8b2
Merge pull request #205 from project-arlo/transformer-phase2
kwangsuk Oct 26, 2019
083d4b6
oc-yang default value fill support for models having table-xfmr
s-mari Oct 27, 2019
c7caca7
address review comments
Oct 28, 2019
69dff2f
use ip vrf for configuration
Oct 28, 2019
2be886b
merge conflict
ViramShah91 Oct 28, 2019
07c6671
Resolving merge conflict
Oct 28, 2019
cc4ae4f
Ignore parent key if the keyXfmr or keyName is available
ranjinidn Oct 28, 2019
bb4e5c4
Support creating a table instance with no fields,
amrutasali Oct 28, 2019
102ae29
Merge branch 'transformer-phase2' of https://github.com/project-arlo/…
amrutasali Oct 28, 2019
c514c45
Merge pull request #202 from project-arlo/bsun-mgmt-vrf
joyas-joseph Oct 28, 2019
04a895f
Add defaults only for non leaf case
ranjinidn Oct 28, 2019
7208874
Merge branch 'master' into transformer-phase2
ranjinidn Oct 29, 2019
b559539
GET case - Added Datatype conversion for key leaf, when ther is no
amrutasali Oct 29, 2019
218d802
Merge branch 'transformer-phase2' of https://github.com/project-arlo/…
amrutasali Oct 29, 2019
baeb086
add support for RPC callback using yang extension
redfish-api Oct 29, 2019
dca9c65
Merge branch 'master' of https://github.com/project-arlo/sonic-mgmt-f…
mhampasagar Oct 29, 2019
4e21fef
bug fixes and RPVST additional comands
mhampasagar Oct 29, 2019
2c37311
[JIRA SONIC-10089] Fixed STP UT failures which were caused due to
maheshwari-mayank Oct 29, 2019
6acf6d3
[JIRA SONIC-9316]
kananthak Oct 29, 2019
5f0ba17
Merge "[JIRA SONIC-9739] Fix JSON map parsing using patch, CVL test f…
Oct 29, 2019
e38bf0d
Support adding a table instance with empty field/value(NULL/NULL) only
amrutasali Oct 29, 2019
6fbdb57
Merge branch 'transformer-phase2' of https://github.com/project-arlo/…
amrutasali Oct 29, 2019
45e3559
Merge pull request #208 from project-arlo/PVST_CLI
bhavini-gada Oct 29, 2019
8ffce6c
UPDATE case, leaflist handling - if existing entry does not have
amrutasali Oct 29, 2019
7d20a02
Merge "[JIRA SONIC-714] Implemented remaining show commands from PTP …
Oct 29, 2019
5cf0e46
PortChannel Feature support (#154)
Tejaswi-Goel Oct 29, 2019
6ca5fe7
Added config false statements in the containers just for Get support
Tejaswi-Goel Oct 29, 2019
8ed8721
Call subtree transformer for delete case
ranjinidn Oct 29, 2019
1aaae3c
Merge "[JIRA SONIC-10150] Dont generate swagger client for all yangs"…
Oct 29, 2019
0a40da2
Merge "[JIRA SONIC-10089] Fixed STP UT failures which were caused due…
Oct 29, 2019
8676900
Merge pull request #217 from project-arlo/portchannel
Tejaswi-Goel Oct 29, 2019
52b4793
Addressing comments
ViramShah91 Oct 29, 2019
c3ffad1
[JIRA SONIC-10470] Merge project-arlo/master --> broadcom_sonic
a-barboza Oct 30, 2019
b1d482d
added code to have tablename if the inner container or list is annota…
s-mari Oct 30, 2019
617ceea
Create transaction cache
ranjinidn Oct 30, 2019
e376c10
Merge branch 'transformer-phase2' of https://github.com/project-arlo/…
ranjinidn Oct 30, 2019
67cc300
Merge pull request #192 from project-arlo/dell_fdb_cli
bhavini-gada Oct 30, 2019
d164bce
[JIRA SONIC-10089] Implemented UDLD mock CLIs
maheshwari-mayank Oct 30, 2019
3e5c55b
Merge "[JIRA SONIC-9316]" into broadcom_sonic
Oct 30, 2019
9f3b631
Add SONiC Host Service package and infrastructure
nirenjan Oct 23, 2019
4dbf37e
Merge pull request #206 from project-arlo/sonic_host_service
kerry-meyer Oct 30, 2019
3916a05
Update sFlow YANG
GarrickHe Oct 30, 2019
c50b7c4
Add CLI support for sFlow global configurations
GarrickHe Oct 31, 2019
507ee0d
Merge pull request #224 from project-arlo/sflow
bhavini-gada Oct 31, 2019
09ed47c
[JIRA SONIC-10089] Added entry for openconfig-spanning-tree and
maheshwari-mayank Oct 31, 2019
95def87
catch error in valiating annotation files
redfish-api Oct 31, 2019
d9e666d
[JIRA SONIC-10150] Migrate show vlan and po to new REST client
sachinholla Oct 31, 2019
fc2b9d6
sFlow code enhancements (#228)
GarrickHe Oct 31, 2019
9bc6834
Remove not required log.Error statement
Tejaswi-Goel Oct 31, 2019
b3a3427
Merge pull request #232 from project-arlo/fix-code
Tejaswi-Goel Oct 31, 2019
f4f82c9
Add table name retrieved from extract function to create DbMap for De…
ranjinidn Oct 31, 2019
4a48547
Merge branch 'master' into transformer-phase2
ranjinidn Nov 1, 2019
8762496
added data type handling for yang modules having tbl-xfmr and field-xfmr
s-mari Nov 1, 2019
1168324
Merge branch 'transformer-phase2' of https://github.com/project-arlo/…
s-mari Nov 1, 2019
3b6a371
added code to properly handle the yenum, yint64 and yuint64
s-mari Nov 1, 2019
0fe7b05
Merge branch 'master' into transformer-phase2
kwangsuk Nov 1, 2019
d948c5d
Merge pull request #236 from project-arlo/transformer-phase2
kwangsuk Nov 1, 2019
274b968
fix the annotation model error
redfish-api Nov 1, 2019
db55553
[JIRA SONIC-9739] Enabling CVL debug log, fix for "NULL" data from re…
dutta-partha Nov 1, 2019
38543c0
Merge "[JIRA SONIC-10089] Implemented UDLD mock CLIs" into broadcom_s…
Nov 1, 2019
da11bf9
Merge "[JIRA SONIC-10089] Added entry for openconfig-spanning-tree an…
Nov 1, 2019
627c213
[JIRA SONIC-10150] Handle escaped path params
sachinholla Nov 1, 2019
8fa7bda
fix member removal code
Tejaswi-Goel Nov 1, 2019
8af8f11
Merge "[JIRA SONIC-9739] Enabling CVL debug log, fix for "NULL" data …
Nov 1, 2019
7a6df6d
Merge pull request #237 from project-arlo/transformer-phase2
kwangsuk Nov 1, 2019
f9ba49a
Merge pull request #238 from project-arlo/fix-code
Tejaswi-Goel Nov 1, 2019
8f3b712
Take care of type convertion for ints
ranjinidn Nov 1, 2019
78a4795
Merge branch 'master' into transformer-phase2
ranjinidn Nov 1, 2019
c80c871
Merge pull request #242 from project-arlo/transformer-phase2
s-mari Nov 1, 2019
5796f40
Merge "[JIRA SONIC-10150] Handle escaped path params" into broadcom_s…
Nov 1, 2019
e18e05b
[JIRA SONIC-10089] Fixed 'show spanning-tree" output display issues.
maheshwari-mayank Nov 1, 2019
63cef36
[JIRA SONIC-10470] Merge project-arlo/brcm_poc for sonic-mgmt-framework
a-barboza Nov 4, 2019
0c01347
[JIRA SONIC-10150] Escape \ and ] chars in translib path
sachinholla Nov 4, 2019
0aed499
[JIRA SONIC-10089] Fixed STP UT failures. Added code to cleanup
maheshwari-mayank Nov 4, 2019
94e3b7b
[JIRA SONIC-11428] Escape sequence issue in ts klish xml
asha-behera Nov 4, 2019
337e492
[JIRA SONIC-11446] - Fix for operID in yaml
faraazbrcm Nov 4, 2019
7d41abc
[JIRA SONIC-10530] Swagger client generation enable for vxlan
srj102 Nov 4, 2019
c6aac60
Merge "[JIRA SONIC-10150] Escape \ and ] chars in translib path" into…
Nov 5, 2019
19a92f6
Merge "[JIRA SONIC-10089] Fixed STP UT failures. Added code to cleanu…
Nov 5, 2019
4c5c13e
Merge "[JIRA SONIC-10530] Swagger client generation enable for vxlan"…
Nov 5, 2019
6a41311
[JIRA SONIC-11491] Swagger client generation enable for sflow
amaneti Nov 5, 2019
7e738ef
Merge "[JIRA SONIC-11446] - Fix for operID in yaml" into broadcom_sonic
Nov 5, 2019
cd70810
Merge "[JIRA SONIC-11491] Swagger client generation enable for sflow"…
Nov 5, 2019
7026248
[JIRA SONIC-11491] sFlow IS-CLI: Fix adding collector
amaneti Nov 5, 2019
0932f55
Merge remote-tracking branch 'broadcom/broadcom_sonic' into brcm_poc1101
a-barboza Nov 5, 2019
edc1338
Merge pull request #248 from project-arlo/brcm_poc1101
a-barboza Nov 5, 2019
3f50386
Merge broadcom_sonic --> brcm_poc1101 correction
a-barboza Nov 5, 2019
c8124da
Merge pull request #249 from project-arlo/brcm_poc1101
a-barboza Nov 5, 2019
ce04f58
Fix syntax errors on Host service (#255)
nirenjan Nov 7, 2019
410c678
Merge pull request #200 from project-arlo/sonic-mgmt-errordb
bhaveshdell Nov 7, 2019
27220a9
[ JIRA SONIC-10470 ] merge dell_sonic --> broadcom_sonic 11062019
a-barboza Nov 7, 2019
4cbe456
[JIRA SONIC-9737] Merge broadcom_sonic_2.x branch to broadcom_sonic b…
babukr Nov 7, 2019
7a18359
Initial JWT support
seiferteric Nov 7, 2019
eb3cf2e
Add refresh path, reorg
seiferteric Nov 7, 2019
decf5a3
[JIRA SONIC-10089] Added sonic udld yang and udld annotations yang.
maheshwari-mayank Nov 8, 2019
d0b11a5
[JIRA SONIC-10059]Stop writes on configDB during all read operations
anand-kumar-subramanian Nov 5, 2019
725431f
[JIRA SONIC-10059]Authorization initial support in translib
anand-kumar-subramanian Nov 7, 2019
5c9ac44
Merge "[JIRA SONIC-11491] sFlow IS-CLI: Fix adding collector" into br…
Nov 8, 2019
c10fd80
Merge "[JIRA SONIC-10059]Stop writes on configDB during all read oper…
anand-kumar-subramanian Nov 8, 2019
495ded0
[JIRA SONIC-10150] Utilities for running KLISH CLI localy
sachinholla Nov 7, 2019
fe74ed9
Merge "[JIRA SONIC-10089] Added sonic udld yang and udld annotations …
Nov 8, 2019
1653164
Merge "[JIRA SONIC-10059]Authorization initial support in translib" i…
Nov 9, 2019
d32b61e
Merge "[ JIRA SONIC-10470 ] merge dell_sonic --> broadcom_sonic 1106…
Nov 9, 2019
5537cea
[JIRA SONIC-11491] sFlow IS-CLI fixes
amaneti Nov 9, 2019
2775c04
Merge "[JIRA SONIC-10150] Utilities for running KLISH CLI localy" int…
Nov 9, 2019
7f03e70
Migrate openconfig-system to transformer
joyas-joseph Nov 9, 2019
543fd30
[JIRA SONIC-9739] Send CVL debug log to CVL specific file
dutta-partha Nov 6, 2019
f446264
[JIRA SONIC-11756] Remove default rule creation from app module
abhishekd-brcm Nov 11, 2019
74384e8
[JIRA SONIC-10150] Fxied transformer for local run
sachinholla Nov 11, 2019
279890f
Merge "[JIRA SONIC-11428] Escape sequence issue in ts klish xml" into…
Nov 11, 2019
01bfb1b
Merge "[JIRA SONIC-11491] sFlow IS-CLI fixes" into broadcom_sonic
Nov 11, 2019
8403cf9
Merge "[JIRA SONIC-9739] Send CVL debug log to CVL specific file" int…
Nov 11, 2019
1cadc77
[JIRA SONIC-9739] Adding custom and platform validation support
dutta-partha Nov 6, 2019
816a036
Merge "[JIRA SONIC-10150] Fxied transformer for local run" into broad…
Nov 11, 2019
cfcdb65
[JIRA SONIC-11812] Port/ERSPAN mirroring klish cli support
rupesh-k Nov 11, 2019
43a43af
[JIRA SONIC-9668] Added Klish CLI config support
gitsabari Nov 8, 2019
73e4368
Use Authorization header instead of cookie for JWT token, reorg files
seiferteric Nov 11, 2019
31dcd5d
Follow oauth RFC for jwt response and request format
seiferteric Nov 11, 2019
3f6a453
[JIRA SONIC-10470]merge sonic-mgmt-framework dell_sonic --> broadcom_…
anand-kumar-subramanian Nov 11, 2019
834cb56
Review update
joyas-joseph Nov 12, 2019
8b4e333
Merge "[JIRA SONIC-11756] Remove default rule creation from app modul…
Nov 12, 2019
f6d9ad5
Merge "[JIRA SONIC-11812] Port/ERSPAN mirroring klish cli support" in…
Nov 12, 2019
c943b3b
Merge "[JIRA SONIC-9668] Added Klish CLI config support" into broadco…
Nov 12, 2019
c5e0cc2
Merge pull request #261 from project-arlo/system-xfmr
kwangsuk Nov 12, 2019
983a8b0
[JIRA SONIC-11624][JIRA SONIC-11622][JIRA SONIC-11618][JIRA SONIC-116…
lyndonsiao Nov 12, 2019
a076c54
Merge "[JIRA SONIC-10470]merge sonic-mgmt-framework dell_sonic --> br…
Nov 12, 2019
21b0532
[JIRA SONIC-11558] TAILSTAMP KLISH SHOW Changes
asha-behera Nov 6, 2019
2e7ece8
[JIRA SONIC-11641] Drop-monitor CLI mod changes.
shdasari Nov 7, 2019
fe15b02
Merge "[JIRA SONIC-11624][JIRA SONIC-11622][JIRA SONIC-11618][JIRA SO…
Nov 12, 2019
c2c8b4e
Merge "[JIRA SONIC-9739] Adding custom and platform validation suppor…
Nov 12, 2019
6efdd6e
Merge "[JIRA SONIC-11641] Drop-monitor CLI mod changes." into broadco…
Nov 12, 2019
578e035
[JIRA SONIC-10089] Added jinja templates for 'show udld' CLIs.
maheshwari-mayank Nov 12, 2019
b441b95
Merge pull request #257 from project-arlo/jwt_token
seiferteric Nov 12, 2019
4012206
[JIRA SONIC-11491] sFlow IS-CLI fixes from project-arlo/sflow
amaneti Nov 13, 2019
5ff5796
[JIRA SONIC-11913] Remove duplicate commands which are already there …
asha-behera Nov 13, 2019
91b7baa
Merge "[JIRA SONIC-11558] TAILSTAMP KLISH SHOW Changes" into broadcom…
Nov 13, 2019
166816c
Merge "[JIRA SONIC-10089] Added jinja templates for 'show udld' CLIs.…
Nov 13, 2019
ce50227
[JIRA SONIC-10089] Modified UDLD config behavior to delete table when
maheshwari-mayank Nov 13, 2019
ead3d35
[JIRA SONIC-10150] Test CLI launcher script enhancements
sachinholla Nov 13, 2019
89a11d1
Merge "[JIRA SONIC-11491] sFlow IS-CLI fixes from project-arlo/sflow"…
Nov 13, 2019
899ab2a
Merge "[JIRA SONIC-11913] Remove duplicate commands which are already…
Nov 13, 2019
8c581d5
[JIRA SONIC-10470]merge mgmt-framework repo from dell_sonic --> broad…
anand-kumar-subramanian Nov 13, 2019
abf45e1
Merge "[JIRA SONIC-10089] Modified UDLD config behavior to delete tab…
Nov 13, 2019
50ce6ad
Merge "[JIRA SONIC-10150] Test CLI launcher script enhancements" into…
Nov 13, 2019
51beb57
Merge "[JIRA SONIC-10470]merge mgmt-framework repo from dell_sonic --…
Nov 14, 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

204 changes: 204 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
################################################################################
# #
# 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 clitree

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 \
gopkg.in/godbus/dbus.v5 \
github.com/dgrijalva/jwt-go


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:
$(MAKE) -C src/CLI

clitree:
TGT_DIR=$(BUILD_DIR)/cli $(MAKE) -C src/CLI/clitree

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/annotate.go $(BUILD_GOPATH)/src/github.com/openconfig/goyang/annotate.go; \
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

#Apply CVL related patches
$(apply_cvl_dep_patches)

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)/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

# Copy all CVL schema files
$(install_cvl_schema)

# Scripts for host service
$(INSTALL) -d $(DESTDIR)/usr/lib/sonic_host_service/host_modules
$(INSTALL) -D $(TOPDIR)/scripts/sonic_host_server.py $(DESTDIR)/usr/lib/sonic_host_service
$(INSTALL) -D $(TOPDIR)/scripts/host_modules/*.py $(DESTDIR)/usr/lib/sonic_host_service/host_modules
$(INSTALL) -d $(DESTDIR)/etc/dbus-1/system.d
$(INSTALL) -D $(TOPDIR)/scripts/org.sonic.hostservice.conf $(DESTDIR)/etc/dbus-1/system.d
$(INSTALL) -d $(DESTDIR)/lib/systemd/system
$(INSTALL) -D $(TOPDIR)/scripts/sonic-hostservice.service $(DESTDIR)/lib/systemd/system



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/*

#Function to apply CVL related patches
define apply_cvl_dep_patches

cd $(BUILD_GOPATH)/src/github.com/antchfx/jsonquery; git reset --hard HEAD; \
git checkout 3b69d31134d889b501e166a035a4d5ecb8c6c367; git apply $(TOPDIR)/patches/jsonquery.patch
cd $(BUILD_GOPATH)/src/github.com/antchfx/xmlquery; git reset --hard HEAD; \
git checkout fe009d4cc63c3011f05e1dfa75a27899acccdf11; git apply $(TOPDIR)/patches/xmlquery.patch

endef

#Function to install CVL schema files
define install_cvl_schema
$(INSTALL) -d $(DESTDIR)/usr/sbin/schema/
$(INSTALL) -D $(TOPDIR)/src/cvl/schema/*.yin $(DESTDIR)/usr/sbin/schema/
$(INSTALL) -D $(TOPDIR)/src/cvl/testdata/schema/*.yin $(DESTDIR)/usr/sbin/schema/

#Find all platform directories first and create them in destination
if [ -d $(TOPDIR)/src/cvl/schema/platform ] ; then \
for dd in $$(find $(TOPDIR)/src/cvl/schema/platform -type d) ; \
do \
dds=$$(echo $${dd} | sed 's/^.*\(schema\/.*\)/\1/g') ; \
$(INSTALL) -d $(DESTDIR)/usr/sbin/$${dds} ; \
done ; \
fi
#For each platform directory, copy all platform YANG files to destination
if [ -d $(TOPDIR)/src/cvl/schema/platform ] ; then \
for ff in $$(find $(TOPDIR)/src/cvl/schema/platform -name '*.yin') ; \
do \
ffs=$$(echo $${ff} | sed 's/^.*\(schema\/.*\)/\1/g') ; \
$(INSTALL) -T $(TOPDIR)/src/cvl/$${ffs} $(DESTDIR)/usr/sbin/$${ffs} ; \
done ; \
fi
endef

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
14 changes: 14 additions & 0 deletions config/transformer/models_list
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#List yang models transformer need to load

openconfig-acl.yang
openconfig-acl-annot.yang
openconfig-network-instance.yang
openconfig-network-instance-annot.yang
sonic-vxlan.yang
sonic-udld.yang
sonic-udld-annot.yang
ietf-ptp.yang
ietf-ptp-annot.yang
sonic-mclag.yang
openconfig-system.yang
openconfig-system-annot.yang
9 changes: 9 additions & 0 deletions debian/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.debhelper/
*.debhelper
*.debhelper.log
*.substvars
sonic-mgmt-framework/
sonic-host-service/
tmp/
files

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
18 changes: 18 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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

Package: sonic-host-service
Priority: extra
Architecture: amd64
Depends: python-dbus, python-gobject, python-systemd, ${shlibs:Depends}, ${misc:Depends}
Description: SONiC Host Service
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/
3 changes: 3 additions & 0 deletions debian/sonic-host-service.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
usr/lib/*
etc/dbus-1/system.d/*
lib/systemd/system/*
3 changes: 3 additions & 0 deletions debian/sonic-mgmt-framework.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
usr/sbin/*
rest_ui/*
usr/models/*
Loading