aboutsummaryrefslogtreecommitdiffstats
path: root/network/ports/management_from_pool.yaml
blob: 05fedb90529fadb8a3d6ba7aa71023978aa7c064 (plain)
1
2
3
4
5

@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: #75715e } /* Generic.Subheading */
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
.highlight .kp { color: #66d9
heat_template_version: ocata

description: >
  Returns an IP from a network mapped list of IPs

parameters:
  ManagementNetName:
    description: Name of the management network
    default: management
    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
  ManagementNetCidr:
    default: '172.16.4.0/24'
    description: Cidr for the management network.
    type: string

outputs:
  ip_address:
    description: management network IP
    value: {get_param: [IPPool, {get_param: ManagementNetName}, {get_param: NodeIndex}]}
  ip_address_uri:
    description: management network IP (for compatibility with management_v6.yaml)
    value: {get_param: [IPPool, {get_param: ManagementNetName}, {get_param: NodeIndex}]}
  ip_subnet:
    description: IP/Subnet CIDR for the management network IP
    value:
      list_join:
      - ''
      - - {get_param: [IPPool, {get_param: ManagementNetName}, {get_param: NodeIndex}]}
        - '/'
        - {str_split: ['/', {get_param: ManagementNetCidr}, 1]}