Add support for setting NLSR prefix costs via configuration file and nlsrc
This change alters the nlsr.conf 'advertising' format, as the previous
setup used unnecessary keys which made dynamically adjusting the
stateful conf file difficult.
Incorporates code written by Yanbiao Li.
Change-Id: I3ed5d0a564099be8cc1389ee6acc6f2d04cef889
diff --git a/nlsr.conf b/nlsr.conf
index 7c59dee..fecb57e 100644
--- a/nlsr.conf
+++ b/nlsr.conf
@@ -123,9 +123,10 @@
{
; the ndnname is used to advertised name from the router. To advertise each name prefix
; configure one block of ndnname configuration command for every name prefix.
+ ; format: <name-prefix> <cost>
- prefix /ndn/edu/memphis/cs/netlab ; name in ndn URI format
- prefix /ndn/edu/memphis/sports/basketball
+ /ndn/edu/memphis/cs/netlab 0
+ /ndn/edu/memphis/sports/basketball 0
}
security