aboutsummaryrefslogtreecommitdiffstats
path: root/network/ports/external_from_pool_v6.yaml
blob: baa544e7f13475357d638cb2cd972c747c3bfb98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .gd { color: #f92672 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gi { color: #a6e22e } /* Generic.Inserted */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #
heat_template_version: 2015-10-15

description: >
  Returns an IP from a network mapped list of IPs. This version is for IPv6
  addresses. The ip_address_uri output will have brackets for use in URLs.

parameters:
  ExternalNetName:
    description: Name of the external network
    default: external
    type: string
  PortName:
    description: Name of the port
    default: ''
    type: string
  ControlPlaneIP: # Here for compatability with noop.yaml
    description: IP address on the control plane
    default: ''
    type: string
  IPPool:
    default: {}
    description: A network mapped list of IPs
    type: json
  NodeIndex:
    default: 0
    description: Index of the IP to get from Pool
    type: number
  ExternalNetCidr:
    default: '2001:db8:fd00:1000::/64'
    description: Cidr for the external network.
    type: string

outputs:
  ip_address:
    description: external network IP
    value: {get_param: [IPPool, {get_param: ExternalNetName}, {get_param: NodeIndex}]}
  ip_address_uri:
    description: external network IP (for compatibility with IPv6)
    value:
          list_join:
          - ''
          - - '['
            - {get_param: [IPPool, {get_param: ExternalNetName}, {get_param: NodeIndex}]}
            - ']'
  ip_subnet:
    description: IP/Subnet CIDR for the external network IP
    value:
      list_join:
      - ''
      - - {get_param: [IPPool, {get_param: ExternalNetName}, {get_param: NodeIndex}]}
        - '/'
        - {str_split: ['/', {get_attr: [ExternalPort, subnets, 0, cidr]}, 1]}