-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
bgpd: Use correct specifier to print 4-byte ASN #3726
bgpd: Use correct specifier to print 4-byte ASN #3726
Conversation
…eer-group' Fix: Corrected the format to be unsigned int instead of signed int for the Remote AS.
Continuous Integration Result: FAILEDSee below for issues. This is a comment from an EXPERIMENTAL automated CI system. Get source and apply patch from patchwork: SuccessfulBuilding Stage: SuccessfulBasic Tests: FailedIPv4 ldp protocol on Ubuntu 16.04: Successful Topotest tests on Ubuntu 16.04 i386: FailedTopology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TOPOI386-6570/test Topology Tests failed for Topotest tests on Ubuntu 16.04 i386:
see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-6570/artifact/TOPOI386/ErrorLog/log_topotests.txt Topology Tests memory analysis: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-6570/artifact/TOPOI386/MemoryLeaks/CLANG Static Analyzer Summary
4 Static Analyzer issues remaining.See details at |
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-6570/ This is a comment from an EXPERIMENTAL automated CI system. CLANG Static Analyzer Summary
4 Static Analyzer issues remaining.See details at |
bgpd/bgp_vty.c
Outdated
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The format specifier needs to be PRIu32
, not u
Good catch! Thought we'd fixed all these but apparently not 🙂 We also need you to sign off and reformat your commit message to match our project guidelines. Seeing as this issue is present on master as well, I've gone ahead and submitted this - that has the correct |
Changes done as suggested. Thanks for the review. |
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-6582/ This is a comment from an EXPERIMENTAL automated CI system. Warnings Generated during build:Checkout code: Successful with additional warnings:
CLANG Static Analyzer Summary
4 Static Analyzer issues remaining.See details at |
@kirankella - you still need to amend the commit messages to follow the standards I linked and sign off on your code. Otherwise we can't accept it. |
@kirankella The commit messages, not the PR title. Please use the doc I linked you. |
@qlyoung Thanks for the links. I tried to meet to the guidelines. Can you please help in correcting me the commit message, since this is the first time i am submitting PR on frr? What am i missing? |
You need to amend your commits, put the top level directory of the change in front of the subject line (as you did with the title of this PR), and when you amend use the Take a look at any of the non-merge commits in this project's history if you need examples. When you changed the title of this PR, it didn't change the commits. You have to do that with git, you can't do it with github. Notice how the commit messages are still wrong: |
In show ip bgp peer-group, the 4-byte ASN is printed as signed int. Corrected the format specifier in such places in bgp_vty.c Signed-off-by: Kiran Kella <[email protected]>
…la/frr into show_bgp_peer_group_asn
Thanks much @qlyoung. I did amend the commit with -s option to meet the guidelines. |
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-6598/ This is a comment from an EXPERIMENTAL automated CI system. Warnings Generated during build:Checkout code: Successful with additional warnings:
CLANG Static Analyzer Summary
4 Static Analyzer issues remaining.See details at |
💚 Basic BGPD CI results: SUCCESS, 0 tests failedResults table
For details, please contact louberger |
@kirankella I fixed your patches and merged them manually. Thanks for your contribution! |
Summary
The display format of the Remote AS field in the output of
'show ip bgp peer-group' is signed int.
Corrected such occurances in bgp_vty.c
Components
bgpd
Signed-off-by: Kiran Kella [email protected]