# salt.states.neutron_network

## Management of OpenStack Neutron Networks

Added in version 2018.3.0.

depends:

  shade

configuration:

  see `salt.modules.neutronng` for setup instructions

Example States

    create network:
      neutron_network.present:
        - name: network1

    delete network:
      neutron_network.absent:
        - name: network1

    create network with optional params:
      neutron_network.present:
        - name: network1
        - vlan: 200
        - shared: False
        - external: False
        - project: project1

salt.states.neutron_network.absent(name, auth=None, **kwargs)

  Ensure a network does not exists

  name

    Name of the network

salt.states.neutron_network.present(name, auth=None, **kwargs)

  Ensure a network exists and is up-to-date

  name

    Name of the network

  provider

    A dict of network provider options.

  shared

    Set the network as shared.

  external

    Whether this network is externally accessible.

  admin_state_up

    Set the network administrative state to up.

  vlan

    Vlan ID. Alias for provider

    - physical_network: provider

    - network_type: vlan

    - segmentation_id: (vlan id)