CloudGenix / sdk-python

Python2 and Python3 SDK for the CloudGenix AppFabric
MIT License
25 stars 11 forks source link

No localprefixset in put_api.py #49

Open slouli-ot opened 3 months ago

slouli-ot commented 3 months ago

I'm looking to make a bulk update to the site prefix list in our environment. "localprefixset" in get-api.py pulls the data I'm looking for, but it doesn't look like this method is exposed to the put api.

Is there a reason for this? Is there an alternative to making bulk updates to site prefix lists using the api?

ktanushree commented 3 months ago

Hi @slouli-ot! The localprefixset API is a read-only API, that's why only the GET method is available. It returns all the prefixes configured at a site viz. prefixes configured at an interface, static route, lan-network, if it's at a global scope.

Was there a prefix configured at a specific entity you were looking to update? May be I can provide you more guidance then.

slouli-ot commented 3 months ago

Hi ktanushree, thank you for getting back to me. We're trying to update the IP prefix list associated with one of our data centers (attached a screenshot for reference). I've used the API to configure static routes and prefix lists for NATs, but I haven't found an interface that lets me update the site prefix list programmatically.

There are several hundred prefixes I'm going to have to add to that list soon, so I'm hoping there's a way I can do it via a script rather than through the GUI.

site-prefixes