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

bgpd: add memberCount into peer-grp json output #16950

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 27, 2024

  1. bgpd: add memberCount into peer-grp json output

    Member count is not part of current show bgp peer-group json output.
    
    Fix:
    
    memberCount attribute is added into bgp peer-grp json output.
    
    Supported commands:
    
    - show bgp peer-group json
    - show bgp vrf tenant1 peer-group json
    
    Ticket:#4073454
    
    Testing:
    
    tor-11# show bgp peer-group json
    {
      "ISL":{
        "remoteAs":0,
        "type":"external",
        "addressFamiliesConfigured":[
          "IPv4 Unicast"
        ],
        "members":{
          "swp1":{
            "status":"Established"
          },
          "swp2":{
            "status":"Established"
          },
          "memberCount":2
        }
      }
    }
    
    Signed-off-by: Sindhu Parvathi Gopinathan's <[email protected]>
    Sindhu Parvathi Gopinathan authored and chiragshah6 committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    5da0543 View commit details
    Browse the repository at this point in the history