Skip to content

Validate the AS number of BGP peers #14939

Backlog

Description

@MitchDrage

The required feature described as a wish

As an operator I would like createBgpPeer and updateBgpPeer to check that the AS number is a valid 2-byte (1-65535) or 4-byte (65536-4294967295) AS number, and refuse the ones that can't be used by a peer:

  • 23456, AS_TRANS (RFC 6793)
  • 65535 and 4294967295, reserved (RFC 7300)

Private AS numbers would still be accepted.

There's no check today. createBgpPeer accepts 0, but FRR 8.4.4 rejects the neighbour line with "Unknown command", so the peer exists in CloudStack but isn't configured on the VR.

This is very minor. Only root admins can create or update BGP peers by default, so the chance of this being encountered is low.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions