]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: prompt should be given only for the real change 15731/head
authoranlan_cs <anlan_cs@tom.com>
Fri, 12 Apr 2024 14:56:41 +0000 (22:56 +0800)
committeranlan_cs <anlan_cs@tom.com>
Sat, 13 Apr 2024 01:35:37 +0000 (09:35 +0800)
commit70c4dea8a973ae023d15b6dcf52aa019bc21f414
tree47adb1eb43adf6529e166e07e4d0455d535a4da5
parent1a8725b11fd84f875577f2066b4d6cccf4191933
bgpd: prompt should be given only for the real change

Prompt nothing for an empty (and failed) operation.  Take
`bgp graceful-restart` as an example:

Before:
```
anlan(config-router)# bgp graceful-restart
Graceful restart configuration changed, reset all peers to take effect
anlan(config-router)# bgp graceful-restart
Graceful restart configuration changed, reset all peers to take effect
anlan(config-router)#
```

After:
```
anlan(config-router)# bgp graceful-restart
Graceful restart configuration changed, reset all peers to take effect
anlan(config-router)# bgp graceful-restart
anlan(config-router)#
```

Signed-off-by: anlan_cs <anlan_cs@tom.com>
bgpd/bgp_vty.c