Module TryExcept body Import alias handlers ExceptHandler type NameLoad body Import alias identifier Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad keyword NameLoad keyword Dict Str Str FunctionDef arguments args NameParam defaults body TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Dict Str NameLoad Assign NameStore BinOpAdd Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr GeneratorExp NameLoad comprehension NameStore NameLoad CompareIn NameLoad AttributeLoad NameLoad attr If NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad orelse Assign AttributeStore NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str NameLoad Dict Str Str Str Str Str Str Str Str Num Num Num Num Num Num Num Num Dict Str Str Str Str Str Str Str Str Num Num Num Num Num Num Num Num For NameStore ListLoad Str Str body For TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return ListLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad For NameStore ListLoad Str Str body For TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword BinOpAdd BinOpAdd NameLoad Str NameLoad keyword Dict Str NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A N/A N/A commands N/A N/A N/A ImportError N/A N/A subprocess commands N/A string swiftlm.utils.utility get_swift_bind_ips UtilityExeception swiftlm.utils.utility ip_to_interface swiftlm.utils.metricdata MetricData swiftlm.utils.values Severity N/A BASE_RESULT N/A MetricData name __name__ messages N/A fail Could not discover a valid interface name str_to_num N/A N/A val N/A N/A N/A N/A N/A N/A int val N/A N/A N/A ValueError N/A N/A N/A N/A N/A float val N/A N/A N/A N/A val N/A get_interface_names N/A N/A ip_to_interface_map bind_ip_list N/A N/A N/A 
    Get set of unique interface names.

    :return: list of interface names
     N/A interface_name_list N/A set N/A ip_address bind_ip_list N/A N/A N/A N/A interface_name_list add N/A ip_to_interface_map N/A ip_address N/A interface_name_list N/A get_interface_speed N/A N/A interface_name N/A N/A N/A 
    Get the NIC speed of the specified interface

    :param interface_name: eth1
    :return: Response
     N/A c N/A N/A BASE_RESULT child dimensions N/A interface interface_name N/A command N/A ethtool  interface_name N/A interface_data N/A N/A commands getoutput command N/A speed N/A lines N/A N/A interface_data split N/A line lines N/A N/A N/A Speed line N/A N/A N/A _ speed N/A N/A line split : N/A speed N/A N/A join N/A c N/A c speed N/A c N/A string digits N/A speed N/A N/A N/A c value N/A str_to_num speed N/A N/A N/A c value 0 N/A c N/A get_interface_data N/A N/A interface_name N/A N/A N/A Turn the raw data line for an interface into a dict of values. N/A command N/A N/A cat /proc/net/dev | grep  interface_name : N/A interface_data N/A N/A commands getoutput command N/A data N/A N/A str_to_num val N/A val N/A N/A interface_data split N/A d N/A interface rx tx interface_name N/A bytes packets errs drop fifo frame compressed multicast 1 2 3 4 5 6 7 8 N/A bytes packets errs drop fifo colls carrier compressed 9 10 11 12 13 14 15 16 N/A x N/A rx tx N/A N/A N/A field_name field_index N/A N/A N/A d N/A x items N/A N/A N/A N/A d N/A x N/A field_name N/A data N/A field_index N/A d N/A run_network_interface_check N/A N/A N/A N/A N/A results N/A N/A ip_to_interface_map N/A ip_to_interface N/A bind_ip_list N/A get_swift_bind_ips N/A N/A N/A interface_names N/A get_interface_names ip_to_interface_map bind_ip_list N/A N/A N/A UtilityExeception N/A N/A c N/A N/A BASE_RESULT child N/A N/A c value N/A Severity fail N/A N/A c N/A interface_name interface_names N/A N/A N/A N/A results append N/A get_interface_speed interface_name N/A data N/A get_interface_data interface_name N/A x N/A rx tx N/A N/A N/A stat_name stat_count N/A N/A N/A data N/A x items N/A N/A c N/A N/A BASE_RESULT child name N/A N/A x . stat_name dimensions N/A interface interface_name N/A N/A c value stat_count N/A N/A N/A results append c N/A results N/A main N/A N/A N/A N/A N/A Check NIC speed and stats for each interface. N/A N/A run_network_interface_check N/A N/A N/A __name__ __main__ N/A N/A N/A main