Open Kyleset opened 4 years ago
Hi @Kyleset
It is not easy because there is no API call for only configure BGP (or other routing protocol) You need to push all routing settings on the same times
You can look how to add static route is make, it can be help for this...
@alagoutte Thanks for the reply. Sounds like you are saying to construct the whole ESG, with neighbours, bgp filters and all in one XML. Then submit the whole XML via API?
@alagoutte Thanks for the reply. Sounds like you are saying to construct the whole ESG, with neighbours, bgp filters and all in one XML. Then submit the whole XML via API?
Yes !
do you have found how to build the XML ?
I got tied up working on some other issues. I'm going to start looking at this today. Should I build the XML and submit via invoke-nsxrestmethod or invoke-webrequest?
Should I build the XML and submit via invoke-nsxrestmethod or invoke-webrequest? Yes or you can use also Set-NSXEdgeRouting (with only Routing XML part)
I ended up just building a full xml to submit via an api call, and submitted via invoke-nsxrestmethod. Which worked just fine. Then went back and ripped out all of the creation of routing using cmdlets. Makes me wish I had just built the api call in the first place. Would have saved me a lot of time. Especially since I am also using 4 byte AS numbers. Thanks for your help. -Kyle
Hi all, and @alagoutte . Since there isn't a native cmdlet way of submitting BGP filters to a BGP neighbor on an ESG. Trying to get a good example of how to generate a XmlElement to submit bgp filters on a neighbor in an ESG. Can anybody help? I'm making the assumption that I would build the ESG and the neighbors through the normal cmdlet, and then build the XmlElement to submit the BGP filters.
Thanks! -Kyle