In the nh tool, need composite nh to be expanded recursively to show all destinations
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R2.20 |
Won't Fix
|
Medium
|
Divakar Dharanalakota | |||
R3.0 |
Fix Committed
|
Medium
|
RAVI KIRAN | |||
R3.1 |
Fix Committed
|
Medium
|
RAVI KIRAN | |||
Trunk |
Fix Committed
|
Medium
|
RAVI KIRAN |
Bug Description
R2.20 Ubuntu 14.04
Today, to find out all destinations in the flood composite next-hop , users will have to repeatedly run nh commands for sub nexthops
It will be useful to be able to list all of these in one command output which would list all the destinations
root@nodeg11:~# nh --get 37
Id:37 Type:Composite Fmly:AF_BRIDGE Flags:Valid, Multicast, L2, Rid:0 Ref_cnt:3 Vrf:1
Sub NH(label): 19(0) 36(0) 23(0)
root@nodeg11:~# nh --get 19
Id:19 Type:Composite Fmly: AF_INET Flags:Valid, Tor, Rid:0 Ref_cnt:2 Vrf:1
Sub NH(label): 18(143)
root@nodeg11:~# nh --get 18
Id:18 Type:Tunnel Fmly: AF_INET Flags:Valid, Vxlan, Rid:0 Ref_cnt:3 Vrf:0
Oif:0 Len:14 Flags Valid, Vxlan, Data:2c 21 72 a0 4a 80 00 25 90 c4 76 5c 08 00
Vrf:0 Sip:10.204.217.51 Dip:99.99.99.99
root@nodeg11:~# nh --get 36
Id:36 Type:Composite Fmly: AF_INET Flags:Valid, Evpn, Rid:0 Ref_cnt:2 Vrf:1
Sub NH(label): 35(143)
root@nodeg11:~# nh --get 35
Id:35 Type:Tunnel Fmly: AF_INET Flags:Valid, Vxlan, Rid:0 Ref_cnt:5 Vrf:0
Oif:0 Len:14 Flags Valid, Vxlan, Data:2c 21 72 a0 4a 80 00 25 90 c4 76 5c 08 00
Vrf:0 Sip:10.204.217.51 Dip:7.7.7.77 <<<<< In my case, this is MX
root@nodeg11:~# nh --get 23
Id:23 Type:Composite Fmly: AF_INET Flags:Valid, Fabric, Rid:0 Ref_cnt:2 Vrf:1
Sub NH(label): 20(4098)
root@nodeg11:~# nh --get 20
Id:20 Type:Tunnel Fmly: AF_INET Flags:Valid, MPLSoGRE, Rid:0 Ref_cnt:3 Vrf:0
Oif:0 Len:14 Flags Valid, MPLSoGRE, Data:2c 21 72 a0 4a 80 00 25 90 c4 76 5c 08 00
Vrf:0 Sip:10.204.217.51 Dip:10.204.216.223
root@nodeg11:~#
Review in progress for https:/ /review. opencontrail. org/23312
Submitter: RAVI KIRAN (<email address hidden>)