summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xci/03-maasdeploy.sh6
-rw-r--r--labconfig/lenovo/pod1/labconfig.yaml66
2 files changed, 37 insertions, 35 deletions
diff --git a/ci/03-maasdeploy.sh b/ci/03-maasdeploy.sh
index 505e167f..85239506 100755
--- a/ci/03-maasdeploy.sh
+++ b/ci/03-maasdeploy.sh
@@ -654,8 +654,10 @@ if [ -e ./labconfig.json ]; then
IF_MACLOWER=$( cat labconfig.json | jq ".lab.racks[0].nodes[$NODE_ID].nics[] | select(.ifname==\"$IF_NEWNAME\")".mac[0])
IF_MAC=(${IF_MACLOWER,,})
IF_ID=$( maas ubuntu interfaces read $NODE_SYS_ID | jq ".[] | select(.mac_address==$IF_MAC)".id)
- maas $PROFILE interface update $NODE_SYS_ID $IF_ID name=$IF_NEWNAME
- IF_NAME=$IF_NEWNAME
+ if ([ $IF_ID ] && [ "$IF_ID" != "null" ]); then
+ maas $PROFILE interface update $NODE_SYS_ID $IF_ID name=$IF_NEWNAME
+ IF_NAME=$IF_NEWNAME
+ fi
fi
# In case of a VLAN interface
diff --git a/labconfig/lenovo/pod1/labconfig.yaml b/labconfig/lenovo/pod1/labconfig.yaml
index 5affb0ea..3e9cfecb 100644
--- a/labconfig/lenovo/pod1/labconfig.yaml
+++ b/labconfig/lenovo/pod1/labconfig.yaml
@@ -7,12 +7,12 @@ lab:
architecture: x86_64
roles: [network,control]
nics:
- - ifname: ens1f0
+ - ifname: intf100
spaces: [admin]
mac: ["24:8a:07:3f:84:ac"]
- - ifname: ens1f1
- spaces: [public]
- mac: ["90:E2:BA:85:4E:2D"]
+ - ifname: intf101
+ spaces: [floating]
+ mac: ["24:8a:07:3f:84:ad"]
power:
type: ipmi
address: 192.0.5.125
@@ -22,12 +22,12 @@ lab:
architecture: x86_64
roles: [compute,control,storage]
nics:
- - ifname: ens1f0
+ - ifname: intf100
spaces: [admin]
mac: ["24:8a:07:3f:96:86"]
- - ifname: ens1f1
- spaces: [public]
- mac: ["90:E2:BA:84:08:B9"]
+ - ifname: intf101
+ spaces: [floating]
+ mac: ["24:8a:07:3f:96:87"]
power:
type: ipmi
address: 192.0.5.126
@@ -37,12 +37,12 @@ lab:
architecture: x86_64
roles: [compute,control,storage]
nics:
- - ifname: ens1f0
+ - ifname: intf100
spaces: [admin]
mac: ["24:8a:07:3f:95:b6"]
- - ifname: ens1f1
- spaces: [public]
- mac: ["90:E2:BA:84:07:0E"]
+ - ifname: intf101
+ spaces: [floating]
+ mac: ["24:8a:07:3f:95:b7"]
power:
type: ipmi
address: 192.0.5.127
@@ -52,34 +52,34 @@ lab:
architecture: x86_64
roles: [compute,storage]
nics:
- - ifname: ens1f0
+ - ifname: intf100
spaces: [admin]
mac: ["24:8a:07:3f:96:4e"]
- - ifname: ens1f1
- spaces: [public]
- mac: ["90:E2:BA:83:FD:81"]
+ - ifname: intf101
+ spaces: [floating]
+ mac: ["24:8a:07:3f:96:4f"]
power:
type: ipmi
address: 192.0.5.128
user: USERID
pass: PASSW0RD
-# - name: rack-1-m5
-# architecture: x86_64
-# roles: [compute,storage]
-# nics:
-# - ifname: ens1f0
-# spaces: [admin]
-# mac: ["00:1E:67:E0:0A:4B"]
-# - ifname: ens1f1
-# spaces: [public]
-# mac: ["90:E2:BA:75:22:75"]
-# power:
-# type: ipmi
-# address: 192.0.5.129
-# user: USERID
-# pass: PASSW0RD
+ - name: rack-1-m5
+ architecture: x86_64
+ roles: [compute,storage]
+ nics:
+ - ifname: intf100
+ spaces: [admin]
+ mac: ["00:1E:67:E0:0A:4B"]
+ - ifname: intf101
+ spaces: [floating]
+ mac: ["00:1E:67:E0:0A:4C"]
+ power:
+ type: ipmi
+ address: 192.0.5.129
+ user: USERID
+ pass: PASSW0RD
floating-ip-range: 172.21.159.6,172.21.159.100,172.21.159.1,172.21.159.0/24
- ext-port: "br-ens1f1"
+ ext-port: "br-intf101"
dns: 8.8.8.8
osdomainname:
opnfv:
@@ -99,7 +99,7 @@ opnfv:
cidr: 192.0.5.0/24
gateway: 192.0.5.5
vlan:
- - type: public
+ - type: floating
bridge: brPublic
cidr: 172.21.159.0/24
gateway: 172.21.159.1