Skip to content

VTCs

dvn_vtc

create, update, or destroy DVN vtcs

Synopsis

  • Create a new VTC
  • Delete an existing VTC
  • Update an exiting VTC
  • Add a VTC to a service group
  • Remove a VTC from a service group

Options

Parameter Required? Default Choices Comments
username service-prov administrator username. If not specified as a parameter, the environment variable DVNREST_USER will be used.
password service-prov password If not specified as a parameter, the environment variable DVNREST_PASSWORD will be used.
url service-prov url. If not specified as a parameter, the environment variable DVNREST_URL will be used.
validate_certs True Check certs. Use false to allow self-signed. If not specified as a parameter, the environment variable VALIDATE_CERTS will be used.
state present
  • present
  • absent
specify state of the VTC
vtc_id yes Unique ID for VTC object
common_name no Optional label for object
whitelist False
  • False
  • ingress
  • both
DVN firewall status
exclude_udp_ports comma separated list of UDP ports that will be excluded from the firewall when the whitelist value is set to 'both'.
exclude_tcp_ports comma separated list of TCP ports that will be excluded from the firewall when the whitelist value is set to 'both'.
user_auth False
  • True
  • False
Require user authentication for VTC
home_dps no The DSX id that this VTC is assigned to.
nic_rl 0 {u'Valid range': u'0 - 20000; a value of 0 disables this feature'}
reg_required True
  • True
  • False
Require user registration for VTC
service_groups specify service group(s) to place VTC into
zone The zone that the vtc should be placed in

Examples


  - name: create a vtc
    dvn_vtc:
      url: "{{rest_url}}"
      username: "{{rest_user}}"
      password: "{{rest_pass}}"
      vtc_id: test1
      validate_certs: false

  - name: add a VTC to a service group
    dvn_vtc:
      url: "{{rest_url}}"
      username: "{{rest_user}}"
      password: "{{rest_pass}}"
      vtc_id: test1
      whitelist: both
      exclude_tcp_ports: 22, 53, 1000
      service_groups: test-group
      validate_certs: false