ipspace / netlab

Making virtual networking labs suck less
https://netlab.tools
Other
428 stars 63 forks source link

[BUG] VRFs should not be removed from node with VRF loopbacks but no links #1108

Closed ipspace closed 4 months ago

ipspace commented 4 months ago

Describe the bug

If a node has VRFs specified in the vrfs dictionary but does not have any VRF links, the vrfs dictionary is removed even when the device uses VRF loopbacks.

Note: this is an interesting spinoff from the investigation of #1092

Expected behavior

VRFs with loopbacks should not be removed

Lab topology

defaults:
  device: eos

module: [ vrf ]

vrfs:
  red:
  blue:

vrf.loopback: True

nodes:
  r1:
    vrfs:
      red:
      blue: