Skip to content

Commit

Permalink
Adding CLI output format for show-nhg-group
Browse files Browse the repository at this point in the history
  • Loading branch information
kktheballer committed Dec 21, 2020
1 parent a93dc72 commit 5c4151a
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions doc/ecmp/fine_grained_next_hop_hld.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,17 +195,17 @@ CLI commands:
show fg nhg active-hops <fg-nhg-group-name> (shows which set of next-hops are active)
```

### 2.3.1 CLI 'show fg nhg hash-view' Output Format
### 2.3.1 CLI 'show fg-nhg-hash-view' Output Format
```
Next-Hop-Key Hash Bucket #
-------------- -----------------------------------------------------------------------------------------------------------------------
200.200.200.1 ['88', '89', '102', '103', '100', '101', '99', '98', '91', '90', '93', '92', '95', '94', '97', '96']
200.200.200.2 ['41', '20', '21', '22', '23', '15', '17', '16', '19', '18', '46', '44', '45', '42', '43', '40']
200.200.200.3 ['64', '65', '66', '67', '68', '69', '77', '76', '75', '74', '73', '72', '71', '70', '78']
200.200.200.1 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
200.200.200.2 [47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63]
200.200.200.3 [24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39]
...
```

### 2.3.2 CLI 'show fg nhg active-hops' Output Format
### 2.3.2 CLI 'show fg-nhg-active-hops' Output Format
```
Active-Hops
--------------
Expand All @@ -215,7 +215,22 @@ Active-Hops
...
```

### 2.3.3 CLI 'show fg-nhg-group' Output Format
```
NHG_PREFIX:
fc:5::/128
Hash Bucket Size:
128
Next-Hop-Key Hash Bucket #
------------------ -------------------------------------------------------------------------------------
200:200:200:200::1 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
200:200:200:200::2 [47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63]
200:200:200:200::3 [24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39]
...
```


Show CLI commands of ```show fg nhg hash-view``` and ```show fg nhg active-hops``` are implemented as a view of the state db table described in section 2.2
Expand Down

0 comments on commit 5c4151a

Please sign in to comment.