From 7eadcc6946492737f2da6d8ab1056e8d05aa716c Mon Sep 17 00:00:00 2001 From: "guozhongfeng.gzf" Date: Thu, 24 Oct 2024 20:07:15 +0800 Subject: [PATCH] tests:support of color extended community color-only types Signed-off-by: guozhongfeng.gzf --- tests/topotests/bgp_color_extcommunities/r1/bgpd.conf | 4 ++-- .../bgp_color_extcommunities/test_bgp_color_extcommunities.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/topotests/bgp_color_extcommunities/r1/bgpd.conf b/tests/topotests/bgp_color_extcommunities/r1/bgpd.conf index d4ca392b1a28..30cb6647aeaf 100644 --- a/tests/topotests/bgp_color_extcommunities/r1/bgpd.conf +++ b/tests/topotests/bgp_color_extcommunities/r1/bgpd.conf @@ -11,7 +11,7 @@ router bgp 65001 exit-address-family ! route-map rmap permit 10 - set extcommunity color 1 + set extcommunity color 01:1 set extcommunity rt 80:987 - set extcommunity color 100 55555 200 + set extcommunity color 01:100 01:55555 01:200 exit diff --git a/tests/topotests/bgp_color_extcommunities/test_bgp_color_extcommunities.py b/tests/topotests/bgp_color_extcommunities/test_bgp_color_extcommunities.py index 09091198a8c5..94a444d5c52b 100644 --- a/tests/topotests/bgp_color_extcommunities/test_bgp_color_extcommunities.py +++ b/tests/topotests/bgp_color_extcommunities/test_bgp_color_extcommunities.py @@ -105,7 +105,7 @@ def _bgp_check_route(router, exists): { "valid": True, "extendedCommunity": { - "string": "RT:80:987 Color:100 Color:200 Color:55555" + "string": "RT:80:987 Color:01:100 Color:01:200 Color:01:55555" }, } ],