Skip to content

Commit

Permalink
fix(evpn-gw): fastpath working changes for intele2000 vendor
Browse files Browse the repository at this point in the history
Signed-off-by: Saikumar, Banoth <[email protected]>
  • Loading branch information
Inbanoth committed Jun 13, 2024
1 parent 13dc228 commit 23b91ca
Show file tree
Hide file tree
Showing 7 changed files with 305 additions and 211 deletions.
2 changes: 1 addition & 1 deletion pkg/LinuxCIModule/lci.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func Initialize() {
}
}
ctx = context.Background()
nlink = utils.NewNetlinkWrapper()
nlink = utils.NewNetlinkWrapperWithArgs(false)
}

// DeInitialize function handles stops functionality
Expand Down
2 changes: 1 addition & 1 deletion pkg/LinuxGeneralModule/lgm.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ func Initialize() {
brTenant = "br-tenant"
ipMtu = config.GlobalConfig.LinuxFrr.IPMtu
ctx = context.Background()
nlink = utils.NewNetlinkWrapper()
nlink = utils.NewNetlinkWrapperWithArgs(false)
// Set up the static configuration parts
_, err := nlink.LinkByName(ctx, brTenant)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/LinuxVendorModule/intele2000/intelE2000.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ func Initialize() {
ipMtu = config.GlobalConfig.LinuxFrr.IPMtu
brTenant = "br-tenant"
ctx = context.Background()
nlink = utils.NewNetlinkWrapper()
nlink = utils.NewNetlinkWrapperWithArgs(false)
}

// DeInitialize function handles stops functionality
Expand Down
2 changes: 1 addition & 1 deletion pkg/frr/frr.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func Initialize() {
subscribeInfradb(&config.GlobalConfig)

ctx = context.Background()
Frr = utils.NewFrrWrapper()
Frr = utils.NewFrrWrapperWithArgs("localhost", false)

// Make sure IPv4 forwarding is enabled.
detail, flag := run([]string{"sysctl", "-w", " net.ipv4.ip_forward=1"}, false)
Expand Down
Loading

0 comments on commit 23b91ca

Please sign in to comment.