Skip to content

Commit

Permalink
Closes-Bug: #1540678
Browse files Browse the repository at this point in the history
Closes-Bug: #1546405
1. For physical-device virtuallization type, do not validate image name.

2. In interface/network route table if mask is not specified then add /32 for ipv4
    and /128 for ipv6

Change-Id: I468c929b303f74aa0e20713fb85fc44c19098c49
  • Loading branch information
biswajit-mandal committed Feb 22, 2016
1 parent 687e2d8 commit e93cc5e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Expand Up @@ -64,6 +64,14 @@ define([
var prefix = routesCollection[i]['prefix']();
if ((null != prefix) && (!prefix.length)) {
prefix = null;
} else {
if (-1 == prefix.indexOf('/')) {
if (isIPv4(prefix)) {
prefix = prefix + '/32';
} else if (isIPv6(prefix)) {
prefix = prefix + '/128';
}
}
}
var nextHop = routesCollection[i]['next_hop']();
if ((null != nextHop) && (!nextHop.length)) {
Expand Down
Expand Up @@ -251,16 +251,16 @@ define([
if (2 == tmplVersion) {
return;
}
if (null == imgName) {
return 'Image name not found for this template';
}
var svcVirtType =
getValueByJsonPath(tmpl,
'service_template_properties;service_virtualization_type',
null);
if ('physical-device' == svcVirtType) {
return;
}
if (null == imgName) {
return 'Image name not found for this template';
}
var imgList = window.imageList;
var imgCnt = imgList.length;
for (var i = 0; i < imgCnt; i++) {
Expand Down

0 comments on commit e93cc5e

Please sign in to comment.