forked from sonic-net/sonic-mgmt-framework
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Brcm poc #191
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…n Tue Aug 27 01:22:07 PDT 2019 Change-Id: Iac14d11d52e68b663363464e6a694f4b54d649a6
Change-Id: I1dd082738cb1e06237ab11f6cba598375c6584a5 (cherry picked from commit db3ca45)
Change-Id: Iafe417df2e09e024155af4a4a6d1948b7b2a5ffd (cherry picked from commit a552f2e)
1) Added support for RPC requests in openAPI generator 2) Modified base URI as / 3) Also brought in support for leaf-list URIs from Arlo code base for the sake of completeness UT ==== 1) Verified CLI using creation of ACL and Rules 2) Also verified REST URIs for creation/deletion of ACL 3) Ran mgmt-framework UT test cases Change-Id: Ibd3ee387410308b6897f075068b1c84a5ad0e9c2
Change-Id: I477e967a8f28efb6fc6aeb6a93850b79c121f33f
Change-Id: I87a92e04db7035b5bfd564b25513b0fdb2ac2249
…n Tue Sep 24 07:56:47 PDT 2019 Change-Id: I41db414d973ec61517a2c0b56c6c1907d4f6b807
Change-Id: Ic1a4b45d99179cee6214573a2eca081b3c61e959
…n Fri Sep 27 01:48:40 PDT 2019 Change-Id: I472dd0ccc42852ed80848afee717dbf1d8481d98
Change-Id: I0b6f8805dfe6ad6db42d3fe0926f75430472dfee
…he value in the leaf-list Change-Id: Ib44018dcaba119a738dac6f3e5c6b4c319ea18a9
Change-Id: I25b8e1ffa114cad9d121825655cf27ab87b56ce7
Change-Id: Ife1706e4b7b9c86d9430924ca2533fde5f00026e
…T structure bindings Change-Id: I6a7a0583190d50e668979cd39c52794b1a96b10c
…ing YGOT structure bindings" into broadcom_sonic
RPVST+ features. This support GET functionality now. Change-Id: I912c0aa1b5bb708e2129b7658b9aaf81f61c1538
1) Added a custom annotation to take operID as manual input 2) If manual input through annotation is not provided, then the OperID is autogenerated using hash(murmurhash3) using the long filename Change-Id: I6715d24c4b354801646d31815b0f7d915d0cf0f5
Change-Id: I402290068ddd6c8c386e4d8038274104b4ae7fdd
…model, and for the patch method Change-Id: I133bffc5ffc86399e780b0f7b13bd80029e43d39
RPVST+ features. Added few Set operations. Added GET functinality of Counters and operational details from APP Db. Change-Id: I20265540f93a698f8d712c5d310de748861fa6f4
1) Yang rpc support in Management REST Server. REST Server invokes translib.Action API for yang rpcs. 2) UT cases for rpc processing 3) A test app module and a yang for internal api tests. Change-Id: Ib507e22f99f68db82127c29c82d60cadd11afd10
…the PATCH/PUT method with the target node as map/LIST Change-Id: Iba68f2fbdd8fa01ece4e158e892ad7c2f0bd3dc5
RPVST+ features. Added Delete support. Organized code to display additional counters. Added support for BPDU Filter. Change-Id: I0f33509d553ddc4621657b4a679a943e9c463d11
Enhanced RequestContext object to have a REST URI key name to actual yang key name mapping. This mapping is applied while converting REST paths to TransLib paths. TransLib path will always have the actual yang defined key names. Change-Id: I6369812449059f1832573f2c209951450fbb00b3
Client SDK) Generic RESTful Python client A generic RESTful Python client for interacting with JSON APIs. Usage To use this client you just need to import ApiClient and initialize it with an URL endpoint from cli_client import ApiClient api = ApiClient('#your_api_endpoint') #your_api_endpoint is optional default is https://localhost:443 Now that you have a RESTful API object you can start sending requests. Making a request The framework supports GET, PUT, POST, PATCH and DELETE requests: from cli_client import ApiClient api = ApiClient() response = api.get('/authors/') response = api.post('/authors/', {'title': 'Broadcom', 'author': 'Faraaz Mohammed'}) response = api.put('/author/faraaz/', {'dob': '06/09/2006'}) response = api.delete('/author/faraaz/') To get the Response Data response = api.get('/authors/') Use response.content object For Successful request response.content will contain valid JSON data For Non-Successful request response.content will contain errors object returned by REST Server Two helpers are built in to verify the success of requests made. `ok()` checks for a 20x status code and returns a boolean, `errors()` returns the body content as a dict object if the status code is not 20x: response = api.get('/books/') if response.ok(): print 'Success!' else: print req.errors() Change-Id: I9ef101639aa0d24d60c9b5fb806ad9eac0c2b731
merges. Modified the Sonic yang as per guidelines. Change-Id: I0d6368a1574fae44aa3e152aaf075ccffd3b8789
Change-Id: Iecad1fce739c2cdf5e25e4a9282e83abdb1ac6a2
1. Add sonic yang support for L2VXLAN. 2. Add KLISH XML and actioner scripts to support config ommands. 3. Tests done - config VTEP, EVPN NVO, VLAN-VNI mapping. - deletion of above. - basic validations Change-Id: Ic6dc81de9bf628ffc6a792b234ef7f653effcd5a
…mproper patch request Change-Id: I2626d799ed68953a9975e6f8afc30db355380c7c
… into broadcom_sonic
…sends improper patch request" into broadcom_sonic
Change-Id: Ie2316346196d640685eac265a15bd1f99e81d5d0
node has both config data and state data. Change-Id: I9b2a27ec635c1027656e5ee49d2c5c16bc7f9573
A new vendorExtension called x-params will be generated under paths object containing mapping uri name and yang name for a particular parameter. Rest-server can use this to form translib path "vendorExtensions" : { "x-params" : [ { "yangName" : "name", "uriName" : "name" }, { "yangName" : "name", "uriName" : "name1" }, { "yangName" : "name", "uriName" : "name2" }, { "yangName" : "exclude-group", "uriName" : "exclude-group" } ] } x-params will only be generated if there are duplicate params in the URI (all params in that uri will have x-params) if there are no duplicate params in uri then no x-params will be generated. Change-Id: Iea1db2a8c75636cf2a7c9c4774cafaace74ca624
…upport" into broadcom_sonic
…lan_intf node has both config data and state data." into broadcom_sonic
…params" into broadcom_sonic
This submit includes initial command line support for PTP on klish. This is a work in progress. At this point the implementation bypasses the object model as there are still issues with the framework. However, this submit still uses the klish framework, and the actioner script uses python swssdk instead of the swagger-rest APIs. In addition, this submit also uses actioner script that should be accurate when the object model framework issues are fixed. Sanity Logs - http://10.59.132.240:9009/projects/csg_sonic/sanity/logs/dev-sanity-th2-td3-02/sonic_dev_sanity_191016_1658_1780 Change-Id: I9c51e30bc886f1f77fbf23531d5c198ebf28b717
function to enable STP when Vlans are created. This function needs to be called from vlan_app. Change-Id: Ib369985e082b83199a46eac6d9d829aceb308e31
sonic-mgmt-framework: master --> brcm_poc
for sonic-mgmt-framework Change-Id: I9c05b02e6cb6a554b3531316fdbdb85f98206aa3
validations. Added portchannel support for interface options. Fixed port-state field display issue. Added support for REPLACE operation. Change-Id: Ic5fe6c3a96d8a8316f06b166c6375b530693c7f2
anand-kumar-subramanian
approved these changes
Oct 21, 2019
dell-engops
pushed a commit
that referenced
this pull request
Oct 10, 2022
…share-to-dell_sonic_4.0.x_share sync from broadcom_sonic_4.0.x_share to dell_sonic_4.0.x_share - 0928
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
sonic-mgmt-framework master <-- brcm_poc 10/21/2019