]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: Use consistent JSON keys for `show ip ospf neighbor` and detail version 10837/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Mon, 21 Mar 2022 14:49:22 +0000 (16:49 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Mon, 21 Mar 2022 14:58:12 +0000 (16:58 +0200)
commit1c18b0d672a4b8fbfefa7cc6b6d07db789eb5779
tree9e8fef6468ccda7e2266e97960711cdf9c5a8f8b
parent13cd4ff4e1502fdf874d766df64782e4cd32986c
ospfd: Use consistent JSON keys for `show ip ospf neighbor` and detail version

At the moment it's inconsistent, and very annoying. Let's just fix this, and
add a deprecation period to remove them after that.

```
vr_ib# show ip ospf neighbor json
{
  "neighbors":{
    "192.10.120.2":[
      {
        "priority":1,
        "state":"Full\/DROther",
        "deadTimeMsecs":36543,
        "address":"192.10.120.2",
        "ifaceName":"VLINK0",
        "retransmitCounter":0,
        "requestCounter":0,
        "dbSummaryCounter":0
      },
```

```
vr_ib# show ip ospf neighbor detail json
{
  "neighbors":{
    "192.10.120.2":[
      {
        "ifaceAddress":"192.10.120.2",
        "areaId":"0.0.0.0",
        "ifaceName":"VLINK0",
        "nbrPriority":1,
        "nbrState":"Full",
        "stateChangeCounter":5,
        "lastPrgrsvChangeMsec":53367612,
        "routerDesignatedId":"0.0.0.0",
        "routerDesignatedBackupId":"0.0.0.0",
        "optionsCounter":66,
        "optionsList":"*|O|-|-|-|-|E|-",
        "routerDeadIntervalTimerDueMsec":33126,
        "databaseSummaryListCounter":0,
        "linkStateRequestListCounter":0,
        "linkStateRetransmissionListCounter":0,
        "threadInactivityTimer":"on",
        "threadLinkStateRequestRetransmission":"on",
        "threadLinkStateUpdateRetransmission":"on",
        "grHelperStatus":"None"
      },
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
ospfd/ospf_vty.c