summaryrefslogtreecommitdiff
path: root/bgpd/bgp_network.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2022-11-18 16:02:55 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2023-02-10 10:27:23 +0100
commitde76ed8a0e4c26b21267556a41bbb056791c1c5c (patch)
treea0b69dac15204e32983e8dbfadd7d15ffaed2218 /bgpd/bgp_network.c
parente84c7c12f224f27ae430f2929a9fd121b133c2b3 (diff)
bgpd: store the neighbor as identifier as a string
This identifier is used to display the peer configuration in the running-config, like it has been configured. The following commands are using a specific string attribute: - neighbor .. remote-as ASN - neighbor .. local-as ASN Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_network.c')
-rw-r--r--bgpd/bgp_network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c
index 7186a50711..cc832bd5fe 100644
--- a/bgpd/bgp_network.c
+++ b/bgpd/bgp_network.c
@@ -553,7 +553,7 @@ static void bgp_accept(struct thread *thread)
peer1->host);
peer = peer_create(&su, peer1->conf_if, peer1->bgp, peer1->local_as,
- peer1->as, peer1->as_type, NULL, false);
+ peer1->as, peer1->as_type, NULL, false, NULL);
peer_xfer_config(peer, peer1);
bgp_peer_gr_flags_update(peer);