In the nh tool, need composite nh to be expanded recursively to show all destinations

Bug #1473532 reported by Vedamurthy Joshi
6
This bug affects 1 person
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:~#

Tags: vrouter
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/23312
Submitter: RAVI KIRAN (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/23312
Committed: http://github.org/Juniper/contrail-vrouter/commit/3932282512f3d485faffc2186157cf09b37b0992
Submitter: Zuul
Branch: master

commit 3932282512f3d485faffc2186157cf09b37b0992
Author: Ravi BK <email address hidden>
Date: Tue Aug 16 11:47:55 2016 +0530

nh tool to expand composite nh recursively

For better outputs, nh tool should expand composite nh and display
all destinations recursively

Change-Id: Ie639fb28e797edd57f6114308a71d21f745fd752
Closes-bug: #1473532

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/23417
Submitter: RAVI KIRAN (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/23418
Submitter: RAVI KIRAN (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/23417
Committed: http://github.org/Juniper/contrail-vrouter/commit/6e2080015215033f2dee1d0f4fcda63528bf241a
Submitter: Zuul
Branch: R3.0

commit 6e2080015215033f2dee1d0f4fcda63528bf241a
Author: Ravi BK <email address hidden>
Date: Tue Aug 16 11:47:55 2016 +0530

nh tool to expand composite nh recursively

For better outputs, nh tool should expand composite nh and display
all destinations recursively

Change-Id: Ie639fb28e797edd57f6114308a71d21f745fd752
Closes-bug: #1473532

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/23418
Committed: http://github.org/Juniper/contrail-vrouter/commit/b00f41fa1b218db8108b7c58dc1fb592d1fe8c48
Submitter: Zuul
Branch: R3.1

commit b00f41fa1b218db8108b7c58dc1fb592d1fe8c48
Author: Ravi BK <email address hidden>
Date: Tue Aug 16 11:47:55 2016 +0530

nh tool to expand composite nh recursively

For better outputs, nh tool should expand composite nh and display
all destinations recursively

Change-Id: Ie639fb28e797edd57f6114308a71d21f745fd752
Closes-bug: #1473532

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.