netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
16k stars 2.56k forks source link

Allow circuits terminaison on LAG and virtual interfaces #7675

Closed SteveRodrigue closed 2 years ago

SteveRodrigue commented 2 years ago

NetBox version

v2.11.6

Feature type

Data model extension

Proposed functionality

Allow to attach circuits termination to LAG or virtual interfaces because a physical circuit may transport multiple services or underlying circuits.

Use case

I'll use the example of Company X buying 20Gbps Internet from ACME.

ACME provides 3 circuits ID.
10Gbps physical A = cctidA
10Gbps physical B = cctidB
20Gbps Internet service (LAG) = cctidC

In Netbox:

  1. cctidA is created and attached to an interface X.
  2. cctidB is created and attached to another interface Y.
  3. A LAG is created and interfaces X and Y are assigned to it.
  4. cctidC is created, but can't be attached or assigned to the LAG interface.

This is not uncommon for providers to give their customer more than one 1 circuit ID. Another common use case is for Public-Cloud interconnect: on a single physical circuit, multiple logical circuits are assigned to reach multiple VPCs. Typically, each of these circuit will terminate on a sub-interface or svi (vlan interface).

Database changes

LAG and virtual interfaces should be allowed when it comes to select a circuit termination (A/Z).

External dependencies

No response

jeremystretch commented 2 years ago

This has been discussed in many past issues. Please search for "virtual circuits."

SteveRodrigue commented 2 years ago

@jeremystretch : Thanks for pointing that out. I may have missed it and the search I did, didn't seemed to match what I was looking for.

I'll look back in opened feature requets.