Advertisement
Guest User

new_commit_msg_2

a guest
Aug 3rd, 2015
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. Exclude 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
  14.  
  15. # Please enter the commit message for your changes. Lines starting
  16. # with '#' will be ignored, and an empty message aborts the commit.
  17. # On branch bug_1466688
  18. # Changes to be committed:
  19. # modified: amphora_info.py
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement