cbc_vty: print correct protocol when writing config

Change-Id: Id9fc0b42827f9a74ff1de4b35339de02aeeefee2
This commit is contained in:
Pau Espin 2022-07-20 21:02:53 +02:00
parent 053018abeb
commit 85bc27d394
1 changed files with 2 additions and 1 deletions

View File

@ -638,7 +638,8 @@ static void write_one_peer(struct vty *vty, struct cbc_peer *peer)
{
unsigned int i;
vty_out(vty, " peer %s%s", peer->name, VTY_NEWLINE);
vty_out(vty, " protocol cbsp%s", VTY_NEWLINE);
vty_out(vty, " protocol %s%s",
get_value_string(cbc_peer_proto_name_vty, peer->proto), VTY_NEWLINE);
if (peer->remote_port == -1)
vty_out(vty, " no remote-port%s", VTY_NEWLINE);
else