@@ -267,7 +267,8 @@ def test_post_vrouter_default(self, setup_restapi_client):
267
267
b'vni' : b'2001' ,
268
268
b'guid' : b'Vnet-default-v4' ,
269
269
b'scope' : b'default'
270
- }
270
+ }
271
+
271
272
def test_post_vrouter_v6_default (self , setup_restapi_client ):
272
273
_ , _ , configdb , restapi_client = setup_restapi_client
273
274
restapi_client .post_generic_vxlan_v6_tunnel ()
@@ -282,7 +283,8 @@ def test_post_vrouter_v6_default(self, setup_restapi_client):
282
283
b'vni' : b'2001' ,
283
284
b'guid' : b'Vnet-default' ,
284
285
b'scope' : b'default'
285
- }
286
+ }
287
+
286
288
def test_post_vrouter_v4_v6_default (self , setup_restapi_client ):
287
289
_ , _ , configdb , restapi_client = setup_restapi_client
288
290
restapi_client .post_generic_vxlan_tunnel ()
@@ -298,18 +300,20 @@ def test_post_vrouter_v4_v6_default(self, setup_restapi_client):
298
300
b'vni' : b'2001' ,
299
301
b'guid' : b'Vnet-default' ,
300
302
b'scope' : b'default'
301
-
302
- assert r .status_code == 204
303
+ }
303
304
304
305
r = restapi_client .post_config_vrouter_vrf_id ("Vnet-default-v4" , {
305
306
'vnid' : 2001
306
307
})
308
+ assert r .status_code == 204
309
+
307
310
vrouter_table = configdb .hgetall (VNET_TB + '|' + VNET_NAME_PREF + '2' )
308
311
assert vrouter_table == {
309
312
b'vxlan_tunnel' : b'default_vxlan_tunnel_v4' ,
310
313
b'vni' : b'2001' ,
311
314
b'guid' : b'Vnet-default-v4' ,
312
315
b'scope' : b'default'
316
+ }
313
317
314
318
def test_get_vrouter (self , setup_restapi_client ):
315
319
_ , _ , _ , restapi_client = setup_restapi_client
0 commit comments