![]() ![]() In this case if you wanted to delete the SVI but keep your Interface Profile object (a likely scenario), line 7 would stay as is and line 21 would change to "deleted". ![]() The payload below creates the DCL_IntProf Interface Profile object and then creates the child SVI object. Typically the parent object needs to be "created, modified" or "modified" if you are sure it already exists and children objects can then be noted as "deleted". ![]() However if you are going in to modify items then you will need to pay close attention to each status as you work your way through the relationships. If you want to delete the objects you can use "status": "deleted" The first time you create all of this you can use "status": "created". Under that starting at line 11 (but note the "children" in line 9) you have the l3extRsPathå…ƒOutAtt which represents your SVI. Notice that the first object in line 2 is l3extLIfP which defines the Logical Node Profile. Here is an example of payload to add an SVI. When you are updating specific "children" in ACI you will need to pay attention to the MIT and the relationships. ![]() Thats just an indication that the work was done on a Mac. Note: you can disregard the MACOS folder. Its pretty basic and does not have all the objects and relationships you need for a functioning network but its just enough to illustrate the examples. I also spend time using POSTMAN to validate the payloads I'm pushing to ACI and so I have some examples for you to look at with Postman. A common workflow for me is to build out the Data Center via Python and then "tune" with Ansible and mostly the REST module. Ansible has lots of modules ready to go including a rest module and so for one off things I'll go that route. If I'm doing something highly customized I'll use python because I have all of that build already. I work on ACI via python scripts using the requests module and via Ansible. I'm not a fan of the CobraSDK so I'll share some other ways to do this so you get a full picture. Hi will find alot of examples out there and there are many ways to automate already described one, and quite a powerful one at that. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |