added several nrl services updated to config service format
This commit is contained in:
parent
640b2c7d5b
commit
062273a99b
24 changed files with 196 additions and 0 deletions
|
@ -0,0 +1 @@
|
|||
mgen input sink.mgen output mgen_${node.name}.log
|
|
@ -0,0 +1,7 @@
|
|||
<%
|
||||
interfaces = "-i " + " -i ".join(ifnames)
|
||||
smf = ""
|
||||
if has_smf:
|
||||
smf = "-flooding ecds -smfClient %s_smf" % node.name
|
||||
%>
|
||||
nrlnhdp -l /var/log/nrlnhdp.log -rpipe ${node.name}_nhdp ${smf} ${interfaces}
|
|
@ -0,0 +1,9 @@
|
|||
<%
|
||||
smf = ""
|
||||
if has_smf:
|
||||
smf = "-flooding s-mpr -smfClient %s_smf" % node.name
|
||||
zebra = ""
|
||||
if has_zebra:
|
||||
zebra = "-z"
|
||||
%>
|
||||
nrlolsrd -i ${ifname} -l /var/log/nrlolsrd.log -rpipe ${node.name}_olsr ${smf} ${zebra}
|
|
@ -0,0 +1,4 @@
|
|||
0.0 LISTEN UDP 5000
|
||||
% for ifname in ifnames:
|
||||
0.0 Join 224.225.1.2 INTERFACE ${ifname}
|
||||
% endfor
|
19
daemon/core/configservices/nrlservices/templates/startsmf.sh
Normal file
19
daemon/core/configservices/nrlservices/templates/startsmf.sh
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
# auto-generated by nrl.py:NrlSmf.generateconfig()
|
||||
% if ifnames:
|
||||
nrlsmf instance ${node.name}_smf \\
|
||||
% if has_arouted:
|
||||
tap ${node.name}_tap unicast %s push lo,${ifnames[0]} resequence on \\
|
||||
% endif
|
||||
% if has_nhdp:
|
||||
ecds \\
|
||||
% elif has_olsr:
|
||||
smpr \\
|
||||
% else:
|
||||
cf \\
|
||||
% endif
|
||||
<%
|
||||
interfaces = ",".join(ifnames)
|
||||
%>
|
||||
${interfaces} hash MD5 log /var/log/nrlsmf.log < /dev/null > /dev/null 2>&1 &
|
||||
% endif
|
Loading…
Add table
Add a link
Reference in a new issue