@@ -34,7 +34,7 @@ func TestSetupNetworkInterfaces(t *testing.T) {
34
34
TurnNIUp (tapDeviceName ).
35
35
Return ("success" , nil )
36
36
37
- network .SetupNetworkInterfaces (networkService , tapDeviceName , "" , "" , "" )
37
+ network .SetupNetworkInterfaces (networkService , tapDeviceName , "" , "" , "" , "" )
38
38
})
39
39
40
40
t .Run ("should not create tap or turn it on if it already exists and is active" , func (t * testing.T ) {
@@ -51,7 +51,7 @@ func TestSetupNetworkInterfaces(t *testing.T) {
51
51
IsNIUp (tapDeviceName ).
52
52
Return (true , nil )
53
53
54
- network .SetupNetworkInterfaces (networkService , tapDeviceName , "" , "" , "" )
54
+ network .SetupNetworkInterfaces (networkService , tapDeviceName , "" , "" , "" , "" )
55
55
})
56
56
57
57
t .Run ("should turn the tap up if it exists and is not active" , func (t * testing.T ) {
@@ -73,7 +73,7 @@ func TestSetupNetworkInterfaces(t *testing.T) {
73
73
TurnNIUp (tapDeviceName ).
74
74
Return ("success" , nil )
75
75
76
- network .SetupNetworkInterfaces (networkService , tapDeviceName , "" , "" , "" )
76
+ network .SetupNetworkInterfaces (networkService , tapDeviceName , "" , "" , "" , "" )
77
77
})
78
78
79
79
t .Run ("should create bridge and turn it up if it does not exist and add tap to bridge network" , func (t * testing.T ) {
@@ -121,7 +121,7 @@ func TestSetupNetworkInterfaces(t *testing.T) {
121
121
IsNIUp (tapDeviceName ).
122
122
Return (true , nil )
123
123
124
- network .SetupNetworkInterfaces (networkService , tapDeviceName , bridgeName , "" , "" )
124
+ network .SetupNetworkInterfaces (networkService , tapDeviceName , bridgeName , "" , "" , "" )
125
125
})
126
126
127
127
t .Run ("should set IP in bridge if it already exists" , func (t * testing.T ) {
@@ -169,7 +169,7 @@ func TestSetupNetworkInterfaces(t *testing.T) {
169
169
IsNIUp (tapDeviceName ).
170
170
Return (true , nil )
171
171
172
- network .SetupNetworkInterfaces (networkService , tapDeviceName , bridgeName , "192.168.1.100" , "255.255.255.0" )
172
+ network .SetupNetworkInterfaces (networkService , tapDeviceName , bridgeName , "192.168.1.100" , "255.255.255.0" , "" )
173
173
})
174
174
175
175
t .Run ("should not set IP in bridge if it is already set" , func (t * testing.T ) {
@@ -207,7 +207,7 @@ func TestSetupNetworkInterfaces(t *testing.T) {
207
207
IsNIUp (tapDeviceName ).
208
208
Return (true , nil )
209
209
210
- network .SetupNetworkInterfaces (networkService , tapDeviceName , bridgeName , "192.168.1.100" , "255.255.255.0" )
210
+ network .SetupNetworkInterfaces (networkService , tapDeviceName , bridgeName , "192.168.1.100" , "255.255.255.0" , "" )
211
211
})
212
212
213
213
}
0 commit comments