summaryrefslogtreecommitdiffstats
path: root/ci/00-maasdeploy.sh
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-08-15 13:53:15 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-08-15 13:56:48 -0500
commit64716eb8ce1b9aa5748454acad7d274e4c3d3bdc (patch)
tree37868a7cdd99102ca715cd1a0107b6310aead585 /ci/00-maasdeploy.sh
parentb4c1448a8548b75de14915110abc4a0be292482a (diff)
modified to support intel pod9.
Change-Id: I665848c577b988798462ba67502bc1ac2386e473 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/00-maasdeploy.sh')
-rwxr-xr-xci/00-maasdeploy.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/ci/00-maasdeploy.sh b/ci/00-maasdeploy.sh
index 98ca47af..14937730 100755
--- a/ci/00-maasdeploy.sh
+++ b/ci/00-maasdeploy.sh
@@ -221,7 +221,7 @@ enableautomodebyname() {
if [ ! -z "$4" ]; then
for i in `seq 1 7`;
do
- nodes=`maas maas nodes list hostname=node$i-$4 | grep system_id | cut -d '"' -f 4`
+ nodes=`maas maas nodes list | grep system_id | cut -d '"' -f 4`
if [ ! -z "$nodes" ]; then
maas maas interface link-subnet $nodes $1 mode=$2 subnet=$3
fi
@@ -255,14 +255,14 @@ crnodevlanint() {
case "$labname" in
'intelpod9' )
maas refresh
- crvlanupdsubnet vlan902 1 "DataNetwork" 902 2 || true
- crvlanupdsubnet vlan905 2 "PublicNetwork" 905 3 || true
- crnodevlanint $vlan902 eth0 || true
+ crvlanupdsubnet vlan904 fabric-1 "MgmtNetwork" 904 2 || true
+ crvlanupdsubnet vlan905 fabric-2 "PublicNetwork" 905 3 || true
crnodevlanint $vlan905 eth1 || true
- enableautomodebyname eth0.902 AUTO "10.9.12.0/24" compute || true
- enableautomodebyname eth1.905 AUTO "10.9.15.0/24" compute || true
- enableautomodebyname eth0.902 AUTO "10.9.12.0/24" control || true
- enableautomodebyname eth1.905 AUTO "10.9.15.0/24" control || true
+ crnodevlanint $vlan905 eth3 || true
+ enableautomodebyname eth1.905 AUTO "10.9.15.0/24" || true
+ enableautomodebyname eth3.905 AUTO "10.9.15.0/24" || true
+ enableautomodebyname eth0 AUTO "10.9.12.0/24" || true
+ enableautomodebyname eth2 AUTO "10.9.12.0/24" || true
;;
esac