Module Expr Str ImportFrom alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Import alias identifier Assign NameStore NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore NameLoad FunctionDef arguments args defaults body Expr Str If NameLoad body Return Str Return TupleLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Call AttributeLoad NameLoad attr Str Num If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str NameLoad If NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad If BoolOpAnd NameLoad NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str If UnaryOpNot BoolOpOr NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Call AttributeLoad NameLoad attr Str Num If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad If CompareEq AttributeLoad NameLoad attr Num body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list
N/A N/A 
This module interacts with an ISC DHCP Server via OMAPI.
server_ip and server_port params may be set in the minion
config or pillar:

.. code-block:: yaml

  omapi.server_ip: 127.0.0.1
  omapi.server_port: 7991

:depends: pypureomapi Python module
 __future__ absolute_import N/A logging N/A struct N/A log N/A N/A logging getLogger __name__ N/A N/A N/A pypureomapi omapi N/A omapi_support True N/A N/A N/A ImportError N/A e N/A N/A omapi_support False __virtual__ N/A N/A N/A N/A N/A 
    Confirm pypureomapi is available.
     N/A omapi_support N/A N/A omapi N/A N/A False The omapi execution module cannot be loaded: the pypureomapi python library is not available. N/A _conn N/A N/A N/A N/A N/A server_ip N/A N/A __pillar__ get omapi.server_ip N/A N/A __opts__ get omapi.server_ip 127.0.0.1 N/A server_port N/A N/A __pillar__ get omapi.server_port N/A N/A __opts__ get omapi.server_port 7991 N/A key N/A N/A __pillar__ get omapi.key N/A N/A __opts__ get omapi.key None N/A username N/A N/A __pillar__ get omapi.user N/A N/A __opts__ get omapi.user None N/A N/A N/A omapi Omapi server_ip server_port username username key key N/A add_host N/A N/A mac name ip ddns group supersede_host N/A None None False None False N/A N/A 
    Add a host object for the given mac.

    CLI Example:

    .. code-block:: bash

        salt dhcp-server omapi.add_host ab:ab:ab:ab:ab:ab name=host1

    Add ddns-hostname and a fixed-ip statements:

    .. code-block:: bash

        salt dhcp-server omapi.add_host ab:ab:ab:ab:ab:ab name=host1 ip=10.1.1.1 ddns=true
     N/A statements N/A o N/A _conn N/A msg N/A N/A N/A omapi OmapiMessage open host N/A N/A N/A N/A msg message append N/A create N/A N/A struct pack !I 1 N/A N/A N/A N/A msg message append N/A exclusive N/A N/A struct pack !I 1 N/A N/A N/A N/A msg obj append N/A hardware-address N/A N/A omapi pack_mac mac N/A N/A N/A N/A msg obj append N/A hardware-type N/A N/A struct pack !I 1 N/A ip N/A N/A N/A N/A N/A msg obj append N/A ip-address N/A N/A omapi pack_ip ip N/A name N/A N/A N/A N/A N/A msg obj append N/A name name N/A group N/A N/A N/A N/A N/A msg obj append N/A group group N/A supersede_host N/A N/A statements N/A N/A option host-name "{0}";  format name N/A N/A ddns name N/A N/A statements N/A N/A ddns-hostname "{0}";  format name N/A statements N/A N/A N/A N/A N/A msg obj append N/A statements statements N/A response N/A N/A o query_server msg N/A N/A N/A response opcode N/A omapi OMAPI_OP_UPDATE N/A N/A False N/A True N/A delete_host N/A N/A mac name N/A None None N/A N/A 
    Delete the host with the given mac or name.

    CLI Examples:

    .. code-block:: bash

        salt dhcp-server omapi.delete_host name=host1
        salt dhcp-server omapi.delete_host mac=ab:ab:ab:ab:ab:ab
     N/A N/A N/A mac name N/A N/A N/A TypeError At least one argument is required N/A o N/A _conn N/A msg N/A N/A N/A omapi OmapiMessage open host N/A mac N/A N/A N/A N/A N/A msg obj append N/A hardware-address N/A N/A omapi pack_mac mac N/A N/A N/A N/A msg obj append N/A hardware-type N/A N/A struct pack !I 1 N/A name N/A N/A N/A N/A N/A msg obj append N/A name name N/A response N/A N/A o query_server msg N/A N/A N/A response opcode N/A omapi OMAPI_OP_UPDATE N/A N/A None N/A N/A N/A response handle 0 N/A N/A False N/A response N/A N/A o query_server N/A N/A N/A omapi OmapiMessage delete N/A response handle N/A N/A N/A response opcode N/A omapi OMAPI_OP_STATUS N/A N/A False N/A True N/A