How to achive automation in dataflow for source ip or destination ip suing IPAM #22
-
Dear Team, I want to do automation in data flow for source ip and data flow IP Using IPAM, If you have any suggestion or solution for the same please let me know it will help me a lot for my project. Thank you in advance |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Hello,
Being a plugin, I'm limited in how I can interact with native objects (which is the reason behind the object aliases to have many-to-many relationships with several types of objects), so any suggestion on what would help most is welcomed. Or another way that is already possible: since you are talking about REST API, NetBox already has one, and the plugin exposes its objects through /api/plugins/data-flows. You will need to create one ObjectAliasTarget for each IP and group them in ObjectAlias |
Beta Was this translation helpful? Give feedback.
-
@Alef-Burzmali Put 3 option , user select any one option (IP Addresses , IP Ranges , ...) on source And Destination then possible to remove "Object Alias" parts. Otherwise Webhook option is good for manage both side. 2nd point, Rest Api - Can you provide Add/Edit/Delete Api Detail in Postman Or Document Way. Based on it , i will add Webhook part in Netbox... FYI @nayandj95 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@Alef-Burzmali thanks for your support Is it possible to remove Object Alice parts. And in data-flow, source and destination have direct selection of ip address ? FYI @nayandj95 |
Beta Was this translation helpful? Give feedback.
-
No, it is not possible. I want to be able to add IP Prefixes and Ranges, and as I cannot modify the native objects to link them to data flows, I must have an intermediate object to support many-to-many generic relationships. |
Beta Was this translation helpful? Give feedback.
-
@Alef-Burzmali ok . Again thanks for quick response. Last option to webhook parts. Api have your side problem ? Or netbox team have problem? |
Beta Was this translation helpful? Give feedback.
-
I've just released a new version to fix the API bug (it was on my side), it should be good now. FYI, I'll move that issue to a discussion |
Beta Was this translation helpful? Give feedback.
If you have a recent version of NetBox (>3.5.0) and the plugin (>0.7.0), you should have the selector widget on the right of the "Add aliased objects" form. This selector can filter by many types of IP attributes, including assigned device or VM, please give it a try and let me know if it fills your need.
For REST, NetBox auto-generates a Swagger at
/api/schema/swagger-ui/
, but I've just noticed that I've broken something in the plugin's API.