Source code for saltext.vcf.modules.vcf_nsx_ip_block

"""Execution module for NSX IP blocks."""

from saltext.vcf.clients import nsx_ip_block as c

__virtualname__ = "vcf_nsx_ip_block"


def __virtual__():
    return __virtualname__


[docs] def list_(profile=None): """List . CLI Example: .. code-block:: bash salt '*' vcf_nsx_ip_block.list_ """ return c.list_(__opts__, profile=profile)
[docs] def get(block_id, profile=None): """Get. CLI Example: .. code-block:: bash salt '*' vcf_nsx_ip_block.get <block_id> """ return c.get(__opts__, block_id, profile=profile)
[docs] def create(block_id, cidr, profile=None, **spec): """Create. CLI Example: .. code-block:: bash salt '*' vcf_nsx_ip_block.create <block_id> <cidr> """ return c.create(__opts__, block_id, cidr, profile=profile, **spec)
[docs] def delete(block_id, profile=None): """Delete. CLI Example: .. code-block:: bash salt '*' vcf_nsx_ip_block.delete <block_id> """ return c.delete(__opts__, block_id, profile=profile)