Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

vCD Edge Gateway Static Routes

mukultaneja edited this page Feb 6, 2021 · 1 revision

vCD Edge Gateway State Routes Example Usage

  1. State Routes States

    • Create State Routes
     
         - name: create vCD edge gateway static routes
           vcd_gateway_services:
             vdc: ACME_PAYG
             gateway: edge-gateway
             service: static_route
             service_params:
                - network: 127.0.0.1/32
                  next_hop: 10.176.3.41
                  mtu: 1500
                  description: test static route
                  route_type: User
                  vnic: 0
             state: present
     
     
    Argument Reference
    • user - (Optional) - vCloud Director user name
    • password - (Optional) - vCloud Director password
    • org - (Optional) - vCloud Director org name to log into
    • host - (Optional) - vCloud Director host name
    • api_version - (Optional) - Pyvcloud API version
    • verify_ssl_certs - (Optional) - true to enforce to verify ssl certificate for each requests else false
    • vdc - (Required) name of vdc
    • gateway - (Required) name of gateway
    • service - (Required) name of service e.g "static_route"
    • service_params - (Required) required arguments to create gateway service
      • network - vApp/Org vDC Network in CIDR format e.g. 192.169.1.0/24
      • next_hop - IP address of next hop
      • route_type - static route type. Default: User
      • mtu - Maximum Transmission Units (MTU) e.g 1500 MTU
      • description - static route description
      • vnic - interface of gateway
    • state - (Required) "present" to create vCD Edge gateway static routes

    • Update State Routes
     
         - name: update vCD edge gateway static routes
           vcd_gateway_services:
             vdc: ACME_PAYG
             gateway: edge-gateway
             service: static_route
             service_params:
                - network: 127.0.0.1/28
                  new_network: 127.0.0.1/32
                  mtu: 3000
             state: update
     
     
    Argument Reference
    • user - (Optional) - vCloud Director user name
    • password - (Optional) - vCloud Director password
    • org - (Optional) - vCloud Director org name to log into
    • host - (Optional) - vCloud Director host name
    • api_version - (Optional) - Pyvcloud API version
    • verify_ssl_certs - (Optional) - true to enforce to verify ssl certificate for each requests else false
    • vdc - (Required) name of vdc
    • gateway - (Required) name of gateway
    • service - (Required) name of service e.g "static_route"
    • service_params - (Required) required arguments to update gateway service
      • network - vApp/Org vDC Network in CIDR format e.g. 192.169.1.0/24
      • new_network - Updated vApp/Org vDC Network in CIDR format e.g. 192.169.1.0/24
      • next_hop - IP address of next hop
      • mtu - Maximum Transmission Units (MTU) e.g 1500 MTU
      • description - static route description
      • vnic - interface of gateway
    • state - (Required) "update" to update vCD Edge gateway static routes

    • Delete State Routes
     
         - name: delete vCD edge gateway static routes
           vcd_gateway_services:
             vdc: ACME_PAYG
             gateway: edge-gateway
             service: static_route
             service_params:
                - network: 127.0.0.1/32
             state: absent
     
     
    Argument Reference
    • user - (Optional) - vCloud Director user name
    • password - (Optional) - vCloud Director password
    • org - (Optional) - vCloud Director org name to log into
    • host - (Optional) - vCloud Director host name
    • api_version - (Optional) - Pyvcloud API version
    • verify_ssl_certs - (Optional) - true to enforce to verify ssl certificate for each requests else false
    • vdc - (Required) name of vdc
    • gateway - (Required) name of gateway
    • service - (Required) name of service e.g "static_route"
    • service_params - (Required) required arguments to delete gateway service
      • network - name of the static route's network to delete
    • state - (Required) "absent" to delete vCD Edge gateway static routes

  2. Static Routes Operations

    • List Static Routes
     
         - name: list vCD edge gateway static routes
           vcd_gateway_services:
             vdc: ACME_PAYG
             gateway: edge-gateway
             service: static_route
             operation: list
     
     
    Argument Reference
    • user - (Optional) - vCloud Director user name
    • password - (Optional) - vCloud Director password
    • org - (Optional) - vCloud Director org name to log into
    • host - (Optional) - vCloud Director host name
    • api_version - (Optional) - Pyvcloud API version
    • verify_ssl_certs - (Optional) - true to enforce to verify ssl certificate for each requests else false
    • vdc - (Required) name of vdc
    • gateway - (Required) name of gateway
    • service - (Required) name of service e.g "static_route"
    • operation - (Required) "list" to list all available edge gateway static routes