Skip to content

Commit

Permalink
fix(evpn): frr bug pr review fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Vemula Venkatesh <venkatesh.vemula@intel.com>
  • Loading branch information
venkyvsp authored and artek-koltun committed Dec 24, 2024
1 parent 872edab commit 421b9bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added opi_test
Binary file not shown.
2 changes: 1 addition & 1 deletion pkg/frr/frr.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ func tearDownVrf(vrf *infradb.Vrf) (string, bool) {
log.Printf("FRR(tearDownVrf): Failed to run save command: %v\n", err)
}
// Clean up FRR last
if *vrf.Spec.Vni != 0 {
if vrf != nil && *vrf.Spec.Vni != 0 {
log.Printf("FRR Deleted event")
delCmd1 := fmt.Sprintf("no router bgp %+v vrf %s", localas, path.Base(vrf.Name))
delCmd2 := fmt.Sprintf("no vrf %s", path.Base(vrf.Name))
Expand Down

0 comments on commit 421b9bd

Please sign in to comment.