sonic-net / sonic-mgmt

Configuration management examples for SONiC
Other
201 stars 727 forks source link

script removing BGP router configuration instead of BGP advertised route configuration #3099

Open hareesh-ganipineni opened 3 years ago

hareesh-ganipineni commented 3 years ago

https://github.com/Azure/sonic-mgmt/blob/6429d311c10dd8eac0ae062e7e31f0d6a86c587a/spytest/tests/routing/BGP/test_bgp.py#L288

Here we need to use

tg_ob.tg_emulation_bgp_route_config(handle=bgp_route[‘handle'], mode='remove', num_routes='4',

prefix=‘122.1.1.0’, as_path='as_seq:1')

instead of

tg_ob.tg_emulation_bgp_route_config(handle=bgp_handle['handle'], mode='remove', num_routes='4',

prefix='122.1.1.0', as_path='as_seq:1')

yxieca commented 3 years ago

@ramakristipati please look into this issue.