Module Expr Str ImportFrom alias TryExcept body ImportFrom alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Import alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Dict Assign NameStore Call NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Return Call NameLoad Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args defaults body If NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Return TupleLoad NameLoad Str orelse For NameStore NameLoad body If CompareEq NameLoad Str body Continue If UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body Return TupleLoad NameLoad Str orelse If UnaryOpNot Call NameLoad GeneratorExp CompareIn NameLoad NameLoad comprehension NameStore SubscriptLoad NameLoad Index NameLoad body Return TupleLoad NameLoad Str Return TupleLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict For NameStore NameLoad body Assign NameStore Call NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Dict Global identifier Assign NameStore NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore NameLoad If BoolOpAnd CompareIn Str NameLoad SubscriptLoad NameLoad Index Str body Assign NameStore NameLoad Assign NameStore Dict For NameStore NameLoad body If CompareEq NameLoad Str body Continue If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Str Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore NameLoad Assign NameStore BinOpSub SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Dict If NameLoad body Assign NameStore Dict Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore SubscriptLoad NameLoad Index NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore NameLoad If BoolOpAnd SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad CompareIn Str SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad If BoolOpOr UnaryOpNot NameLoad CompareEq NameLoad NameLoad body Assign NameStore NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad If NameLoad body If NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad NameLoad If BoolOpAnd NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Return NameLoad decorator_list
N/A N/A 
Beacon to monitor network adapter setting changes on Linux

 __future__ absolute_import N/A N/A pyroute2.ipdb IPDB N/A HAS_PYROUTE2 True N/A N/A N/A ImportError N/A N/A HAS_PYROUTE2 False N/A ast N/A re N/A salt.loader N/A logging N/A log N/A N/A logging getLogger __name__ N/A __virtual_name__ network_settings N/A ATTRS N/A family txqlen ipdb_scope index operstate group carrier_changes ipaddr neighbours ifname promiscuity linkmode broadcast address num_tx_queues ipdb_priority change kind qdisc mtu num_rx_queues carrier flags ifi_type ports N/A LAST_STATS N/A N/A IP N/A IPDB Hashabledict N/A dict N/A N/A 
    Helper class that implements a hash function for a dictionary
     __hash__ N/A N/A self N/A N/A N/A N/A hash N/A tuple N/A sorted N/A N/A self items N/A N/A __virtual__ N/A N/A N/A N/A N/A HAS_PYROUTE2 N/A N/A __virtual_name__ N/A False N/A validate N/A N/A config N/A N/A N/A 
    Validate the beacon configuration
     N/A N/A N/A isinstance config dict N/A N/A N/A False Configuration for network_settings beacon must be a dictionary. N/A N/A item config N/A N/A N/A item coalesce N/A N/A N/A N/A N/A isinstance N/A config N/A item dict N/A N/A N/A False Configuration for network_settings beacon must be a dictionary of dictionaries. N/A N/A N/A N/A all N/A N/A j ATTRS N/A j N/A config N/A item N/A N/A N/A False Invalid configuration item in Beacon configuration. N/A N/A True Valid beacon configuration N/A _copy_interfaces_info N/A N/A interfaces N/A N/A N/A 
    Return a dictionary with a copy of each interface attributes in ATTRS
     N/A ret N/A N/A interface interfaces N/A N/A _interface_attrs_cpy N/A set N/A attr ATTRS N/A N/A attr_dict N/A Hashabledict N/A N/A attr_dict N/A attr N/A repr N/A N/A interfaces N/A interface N/A attr N/A N/A N/A _interface_attrs_cpy add attr_dict N/A N/A ret N/A interface _interface_attrs_cpy N/A ret N/A beacon N/A N/A config N/A N/A N/A 
    Watch for changes on network settings

    By default, the beacon will emit when there is a value change on one of the
    settings on watch. The config also support the onvalue parameter for each
    setting, which instruct the beacon to only emit if the setting changed to the
    value defined.

    Example Config

    .. code-block:: yaml

        beacons:
          eth0:
            ipaddr:
            promiscuity:
              onvalue: 1
          eth1:
            linkmode:

    The config above will check for value changes on eth0 ipaddr and eth1 linkmode. It will also
    emit if the promiscuity value changes to 1.

    Beacon items can use the * wildcard to make a definition apply to several interfaces. For
    example an eth* would apply to all ethernet interfaces.

    Setting the argument coalesce = True will combine all the beacon results on a single event.
    The example below shows how to trigger coalesced results:

    .. code-block:: yaml

        beacons:
          coalesce: True
          eth0:
            ipaddr:
            promiscuity:

     N/A ret N/A N/A interfaces N/A N/A expanded_config N/A N/A LAST_STATS N/A coalesce False N/A _stats N/A _copy_interfaces_info N/A IP by_name N/A N/A LAST_STATS N/A N/A LAST_STATS _stats N/A N/A N/A coalesce config N/A config N/A coalesce N/A N/A coalesce True N/A changes N/A N/A item config N/A N/A N/A item coalesce N/A N/A N/A N/A item _stats N/A N/A N/A N/A interfaces append item N/A N/A interface_regexp N/A N/A item replace * [0-9]+ N/A interface _stats N/A N/A match N/A N/A re search interface_regexp interface N/A match N/A N/A N/A N/A interfaces append N/A N/A match group N/A N/A expanded_config N/A N/A N/A match group N/A config N/A item N/A expanded_config N/A N/A N/A N/A config update expanded_config N/A interface interfaces N/A N/A _send_event False N/A _diff_stats N/A N/A _stats N/A interface N/A LAST_STATS N/A interface N/A _ret_diff N/A N/A _diff_stats N/A N/A _diff_stats_dict N/A N/A N/A LAST_STATS N/A interface N/A _stats N/A interface N/A item _diff_stats N/A N/A N/A N/A _diff_stats_dict update item N/A attr N/A config N/A interface N/A N/A N/A attr _diff_stats_dict N/A N/A config_value None N/A N/A N/A N/A config N/A interface N/A attr N/A onvalue N/A N/A config N/A interface N/A attr N/A N/A config_value N/A N/A N/A config N/A interface N/A attr N/A onvalue N/A new_value N/A N/A ast literal_eval N/A _diff_stats_dict N/A attr N/A N/A N/A config_value N/A config_value new_value N/A N/A _send_event True N/A N/A _ret_diff N/A attr new_value N/A _send_event N/A N/A coalesce N/A N/A N/A changes N/A interface _ret_diff N/A N/A N/A N/A ret append N/A tag interface change interface interface _ret_diff N/A N/A coalesce changes N/A N/A grains_info N/A N/A N/A salt loader grains __opts__ True N/A N/A N/A __grains__ update grains_info N/A N/A N/A ret append N/A tag changes result changes N/A ret N/A