Skip to content

Commit

Permalink
Merge "Closes-Bug: #1571879 By default adding other0 also in the inte…
Browse files Browse the repository at this point in the history
…rface list of service template."
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed May 16, 2016
2 parents 8860a81 + 5d2b185 commit 396a32b
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ define([
}
*/

var intfTypes = ['management', 'left', 'right'];
var intfTypes = ['management', 'left', 'right', 'other0'];
var intfColl = this.model().get('interfaces');
var len = intfColl.length;
var intfTypesList = [];
Expand All @@ -129,7 +129,10 @@ define([
intfTypesList.push(modIntf);
var otherIntfArr = modIntf.split('other');
if ((2 == otherIntfArr.length) && (otherIntfArr[1].length > 0)) {
tmpIntfList.push(modIntf);
if (modIntf != 'other0') {
/* other0 already inside intfTypes */
tmpIntfList.push(modIntf);
}
var idx = parseInt(otherIntfArr[1]);
otherIntfIdxList.push(idx);
}
Expand All @@ -150,7 +153,7 @@ define([
} else {
var arrLen = otherIntfIdxList.length;
if (!arrLen) {
newIntfType = 'other0';
newIntfType = 'other1';
} else {
if (arrLen == otherIntfIdxList[arrLen - 1] + 1) {
/* All the array entries are there starting from 0 */
Expand Down

0 comments on commit 396a32b

Please sign in to comment.