Skip to content

Allow metric > 255 for static route #201

Description

@Darkuja

Plugin version

0.4.3

NetBox version

4.6.3

Feature type

Change to existing functionality

Proposed functionality

When creating/updating a static route, any value above 255 is forbidden.
At least in JunOS, metric on static route can go as high as 2^32 – 1 (see https://www.juniper.net/documentation/us/en/software/junos/cli-reference/topics/ref/statement/metric-edit-routing-options.html)

Use case

Allow to match precisely what needs to be configured.

Database changes

Metric field is a PositiveSmallIntegerField, so need to be modified to allow a greater value, + change the CheckConstraint associated, which limits the value to 255.

External dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions