[Mini-NDN] NLSR Configuration File

Junxiao Shi shijunxiao at email.arizona.edu
Fri Apr 7 07:46:08 PDT 2017


Hi Ilane & Ashlesh

I'd suggest editing NFD and NLSR configuration files using infoedit, rather
than through string manipulation.
infoedit https://github.com/NDN-Routing/infoedit 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'.

Yours, Junxiao

On Fri, Apr 7, 2017 at 7:41 AM, Ashlesh Gawande (agawande) <
agawande at memphis.edu> wrote:

>
> To modify NLSR conf file, look at the methods here:
> https://github.com/named-data/mini-ndn/blob/master/ndn/nlsr.py#L166
>
> Now if you want to change the LSA refresh time:
> <https://github.com/named-data/NLSR/blob/master/nlsr.conf#L22>
> https://github.com/named-data/NLSR/blob/master/nlsr.conf#L12
>
> You can add this:
> general += " lsa-refresh-time 1080\n"
> before line 187:
> https://github.com/named-data/mini-ndn/blob/master/ndn/nlsr.py#L187
> Note that \n is important.
>
> If you want to change parameters in any other sections go that section
> method and add them in a similar way.
> Once you have made the changes you would have to re-install Mini-NDN.
> This would make the change in nlsr.conf of all the nodes.
>
> In /tmp/<nodename>, if you make the changes there they would be
> overwritten by Mini-NDN.
>
> Ashlesh
> ------------------------------
> *From:* Ilane Karise <kariseilane at gmail.com>
> *Sent:* Thursday, April 6, 2017 5:57 PM
> *To:* mini-ndn at lists.cs.ucla.edu
> *Subject:* NLSR Configuration File
>
> Dear all,
>
> I am beginner in using Mini-NDN emulator and have encountered problem in
> configuration of NLSR.
>
> 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.
>
> If anyone could help me with my problem I would be immensely grateful.
>
> Best regards,
>
> Ilane Karise
>
> _______________________________________________
> Mini-NDN mailing list
> Mini-NDN at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20170407/55bb01f1/attachment.html>


More information about the Mini-NDN mailing list