Advertisement
Guest User

new_commit_msg

a guest
Aug 3rd, 2015
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. Exclude the virtual interfaces for collecting stats
  2.  
  3. The /details api provides details about the amphora VM.
  4. It reads the interface's statistics file
  5. /sys/class/net/{interface}/statistics/{type}_bytes
  6. to collect all the stats. While doing so it tries read the
  7. stat files of the virtual interfaces like eth0:1 also,
  8. which are not available and throws an exception. This
  9. fix excludes virtual interfaces while collecting the
  10. stats by checking whether the interface name has : in it
  11.  
  12. Closes-Bug:1466688
  13. Change-Id: Ie2786f18b96881ba600a338bcad916677709a5b3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement