Skip to content

Commit ee45256

Browse files
Added simulator for natt
Added duration option in configuration Fixed natt index name Fixed template Added natt connection failure probability Added description in readme
1 parent 5f1b044 commit ee45256

4 files changed

Lines changed: 287 additions & 91 deletions

File tree

src/configs/nuage/scripts/pps-simulator/README

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ Eg: For def_conf: 4C2 = 6
3131
number of sla records generated = nsg_cnt/2 * appgrp_cnt
3232
Eg: For def_conf: 4/2 * 2 = 4
3333

34+
duration:
35+
Duration of past to cover in stats, specified in hours(h) or minutes(h)
36+
Eg: 5h => 5 hours, 30m => 30 minutes
3437

38+
NATT based settings:
39+
natt_ip_prefix:
40+
IP prefix used alongside real host address
41+
42+
natt_port:
43+
Default used natt port
44+
45+
natt_conn_failure_probability:
46+
The probability with which an IP of NATT(applies to all 4 IP addresses Probe learnt * 2, VSC learnt * 2) is found to be ZERO at each timestep by the NSG.
47+
This boils down to the amount of "YELLOW/RED" to increase in the NATT summary heatmap.
3548

3649

src/configs/nuage/scripts/pps-simulator/config.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ duc_count: 2
1616
es_server: http://localhost:9200
1717
es_chunk_size: 500
1818
out_sla_apps: 2
19+
duration: 30m
20+
natt_conn_failure_probability: 0.0

src/configs/nuage/scripts/pps-simulator/init_template.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ curl -XPUT 'http://localhost:9200/_template/nuage_dpi_slastats_alias_template' -
6060
}
6161
}
6262
'
63-
curl -XPUT 'http://localhost:9200/_template/nuage_nat-t_alias_template' -d '
63+
curl -XPUT 'http://localhost:9200/_template/nuage_natt_alias_template' -d '
6464
{
6565
"order" : 0,
66-
"template" : "nuage_nat-t*",
66+
"template" : "nuage_natt*",
6767
"settings" : { },
6868
"mappings" : { },
6969
"aliases" : {
70-
"nuage_nat-t" : { }
70+
"nuage_natt" : { }
7171
}
7272
}
7373
'

0 commit comments

Comments
 (0)