Skip to content

Import/Export Policies not preserved in user-defined order #241

@VEEC023

Description

@VEEC023

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions