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

config/switch: populate a "stats" section #19

Open
d-k-c opened this issue Oct 13, 2017 · 0 comments
Open

config/switch: populate a "stats" section #19

d-k-c opened this issue Oct 13, 2017 · 0 comments

Comments

@d-k-c
Copy link
Member

d-k-c commented Oct 13, 2017

Switches can report statistics through ethtool -S <ifname>, but they use different names for the same statistics. So we must keep a mapping of these names.

For starter, it would be great to have mappings for the following statistics under a stats section:

  • rx_broadcast
  • rx_multicast
  • rx_octets
  • rx_packets
  • rx_unicast
  • tx_broadcast
  • tx_multicast
  • tx_octets
  • tx_packets
  • tx_unicast
  • rx_broadcast
  • rx_multicast

So conf/switch/example-switch.cfg would look like this:

[stats]
rx_broadcast = "RxBroadcast"
rx_multicast = "RxMulticast"
rx_octets = "RxOctets"
rx_packets = "RxPackets"
rx_unicast = "RxUnicast"
tx_broadcast = "TxBroadcast"
tx_multicast = "TxMulticast"
tx_octets = "TxOctets"
tx_packets = "TxPackets"
tx_unicast = "TxUnicast"
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

No branches or pull requests

1 participant