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

incomplete bgp route map for RM_SET_SRC/RM_SET_SRC6 #3735

Closed
lguohan opened this issue Nov 11, 2019 · 1 comment
Closed

incomplete bgp route map for RM_SET_SRC/RM_SET_SRC6 #3735

lguohan opened this issue Nov 11, 2019 · 1 comment
Labels

Comments

@lguohan
Copy link
Collaborator

lguohan commented Nov 11, 2019

Description

Steps to reproduce the issue:

load the latest sonic vs image.

Describe the results you received:

admin@vlab-01:/var/log$ vtysh

Hello, this is FRRouting (version 7.2-sonic).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

vlab-01# show run
Building configuration...

Current configuration:
!
frr version 7.2-sonic
frr defaults traditional
hostname vlab-01
log syslog informational
log facility local4
agentx
no service integrated-vtysh-config
!
enable password zebra
password zebra
!
ip route 0.0.0.0/0 10.250.0.1 200
!
router bgp 65100
 bgp router-id 10.1.0.32
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 bgp graceful-restart restart-time 240
 bgp graceful-restart
 bgp graceful-restart preserve-fw-state
 bgp bestpath as-path multipath-relax
 neighbor BGPSLBPassive peer-group
 neighbor BGPSLBPassive remote-as 65432
 neighbor BGPSLBPassive passive
 neighbor BGPSLBPassive ebgp-multihop 255
 neighbor BGPSLBPassive update-source 10.1.0.32
 neighbor BGPVac peer-group
 neighbor BGPVac remote-as 65432
 neighbor BGPVac passive
 neighbor BGPVac ebgp-multihop 255
 neighbor BGPVac update-source 10.1.0.32
 neighbor PEER_V4 peer-group
 neighbor PEER_V6 peer-group
 neighbor 10.0.0.57 remote-as 64600
 neighbor 10.0.0.57 peer-group PEER_V4
 neighbor 10.0.0.57 description ARISTA01T1
 neighbor 10.0.0.57 timers 3 10
 neighbor 10.0.0.59 remote-as 64600
 neighbor 10.0.0.59 peer-group PEER_V4
 neighbor 10.0.0.59 description ARISTA02T1
 neighbor 10.0.0.59 timers 3 10
 neighbor 10.0.0.61 remote-as 64600
 neighbor 10.0.0.61 peer-group PEER_V4
 neighbor 10.0.0.61 description ARISTA03T1
 neighbor 10.0.0.61 timers 3 10
 neighbor 10.0.0.63 remote-as 64600
 neighbor 10.0.0.63 peer-group PEER_V4
 neighbor 10.0.0.63 description ARISTA04T1
 neighbor 10.0.0.63 timers 3 10
 neighbor fc00::72 remote-as 64600
 neighbor fc00::72 peer-group PEER_V6
 neighbor fc00::72 description ARISTA01T1
 neighbor fc00::72 timers 3 10
 neighbor fc00::76 remote-as 64600
 neighbor fc00::76 peer-group PEER_V6
 neighbor fc00::76 description ARISTA02T1
 neighbor fc00::76 timers 3 10
 neighbor fc00::7a remote-as 64600
 neighbor fc00::7a peer-group PEER_V6
 neighbor fc00::7a description ARISTA03T1
 neighbor fc00::7a timers 3 10
 neighbor fc00::7e remote-as 64600
 neighbor fc00::7e peer-group PEER_V6
 neighbor fc00::7e description ARISTA04T1
 neighbor fc00::7e timers 3 10
 bgp listen range 10.255.0.0/25 peer-group BGPSLBPassive
 bgp listen range 192.168.0.0/21 peer-group BGPVac
 !
 address-family ipv4 unicast
  network 10.1.0.32/32
  network 192.168.0.0/21
  neighbor BGPSLBPassive activate
  neighbor BGPSLBPassive soft-reconfiguration inbound
  neighbor BGPSLBPassive route-map FROM_BGP_SPEAKER_V4 in
  neighbor BGPSLBPassive route-map TO_BGP_SPEAKER_V4 out
  neighbor BGPVac activate
  neighbor BGPVac soft-reconfiguration inbound
  neighbor BGPVac route-map FROM_BGP_SPEAKER_V4 in
  neighbor BGPVac route-map TO_BGP_SPEAKER_V4 out
  neighbor PEER_V4 soft-reconfiguration inbound
  neighbor PEER_V4 allowas-in 1
  neighbor PEER_V4 route-map TO_BGP_PEER_V4 out
  neighbor 10.0.0.57 activate
  neighbor 10.0.0.59 activate
  neighbor 10.0.0.61 activate
  neighbor 10.0.0.63 activate
  maximum-paths 64
 exit-address-family
 !
 address-family ipv6 unicast
  network fc00:1::/64
  neighbor BGPSLBPassive activate
  neighbor BGPVac activate
  neighbor PEER_V6 soft-reconfiguration inbound
  neighbor PEER_V6 allowas-in 1
  neighbor PEER_V6 route-map TO_BGP_PEER_V6 out
  neighbor fc00::72 activate
  neighbor fc00::72 route-map set-next-hop-global-v6 in
  neighbor fc00::76 activate
  neighbor fc00::76 route-map set-next-hop-global-v6 in
  neighbor fc00::7a activate
  neighbor fc00::7a route-map set-next-hop-global-v6 in
  neighbor fc00::7e activate
  neighbor fc00::7e route-map set-next-hop-global-v6 in
  maximum-paths 64
 exit-address-family
!
ip prefix-list PL_LoopbackV4 seq 5 permit 10.1.0.32/32
!
ipv6 prefix-list PL_LoopbackV6 seq 5 permit fc00:1::/64
!
route-map FROM_BGP_SPEAKER_V4 permit 10
!
route-map ISOLATE permit 10
 set as-path prepend 65100
!
route-map RM_SET_SRC permit 10
!
route-map RM_SET_SRC6 permit 10
!
route-map TO_BGP_PEER_V4 permit 100
!
route-map TO_BGP_PEER_V6 permit 100
!
route-map TO_BGP_SPEAKER_V4 deny 10
!
route-map set-next-hop-global-v6 permit 10
 set ipv6 next-hop prefer-global 
!
ip protocol bgp route-map RM_SET_SRC
!
ipv6 protocol bgp route-map RM_SET_SRC6
!
line vty
!
end

Describe the results you expected:

route-map RM_SET_SRC permit 10
 set src 10.1.0.32
!
route-map RM_SET_SRC6 permit 10
 set src fc00:1::32

It should have loopback IP as source IP.

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

**Output of `show version`:**

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

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```
@lguohan lguohan changed the title bgp route map for RM_SET_SRC/RM_SET_SRC6 are not correct. imcomplete bgp route map for RM_SET_SRC/RM_SET_SRC6 Nov 11, 2019
@prsunny prsunny changed the title imcomplete bgp route map for RM_SET_SRC/RM_SET_SRC6 incomplete bgp route map for RM_SET_SRC/RM_SET_SRC6 Nov 12, 2019
@lguohan
Copy link
Collaborator Author

lguohan commented Jun 25, 2020

addressed in 057ced0

@lguohan lguohan closed this as completed Jun 25, 2020
@lguohan lguohan added the bgp label Jun 25, 2020
mssonicbld added a commit that referenced this issue Mar 2, 2025
…atically (#21343)

#### Why I did it
src/sonic-utilities
```
* 899ed9b9 - (HEAD -> master, origin/master, origin/HEAD) Remove Multi ASIC namespace Check. (#3783) (3 days ago) [Xincun Li]
* 9f1eab43 - Memory Statistics Config and Show Commands (#3575) (3 days ago) [Kanza Latif]
* 595c2aaa - Utilities Changes for DHCP DoS Mitigation Feature (#3301) (3 days ago) [Asad Raza]
* a3d15bc1 - Add multi-asic support for dropconfig (#3735) (3 days ago) [HP]
* 5ce06b27 - Add golden config check (#3770) (4 days ago) [Xincun Li]
* 3c50deeb - Fix `vnet_route_check` for active and inactive routes, add `--all` option (#3763) (9 days ago) [mramezani95]
* 40ba225f - Revert "enable pfcwd for backplane ports (#3759)" (#3767) (13 days ago) [Dashuai Zhang]
* 2866ccd9 - enable pfcwd for backplane ports (#3759) (2 weeks ago) [Dashuai Zhang]
* 3abd19e3 - [FC] remove FC delay field (#3577) (3 weeks ago) [Stepan Blyshchak]
* 11c27163 - Improve SONiC disk checker to handle disk full case and mount overlay fs to allow remote user login. (#3700) (3 weeks ago) [Hua Liu]
* 13619aa2 - [QOS] Skip showing unnecessary warning message (#3708) (3 weeks ago) [Vivek]
* f4e6e5b8 - Fixing 'show ip bgp neighbor <ip>' in frr unified config mode (#3738) (3 weeks ago) [kalash-nexthop]
* 9a18155e - Optimize lag_keepalive by crafting the LACPDU packet ourselves (#3170) (3 weeks ago) [Saikrishna Arcot]
* a7deb8c0 - display proper message with proper errno for kvm. (#3750) (3 weeks ago) [Dawei Huang]
* 865f196d - [Mellanox] Add new SN5640 platform and HwSKU (#3742) (4 weeks ago) [Noa Or]
* 5fa85027 - [show_techsupport][pstore] Archive /var/lib/systemd/pstore info to techsupport (#3745) (4 weeks ago) [Marty Y. Lok]
* 8f69d5a6 - sonic-utilities: WRED stats feature changes on sonic-utilities (#2807) (4 weeks ago) [Rajesh Perumal R]
* 9d273f16 - Fix call for spanning-tree commands in dump script (#3723) (4 weeks ago) [DavidZagury]
* 6d95d9bd - Make 'show ip bgp summary' work even when we don't have any peer groups (#3739) (4 weeks ago) [kalash-nexthop]
* 7f3957c4 - Fix ssdhealth failure on VS platform (#3743) (4 weeks ago) [Vivek]
* 97b4e4b8 - Fix show interface counters for Chassis Packet Supervisor (#3734) (4 weeks ago) [anamehra]
* 414935b7 - Add recover asic_id config if load golden config. (#3711) (5 weeks ago) [Xincun Li]
* 973cfdc3 - Remove partially installer image when image install failed. (#3712) (5 weeks ago) [Hua Liu]
* 97c20ccd - CLI support for SmartSwitch PMON (#3271) (5 weeks ago) [rameshraghupathy]
* 752c3d49 - [ACL] Display rule and table info written to APP DB (#3713) (5 weeks ago) [Vivek]
* fbd0c3b1 - [show][interface] Add changes for show interface flap command (#3724) (5 weeks ago) [vdahiya12]
* ddccabee - [show][interface] Add changes for show interface errors command (#3721) (5 weeks ago) [vdahiya12]
* be870a6e - [config] Exit with non-zero when qos reload fail (#3710) (6 weeks ago) [Jianyue Wu]
* ffa66e96 - Remove debug dump import by default (#3715) (6 weeks ago) [Vivek]
* fc3a3cbe - [ssdhealth] Check for default device before falling back to discovery (#3693) (6 weeks ago) [Vivek]
* 782c33a1 - [yang] Enforce yang full support in full config command (#3716) (6 weeks ago) [jingwenxie]
* a5b7a904 - [show][interfaces] Add proposal for show interfaces flap (#3627) (6 weeks ago) [vdahiya12]
* 0083a124 - sonic-utilities: add th5 hwskus to gcu conf file (#3714) (7 weeks ago) [Chris]
* 81cf04f7 - [Mellanox] Add Mellanox-SN5610N-C256S2, Mellanox-SN5610N-C224O8 to GCU validators (#3658) (7 weeks ago) [noaOrMlnx]
* 349a1018 - [db_migrator] Migrate tunnel table (#3704) (7 weeks ago) [Longxiang Lyu]
* 0e327c5f - show ip interfaces: fix exception with BGP unnumbered (#3695) (8 weeks ago) [Brad House]
* 7100f73b - [show_tech] modify generate_dump to includes BERT data and also the platform specified hw-mgmt info (#3676) (8 weeks ago) [Marty Y. Lok]
* 80d46988 - Delete TRSNCEIVER tables while config reload (#3680) (8 weeks ago) [noaOrMlnx]
* bf6ff9f9 - Enable multi asic golden config YANG validation. (#3685) (8 weeks ago) [Xincun Li]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant