-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add network namespace attributes for NET
The network devices, like eth2, are settled in another network namespace via `ip netns add` in some scenarios in the production environment. In this case, we have to switch to that new netns to get network related statistics, e.g. reading from /proc/net/dev, /proc/net/snmp, /proc/net/snmp6. This patch firstly adds the needed attributes, like 'netns', for collecting and displaying network namespace statistics. Then the following patches will do the real implementation. To pass the compiling, also update for atopsar, parsable and json. Also format some lines according to astyle. Signed-off-by: Fei Li <[email protected]>
- Loading branch information
1 parent
c44c37a
commit ab7ee8c
Showing
10 changed files
with
1,146 additions
and
930 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.