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

Syncing project-arlo/sonic-mgmt-framework master to brcm_poc #161

Merged
merged 292 commits into from
Oct 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
292 commits
Select commit Hold shift + click to select a range
d72f107
Integrate Translate yangpath to redisDB KeySpec (XlateUriToKeySpec)
ranjinidn Aug 14, 2019
f6ec091
modified common app translateGet and processGet signatures
amrutasali Aug 14, 2019
7fb10a4
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
amrutasali Aug 14, 2019
87ebf1b
corrected function siganature in common app for transformer.XlateUriT…
amrutasali Aug 14, 2019
8aad9cb
XlateUriToKeySpec: Use parent with empty table name and add children …
ranjinidn Aug 15, 2019
6f695ba
cvl yang get support from top-level container and added util functions
s-mari Aug 15, 2019
f8d8677
Fixed issue in handling interface binding if stage is not specified b…
Aug 15, 2019
7b8bc79
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
Aug 15, 2019
4af9076
XlateyangtoDB return sibilings as array of KeySpecs
ranjinidn Aug 15, 2019
df641e3
updated cvl-yang handling for create request
s-mari Aug 15, 2019
b888820
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
s-mari Aug 15, 2019
7fd76e0
Add sonic-acl UT tests
Tejaswi-Goel Aug 15, 2019
85fd401
common app - Added support for basic level DB operations
amrutasali Aug 16, 2019
be4e4b3
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
amrutasali Aug 16, 2019
7a25984
Added support to pass in the operation type from apps to transformer
amrutasali Aug 16, 2019
8572760
Removed accidently added src/cvl/schema/allyangs_tree.html
amrutasali Aug 16, 2019
9042577
enabled oc yang to db map create creat request
s-mari Aug 16, 2019
b371fb1
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
s-mari Aug 16, 2019
896bdc9
updated transformer function signature to include db, got and oper type.
s-mari Aug 16, 2019
8c65dc2
Added db pointer argument to transformer.XlateToDb()
amrutasali Aug 16, 2019
3de79fd
Modified Transformer method prototypes to pass operation type for xfm…
Aug 16, 2019
4a33754
call transformer.XlateUriToKeySpec() from processGet instead of
amrutasali Aug 16, 2019
cd5abe3
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
amrutasali Aug 16, 2019
c88231c
Enabled key, field and subtree overloaded-transformer-function exec f…
s-mari Aug 16, 2019
4ce0877
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
s-mari Aug 16, 2019
289d53b
Modifed DB operations in common app :
amrutasali Aug 16, 2019
e17bc07
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
amrutasali Aug 16, 2019
3e6697b
Get handling: Send DB data to transformer to form json response
ranjinidn Aug 17, 2019
059ed1d
restructure acl_app.go
redfish-api Aug 17, 2019
35ec937
Initial support for leaf value retrieval in Get. Include only require…
ranjinidn Aug 17, 2019
122c0ea
fix xpath build from uri
redfish-api Aug 18, 2019
0dd9771
fixed crash in app transformer special handling code, added code to c…
s-mari Aug 18, 2019
8b03709
Add support for cvl yang db KeySpec creation and filter dbData for js…
ranjinidn Aug 18, 2019
92e77cb
Avoid using index values to identify the table and field names in cvl…
ranjinidn Aug 19, 2019
8ff8683
Goyang patch to introduce "ordered by insertion" list entry in yang.E…
ranjinidn Aug 19, 2019
47d4dfc
Handle DB Spec creation for CVL yang case
ranjinidn Aug 19, 2019
b5f9afe
Handle container level DbData creation for CVL yang to generate JSON …
ranjinidn Aug 19, 2019
d1e0464
Fix data being overwritten to JSON response. Include print to file
ranjinidn Aug 19, 2019
ac37709
changed the value parsing in xfmr handler funtions
s-mari Aug 20, 2019
86b0462
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
s-mari Aug 20, 2019
cf254d8
Transformer Infra support to create a yang schema ordered DB table list
amrutasali Aug 20, 2019
cf83ec3
For CVL yang modified accessing yag entries to accessing them in yang
amrutasali Aug 20, 2019
c9094c4
Delete case:: Handle db request create for CVL yang
ranjinidn Aug 20, 2019
93d224f
Added support for table level delete in common app
amrutasali Aug 21, 2019
3a5ee1a
fixed crash in update request
s-mari Aug 21, 2019
6396138
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
s-mari Aug 21, 2019
b57c2aa
xpath, tablename and key extraction for cvl yang
s-mari Aug 22, 2019
164ebcf
Send proper key formed for cvl yang delete case
ranjinidn Aug 22, 2019
8991985
Set case for Sonic yang - Added support for leaf-list handling in
amrutasali Aug 22, 2019
bd517be
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
amrutasali Aug 22, 2019
68b856e
Use "|" as delimited for CVL keys
ranjinidn Aug 22, 2019
e14f7f6
Fix get request for top level container
ranjinidn Aug 23, 2019
014c2fa
For delete case added support for deletion as per table ordering,
amrutasali Aug 26, 2019
9cd3339
Update the correct input json file name for create test case
ranjinidn Aug 26, 2019
c0ae3fb
fixed leaf level get for oc-yang
s-mari Aug 26, 2019
20170f5
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
s-mari Aug 26, 2019
10d7f92
corrected the uri for field transformer
s-mari Aug 27, 2019
5301e41
Merge branch 'master' into transformer-phase1
amrutasali Aug 27, 2019
e530955
Added annotation for l2/config/ethertype attribute.
Aug 27, 2019
a4fad5f
support leaf value delete for oc yang
ranjinidn Aug 28, 2019
69d8471
Added transformer config file to specify list of yang models needs to…
Aug 28, 2019
72d86fb
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
Aug 28, 2019
913132b
Renamed file models to models_list
Aug 28, 2019
fe88df3
Really mv models models_list
Aug 28, 2019
287aca1
Handle delete for top level oc acl xpath request
ranjinidn Aug 28, 2019
cdbc35b
Populate Yang model list based on models_list manifest file and sonic…
Aug 28, 2019
648d7e0
Merge branch 'transformer-phase1' of https://github.com/project-arlo/…
Aug 28, 2019
7b6c2f9
Support to have common app registered as default/fallback app when no
amrutasali Aug 29, 2019
d869ce1
Addressed issue in passing data to field transformer method, addresed…
Aug 29, 2019
2e68e2f
Modify list of tables to watch to be the list of all tables in a
amrutasali Aug 29, 2019
e104fdc
Update DB ordered map for oc yang
ranjinidn Aug 30, 2019
7956a3f
Initial support for YANG extension to allow the Transformer to set th…
ranjinidn Aug 31, 2019
58ca40a
support to call transformer spl handler functions for get operation
s-mari Sep 4, 2019
ca5e593
Added API GetAndXlateFromDB() that clubs together genration of KeySpec
amrutasali Sep 4, 2019
ffde97a
Fix ygot issue in transformer by propagating ygRoot from app to trans…
amrutasali Sep 5, 2019
ca1250d
remove commented out code from transformer xfmrHandlerFunc
amrutasali Sep 5, 2019
bd42a11
In dbDataToYangJsonCreate() added support to fetch table order from
amrutasali Sep 6, 2019
e4dd5b1
removed commented put code for table order in xlate_from_db.go
amrutasali Sep 6, 2019
0a1d4b2
Fix for not showing description when description is configured as par…
Sep 6, 2019
4cfd72f
Enhanced the xfmr functions, added flag for key leaf, updated get req…
s-mari Sep 7, 2019
f714c11
Resolved merge conflicts
s-mari Sep 7, 2019
c04c457
For Get case added support to retrieve attributes in config conatainers
amrutasali Sep 8, 2019
c809ad0
Added map-format output data for get-request
s-mari Sep 9, 2019
f770261
Addressed merge conflicts.
s-mari Sep 9, 2019
d45ca09
Addressing the crash when max mtu is set as 9276. Currently supported…
Sep 9, 2019
89b7370
Merge branch 'master' of https://github.com/project-arlo/sonic-mgmt-f…
Sep 9, 2019
bffae5e
enhanced transformer to handle leaf level get-req
s-mari Sep 10, 2019
bd0d896
Initial Traverse multi DB support
ranjinidn Sep 10, 2019
0b38b71
Initial leaf-list support - common app modifications
amrutasali Sep 10, 2019
28a3656
removed mistakenly added CVL disabling in common_app.go
amrutasali Sep 10, 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
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
103d4ff
Merge branch 'master' of https://github.com/project-arlo/sonic-mgmt-f…
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
cdb8731
fix the build error
redfish-api Sep 12, 2019
e8efc95
Fis get leaf crash, remove unsed annotations
ranjinidn Sep 12, 2019
ff617fb
Adding Interface table entry with just name, before the one with ifname
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
17787ff
Fix top level delete
ranjinidn Sep 13, 2019
d9b5c4c
Merge pull request #118 from project-arlo/brcm_poc
dutta-partha Sep 13, 2019
fad5658
Merge branch 'master' of https://github.com/project-arlo/sonic-mgmt-f…
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
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
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
d50801c
error handling and code clean-up
s-mari 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
b769aa9
Cleanup of unused code
ranjinidn Sep 19, 2019
77a8dff
Changes for supporting show command with dummy data
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
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
8e2bae3
Merge pull request #158 from project-arlo/transformer-phase2
kwangsuk Oct 10, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 36 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
#######################################################################
#
# Copyright 2019 Broadcom. All rights reserved.
# The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
#
#######################################################################
################################################################################
# #
# 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

Expand Down Expand Up @@ -63,6 +75,8 @@ cli: rest-server
cvl: go-deps
$(MAKE) -C src/cvl
$(MAKE) -C src/cvl/schema
$(MAKE) -C src/cvl/testdata/schema

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

Expand All @@ -80,6 +94,7 @@ codegen:

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; \
Expand All @@ -93,14 +108,28 @@ cp $(TOPDIR)/ygot-modified-files/schema.go $(BUILD_GOPATH)/src/github.com/openco
cp $(TOPDIR)/ygot-modified-files/unmarshal.go $(BUILD_GOPATH)/src/github.com/openconfig/ygot/ytypes/unmarshal.go; \
cp $(TOPDIR)/ygot-modified-files/validate.go $(BUILD_GOPATH)/src/github.com/openconfig/ygot/ytypes/validate.go; \
cp $(TOPDIR)/ygot-modified-files/reflect.go $(BUILD_GOPATH)/src/github.com/openconfig/ygot/ytypes/../util/reflect.go; \
$(GO) install -v -gcflags "-N -l" $(BUILD_GOPATH)/src/github.com/openconfig/ygot/ygot
cp $(TOPDIR)/goyang-modified-files/README.md $(BUILD_GOPATH)/src/github.com/openconfig/goyang/README.md; \
cp $(TOPDIR)/goyang-modified-files/yang.go $(BUILD_GOPATH)/src/github.com/openconfig/goyang/yang.go; \
cp $(TOPDIR)/goyang-modified-files/annotate.go $(BUILD_GOPATH)/src/github.com/openconfig/goyang/annotate.go; \
cp $(TOPDIR)/goyang-modified-files/entry.go $(BUILD_GOPATH)/src/github.com/openconfig/goyang/pkg/yang/entry.go; \
$(GO) install -v -gcflags "-N -l" $(BUILD_GOPATH)/src/github.com/openconfig/ygot/ygot; \
$(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)/src/cvl/schema/*.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/
Expand Down
4 changes: 4 additions & 0 deletions config/transformer/models_list
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#List yang models transformer need to load

openconfig-acl.yang
openconfig-acl-annot.yang
19 changes: 19 additions & 0 deletions go_server.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
#!/usr/bin/env bash

################################################################################
# #
# 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. #
# #
################################################################################

set -e

TOPDIR=$PWD
Expand Down
50 changes: 50 additions & 0 deletions goyang-modified-files/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# goyang
YANG parser and compiler for Go programs.

The yang package (pkg/yang) is used to convert a YANG schema into either an
in memory abstract syntax trees (ast) or more fully resolved, in memory, "Entry"
trees. An Entry tree consists only of Entry structures and has had
augmentation, imports, and includes all applied.

goyang is a sample program that uses the yang (pkg/yang) package.

goyang uses the yang package to create an in-memory tree representation of
schemas defined in YANG and then dumps out the contents in several forms.
The forms include:

* tree - a simple tree representation
* types - list understood types extracted from the schema
* annotate - a template file to annotate the yang modules

The yang package, and the goyang program, are not complete and are a work in
progress.

For more complex output types, such as Go structs, and protobuf messages
please use the [openconfig/ygot](https://github.com/openconfig/ygot) package,
which uses this package as its backend.

### Getting started

To build goyang, ensure you have go language tools installed
(available at [golang.org](https://golang.org/dl)) and that the `GOPATH`
environment variable is set to your Go workspace.

1. `go get github.com/openconfig/goyang`
* This will download goyang code and dependencies into the src
subdirectory in your workspace.

2. `cd <workspace>/src/github.com/openconfig/goyang`

3. `go build`

* This will build the goyang binary and place it in the bin
subdirectory in your workspace.

### Contributing to goyang

goyang is still a work-in-progress and we welcome contributions. Please see
the `CONTRIBUTING` file for information about how to contribute to the codebase.

### Disclaimer

This is not an official Google product.
Loading