Skip to content

Commit 46bbe04

Browse files
committed
add check to ensure epInfo.ifName is overwritten in add endpoint for linux swiftv2
1 parent bf8ea06 commit 46bbe04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

network/secondary_endpoint_linux_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ func TestSecondaryAddEndpoints(t *testing.T) {
7979
} else {
8080
require.NoError(t, err)
8181
require.Equal(t, tt.client.ep.SecondaryInterfaces["eth1"].MacAddress, tt.epInfo.MacAddress)
82+
require.Equal(t, "eth1", tt.epInfo.IfName, "interface name should update based on mac address here before being referenced later")
8283
}
8384
})
8485
}

0 commit comments

Comments
 (0)