Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BGP_ROUTEMAPS is not translated into FRR configuration #4733

Open
tim-rj opened this issue Jun 9, 2020 · 2 comments
Open

BGP_ROUTEMAPS is not translated into FRR configuration #4733

tim-rj opened this issue Jun 9, 2020 · 2 comments
Labels
Help Wanted 🆘 Triaged this issue has been triaged

Comments

@tim-rj
Copy link
Contributor

tim-rj commented Jun 9, 2020

Description
BGP_ROUTEMAPS is not translated into FRR configuration

Steps to reproduce the issue:
1.Create BGP_ROUTEMAPS in config.db

"BGP_ROUTEMAPS": {
"From-LC|5": {
"matchcommunity": "20",
"name": "From-LC",
"opttype": "permit",
"seqnumber": "5"
},
"SetComm-1/1|5": {
"applycost": "1000",
"comm_range": "1:1",
"name": "SetComm-1/1",
"opttype": "permit",
"seqnumber": "5"
},
"SetComm-1/2|5": {
"applycost": "1000",
"comm_range": "1:2",
"name": "SetComm-1/2",
"opttype": "permit",
"seqnumber": "5"
},
"SetComm-1/4|5": {
"applycost": "1000",
"comm_range": "1:4",
"name": "SetComm-1/4",
"opttype": "permit",
"seqnumber": "5"
},
"SetComm-HostRoute|5": {
"applycost": "1000",
"comm_range": "1:8005",
"name": "SetComm-HostRoute",
"opttype": "permit",
"seqnumber": "5"
},
"To-LC|5": {
"matchcommunity": "10",
"name": "To-LC",
"opttype": "permit",
"seqnumber": "5"
}
},

2、Reload configuration (config reload)
3、Check BGP_ROUTEMAPS configuration via show route-map

Describe the results you received:

root@switch2:/etc/sonic# show route-map
ZEBRA:
route-map: FROM_BGP_PEER_V4 Invoked: 0
permit, sequence 100 Invoked 0
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
route-map: FROM_BGP_PEER_V6 Invoked: 0
permit, sequence 1 Invoked 0
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
permit, sequence 100 Invoked 0
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
route-map: FROM_BGP_SPEAKER Invoked: 0
permit, sequence 10 Invoked 0
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
route-map: RM_SET_SRC Invoked: 0
permit, sequence 10 Invoked 0
Match clauses:
Set clauses:
src 6.6.6.6
Call clause:
Action:
Exit routemap
route-map: RM_SET_SRC6 Invoked: 0
permit, sequence 10 Invoked 0
Match clauses:
Set clauses:
src 6::6
Call clause:
Action:
Exit routemap
route-map: TO_BGP_PEER_V4 Invoked: 0
permit, sequence 100 Invoked 0
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
route-map: TO_BGP_PEER_V6 Invoked: 0
permit, sequence 100 Invoked 0
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
route-map: TO_BGP_SPEAKER Invoked: 0
deny, sequence 1 Invoked 0
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
BGP:
route-map: FROM_BGP_PEER_V4 Invoked: 0
permit, sequence 100 Invoked 0
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
route-map: FROM_BGP_PEER_V6 Invoked: 0
permit, sequence 1 Invoked 0
Match clauses:
Set clauses:
ipv6 next-hop prefer-global (null)
Call clause:
Action:
Exit routemap
permit, sequence 100 Invoked 0
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
route-map: FROM_BGP_SPEAKER Invoked: 0
permit, sequence 10 Invoked 0
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
route-map: RM_SET_SRC Invoked: 0
permit, sequence 10 Invoked 0
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
route-map: RM_SET_SRC6 Invoked: 0
permit, sequence 10 Invoked 0
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
route-map: TO_BGP_PEER_V4 Invoked: 0
permit, sequence 100 Invoked 0
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
route-map: TO_BGP_PEER_V6 Invoked: 0
permit, sequence 100 Invoked 0
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
route-map: TO_BGP_SPEAKER Invoked: 0
deny, sequence 1 Invoked 0
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap

