f-41: l3vni: suppression d'une VPC routée sans section bgp #41

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-10-12 13:05:24 +02:00
commit 0679639b95
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
9 changed files with 56 additions and 28 deletions

View file

@ -83,8 +83,8 @@ func (c *Client) RemoveVRF(v VRF) error {
}
func (c *Client) teardown(v VRF, plan func(VRF, string) []step) error {
if err := v.validateName(); err != nil {
return err
if v.ID == "" {
return fmt.Errorf("frr: vrf id must not be empty")
}
running, err := c.runningConfig()
if err != nil {