You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
system-tests/ce/03_open_ports.json.tt2

24 lines
561 B

[% PROCESS '/usr/lib/ngcp-ngcpcfg/get_hostname';
hostname = out
-%]
[% argv.host=hostname; argv.type='web_ext';
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_ips_for_host';
web_ext_ips = out;
-%]
[% argv.host=hostname; argv.type='web_int';
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_ips_for_host';
web_int_ips = out;
-%]
{
"port": {
"tcp:443": {
"listening": true,
"ip": ["[% web_ext_ips.0 -%]"]
},
"tcp:1443": {
"listening": true,
"ip": ["[% web_int_ips.0 -%]"]
}
}
}