Go to file
Sindhu Parvathi Gopinathan 232e8ef704 vrrpd: add priority field into interface json
'Priority' attribute is missing in "show vrrp interface <intf> json"
output. Whereas it is there in non-json output.

It has been added now in show vrrp interface json output.

Before Fix:

```
vrrp1# show vrrp interface swp5.101 json
[
  {
    "vrid":2,
    "version":3,
    "autoconfigured":false,
    "shutdown":false,
    "preemptMode":true,
    "acceptMode":true,
    "interface":"swp5.101",
    "advertisementInterval":1000,
    "v4":{
      "interface":"vrrp4-11-2",
      "vmac":"00:00:5e:00:01:02",
      "primaryAddress":"50.0.0.2",
      "status":"Master",
      "effectivePriority":110,
      "masterAdverInterval":1000,
      "skewTime":570,
      "masterDownInterval":3570,
      "stats":{
        "adverTx":248456,
        "adverRx":1,
        "garpTx":1,
        "transitions":2
      },
      "addresses":[
        "50.0.0.1"
      ]
    },
    "v6":{
      "interface":"vrrp6-11-2",
      "vmac":"00:00:5e:00:02:02",
      "primaryAddress":"fe80::7f1:49e7:768c:aa73",
      "status":"Master",
      "effectivePriority":110,
      "masterAdverInterval":1000,
      "skewTime":570,
      "masterDownInterval":3570,
      "stats":{
        "adverTx":248455,
        "adverRx":1,
        "neighborAdverTx":1,
        "transitions":2
      },
      "addresses":[
        "2001:50::1"
      ]
    }
  }
]
vrrp1#
```

After Fix:

```
vrrp1# show vrrp interface swp5.101 json
[
  {
    "vrid":2,
    "version":3,
    "autoconfigured":false,
    "shutdown":false,
    "preemptMode":true,
    "acceptMode":true,
    "interface":"swp5.101",
    "advertisementInterval":1000,
    "priority":110, ====> priority added into json output
    "v4":{
      "interface":"vrrp4-11-2",
      "vmac":"00:00:5e:00:01:02",
      "primaryAddress":"50.0.0.2",
      "status":"Master",
      "effectivePriority":110,
      "masterAdverInterval":1000,
      "skewTime":570,
      "masterDownInterval":3570,
      "stats":{
        "adverTx":15,
        "adverRx":4,
        "garpTx":1,
        "transitions":2
      },
      "addresses":[
        "50.0.0.1"
      ]
    },
    "v6":{
      "interface":"vrrp6-11-2",
      "vmac":"00:00:5e:00:02:02",
      "primaryAddress":"fe80::7f1:49e7:768c:aa73",
      "status":"Master",
      "effectivePriority":110,
      "masterAdverInterval":1000,
      "skewTime":570,
      "masterDownInterval":3570,
      "stats":{
        "adverTx":13,
        "adverRx":5,
        "neighborAdverTx":1,
        "transitions":2
      },
      "addresses":[
        "2001:50::1"
      ]
    }
  }
]
```

Ticket:#3502432

Issue:3502432

Testing: UT done

Signed-off-by: Sindhu Parvathi Gopinathan's <sgopinathan@nvidia.com>
2023-06-19 10:59:06 -07:00
.github
alpine
babeld
bfdd Merge pull request #13675 from zmw12306/bfd_version_check 2023-06-11 14:16:50 +03:00
bgpd bgpd: some safi's do not mix with bgp suppress-fib 2023-06-14 15:15:13 -04:00
debian debian, redhat: updating changelog for new release 2023-06-06 15:21:30 -05:00
doc doc: Fix one syntax error for code block 2023-06-14 22:23:15 +08:00
docker docker: ubuntu-ci 18.04 -> 22.04, topotest parallel run examples 2023-06-09 03:19:20 -04:00
eigrpd eigrpd: dest_addr does not need to be set to NULL 2023-06-01 08:58:16 -04:00
fpm
gdb
grpc
include
isisd isisd: fix wrongly disabled flex-algo 2023-06-01 14:26:39 +02:00
ldpd ldpd: changes for code maintainability 2023-06-14 16:42:26 +05:30
lib Merge pull request #13766 from LabNConsulting/chopps/mgmtd-cleanup 2023-06-13 22:50:39 +03:00
m4
mgmtd Merge pull request #13766 from LabNConsulting/chopps/mgmtd-cleanup 2023-06-13 22:50:39 +03:00
mlag
nhrpd
ospf6d ospf6d: Prevent redundant LSA generation before interface goes down 2023-05-31 16:44:44 -04:00
ospfclient
ospfd Merge pull request #13612 from chiragshah6/fdev1 2023-06-13 09:55:07 -04:00
pathd
pbrd pbrd, zebra: fix zapi and netlink rule encoding 2023-06-12 16:39:26 -04:00
pceplib
pimd Merge pull request #13765 from AbhishekNR/query-max-response-time 2023-06-18 11:48:29 +03:00
pkgsrc
python
qpb
redhat debian, redhat: updating changelog for new release 2023-06-06 15:21:30 -05:00
ripd ripd: embed BFD YANG models 2023-05-25 13:47:54 +02:00
ripngd
sharpd
snapcraft
staticd staticd: staticd no longer loads config files 2023-06-12 02:02:18 -04:00
tests Merge pull request #13767 from opensourcerouting/fix/convert_rip_topo1_to_polling 2023-06-13 04:20:49 -04:00
tools tools: fix list value remove in frr-reload 2023-06-05 22:22:27 -07:00
vrrpd vrrpd: add priority field into interface json 2023-06-19 10:59:06 -07:00
vtysh vtysh: stop reading config file if user exits from root level. 2023-06-12 02:32:29 -04:00
watchfrr
yang
zebra Merge pull request #13755 from LabNConsulting/ziemba/zebra-dplane-priority 2023-06-13 10:36:57 -04:00
.clang-format
.dockerignore
.flake8
.git-blame-ignore-revs
.gitignore
.isort.cfg
.pylintrc
.travis.yml
bootstrap.sh
buildtest.sh
config.version.in
configure.ac build: FRR 9.1 development version 2023-06-06 14:03:19 -05:00
COPYING
Makefile.am
README.md
stamp-h.in
version.h

Icon

FRRouting

FRR is free software that implements and manages various IPv4 and IPv6 routing protocols. It runs on nearly all distributions of Linux and BSD and supports all modern CPU architectures.

FRR currently supports the following protocols:

  • BGP
  • OSPFv2
  • OSPFv3
  • RIPv1
  • RIPv2
  • RIPng
  • IS-IS
  • PIM-SM/MSDP
  • LDP
  • BFD
  • Babel
  • PBR
  • OpenFabric
  • VRRP
  • EIGRP (alpha)
  • NHRP (alpha)

Installation & Use

For source tarballs, see the releases page.

For Debian and its derivatives, use the APT repository at https://deb.frrouting.org/.

Instructions on building and installing from source for supported platforms may be found in the developer docs.

Once installed, please refer to the user guide for instructions on use.

Community

The FRRouting email list server is located here and offers the following public lists:

Topic List
Development dev@lists.frrouting.org
Users & Operators frog@lists.frrouting.org
Announcements announce@lists.frrouting.org

For chat, we currently use Slack. You can join by clicking the "Slack" link under the Participate section of our website.

Contributing

FRR maintains developer's documentation which contains the project workflow and expectations for contributors. Some technical documentation on project internals is also available.

We welcome and appreciate all contributions, no matter how small!

Security

To report security issues, please use our security mailing list:

security [at] lists.frrouting.org