<div dir="ltr"><div>Hi Ilane & Ashlesh<br><br></div><div>I'd suggest editing NFD and NLSR configuration files using infoedit, rather than through string manipulation.<br></div><div>infoedit <a href="https://github.com/NDN-Routing/infoedit">https://github.com/NDN-Routing/infoedit</a> is a utility that allows a script to programmatically edit Boost INFO files. Since it understands Boost INFO format, there would not be problems such as missing '\n'.<br></div><div><br></div>Yours, Junxiao<br><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 7, 2017 at 7:41 AM, Ashlesh Gawande (agawande) <span dir="ltr"><<a href="mailto:agawande@memphis.edu" target="_blank">agawande@memphis.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div id="gmail-m_5152714499990340671divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif" dir="ltr"><br>
To modify NLSR conf file, look at the methods here:
<div><a href="https://github.com/named-data/mini-ndn/blob/master/ndn/nlsr.py#L166" class="gmail-m_5152714499990340671OWAAutoLink" id="gmail-m_5152714499990340671LPlnk187572" target="_blank">https://github.com/named-data/<wbr>mini-ndn/blob/master/ndn/nlsr.<wbr>py#L166</a><br>
<br>
Now if you want to change the LSA refresh time:</div>
<div><a href="https://github.com/named-data/NLSR/blob/master/nlsr.conf#L22" class="gmail-m_5152714499990340671OWAAutoLink" id="gmail-m_5152714499990340671LPlnk745137" target="_blank"></a><a href="https://github.com/named-data/NLSR/blob/master/nlsr.conf#L12" class="gmail-m_5152714499990340671OWAAutoLink" id="gmail-m_5152714499990340671LPlnk22237" target="_blank">https://github.com/named-data/<wbr>NLSR/blob/master/nlsr.conf#L12</a><br>
</div>
<div><br>
</div>
<div>You can add this:</div>
<div><span style="color:rgb(36,41,46);font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap">general
</span><span class="gmail-m_5152714499990340671pl-k" style="box-sizing:border-box;color:rgb(167,29,93);font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap">+=</span><span style="color:rgb(36,41,46);font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap">
</span><span class="gmail-m_5152714499990340671pl-s" style="box-sizing:border-box;color:rgb(24,54,145);font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap"><span class="gmail-m_5152714499990340671pl-pds" style="box-sizing:border-box">"</span>
 lsa-refresh-time 1080</span><span class="gmail-m_5152714499990340671pl-s" style="box-sizing:border-box;color:rgb(24,54,145);font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap"><span class="gmail-m_5152714499990340671pl-cce" style="box-sizing:border-box">\n</span><span class="gmail-m_5152714499990340671pl-pds" style="box-sizing:border-box">"</span></span><br>
</div>
<div>before line 187:</div>
<div><a href="https://github.com/named-data/mini-ndn/blob/master/ndn/nlsr.py#L187" class="gmail-m_5152714499990340671OWAAutoLink" id="gmail-m_5152714499990340671LPlnk225477" style="font-size:12pt" target="_blank">https://github.com/named-data/<wbr>mini-ndn/blob/master/ndn/nlsr.<wbr>py#L187</a><br>
</div>
<div>Note that \n is important.</div>
<div><br>
If you want to change parameters in any other sections go that section method and add them in a similar way.</div>
<div>Once you have made the changes you would have to re-install Mini-NDN.</div>
<div>This would make the change in nlsr.conf of all the nodes.</div>
<div><br>
</div>
<div>In /tmp/<nodename>, if you make the changes there they would be overwritten by Mini-NDN.</div>
<div><br>
</div>
<div>Ashlesh<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="gmail-m_5152714499990340671divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Ilane Karise <<a href="mailto:kariseilane@gmail.com" target="_blank">kariseilane@gmail.com</a>><br>
<b>Sent:</b> Thursday, April 6, 2017 5:57 PM<br>
<b>To:</b> <a href="mailto:mini-ndn@lists.cs.ucla.edu" target="_blank">mini-ndn@lists.cs.ucla.edu</a><br>
<b>Subject:</b> NLSR Configuration File</font>
<div> </div>
</div>
<div>
<div dir="ltr">Dear all,
<div><br>
</div>
<div>
<div>I am beginner in using Mini-NDN emulator and have encountered problem in</div>
<div>configuration of NLSR. </div>
</div>
<div><br>
</div>
<div>
<div>I know that Mini-NDN creates for me NFD and NLSR configuration files for each node, and they are located in the /tmp/<node-name> directory. However, I need to modify some NLSR configuration parameters and I'm not sure exactly where I can do this. I tried
 to edit the configuration file created in the /tmp directory, without success. I tried using the GUI to make modifications like site name or max-faces-per-prefix but none of that worked.</div>
<div><br>
</div>
<div>If anyone could help me with my problem I would be immensely grateful.</div>
</div>
<div><br>
</div>
<div>Best regards,</div>
<div><br>
</div>
<div>Ilane Karise</div>
</div>
</div>
</div>
</div>
</div>
</div>

<br>______________________________<wbr>_________________<br>
Mini-NDN mailing list<br>
<a href="mailto:Mini-NDN@lists.cs.ucla.edu">Mini-NDN@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/mini-ndn</a><br>
<br></blockquote></div><br></div></div></div></div>