Describe the results you expected:
TD3-4# show route-map
ZEBRA:
route-map To-LC, permit, sequence 5
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
ZEBRA:
route-map SetComm-HostRoute, permit, sequence 5
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
ZEBRA:
route-map SetComm-1/4, permit, sequence 5
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
ZEBRA:
route-map SetComm-1/2, permit, sequence 5
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
ZEBRA:
route-map SetComm-1/1, permit, sequence 5
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
ZEBRA:
route-map From-LC, permit, sequence 5
Match clauses:
Set clauses:
Call clause:
Action:
Exit routemap
BGP:
route-map To-LC, permit, sequence 5
Match clauses:
community 10
Set clauses:
Call clause:
Action:
Exit routemap
BGP:
route-map SetComm-HostRoute, permit, sequence 5
Match clauses:
Set clauses:
community 1:8005
metric 1000
Call clause:
Action:
Exit routemap
BGP:
route-map SetComm-1/4, permit, sequence 5
Match clauses:
Set clauses:
community 1:4
metric 1000
Call clause:
Action:
Exit routemap
BGP:
route-map SetComm-1/2, permit, sequence 5
Match clauses:
Set clauses:
community 1:2
metric 1000
Call clause:
Action:
Exit routemap
BGP:
route-map SetComm-1/1, permit, sequence 5
Match clauses:
Set clauses:
community 1:1
metric 1000
Call clause:
Action:
Exit routemap
BGP:
route-map From-LC, permit, sequence 5
Match clauses:
community 20
Set clauses:
Call clause:
Action:
Exit routemap

Additional information you deem important (e.g. issue happens only occasionally):

**Output of `show version`:**

```
(paste your output here)
```

root@switch2:/etc/sonic# show version

SONiC Software Version: SONiC.HEAD.67-8367dfeb
Distribution: Debian 9.12
Kernel: 4.9.0-11-2-amd64
Build commit: 8367dfe
Build date: Wed May 6 13:49:49 UTC 2020
Built by: johnar@jenkins-worker-7

Platform: x86_64-ruijie_b6510-48vs8cq-r0
HwSKU: B6510-48VS8CQ
ASIC: broadcom
Serial Number: G1MW80H000123
Uptime: 14:37:35 up 4:57, 3 users, load average: 0.57, 0.81, 0.90

Docker images:
REPOSITORY TAG IMAGE ID SIZE
docker-syncd-brcm HEAD.67-8367dfeb 6902f81e3ca3 430MB
docker-syncd-brcm latest 6902f81e3ca3 430MB
docker-platform-monitor HEAD.67-8367dfeb 299fc1d87ebf 334MB
docker-platform-monitor latest 299fc1d87ebf 334MB
docker-router-advertiser HEAD.67-8367dfeb d1f31448c1b9 283MB
docker-router-advertiser latest d1f31448c1b9 283MB
docker-fpm-frr HEAD.67-8367dfeb c2b1f3dde8c8 328MB
docker-fpm-frr latest c2b1f3dde8c8 328MB
docker-sflow HEAD.67-8367dfeb 22588d030e81 308MB
docker-sflow latest 22588d030e81 308MB
docker-lldp-sv2 HEAD.67-8367dfeb 8a9b1ba67160 305MB
docker-lldp-sv2 latest 8a9b1ba67160 305MB
docker-orchagent HEAD.67-8367dfeb eed753ed4e3b 326MB
docker-orchagent latest eed753ed4e3b 326MB
docker-dhcp-relay HEAD.67-8367dfeb a91bd90f721a 293MB
docker-dhcp-relay latest a91bd90f721a 293MB
docker-database HEAD.67-8367dfeb 7665762c9470 283MB
docker-database latest 7665762c9470 283MB
docker-snmp-sv2 HEAD.67-8367dfeb 893a54916304 340MB
docker-snmp-sv2 latest 893a54916304 340MB
docker-teamd HEAD.67-8367dfeb 2e77c5e410ba 307MB
docker-teamd latest 2e77c5e410ba 307MB
docker-nat HEAD.67-8367dfeb d1c78016f845 309MB
docker-nat latest d1c78016f845 309MB
docker-sonic-mgmt-framework HEAD.67-8367dfeb f1f88830db0c 422MB
docker-sonic-mgmt-framework latest f1f88830db0c 422MB
docker-sonic-telemetry HEAD.67-8367dfeb 65d82748277a 345MB
docker-sonic-telemetry latest 65d82748277a 345MB
Attach debug file sudo generate_dump:

```
(paste your output here)
```
@tim-rj
Copy link
Contributor Author

tim-rj commented Jul 15, 2020

I see PR been closed, but issue still exist...

@yxieca
Copy link
Contributor

yxieca commented Aug 5, 2020

@tim-rj according to the discussion on issue #4955. BGP routemap is not currently supported.

@yxieca yxieca added Help Wanted 🆘 Triaged this issue has been triaged labels Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted 🆘 Triaged this issue has been triaged
Projects
None yet
Development

No branches or pull requests

2 participants