##############################################################################
# Copyright (c) 2018 Ericsson AB, Mirantis Inc., Enea AB and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
---
### ERICSSON POD 1 installer descriptor file ###

idf:
  version: 0.1
  installer: ['apex', 'compass4nfv', 'daisy', 'fuel']
  net_config:
    oob:
      interface: 0
      ip-range: 172.16.1.16-172.16.1.21
      vlan: native
      mask: 29
    admin:
      interface: 4
      vlan: native
      network: 192.168.11.0  # Untagged, 'PXE/Admin' for MaaS (no IP on JP)
      mask: 24
    mgmt:
      interface: 2
      vlan: 81
      network: 192.168.10.0
      ip-range: 192.168.10.10-192.168.10.254  # Some IPs are in use by lab infra
      mask: 24
    storage:
      interface: 2
      vlan: 82
      network: 192.168.20.0
      mask: 24
    private:
      interface: 3
      vlan: 1000-1030
      network: 192.168.2.0
      mask: 24
    public:
      interface: 2
      vlan: 80
      network: 100.64.200.0
      ip-range: 100.64.200.100-100.64.200.254  # Some IPs are in use by lab infra
      mask: 24
      gateway: 100.64.200.1
      dns:
        - 8.8.8.8
        - 8.8.4.4
  fuel:
    jumphost:
      bridges:
        admin: 'pxebr'
        mgmt: 'br-mgmt'
        private: ~
        public: 'br-external'
    network:
      ntp_strata_host1: 1.se.pool.ntp.org
      ntp_strata_host2: 0.se.pool.ntp.org
      node:
        # Ordered-list, index should be in sync with node index in PDF
        - interfaces: &interfaces
            # Ordered-list, index should be in sync with interface index in PDF
            - 'ens1f0'
            - 'ens1f1'
            - 'ens2f0'
            - 'ens2f1'
            - 'eno1'
            - 'eno2'
          busaddr: &busaddr
            # Bus-info reported by `ethtool -i ethX`
            - '0000:05:00.0'
            - '0000:05:00.1'
            - '0000:21:00.0'
            - '0000:21:00.1'
            - '0000:04:00.0'
            - '0000:04:00.1'
        - interfaces: *interfaces
          busaddr: *busaddr
        - interfaces: *interfaces
          busaddr: *busaddr
        - interfaces: *interfaces
          busaddr: *busaddr
        - interfaces: *interfaces
          busaddr: *busaddr