[Bug/Feature] N/A
[Cause] N/A
[Solution] N/A
[Verification] Build, install, run tests
Change-Id: I11049b06922f763e168449d43cf6dd9527ea9324
Signed-off-by: Dariusz Michaluk <d.michaluk@samsung.com>
echo LXC template, args: $@
-options=$(getopt -o p:n: -l rootfs:,path:,name:,ipv4:,ipv4-gateway: -- "$@")
+options=$(getopt -o p:n: -l path:,rootfs:,name:,vt:,ipv4:,ipv4-gateway: -- "$@")
if [ $? -ne 0 ]; then
exit 1
fi
-p|--path) path=$2; shift 2;;
--rootfs) rootfs=$2; shift 2;;
-n|--name) name=$2; shift 2;;
+ --vt) vt=$2; shift 2;;
--ipv4) ipv4=$2; shift 2;;
--ipv4-gateway) ipv4_gateway=$2; shift 2;;
--) shift 1; break ;;
args.add("--ipv4");
args.add(config.ipv4.c_str());
}
+ const std::string vt = std::to_string(config.vt);
+ if (config.vt > 0) {
+ args.add("--vt");
+ args.add(vt.c_str());
+ }
if (!mZone.create(lxcTemplate, args.c_array())) {
throw ZoneOperationException("Could not create zone");
}