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:
parent
7ec298fcc1
commit
0679639b95
9 changed files with 56 additions and 28 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue