netbox-community / netbox-acls

A NetBox plugin for Access Lists based off of the NetBox Plugin Demo
https://pypi.org/project/netbox-acls/
Apache License 2.0
86 stars 25 forks source link

[Feature]: Export a Copy/Paste config for direct device import. #55

Open cyberndj opened 2 years ago

cyberndj commented 2 years ago

NetBox version

v3.2.7

Feature type

Add a function

Proposed functionality

Add a export function to create a copy/paste ACL for adding to device.

Use case

A link or button would generate a text file or webpage that has a premade configuration you could copy and paste into the device.

External dependencies

I would assume a platform specific ACL parser (ie for Cisco IOS, Juniper, Arista, etc...)

github-actions[bot] commented 2 years ago

Thanks for opening this Issue! We really appreciate the feedback & testing from users like you!

ryanmerolle commented 1 year ago

Not a horrible idea. I personally use NetBox as a source of truth that gets feed to templates. I have not generate much of any templates in NetBox itself. I think this would be more of a export templates. I would not be good at keeping up with the various vendor templates.

I could verify and test that export templates work with the model though. I could provide examples as well.

Let me know if this is interesting.

cyberndj commented 1 year ago

Interesting to me, yes! I would be interested to get others input as well. I would also keep it as a low priority compared to the other requests out there.

cyberndj commented 1 year ago

Saw this gem in base....I would suggest waiting on this until the base gets the fix. May be easier to implement too.

https://github.com/netbox-community/netbox/issues/11559

abhi1693 commented 1 year ago

Since we utilize generic relations in the models, it should now be possible to render configuration natively. I have not yet tested this however I also dont see any issues why it would not work.