Module Expr Str ImportFrom alias Import alias Import alias identifier If AttributeLoad NameLoad attr body Import alias orelse Import alias identifier FunctionDef arguments args NameParam NameParam defaults body While CompareLt NameLoad NameLoad body Expr Yield NameLoad AugAssignAdd NameStore Num decorator_list Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str ListLoad Str Str Str Str Str ListLoad Str Str Str Str ListLoad Str Str Str Str ListLoad Str Str Str Str Str Str Str ListLoad Str Str Str Str Str Str Str ListLoad Str Str Str Str Str Str Str ListLoad Str Str Str Str Str Str Str ListLoad Str Str Str Str Str Str Str ListLoad Str Str Str Str Str Str Str ListLoad Str Str Str Str Str Str Str ListLoad Str Str Str Str Str Str Str ListLoad Str Str Str Str Str Str Str ListLoad Str Str Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str ListLoad Str ListLoad Str ListLoad Str ListLoad ListLoad ListLoad ListLoad ListLoad ListLoad ListLoad ListLoad ListLoad ListLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str ListLoad Str Str Str ListLoad Str Str Str ListLoad Str Str Str ListLoad Str Str Str ListLoad Str Str Str Str ListLoad Str Str Str Str ListLoad Str Str Str Str ListLoad Str Str Str Str ListLoad Str Str Str ListLoad Str Str Str Str ListLoad Str Str Str Str ListLoad Str Str Str Str ListLoad Str Str Str FunctionDef arguments args defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Return NameLoad Return TupleLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad Str attr Call NameLoad Assign NameStore Call AttributeLoad Call SubscriptLoad NameLoad Index Str NameLoad attr Return SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str NameLoad kwarg body Expr Str Assign NameStore SubscriptLoad NameLoad Index NameLoad If UnaryOpNot NameLoad body Return Str If UnaryOpNot NameLoad body Return Str If CompareNotIn NameLoad NameLoad body Return Str For NameStore SubscriptLoad NameLoad Index NameLoad body If CompareNotIn NameLoad NameLoad body Return Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad NameLoad For NameStore SubscriptLoad NameLoad Index NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad If CompareIn Str SubscriptLoad NameLoad Index NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad Str body Expr Str If UnaryOpNot NameLoad body Return Str Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad Str body Expr Str If UnaryOpNot NameLoad body Return Str If UnaryOpNot NameLoad body Return Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return Str Assign NameStore Call NameLoad NameLoad If NameLoad body Return Str Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults Str body Expr Str Assign NameStore Call AttributeLoad Str attr Call NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Num Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Dict For NameStore NameLoad body If CompareEq Call NameLoad NameLoad Num body Assign NameStore BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr Dict Continue Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad SubscriptLoad NameLoad Slice Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad Str body Expr Str If UnaryOpNot NameLoad body Return Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad Str kwarg body Expr Str If UnaryOpNot NameLoad body Return Str If UnaryOpNot NameLoad body Return Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return Call AttributeLoad Str attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad Str attr NameLoad If CompareIn Str NameLoad body If CompareNotIn Str SubscriptLoad NameLoad Index Str body Return Call AttributeLoad Str attr NameLoad If BoolOpOr CompareIn Str NameLoad CompareIn Str NameLoad body If CompareNotIn Str SubscriptLoad NameLoad Index Str body Return Call AttributeLoad Str attr NameLoad If CompareIn Str NameLoad body If CompareNotIn Str SubscriptLoad NameLoad Index Str body Return Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad SubscriptLoad NameLoad Index Str For NameStore SubscriptLoad NameLoad Index NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad NameLoad If CompareIn NameLoad NameLoad body Return Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad If CompareEq Call NameLoad NameLoad Num body Return Str Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad Str kwarg body Expr Str If UnaryOpNot NameLoad body Return Str If UnaryOpNot NameLoad body Return Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad If CompareEq Call NameLoad NameLoad Num body Return Str Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad Str body Expr Str If UnaryOpNot NameLoad body Return Str If UnaryOpNot NameLoad body Return Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return Call AttributeLoad Str attr NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Slice Num If BoolOpAnd CompareNotEq Call AttributeLoad NameLoad attr Str Num CompareEq Call AttributeLoad NameLoad attr Str Num body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str If CompareEq NameLoad Str body If NameLoad body Assign NameStore ListComp Call AttributeLoad Str attr ListLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr NameLoad comprehension NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad BinOpAdd Call AttributeLoad NameLoad attr NameLoad Num orelse Assign NameStore ListComp Call AttributeLoad Str attr ListLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad BinOpAdd Call AttributeLoad NameLoad attr NameLoad Num orelse If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body If NameLoad body Assign NameStore Call AttributeLoad Str attr ListLoad Call NameLoad SubscriptLoad NameLoad Index Num Call AttributeLoad Str attr NameLoad orelse Assign NameStore Call AttributeLoad Str attr ListLoad Call NameLoad SubscriptLoad NameLoad Index Num orelse If NameLoad body Assign NameStore Call AttributeLoad Str attr ListLoad Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad orelse Assign NameStore Call AttributeLoad Str attr ListLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore ListLoad NameLoad orelse If BoolOpAnd CompareNotEq Call AttributeLoad NameLoad attr Str Num CompareEq Call AttributeLoad NameLoad attr Str Num body If CompareEq NameLoad Str body If NameLoad body Assign NameStore ListComp Call AttributeLoad Str attr ListLoad Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore ListComp Call AttributeLoad Str attr ListLoad Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body If NameLoad body Assign NameStore ListLoad Call AttributeLoad Str attr ListLoad SubscriptLoad NameLoad Index Num Call AttributeLoad Str attr NameLoad orelse Assign NameStore ListLoad Call AttributeLoad Str attr ListLoad SubscriptLoad NameLoad Index Num orelse Assign NameStore ListLoad NameLoad orelse Assign NameStore ListLoad NameLoad orelse Assign NameStore ListLoad NameLoad Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad Str kwarg body Expr Str If UnaryOpNot NameLoad body Return Str If UnaryOpNot NameLoad body Return Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad If CompareGt SubscriptLoad NameLoad Index Str Num body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad Str body Expr Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return Call AttributeLoad Str attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If NameLoad body Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad orelse Assign NameStore Call AttributeLoad Str attr Call NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad If CompareEq Call NameLoad NameLoad Num body Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad If CompareGt SubscriptLoad NameLoad Index Str Num body Return NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign NameStore ListLoad Assign NameStore NameLoad For NameStore NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad If CompareGt SubscriptLoad NameLoad Index Str Num body Return NameLoad Assign NameStore Dict Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str For NameStore NameLoad body If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Slice Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If NameLoad body Return SubscriptLoad NameLoad Index Str orelse Return NameLoad decorator_list
N/A N/A 
Support for ipset
 __future__ absolute_import N/A logging N/A salt.ext.six six N/A N/A six PY3 N/A N/A ipaddress N/A N/A salt.ext.ipaddress ipaddress long_range N/A N/A start end N/A N/A N/A N/A start end N/A N/A N/A start N/A start 1 N/A N/A salt.utils N/A log N/A N/A logging getLogger __name__ N/A _IPSET_FAMILIES N/A ipv4 ip4 ipv6 ip6 inet inet inet6 inet6 N/A _IPSET_SET_TYPES N/A bitmap:ip bitmap:ip,mac bitmap:port hash:ip hash:ip,port hash:ip,port,ip hash:ip,port,net hash:net hash:net,net hash:net,iface hash:net,port hash:net,port,net list:set N/A _CREATE_OPTIONS N/A bitmap:ip bitmap:ip,mac bitmap:port hash:ip hash:net hash:net,net hash:net,port hash:net,port,net hash:ip,port,ip hash:ip,port,net hash:ip,port hash:net,iface list:set N/A range netmask timeout counters comment N/A range timeout counters comment N/A range timeout counters comment N/A family hashsize maxelem netmask timeout counters comment N/A family hashsize maxelem netmask timeout counters comment N/A family hashsize maxelem netmask timeout counters comment N/A family hashsize maxelem netmask timeout counters comment N/A family hashsize maxelem netmask timeout counters comment N/A family hashsize maxelem netmask timeout counters comment N/A family hashsize maxelem netmask timeout counters comment N/A family hashsize maxelem netmask timeout counters comment N/A family hashsize maxelem netmask timeout counters comment N/A size timeout counters comment N/A _CREATE_OPTIONS_REQUIRED N/A bitmap:ip bitmap:ip,mac bitmap:port hash:ip hash:net hash:net,net hash:ip,port hash:net,port hash:ip,port,ip hash:ip,port,net hash:net,port,net hash:net,iface list:set N/A range N/A range N/A range N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A _ADD_OPTIONS N/A bitmap:ip bitmap:ip,mac bitmap:port hash:ip hash:net hash:net,net hash:net,port hash:net,port,net hash:ip,port,ip hash:ip,port,net hash:ip,port hash:net,iface list:set N/A timeout packets bytes N/A timeout packets bytes N/A timeout packets bytes N/A timeout packets bytes N/A timeout nomatch packets bytes N/A timeout nomatch packets bytes N/A timeout nomatch packets bytes N/A timeout nomatch packets bytes N/A timeout packets bytes N/A timeout nomatch packets bytes N/A timeout nomatch packets bytes N/A timeout nomatch packets bytes N/A timeout packets bytes __virtual__ N/A N/A N/A N/A N/A 
    Only load the module if ipset is installed
     N/A N/A N/A N/A salt utils which ipset N/A N/A True N/A N/A False The ipset execution modules cannot be loaded: ipset binary not in path. N/A _ipset_cmd N/A N/A N/A N/A N/A 
    Return correct command
     N/A N/A N/A N/A salt utils which ipset N/A version N/A N/A N/A N/A N/A 
    Return version from ipset --version

    CLI Example:

    .. code-block:: bash

        salt '*' ipset.version

     N/A cmd N/A N/A {0} --version format N/A _ipset_cmd N/A out N/A N/A N/A N/A __salt__ N/A cmd.run cmd split N/A N/A out N/A 1 N/A new_set N/A N/A set set_type family comment N/A None None ipv4 False kwargs N/A N/A 
    .. versionadded:: 2014.7.0

    Create new custom set

    CLI Example:

    .. code-block:: bash

        salt '*' ipset.new_set custom_set list:set

        salt '*' ipset.new_set custom_set list:set comment=True

        IPv6:
        salt '*' ipset.new_set custom_set list:set family=ipv6
     N/A ipset_family N/A _IPSET_FAMILIES N/A family N/A N/A set N/A N/A Error: Set needs to be specified N/A N/A set_type N/A N/A Error: Set Type needs to be specified N/A N/A set_type _IPSET_SET_TYPES N/A N/A Error: Set Type is invalid N/A item N/A _CREATE_OPTIONS_REQUIRED N/A set_type N/A N/A N/A item kwargs N/A N/A N/A N/A Error: {0} is a required argument format item N/A cmd N/A N/A {0} create {1} {2} format N/A _ipset_cmd set set_type N/A item N/A _CREATE_OPTIONS N/A set_type N/A N/A N/A item kwargs N/A N/A cmd N/A N/A {0} {1} {2}  format cmd item N/A kwargs N/A item N/A N/A family N/A _CREATE_OPTIONS N/A set_type N/A N/A cmd N/A N/A {0} family {1} format cmd ipset_family N/A comment N/A N/A cmd N/A N/A {0} comment format cmd N/A out N/A N/A __salt__ N/A cmd.run cmd python_shell False N/A N/A out N/A N/A out True N/A out N/A delete_set N/A N/A set family N/A None ipv4 N/A N/A 
    .. versionadded:: 2014.7.0

    Delete ipset set.

    CLI Example:

    .. code-block:: bash

        salt '*' ipset.delete_set custom_set

        IPv6:
        salt '*' ipset.delete_set custom_set family=ipv6
     N/A N/A set N/A N/A Error: Set needs to be specified N/A cmd N/A N/A {0} destroy {1} format N/A _ipset_cmd set N/A out N/A N/A __salt__ N/A cmd.run cmd python_shell False N/A N/A out N/A N/A out True N/A out N/A rename_set N/A N/A set new_set family N/A None None ipv4 N/A N/A 
    .. versionadded:: 2014.7.0

    Delete ipset set.

    CLI Example:

    .. code-block:: bash

        salt '*' ipset.rename_set custom_set new_set=new_set_name

        IPv6:
        salt '*' ipset.rename_set custom_set new_set=new_set_name family=ipv6
     N/A N/A set N/A N/A Error: Set needs to be specified N/A N/A new_set N/A N/A Error: New name for set needs to be specified N/A settype N/A _find_set_type set N/A N/A settype N/A N/A Error: Set does not exist N/A settype N/A _find_set_type new_set N/A settype N/A N/A Error: New Set already exists N/A cmd N/A N/A {0} rename {1} {2} format N/A _ipset_cmd set new_set N/A out N/A N/A __salt__ N/A cmd.run cmd python_shell False N/A N/A out N/A N/A out True N/A out N/A list_sets N/A N/A family N/A ipv4 N/A N/A 
    .. versionadded:: 2014.7.0

    List all ipset sets.

    CLI Example:

    .. code-block:: bash

        salt '*' ipset.list_sets

     N/A cmd N/A N/A {0} list -t format N/A _ipset_cmd N/A out N/A N/A __salt__ N/A cmd.run cmd python_shell False N/A _tmp N/A N/A out split N/A count 0 N/A sets N/A N/A N/A N/A sets append N/A N/A item _tmp N/A N/A N/A N/A len item 0 N/A N/A count N/A count 1 N/A N/A N/A sets append N/A N/A N/A N/A key value N/A N/A item split : 1 N/A N/A N/A sets N/A count N/A key N/A value N/A 1 N/A sets N/A check_set N/A N/A set family N/A None ipv4 N/A N/A 
    Check that given ipset set exists.

    .. versionadded:: 2014.7.0

    CLI Example:

    .. code-block:: bash

        salt '*' ipset.check_set setname

     N/A N/A set N/A N/A Error: Set needs to be specified N/A setinfo N/A _find_set_info set N/A N/A setinfo N/A N/A False N/A True N/A add N/A N/A set entry family N/A None None ipv4 kwargs N/A N/A 
    Append an entry to the specified set.

    CLI Example:

    .. code-block:: bash

        salt '*' ipset.add setname 192.168.1.26

        salt '*' ipset.add setname 192.168.0.3,AA:BB:CC:DD:EE:FF

     N/A N/A set N/A N/A Error: Set needs to be specified N/A N/A entry N/A N/A Error: Entry needs to be specified N/A setinfo N/A _find_set_info set N/A N/A setinfo N/A N/A N/A N/A Error: Set {0} does not exist format set N/A settype N/A setinfo N/A Type N/A cmd N/A N/A {0} format entry N/A N/A timeout kwargs N/A N/A N/A timeout N/A setinfo N/A Header N/A N/A N/A N/A Error: Set {0} not created with timeout support format set N/A N/A N/A packets kwargs N/A bytes kwargs N/A N/A N/A counters N/A setinfo N/A Header N/A N/A N/A N/A Error: Set {0} not created with counters support format set N/A N/A comment kwargs N/A N/A N/A comment N/A setinfo N/A Header N/A N/A N/A N/A Error: Set {0} not created with comment support format set N/A cmd N/A N/A {0} comment "{1}" format cmd N/A kwargs N/A comment N/A item N/A _ADD_OPTIONS N/A settype N/A N/A N/A item kwargs N/A N/A cmd N/A N/A {0} {1} {2} format cmd item N/A kwargs N/A item N/A current_members N/A _find_set_members set N/A N/A cmd current_members N/A N/A N/A N/A Warn: Entry {0} already exists in set {1} format cmd set N/A cmd N/A N/A {0} add -exist {1} {2} format N/A _ipset_cmd set cmd N/A out N/A N/A __salt__ N/A cmd.run cmd python_shell False N/A N/A N/A len out 0 N/A N/A Success N/A N/A N/A Error: {0} format out N/A delete N/A N/A set entry family N/A None None ipv4 kwargs N/A N/A 
    Delete an entry from the specified set.

    CLI Example:

    .. code-block:: bash

        salt '*' ipset.delete setname 192.168.0.3,AA:BB:CC:DD:EE:FF

     N/A N/A set N/A N/A Error: Set needs to be specified N/A N/A entry N/A N/A Error: Entry needs to be specified N/A settype N/A _find_set_type set N/A N/A settype N/A N/A N/A N/A Error: Set {0} does not exist format set N/A cmd N/A N/A {0} del {1} {2} format N/A _ipset_cmd set entry N/A out N/A N/A __salt__ N/A cmd.run cmd python_shell False N/A N/A N/A len out 0 N/A N/A Success N/A N/A N/A Error: {0} format out N/A check N/A N/A set entry family N/A None None ipv4 N/A N/A 
    Check that an entry exists in the specified set.

    set
        The ipset name

    entry
        An entry in the ipset.  This parameter can be a single IP address, a
        range of IP addresses, or a subnet block.  Example:

        .. code-block:: cfg

            192.168.0.1
            192.168.0.2-192.168.0.19
            192.168.0.0/25

    family
        IP protocol version: ipv4 or ipv6

    CLI Example:

    .. code-block:: bash

        salt '*' ipset.check setname '192.168.0.1 comment "Hello"'

     N/A N/A set N/A N/A Error: Set needs to be specified N/A N/A entry N/A N/A Error: Entry needs to be specified N/A settype N/A _find_set_type set N/A N/A settype N/A N/A N/A N/A Error: Set {0} does not exist format set N/A N/A isinstance entry list N/A N/A entries entry N/A N/A _entry N/A N/A N/A entry split N/A 0 N/A _entry_extra N/A N/A N/A entry split N/A 1 N/A N/A N/A N/A N/A _entry find - -1 N/A N/A N/A _entry count - 1 N/A N/A N/A start end N/A N/A _entry split - N/A N/A settype hash:ip N/A N/A _entry_extra N/A N/A entries N/A N/A N/A join N/A N/A str N/A N/A ipaddress ip_address ip N/A N/A join _entry_extra N/A ip N/A long_range N/A N/A ipaddress ip_address start N/A N/A N/A ipaddress ip_address end 1 N/A N/A entries N/A N/A N/A join N/A N/A str N/A N/A ipaddress ip_address ip N/A ip N/A long_range N/A N/A ipaddress ip_address start N/A N/A N/A ipaddress ip_address end 1 N/A N/A N/A settype hash:net N/A N/A networks N/A N/A ipaddress summarize_address_range N/A N/A ipaddress ip_address start N/A N/A ipaddress ip_address end N/A entries N/A N/A network networks N/A N/A _network N/A N/A str ip N/A ip N/A N/A ipaddress ip_network network N/A N/A N/A len _network 1 N/A N/A _entry_extra N/A N/A __network N/A N/A join N/A N/A str N/A _network N/A 0 N/A N/A join _entry_extra N/A N/A __network N/A N/A join N/A N/A str N/A _network N/A 0 N/A N/A _entry_extra N/A N/A __network N/A N/A join N/A N/A str network N/A N/A join _entry_extra N/A N/A __network N/A N/A join N/A N/A str network N/A N/A N/A entries append __network N/A N/A entries N/A entry N/A N/A N/A N/A N/A N/A _entry find / -1 N/A N/A N/A _entry count / 1 N/A N/A N/A settype hash:ip N/A N/A _entry_extra N/A N/A entries N/A N/A N/A join N/A N/A str ip N/A N/A join _entry_extra N/A ip N/A N/A ipaddress ip_network _entry N/A N/A entries N/A N/A N/A join N/A N/A str ip N/A ip N/A N/A ipaddress ip_network _entry N/A N/A N/A settype hash:net N/A N/A _entries N/A N/A str ip N/A ip N/A N/A ipaddress ip_network _entry N/A N/A N/A len _entries 1 N/A N/A _entry_extra N/A N/A entries N/A N/A N/A join N/A N/A _entries N/A 0 N/A N/A join _entry_extra N/A N/A entries N/A N/A N/A join N/A N/A _entries N/A 0 N/A N/A entries N/A entry N/A N/A entries N/A entry N/A N/A entries N/A entry N/A current_members N/A _find_set_members set N/A entry entries N/A N/A N/A entry current_members N/A N/A False N/A True N/A test N/A N/A set entry family N/A None None ipv4 kwargs N/A N/A 
    Test if an entry is in the specified set.

    CLI Example:

    .. code-block:: bash

        salt '*' ipset.test setname 192.168.0.2

        IPv6:
        salt '*' ipset.test setname fd81:fc56:9ac7::/48
     N/A N/A set N/A N/A Error: Set needs to be specified N/A N/A entry N/A N/A Error: Entry needs to be specified N/A settype N/A _find_set_type set N/A N/A settype N/A N/A N/A N/A Error: Set {0} does not exist format set N/A cmd N/A N/A {0} test {1} {2} format N/A _ipset_cmd set entry N/A out N/A N/A __salt__ N/A cmd.run_all cmd python_shell False N/A N/A N/A out N/A retcode 0 N/A N/A False N/A True N/A flush N/A N/A set family N/A None ipv4 N/A N/A 
    Flush entries in the specified set,
    Flush all sets if set is not specified.

    CLI Example:

    .. code-block:: bash

        salt '*' ipset.flush

        salt '*' ipset.flush set

        IPv6:
        salt '*' ipset.flush

        salt '*' ipset.flush set
     N/A settype N/A _find_set_type set N/A N/A settype N/A N/A N/A N/A Error: Set {0} does not exist format set N/A ipset_family N/A _IPSET_FAMILIES N/A family N/A set N/A N/A cmd N/A N/A {0} flush {1} format N/A _ipset_cmd set N/A N/A cmd N/A N/A {0} flush format N/A _ipset_cmd N/A out N/A N/A __salt__ N/A cmd.run cmd python_shell False N/A N/A N/A len out 0 N/A N/A True N/A N/A False N/A _find_set_members N/A N/A set N/A N/A N/A 
    Return list of members for a set
     N/A cmd N/A N/A {0} list {1} format N/A _ipset_cmd set N/A out N/A N/A __salt__ N/A cmd.run_all cmd python_shell False N/A N/A N/A out N/A retcode 0 N/A N/A False N/A _tmp N/A N/A N/A out N/A stdout split N/A members N/A N/A startMembers False N/A i _tmp N/A N/A startMembers N/A N/A N/A N/A members append i N/A N/A Members: i N/A N/A startMembers True N/A members N/A _find_set_info N/A N/A set N/A N/A N/A 
    Return information about the set
     N/A cmd N/A N/A {0} list -t {1} format N/A _ipset_cmd set N/A out N/A N/A __salt__ N/A cmd.run_all cmd python_shell False N/A N/A N/A out N/A retcode 0 N/A N/A False N/A setinfo N/A N/A _tmp N/A N/A N/A out N/A stdout split N/A item _tmp N/A N/A N/A : item N/A N/A N/A key value N/A N/A item split : 1 N/A N/A setinfo N/A key N/A value N/A 1 N/A setinfo N/A _find_set_type N/A N/A set N/A N/A N/A 
    Find the type of the set
     N/A setinfo N/A _find_set_info set N/A setinfo N/A N/A N/A setinfo N/A Type N/A N/A False N/A