diff options
| author | anlan_cs <vic.lan@pica8.com> | 2023-04-14 08:32:32 +0800 |
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-04-16 06:51:21 +0000 |
| commit | 8cbb6839197492efa55b26a01ec9591519916dcc (patch) | |
| tree | 6b2b6117142145bc34e65a147708ab7dabd9b907 /lib/command.c | |
| parent | c323653fc9bd4b2428449877e3bb91ac93a8fe29 (diff) | |
tools: fix missing remote-as configuration when reload
From commit `411d1a2`, `bgp_delete_nbr_remote_as_line()` is added to
remove some specific bgp neighbors. But, when reloading the following
configuration, it will wrongly remove some good ones:
`neighbor 66.66.66.6 remote-as internal`:
```
router bgp 66
bgp router-id 172.16.204.6
neighbor ANLAN peer-group
neighbor ANLAN remote-as internal
neighbor 66.66.66.6 remote-as internal <- LOST
neighbor 66.66.66.60 peer-group ANLAN
```
The reason is that "66.66.66.6" is included in "66.66.66.60" literally,
then it is mistakenly thought to be a match. Just fix it with
excat match.
Signed-off-by: anlan_cs <vic.lan@pica8.com>
(cherry picked from commit a70895e83ae49b15f13e0801e0743d788b0cb595)
Diffstat (limited to 'lib/command.c')
0 files changed, 0 insertions, 0 deletions
