Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposed ECMP Next Hop CLI Show Cmd Output Format #659

Merged
merged 7 commits into from
Jan 20, 2021

Conversation

kktheballer
Copy link
Contributor

@kktheballer kktheballer commented Aug 11, 2020

Adding CLI command formats for

show fgnhg hash-view
show fgnhg active-hops

@@ -189,6 +189,29 @@ 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This supports a fg-nhg-group-name argument as listed in above section?

-------------- -----------------------------------------------------------------------------------------------------------------------
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']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about 88, 89, 102, 103 without the array like syntax and without single quotes?

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']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A sorted set of integer values for 'Hash Bucket #' may be better

@@ -189,6 +189,29 @@ CLI commands:
show fg nhg active-hops <fg-nhg-group-name> (shows which set of next-hops are active)
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also add details about cli output for 'show fg nhg group'?



+-----------------------------+--------------------+------------+
| FG_NHG_PREFIX | Active Next Hops | Bank Ids |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommend changing Bank Ids to Hash buckets and NIT: Active Next Hops to Next Hop

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok will adjust both PRs accordingly

Copy link
Contributor

@anish-n anish-n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Copy link
Contributor

@abdosi abdosi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

- Test warm reboot to ensure there is no traffic disruption and ECMP groups are correctly applied post warm boot
# SONiC Fine Grained ECMP
# High Level Design Document
### Rev 1.2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please can we update the rev number here to the latest 1.3.

@anish-n
Copy link
Contributor

anish-n commented Dec 21, 2020

Why does it appear that the whole file was modified, hope we can correct that since it helps with maintaining version history.

1) show ecmp fg-nhg-active-hops <fg-nhg-group-name>
2) show ecmp fg-nhg-hash-view <fg-nhg-group-name>

Also have added description about <fg-nhg-group-name> param
Merge conflict between Rev1.2 and Rev1.3 also resolved
### 2.3.1 CLI 'show fgnhg hash-view <fg-nhg-group-name>' Output Format
```

NOTE: <fg-nhg-group-name> is an optional parameter containing the user-defined alias of nhg ipv4 or nhg ipv6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest that we reword this to say NOTE: <fg-nhg-group-name> is an optional parameter containing the user-defined alias defined via FG_NHG entry

```

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
### 2.3.1 CLI 'show fgnhg hash-view <fg-nhg-group-name>' Output Format
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
This does not show up as expected when viewed as markdown in the reader, maybe a markdown syntax issue, can you please fix the same

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed and made some more changes within section description

Minor edit to section description as well
@abdosi
Copy link
Contributor

abdosi commented Jan 20, 2021

please add details in description

@abdosi abdosi merged commit acf4741 into sonic-net:master Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants