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

add portalias field in PORT_TABLE #20

Closed
lguohan opened this issue Sep 29, 2016 · 2 comments
Closed

add portalias field in PORT_TABLE #20

lguohan opened this issue Sep 29, 2016 · 2 comments
Assignees

Comments

@lguohan
Copy link
Contributor

lguohan commented Sep 29, 2016

extend the port_config.ini format to have a port alias for each port. add a port alias field in the PORT_TABLE schema. populate port alias field in portsyncd.

This port alias will be used for by snmp subagent as the interface alias.

@antonpatenko antonpatenko self-assigned this Oct 10, 2016
@lguohan
Copy link
Contributor Author

lguohan commented Oct 11, 2016

port_config.ini current format:

# alias         lanes
Ethernet0       29,30,31,32
Ethernet4       25,26,27,28

port_config.ini future format. The alias can be optional, when there is no such field, then it won't appear in the port_table as well.

# name         lanes                alias
Ethernet0       29,30,31,32     fortyGigE0/0
Ethernet4       25,26,27,28     fortyGigE0/4

In the app db, port_tabel entry will has a new field/value.

127.0.0.1:6379> hgetall "PORT_TABLE:Ethernet0"
1) "lanes"
2) "29,30,31,32"
3) "admin_status"
4) "up"
5) "oper_status"
6) "up"
7) "mtu"
8) "1500"
9) "alias"
10) "fortyGigE0/0"

@stcheng
Copy link
Contributor

stcheng commented Apr 21, 2017

resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants