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

4-byte ASN displayed incorrectly as signed int in 'show ip bgp peer-group' #13

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bgpd/bgp_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -11404,10 +11404,10 @@ static int bgp_show_one_peer_group(struct vty *vty, struct peer_group *group)
conf = group->conf;

if (conf->as_type == AS_SPECIFIED || conf->as_type == AS_EXTERNAL) {
vty_out(vty, "\nBGP peer-group %s, remote AS %d\n", group->name,
vty_out(vty, "\nBGP peer-group %s, remote AS %u\n", group->name,
conf->as);
} else if (conf->as_type == AS_INTERNAL) {
vty_out(vty, "\nBGP peer-group %s, remote AS %d\n", group->name,
vty_out(vty, "\nBGP peer-group %s, remote AS %u\n", group->name,
group->bgp->as);
} else {
vty_out(vty, "\nBGP peer-group %s\n", group->name);
Expand Down