Skip to content
Snippets Groups Projects
Commit 29af44f6 authored by Arno Schoenmakers's avatar Arno Schoenmakers
Browse files

TAsk #7144: Also added CBT010 as valid Cobalt node

parent fb528553
No related branches found
No related tags found
No related merge requests found
...@@ -248,7 +248,7 @@ substitute_cobaltnode_cobaltnic() ...@@ -248,7 +248,7 @@ substitute_cobaltnode_cobaltnic()
{ {
hasCobaltNIC=index($1,"@cobaltnode@_@cobaltnic@"); hasCobaltNIC=index($1,"@cobaltnode@_@cobaltnic@");
if (hasCobaltNIC > 0) { if (hasCobaltNIC > 0) {
for (cnic=0; cnic<36; cnic++) { for (cnic=0; cnic<40; cnic++) {
cnode = int(cnic/4)+1; cnode = int(cnic/4)+1;
dpname=$1; dpname=$1;
...@@ -300,7 +300,7 @@ substitute_oscobaltnode() ...@@ -300,7 +300,7 @@ substitute_oscobaltnode()
{ {
hasCobaltNode=index($1,"@oscobaltnode@"); hasCobaltNode=index($1,"@oscobaltnode@");
if (hasCobaltNode > 0) { if (hasCobaltNode > 0) {
for (cnode=1; cnode<10; cnode++) { for (cnode=1; cnode<11; cnode++) {
dpname=$1; dpname=$1;
newname = sprintf("OSCBT%03d",cnode); newname = sprintf("OSCBT%03d",cnode);
sub("@oscobaltnode@", newname, dpname); sub("@oscobaltnode@", newname, dpname);
...@@ -348,9 +348,10 @@ substitute_cobaltnode() ...@@ -348,9 +348,10 @@ substitute_cobaltnode()
{ {
hasCobaltNode=index($1,"@cobaltnode@"); hasCobaltNode=index($1,"@cobaltnode@");
if (hasCobaltNode > 0) { if (hasCobaltNode > 0) {
for (cnode=1; cnode<10; cnode++) { for (cnode=1; cnode<11; cnode++) {
dpname=$1; dpname=$1;
sub("@cobaltnode@", "CBT00"cnode, dpname); newname = sprintf("CBT%03d",cnode);
sub("@cobaltnode@", newname, dpname);
print dpname" "$2; print dpname" "$2;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment