netlab icon indicating copy to clipboard operation
netlab copied to clipboard

lag module should model peerlink as regular VLAN

Open jbemmel opened this issue 11 months ago • 2 comments

Most MLAG platforms support things like OSPF on the peerlink between the MLAG router pair; the lag module should create a subinterface as appropriate, and allow these modules to do their job

For example, this should work as expected:

module: [ ospf, lag, vlan ]

links:
- lag:
    members: [ s1, s2 ]
    mlag.peergroup: True

Likewise:

module: [ ospf, lag, vlan ]

links:
- lag:
    members: [ s1, s2 ]
    mlag.peergroup: True
  ospf: False

jbemmel avatar Feb 08 '25 20:02 jbemmel

As most platforms want to have some sort of VLANs on the peer link, what's stopping you from using a routed VLAN to run OSPF on it?

ipspace avatar Feb 09 '25 07:02 ipspace

With the benefit of hindsight, I'm now realizing that the way the lag templates are structured is sub-optimal. They replicate some of the logic for provisioning a custom VLAN and allocating IPs, instead of relying on the VLAN module to do that part. The latter has the benefit that other features - such as OSPF configs - can be applied too.

There is nothing "stopping" me, but I wanted to add OSPF support and I'm now thinking that's better done through refactoring (as opposed to adding OSPF config to the lag templates)

jbemmel avatar Feb 09 '25 13:02 jbemmel

@jbemmel -- still interested in doing this? if not, please close it.

ipspace avatar Sep 09 '25 13:09 ipspace

I still believe it would make sense, but closing as requested

jbemmel avatar Sep 09 '25 13:09 jbemmel