1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-26 06:50:09 +03:00

Feature #602: Show RANGE/IP_START and RANGE/IP_END in 'onevnet show'

This commit is contained in:
Carlos Martín 2011-11-28 16:47:11 +01:00
parent e894fb5d37
commit 4fcf406c0c

View File

@ -66,6 +66,13 @@ class OneVNetHelper < OpenNebulaHelper::OneHelper
puts vn.template_str(false)
if vn.type_str == "RANGED"
puts
CLIHelper.print_header(str_h1 % ["RANGE"], false)
puts str % ["IP_START", vn['RANGE/IP_START']]
puts str % ["IP_END", vn['RANGE/IP_END']]
end
leases_str = vn.template_like_str('/VNET/LEASES', false)
if !leases_str.empty?