Skip to content

Commit

Permalink
Merge pull request #24 from jouvin/perfsonar
Browse files Browse the repository at this point in the history
perfSonar: make port range redefinition more flexible
  • Loading branch information
jrha committed Jun 23, 2014
2 parents fc8ccc6 + 6475351 commit 9f128e3
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion personality/perfsonar-ps/config.pan
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include {'security/cas'};
include {'features/fetch-crl/config'};

# perfSONAR ports
variable PERFSONAR_PORTS ?= nlist(
variable PERFSONAR_PORTS_DEFAULT ?= nlist(
'BWCTL', nlist(
'iperf_port', '5001:5200',
'nuttcp_port', '5201:5600',
Expand All @@ -20,6 +20,28 @@ variable PERFSONAR_PORTS ?= nlist(
),
);

@{
desc = port ranges to use for perfSonar defined as nlist
values = nlist whose keys are BWCTL (throughput tests) and OWAMP (latency tests)\
and values are nlist of port ranges (see source). Every omitted value will take the \
default value.
default = PERFSONAR_PORTS_DEFAULT
required = no
}
variable PERFSONAR_PORTS = {
foreach (component;port_list;PERFSONAR_PORTS_DEFAULT) {
foreach (range_name;range_ports;port_list) {
if ( !is_defined(SELF[component][range_name]) ) {
if ( !is_defined(SELF[component]) ) {
SELF[component] = nlist();
};
SELF[component][range_name] = range_ports;
};
};
};
SELF;
};

#
# Make sure that the wheel group can use sudo
#
Expand Down

0 comments on commit 9f128e3

Please sign in to comment.