]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: Support show intra-area network type in 'show ip ospf route' command
authorZhiyuan Wan <h@iloli.bid>
Mon, 3 Apr 2023 08:21:15 +0000 (16:21 +0800)
committerZhiyuan Wan <h@iloli.bid>
Tue, 18 Jul 2023 06:20:05 +0000 (14:20 +0800)
commit919b8f94b314029daf619a8583be448293856b5a
tree516ad78c50572c0ce2f87ed7c99bc7059051640a
parent1960b6b967663e72a75d66a6eab275297f47693f
ospfd: Support show intra-area network type in 'show ip ospf route' command

User can now use 'show ip ospf route detail' command to distinguish
intra-area stub network and transit network.
Transit network will be displayed as 'N T prefix ...'.

NOTICE: Json output format has been changed, intra-area transit networks
will have a new attribute 'transit' and value is 'true'.
And 'adv' (means advertise router) change to 'advertisedRouter'.

Example output:

bsp-debianrt-exp1# show ip ospf route detail
Codes: N  - network     T - transitive
       IA - inter-area  E - external route
       D  - destination R - router

============ OSPF network routing table ============
N T  10.0.0.0/24           [32] area: 0.0.0.0
                           via 192.168.124.67, ens192
                           adv 10.0.0.5
N    10.0.30.0/24          [33] area: 0.0.0.0
                           via 192.168.124.67, ens192
                           adv 10.0.0.5
...

Signed-off-by: Zhiyuan Wan <h@iloli.bid>
doc/user/ospfd.rst
ospfd/ospf_route.c
ospfd/ospf_route.h
ospfd/ospf_vty.c