@@ -170,7 +170,6 @@ def test_create_subnet_postcommit_private(nautobot_client):
170
170
"network_id" : "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb" ,
171
171
"cidr" : "1.0.0.0/24" ,
172
172
"router:external" : False ,
173
- "service_types" : [],
174
173
}
175
174
)
176
175
@@ -184,14 +183,13 @@ def test_create_subnet_postcommit_private(nautobot_client):
184
183
)
185
184
186
185
187
- def test_create_subnet_postcommit_public_svi (nautobot_client , undersync_client ):
186
+ def test_create_subnet_postcommit_public (nautobot_client , undersync_client ):
188
187
context = MagicMock (
189
188
current = {
190
189
"id" : "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" ,
191
190
"network_id" : "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb" ,
192
191
"cidr" : "1.0.0.0/24" ,
193
192
"router:external" : True ,
194
- "service_types" : ["network:understack_svi" ],
195
193
}
196
194
)
197
195
@@ -205,27 +203,6 @@ def test_create_subnet_postcommit_public_svi(nautobot_client, undersync_client):
205
203
prefix = "1.0.0.0/24" ,
206
204
namespace_name = "Global" ,
207
205
)
208
- nautobot_client .associate_subnet_with_network .assert_called_once ()
209
-
210
-
211
- def test_create_subnet_postcommit_public_non_svi (nautobot_client , undersync_client ):
212
- context = MagicMock (
213
- current = {
214
- "id" : "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" ,
215
- "network_id" : "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb" ,
216
- "cidr" : "1.0.0.0/24" ,
217
- "router:external" : True ,
218
- "service_types" : ["not_an_svi_type" ],
219
- }
220
- )
221
-
222
- driver .nb = nautobot_client
223
- driver .undersync = undersync_client
224
-
225
- driver .create_subnet_postcommit (context )
226
-
227
- nautobot_client .subnet_create .assert_called_once ()
228
- nautobot_client .associate_subnet_with_network .assert_not_called ()
229
206
230
207
231
208
def test_delete_subnet_postcommit_public (nautobot_client , undersync_client ):
0 commit comments