<% if ( typeof response_obj['vr-lan']['routing-protocol'] != 'undefined' ){ %>
service-instance-id: <%= svc_instance_id %>
routing-protocol : <%= response_obj['vr-lan']['routing-protocol'] %>
<% } %>
<% var i=1; root_node=1;
if ( typeof response_obj['vr-lan'] != 'undefined' )
{
if( typeof response_obj['vr-lan']['vr-lan-interface'] != 'undefined' )
{
response_obj['vr-lan']['vr-lan-interface'].forEach(function(request) {
var root_node = i %>
vr-lan-interface |
<% i++; %>
<% if ( request['vr-designation'] != 'undefined')
{
var vr_designation = request['vr-designation'];
} %>
vr-lan-interface
|
<% i++; %>
<% if ( (typeof request['v6-public-lan-prefixes'] != 'undefined') && (typeof request['v6-public-lan-prefixes']['t-provided-v6-lan-public-prefixes'] != 'undefined') )
{ %>
<% request['v6-public-lan-prefixes']['t-provided-v6-lan-public-prefixes'].forEach(function(trequest){ var t_v6_root = i; %>
v6-public-lan-prefixes |
<% i++; %>
t-provided-v6-lan-public-prefixes
|
<% i++; %>
<% }); %>
<% } %>
<% if ( typeof request['dhcp'] != 'undefined' )
{ %>
<% var dhcp_node = i; %>
dhcp |
<% i++; %>
dhcp
|
<% i++; %>
<% if ( typeof request['dhcp']['v4-dhcp-pools'] != 'undefined' )
{ %>
<% var v4_dhcp_pools_node = i; %>
v4-dhcp-pool |
<% i++; %>
<% request['dhcp']['v4-dhcp-pools'].forEach(function(v4request)
{ %>
v4-dhcp-pools
|
<% i++; %>
<% if ( typeof v4request['excluded-v4-address'] != 'undefined' )
{ %>
<% var excluded_v4_address_node = i; %>
exluded-v4-address |
<% i++; %>
<% v4request['excluded-v4-addresses'].forEach(function(ex_request)
{ %>
excluded-v4-address
|
<% i++; %>
<% }); %>
<% } %>
<% }); %>
<% } %>
<% if ( typeof request['dhcp']['excluded-v4-dhcp-addresses-from-default-pool'] != 'undefined' )
{ %>
<% var exc_v4_address_node = i; %>
excluded-v4-dhcp-addresses-from-default-pool |
<% i++; %>
<% request['dhcp']['excluded-v4-dhcp-addresses-from-default-pool'].forEach(function(ex_request)
{ %>
excluded-v4-dhcp-addresses-from-default-pool
|
<% i++; %>
<% }); %>
<% } %>
<% if ( typeof request['dhcp']['v6-dhcp-pools'] != 'undefined' )
{ %>
<% var v6_dhcp_pools_node = i; %>
v6-dhcp-pool |
<% i++; %>
<% request['dhcp']['v6-dhcp-pools'].forEach(function(v6request)
{ %>
v6-dhcp-pools
|
<% i++; %>
<% if ( typeof v4request['excluded-v6-addresses'] != 'undefined' )
{ %>
<% var excluded_v6_address_node = i; %>
exluded-v6-address |
<% i++; %>
<% v6request['excluded-v6-addresses'].forEach(function(ex_request)
{ %>
excluded-v6-address
|
<% i++; %>
<% }); %>
<% } %>
<% }); %>
<% } %>
<% if ( typeof request['dhcp']['excluded-v6-dhcp-addresses-from-default-pool'] != 'undefined' )
{ %>
<% var exc_v6_address_node = i; %>
excluded-v6-dhcp-addresses-from-default-pool |
<% i++; %>
<% request['dhcp']['excluded-v6-dhcp-addresses-from-default-pool'].forEach(function(ex_request)
{ %>
excluded-v6-dhcp-addresses-from-default-pool
|
<% i++; %>
<% }); %>
<% } %>
<% } %>
<% if ( typeof request['firewall-lite'] != 'undefined' )
{ %>
<% var firewall_lite_node = i; %>
firewall-lite |
<% i++; %>
firewall-lite
|
<% i++; %>
<% if ( typeof request['firewall-lite']['v6-firewall-packet-filters'] != 'undefined' )
{
var v6_firewall_packet_filters_node = i; %>
v6-firewall-packet-filters |
<% i++; %>
<% request['firewall-lite']['v6-firewall-packet-filters'].forEach(function(v6request)
{ %>
v6-firewall-packet-filters
|
<% i++; %>
<% if ( typeof v6request['udp-port-list'] != 'undefined' )
{ %>
<% v6request['udp-port-list'].forEach(function(udp_request)
{ %>
udp-port-list
|
<% i++; %>
<% }); %>
<% } %>
<% if ( typeof v6p_request['tcp-port-list'] != 'undefined' )
{ %>
<% v6request['tcp-port-list'].forEach(function(tcp_request)
{ %>
tcp-port-list
|
<% i++; %>
<% }); %>
<% } %>
<% }); %>
<% } %>
<% if ( typeof request['firewall-lite']['v4-firewall-packet-filters'] != 'undefined' )
{
var v4_firewall_packet_filters_node = i; %>
v4-firewall-packet-filters |
<% i++; %>
<% request['firewall-lite']['v4-firewall-packet-filters'].forEach(function(v4request)
{ %>
v4-firewall-packet-filters
|
<% i++; %>
<% if ( typeof v4request['udp-port-list'] != 'undefined' )
{ %>
<% v4request['udp-port-list'].forEach(function(udp_request)
{ %>
udp-port-list
|
<% i++; %>
<% }); %>
<% } %>
<% if ( typeof v4p_request['tcp-port-list'] != 'undefined' )
{ %>
<% v4request['tcp-port-list'].forEach(function(tcp_request)
{ %>
tcp-port-list
|
<% i++; %>
<% }); %>
<% } %>
<% }); %>
<% } %>
<% } %>
<% if ( typeof request['static-routes'] != 'undefined' )
{
var static_route_node = i; %>
static-routes |
<% i++; %>
<% if ( typeof request['static-routes']['v6-static-routes'] != 'undefined' )
{ %>
<% v6_static_route = i %>
v6-static-routes |
<% i++; %>
<% request['static-routes']['v6-static-routes'].forEach(function(strequest){ %>
v6-static-routes
|
<% i++; %>
<% }); %>
<% } %>
<% if ( typeof request['static-routes']['v4-static-routes'] != 'undefined' )
{ %>
<% v4_static_route = i %>
v4-static-routes |
<% i++; %>
<% request['static-routes']['v4-static-routes'].forEach(function(v4request)
{ %>
v4-static-routes
|
<% i++; %>
<% }); %>
<% } %>
<% } %>
<% if ( typeof request['pat'] != 'undefined' )
{ %>
<% var pat_node = i %>
pat |
<% i++; %>
pat
|
<% i++; %>
<% if ( typeof request['pat']['v4-pat-pools'] != 'undefined' )
{
var pat_pools_node = i %>
v4-pat-pools |
<% i++; %>
<% request['pat']['v4-pat-pools'].forEach(function(trequest)
{ %>
v4-pat-pools
|
<% }); %>
<% i++; %>
<% } %>
<% } %>
<% if ( typeof request['nat'] != 'undefined' )
{ %>
<% var nat_node = i %>
nat |
<% i++; %>
nat
|
<% i++; %>
<% if ( typeof request['nat']['v4-nat-mapping-entries'] != 'undefined' )
{
var nat_mapping_node = i %>
v4-nat-mapping-entries |
<% i++; %>
<% request['nat']['v4-nat-mapping-entries'].forEach(function(trequest)
{ %>
v4-nat-mapping-entries
|
<% }); %>
<% i++; %>
<% } %>
<% } %>
<% if ( (typeof request['v4-public-lan-prefixes'] != 'undefined') && (typeof request['v4-public-lan-prefixes']['t-provided-v4-lan-public-prefixes'] != 'undefined') )
{ %>
<% request['v4-public-lan-prefixes']['t-provided-v4-lan-public-prefixes'].forEach(function(trequest){
var v4_public_root = i; %>
v4-public-lan-prefixes |
<% i++; %>
t-provided-v4-lan-public-prefixes
|
<% i++; %>
<% }); %>
<% } %>
<% });
}
} else { %>
<% } %>