-
Notifications
You must be signed in to change notification settings - Fork 58
Description
I’ve encountered an issue with how Import and Export Policies are handled in the Netbox BGP Plugin.
When I add multiple policies to a BGP session or a peer group, the plugin displays and stores them sorted by their Policy ID, rather than preserving the order in which I added them. This is problematic because in real-world router configurations, the order of policies matters — routers evaluate policies sequentially.
From the Juniper documentaion:
If you specify more than one policy, they are evaluated in the order specified, from first to last.
So the expected behavior would be that the plugin respects the user-defined order of policies, rather than sorting them automatically by ID.
Let me know if more information is needed or if I can help debug further!
Thanks!