Module Expr Str ImportFrom alias ImportFrom alias Import alias Import alias Import alias identifier Import alias Import alias Import alias Import alias FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Str Return SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias alias alias alias Assign NameStore Call NameLoad Dict Call NameLoad AttributeLoad NameLoad attr Dict Call NameLoad Str Str Dict AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body If CompareEq NameLoad Dict body Continue Assign NameStore BinOpAdd ListLoad BinOpAdd Str NameLoad BinOpAdd Str NameLoad ListComp BinOpMod Str TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad If CompareNotEq NameLoad Str body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass TryExcept body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr BinOpAdd ListLoad Str NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Num For NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body AugAssignBitOr NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return Num decorator_list AttributeLoad AttributeLoad NameLoad attr attr If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad
N/A N/A 
@author: Tsuyoshi Hombashi
 __future__ absolute_import __future__ with_statement N/A sys N/A dataproperty N/A pyparsing pp N/A six N/A thutils N/A tcconfig N/A tcconfig.traffic_control parse_option N/A N/A N/A N/A N/A parser N/A N/A N/A thutils option ArgumentParserObject N/A N/A N/A parser make version N/A tcconfig VERSION N/A group N/A N/A N/A parser parser add_mutually_exclusive_group required True N/A N/A N/A group add_argument --device help network device name (e.g. eth0) N/A N/A N/A group add_argument -f --config-file help setting traffic controls from a configuration file.
        output file of the tcshow. N/A group N/A N/A parser add_argument_group Network Interface N/A N/A N/A group add_argument --overwrite action store_true default False help overwrite existing settings N/A group N/A N/A parser add_argument_group Traffic Control N/A N/A N/A group add_argument --direction choices N/A N/A N/A tcconfig traffic_control TrafficDirection LIST default N/A N/A N/A tcconfig traffic_control TrafficDirection OUTGOING help the direction of network communication that impose traffic control.
        ``incoming`` requires linux kernel version 2.6.20 or later.
        (default = ``%(default)s``)
         N/A N/A N/A group add_argument --rate dest bandwidth_rate help network bandwidth rate [K|M|G bps] N/A N/A N/A group add_argument --delay dest network_latency type float default 0 help round trip network delay [ms] (default=%(default)s) N/A N/A N/A group add_argument --delay-distro dest latency_distro_ms type float default 0 help 
        distribution of network latency becomes X +- Y [ms]
        (normal distribution), with this option.
        (X: value of --delay option, Y: value of --delay-dist option)
        network latency distribution will be uniform without this option.
         N/A N/A N/A group add_argument --loss dest packet_loss_rate type float default 0 help round trip packet loss rate [%%] (default=%(default)s) N/A N/A N/A group add_argument --corrupt dest corruption_rate type float default 0 help 
        packet corruption rate [%%].
        packet corruption means single bit error at a random offset in the packet.
        (default=%(default)s)
         N/A N/A N/A group add_argument --network help IP address/network of traffic control N/A N/A N/A group add_argument --port type int help port number of traffic control N/A N/A N/A parser parse_args N/A _parse_tc_filter_network N/A N/A text N/A N/A N/A network_pattern N/A N/A N/A pp SkipTo network= include True N/A N/A pp Word N/A N/A N/A pp alphanums . / N/A N/A N/A N/A network_pattern parseString text N/A -1 N/A _parse_tc_filter_port N/A N/A text N/A N/A N/A port_pattern N/A N/A N/A pp SkipTo port= include True N/A N/A pp Word N/A pp nums N/A N/A N/A N/A port_pattern parseString text N/A -1 N/A load_tcconfig N/A N/A config_file N/A N/A voluptuous Schema Required Any ALLOW_EXTRA N/A schema N/A Schema N/A N/A Required N/A six text_type N/A N/A Any outgoing incoming N/A N/A six text_type N/A N/A six text_type N/A six text_type extra ALLOW_EXTRA N/A N/A N/A N/A N/A thutils loader JsonLoader load config_file schema N/A get_tcconfig_command_list N/A N/A config_table is_overwrite N/A N/A N/A command_list N/A N/A N/A device device_table N/A N/A six iteritems config_table N/A N/A is_overwrite N/A N/A N/A N/A command_list append N/A tcdel --device  device N/A N/A direction direction_table N/A N/A six iteritems device_table N/A N/A N/A tc_filter filter_table N/A N/A six iteritems direction_table N/A N/A N/A filter_table N/A N/A N/A N/A option_list N/A N/A N/A --device= device N/A --direction= direction N/A N/A --%s=%s N/A k v N/A N/A k v N/A N/A six iteritems filter_table N/A N/A N/A network N/A _parse_tc_filter_network tc_filter N/A N/A network 0.0.0.0/0 N/A N/A N/A N/A option_list append N/A --network= network N/A N/A N/A N/A pp ParseException N/A N/A N/A N/A N/A port N/A _parse_tc_filter_port tc_filter N/A N/A N/A option_list append N/A --port= port N/A N/A N/A N/A pp ParseException N/A N/A N/A N/A N/A command_list append N/A N/A join N/A N/A tcset option_list N/A command_list N/A main N/A N/A N/A N/A N/A options N/A parse_option N/A N/A N/A thutils initialize_library __file__ options N/A N/A N/A N/A thutils common verify_install_command N/A tc N/A subproc_wrapper N/A N/A N/A thutils subprocwrapper SubprocessWrapper N/A N/A N/A dataproperty is_not_empty_string N/A options config_file N/A N/A return_code 0 N/A tcconfig_command N/A get_tcconfig_command_list N/A load_tcconfig N/A options config_file N/A options overwrite N/A N/A return_code N/A N/A subproc_wrapper run tcconfig_command N/A return_code N/A tc N/A N/A N/A tcconfig traffic_control TrafficControl subproc_wrapper N/A options device N/A N/A tc direction N/A options direction N/A N/A tc bandwidth_rate N/A options bandwidth_rate N/A N/A tc latency_ms N/A options network_latency N/A N/A tc latency_distro_ms N/A options latency_distro_ms N/A N/A tc packet_loss_rate N/A options packet_loss_rate N/A N/A tc corruption_rate N/A options corruption_rate N/A N/A tc network N/A options network N/A N/A tc port N/A options port N/A N/A N/A tc validate N/A N/A options overwrite N/A N/A N/A N/A tc delete_tc N/A N/A N/A tc set_tc N/A 0 N/A N/A N/A thutils main Main N/A N/A __name__ __main__ N/A N/A N/A N/A sys exit N/A main