@@ -195,6 +195,9 @@ func shareGatewayInterfaceTest(app *cli.App, testNS ns.NetNS,
195195 Cmd : "ovs-vsctl --timeout=15 --if-exists get Open_vSwitch . other_config:hw-offload" ,
196196 Output : fmt .Sprintf ("%t" , hwOffload ),
197197 })
198+ fexec .AddFakeCmdsNoOutputNoError ([]string {
199+ "ovs-appctl --timeout=15 fdb/add breth0 breth0 0 " + eth0MAC ,
200+ })
198201 fexec .AddFakeCmd (& ovntest.ExpectedCmd {
199202 Cmd : "ovs-vsctl --timeout=15 get Interface patch-breth0_node1-to-br-int ofport" ,
200203 Output : "5" ,
@@ -633,6 +636,9 @@ func shareGatewayInterfaceDPUTest(app *cli.App, testNS ns.NetNS,
633636 Cmd : "ovs-vsctl --timeout=15 --if-exists get Open_vSwitch . other_config:hw-offload" ,
634637 Output : "false" ,
635638 })
639+ fexec .AddFakeCmdsNoOutputNoError ([]string {
640+ fmt .Sprintf ("ovs-appctl --timeout=15 fdb/add %s %s 0 %s" , brphys , brphys , hostMAC ),
641+ })
636642 // GetDPUHostInterface
637643 fexec .AddFakeCmd (& ovntest.ExpectedCmd {
638644 Cmd : "ovs-vsctl --timeout=15 list-ports " + brphys ,
@@ -1086,6 +1092,9 @@ OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0`
10861092 Cmd : "ovs-vsctl --timeout=15 --if-exists get Open_vSwitch . other_config:hw-offload" ,
10871093 Output : "false" ,
10881094 })
1095+ fexec .AddFakeCmdsNoOutputNoError ([]string {
1096+ "ovs-appctl --timeout=15 fdb/add breth0 breth0 0 " + eth0MAC ,
1097+ })
10891098 fexec .AddFakeCmd (& ovntest.ExpectedCmd {
10901099 Cmd : "ovs-vsctl --timeout=15 get Interface patch-breth0_node1-to-br-int ofport" ,
10911100 Output : "5" ,
0 commit comments