summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.yamllint8
-rw-r--r--INFO6
-rw-r--r--config/installers/daisy/network-dpdk.yaml.j29
-rw-r--r--config/installers/daisy/network.yaml.j29
-rw-r--r--config/pdf/pod1.encrypted.yaml4
-rw-r--r--config/pdf/pod1.yaml4
-rw-r--r--labs/bii/pod1.yaml4
-rw-r--r--labs/lf/idf-pod2.yaml73
-rw-r--r--labs/lf/idf-pod5.yaml70
-rw-r--r--labs/lf/pod2.yaml36
-rw-r--r--labs/lf/pod5.yaml36
-rw-r--r--labs/zte/pod1.yaml4
-rw-r--r--labs/zte/pod2.yaml4
-rw-r--r--labs/zte/pod3.yaml2
14 files changed, 184 insertions, 85 deletions
diff --git a/.yamllint b/.yamllint
new file mode 100644
index 00000000..4402f17f
--- /dev/null
+++ b/.yamllint
@@ -0,0 +1,8 @@
+---
+extends: default
+
+rules:
+ # 120 chars should be enough and don't fail if a line is longer
+ line-length:
+ max: 120
+ level: warning
diff --git a/INFO b/INFO
index 54ff322a..8299eea8 100644
--- a/INFO
+++ b/INFO
@@ -12,12 +12,16 @@ Repository: pharos
Committers:
-
+Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+Aric Gardner <agardner@linuxfoundation.org>
Fatih Degirmenci <fatih.degirmenci@ericsson.com>
+Guillermo Herrero <guillermo.herrero@enea.com>
Jack Morgan <jack.morgan@intel.com>
Jose Lausuch <jalausuch@suse.com>
Julien Zhang <zhang.jun3g@zte.com.cn>
Morgan Richomme <morgan.richomme@orange.com>
+Parker Berberian <pberberian@iol.unh.edu>
+Trevor Bramwell <tbramwell@linuxfoundation.org>
Trevor Cooper <trevor.cooper@intel.com>
Wenjing Chu <wenjing.chu@huawei.com>
diff --git a/config/installers/daisy/network-dpdk.yaml.j2 b/config/installers/daisy/network-dpdk.yaml.j2
index 507e7cfc..ccd7c8c5 100644
--- a/config/installers/daisy/network-dpdk.yaml.j2
+++ b/config/installers/daisy/network-dpdk.yaml.j2
@@ -41,6 +41,7 @@ network-config-metadata:
networks:
+ {%- set nodes_num = conf['nodes'] | length -%}
{%- set networks = {} -%}
{%- for key in mapping -%}
{%- set net_data = conf['net_config'][mapping[key]] -%}
@@ -61,7 +62,9 @@ networks:
{%- set start = ".".join([ips[0], ips[1], ips[2], "10"]) -%}
{%- set end = ".".join([ips[0], ips[1], ips[2], "200"]) -%}
{%- endif -%}
- {%- set vip = start -%}
+ {%- set vip = start.split(".")[3] | int -%}
+ {%- set vip = vip + nodes_num + 10 - (vip + nodes_num) % 10 -%}
+ {%- set vip = ".".join([ips[0], ips[1], ips[2], vip | string]) -%}
{%- if 'gateway' in net_data -%}
{%- set gateway = net_data.gateway -%}
@@ -88,6 +91,10 @@ networks:
'end': '{{ end }}'
vlan_id: {{ vlan }}
name: '{{ key }}'
+ {%- if key == 'EXTERNAL' %}
+ network_name: 'admin_external'
+ mapping: 'physnet1'
+ {%- endif -%}
{%- endfor %}
interfaces:
diff --git a/config/installers/daisy/network.yaml.j2 b/config/installers/daisy/network.yaml.j2
index 9eef7390..914df461 100644
--- a/config/installers/daisy/network.yaml.j2
+++ b/config/installers/daisy/network.yaml.j2
@@ -41,6 +41,7 @@ network-config-metadata:
networks:
+ {%- set nodes_num = conf['nodes'] | length -%}
{%- set networks = {} -%}
{%- for key in mapping -%}
{%- set net_data = conf['net_config'][mapping[key]] -%}
@@ -61,7 +62,9 @@ networks:
{%- set start = ".".join([ips[0], ips[1], ips[2], "10"]) -%}
{%- set end = ".".join([ips[0], ips[1], ips[2], "200"]) -%}
{%- endif -%}
- {%- set vip = start -%}
+ {%- set vip = start.split(".")[3] | int -%}
+ {%- set vip = vip + nodes_num + 10 - (vip + nodes_num) % 10 -%}
+ {%- set vip = ".".join([ips[0], ips[1], ips[2], vip | string]) -%}
{%- if 'gateway' in net_data -%}
{%- set gateway = net_data.gateway -%}
@@ -88,6 +91,10 @@ networks:
'end': '{{ end }}'
vlan_id: {{ vlan }}
name: '{{ key }}'
+ {%- if key == 'EXTERNAL' %}
+ network_name: 'admin_external'
+ mapping: 'physnet1'
+ {%- endif -%}
{%- endfor %}
interfaces:
diff --git a/config/pdf/pod1.encrypted.yaml b/config/pdf/pod1.encrypted.yaml
index 31548ea2..8693647d 100644
--- a/config/pdf/pod1.encrypted.yaml
+++ b/config/pdf/pod1.encrypted.yaml
@@ -19,7 +19,7 @@ jumphost:
arch: {x86_64|aarch64}
cpus: 2
# add values based on CFLAGS in GCC
- cpu_cflags: {broadwell|hasewell|etc}
+ cpu_cflags: {broadwell|haswell|etc}
# physical cores, not including hyper-threads
cores: 10
memory: 32G
@@ -96,7 +96,7 @@ nodes:
model: S2600JF
arch: x86_64
cpus: 2
- cpu_cflags: hasewell
+ cpu_cflags: haswell
cores: 12
memory: 128G
# for nodes in the same pod may have the same configuration
diff --git a/config/pdf/pod1.yaml b/config/pdf/pod1.yaml
index 77533bb2..d9028c23 100644
--- a/config/pdf/pod1.yaml
+++ b/config/pdf/pod1.yaml
@@ -19,7 +19,7 @@ jumphost:
arch: {x86_64|aarch64}
cpus: 2
# add values based on CFLAGS in GCC
- cpu_cflags: {broadwell|hasewell|etc}
+ cpu_cflags: {broadwell|haswell|etc}
# physical cores, not including hyper-threads
cores: 10
memory: 32G
@@ -77,7 +77,7 @@ nodes:
model: S2600JF
arch: x86_64
cpus: 2
- cpu_cflags: hasewell
+ cpu_cflags: haswell
cores: 12
memory: 128G
# for nodes in the same pod may have the same configuration
diff --git a/labs/bii/pod1.yaml b/labs/bii/pod1.yaml
index 1f5046b4..29d9a4e2 100644
--- a/labs/bii/pod1.yaml
+++ b/labs/bii/pod1.yaml
@@ -45,7 +45,7 @@ jumphost:
model: powerEdge 720
arch: x86_64
cpus: 2
- cpu_cflags: hasewell # add values based on CFLAGS in GCC
+ cpu_cflags: haswell # add values based on CFLAGS in GCC
cores: 8 # physical cores, not including hyper-threads
memory: 16G
disks: # disk list
@@ -100,7 +100,7 @@ nodes:
model: powerEdge 720
arch: x86_64
cpus: 2
- cpu_cflags: hasewell # add values based on CFLAGS in GCC
+ cpu_cflags: haswell # add values based on CFLAGS in GCC
cores: 8 # physical cores, not including hyper-threads
memory: 32G
disks: &disk_A # disk list
diff --git a/labs/lf/idf-pod2.yaml b/labs/lf/idf-pod2.yaml
new file mode 100644
index 00000000..78c916ef
--- /dev/null
+++ b/labs/lf/idf-pod2.yaml
@@ -0,0 +1,73 @@
+##############################################################################
+# Copyright (c) 2017 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
+##############################################################################
+---
+### LF POD 5 installer descriptor file ###
+
+idf:
+ version: 0.1
+ net_config:
+ # NOTE: Network names are likely to change after the PDF spec is updated
+ oob:
+ interface: 0
+ ip-range: 172.30.8.65-172.30.8.75
+ vlan: 410
+ admin:
+ interface: 0
+ vlan: native
+ network: 192.168.11.0 # Untagged, 'PXE/Admin' on wiki, different IP
+ mask: 24
+ mgmt:
+ interface: 0
+ vlan: 300
+ network: 10.167.4.0 # Tagged, 'vlan 300' on wiki
+ mask: 24
+ storage:
+ interface: 3
+ vlan: 301
+ network: 10.2.0.0 # Tagged, not the same with 'storage' on wiki
+ mask: 24
+ private:
+ interface: 1
+ vlan: 1000
+ network: 10.1.0.0 # Tagged, not the same with 'private' on wiki
+ mask: 24
+ public:
+ interface: 2
+ vlan: native
+ network: 172.30.10.0 # Untagged, 'public' on wiki
+ mask: 24
+ gateway: 172.30.10.1
+ dns:
+ - 8.8.8.8
+ - 8.8.4.4
+ fuel:
+ jumphost:
+ bridges:
+ admin: ''
+ mgmt: ''
+ private: ''
+ public: ''
+ network:
+ 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
+ - ''
+ - ''
+ busaddr: &busaddr
+ # Bus-info reported by `ethtool -i ethX`
+ - ''
+ - ''
+ - interfaces: *interfaces
+ busaddr: *busaddr
+ - interfaces: *interfaces
+ busaddr: *busaddr
+ - interfaces: *interfaces
+ busaddr: *busaddr
+ - interfaces: *interfaces
+ busaddr: *busaddr
diff --git a/labs/lf/idf-pod5.yaml b/labs/lf/idf-pod5.yaml
new file mode 100644
index 00000000..e0e4af28
--- /dev/null
+++ b/labs/lf/idf-pod5.yaml
@@ -0,0 +1,70 @@
+##############################################################################
+# Copyright (c) 2017 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
+##############################################################################
+---
+### LF POD 5 installer descriptor file ###
+
+idf:
+ version: 0.1
+ net_config:
+ oob:
+ interface: 0
+ ip-range: 172.30.8.89-172.30.8.94
+ vlan: 410
+ admin:
+ interface: 0
+ vlan: native
+ network: 10.20.0.128
+ mask: 25
+ gateway: 10.20.0.129
+ dns: 10.20.0.129
+ mgmt:
+ interface: 1
+ vlan: 450
+ network: 192.168.0.128
+ mask: 25
+ storage:
+ interface: 2
+ vlan: 451
+ network: 192.168.1.128
+ mask: 25
+ private:
+ interface: 1
+ vlan: 452
+ network: 192.168.2.128
+ mask: 25
+ public:
+ interface: 2
+ vlan: 415
+ network: 172.30.13.64
+ mask: 26
+ fuel:
+ jumphost:
+ bridges:
+ admin: ''
+ mgmt: ''
+ private: ''
+ public: ''
+ network:
+ 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
+ - ''
+ - ''
+ busaddr: &busaddr
+ # Bus-info reported by `ethtool -i ethX`
+ - ''
+ - ''
+ - interfaces: *interfaces
+ busaddr: *busaddr
+ - interfaces: *interfaces
+ busaddr: *busaddr
+ - interfaces: *interfaces
+ busaddr: *busaddr
+ - interfaces: *interfaces
+ busaddr: *busaddr
diff --git a/labs/lf/pod2.yaml b/labs/lf/pod2.yaml
index e9ede116..eb2efb23 100644
--- a/labs/lf/pod2.yaml
+++ b/labs/lf/pod2.yaml
@@ -9,42 +9,6 @@ details:
type: production
link: https://wiki.opnfv.org/display/pharos/LF+POD+2
##############################################################################
-net_config:
- # NOTE: Network names are likely to change after the PDF spec is updated
- oob:
- interface: 0
- ip-range: 172.30.8.65-172.30.8.75
- vlan: 410
- admin:
- interface: 0
- vlan: native
- network: 192.168.11.0 # Untagged, 'PXE/Admin' on wiki, different IP
- mask: 24
- mgmt:
- interface: 0
- vlan: 300
- network: 10.167.4.0 # Tagged, 'vlan 300' on wiki
- mask: 24
- storage:
- interface: 3
- vlan: 301
- network: 10.2.0.0 # Tagged, not the same with 'storage' on wiki
- mask: 24
- private:
- interface: 1
- vlan: 1000
- network: 10.1.0.0 # Tagged, not the same with 'private' on wiki
- mask: 24
- public:
- interface: 2
- vlan: native
- network: 172.30.10.0 # Untagged, 'public' on wiki
- mask: 24
- gateway: 172.30.10.1
- dns:
- - 8.8.8.8
- - 8.8.4.4
-##############################################################################
jumphost:
name: pod2-jump
node:
diff --git a/labs/lf/pod5.yaml b/labs/lf/pod5.yaml
index 7da6abcd..f55e4655 100644
--- a/labs/lf/pod5.yaml
+++ b/labs/lf/pod5.yaml
@@ -8,40 +8,6 @@ details:
location: Portland, Oregon, USA
type: development
link: https://wiki.opnfv.org/display/pharos/LF+POD+5
-
-net_config:
- oob:
- interface: 0
- ip-range: 172.30.8.89-172.30.8.94
- vlan: 410
- admin:
- interface: 0
- vlan: native
- network: 10.20.0.128
- mask: 25
- gateway: 10.20.0.129
- dns: 10.20.0.129
- mgmt:
- interface: 1
- vlan: 450
- network: 192.168.0.128
- mask: 25
- storage:
- interface: 2
- vlan: 451
- network: 192.168.1.128
- mask: 25
- private:
- interface: 1
- vlan: 452
- network: 192.168.2.128
- mask: 25
- public:
- interface: 2
- vlan: 415
- network: 172.30.13.64
- mask: 26
-
jumphost:
name: pod5-jump
node: &nodeparas
@@ -89,7 +55,7 @@ jumphost:
address: 172.30.8.89
mac_address: "a4:bf:01:01:ad:73"
interfaces:
- - mac_address: "00:1e:67:fd:ad:71"
+ - mac_address: "a4:bf:01:01:ad:71"
speed: 1gb
features: 'dpdk|sriov'
- mac_address: "00:1e:67:fd:9c:c2"
diff --git a/labs/zte/pod1.yaml b/labs/zte/pod1.yaml
index c88990b5..950c2d89 100644
--- a/labs/zte/pod1.yaml
+++ b/labs/zte/pod1.yaml
@@ -53,7 +53,7 @@ jumphost:
model: R5300
arch: x86_64
cpus: 2
- cpu_cflags: hasewell
+ cpu_cflags: haswell
cores: 12
memory: 128G
disks:
@@ -116,7 +116,7 @@ nodes:
model: E9000
arch: x86_64
cpus: 2
- cpu_cflags: hasewell
+ cpu_cflags: haswell
cores: 10
memory: 128G
disks: &disks
diff --git a/labs/zte/pod2.yaml b/labs/zte/pod2.yaml
index 9cf629f3..5b3915fe 100644
--- a/labs/zte/pod2.yaml
+++ b/labs/zte/pod2.yaml
@@ -53,7 +53,7 @@ jumphost:
model: R5300
arch: x86_64
cpus: 2
- cpu_cflags: hasewell
+ cpu_cflags: haswell
cores: 12
memory: 128G
disks:
@@ -116,7 +116,7 @@ nodes:
model: E9000
arch: x86_64
cpus: 2
- cpu_cflags: hasewell
+ cpu_cflags: haswell
cores: 10
memory: 128G
disks: &disks
diff --git a/labs/zte/pod3.yaml b/labs/zte/pod3.yaml
index d930d52c..b44602f2 100644
--- a/labs/zte/pod3.yaml
+++ b/labs/zte/pod3.yaml
@@ -53,7 +53,7 @@ jumphost:
model: R5300
arch: x86_64
cpus: 1
- cpu_cflags: hasewell
+ cpu_cflags: haswell
cores: 6
memory: 80G
disks: