1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #-: Fix Packet template (#650)

This commit is contained in:
Jan Orel 2021-01-18 09:23:43 +01:00 committed by GitHub
parent 12197acf0c
commit a716986188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,10 @@
resource "packet_reserved_ip_block" "device_<%= obj['ID'] %>" {
project_id = "<%= provision['PACKET_PROJECT'] %>"
facility = "<%= provision['FACILITY'] %>"
quantity = "<%= provision['SIZE'] %>"
}
<%# resource "packet_reserved_ip_block" "device_<%= obj['ID'] %1>" { %>
<%# project_id = "<%= provision['PROJECT'] %1>" %>
<%# facility = "<%= provision['FACILITY'] %1>" %>
<%# <% if obj['AR_POOL'] && obj['AR_POOL']['AR'] && obj['AR_POOL']['AR']['SIZE'] %1> %>
<%# quantity = "<%= obj['AR_POOL']['AR']['SIZE'] %1>" %>
<%# <% else %1> %>
<%# quantity = "1" %>
<%# <% end %1> %>
<%# } %>