From f2cd25d89332c629e0086c44eeae8f8b3395ffee Mon Sep 17 00:00:00 2001 From: tgoff0 Date: Fri, 27 Feb 2015 22:03:52 +0000 Subject: [PATCH] daemon: Update the example emane 802.11 python script. --- daemon/examples/netns/emane80211.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/daemon/examples/netns/emane80211.py b/daemon/examples/netns/emane80211.py index be433802..5009a1fa 100755 --- a/daemon/examples/netns/emane80211.py +++ b/daemon/examples/netns/emane80211.py @@ -45,7 +45,8 @@ def main(): # IP subnet prefix = ipaddr.IPv4Prefix("10.83.0.0/16") # session with some EMANE initialization - session = pycore.Session(persistent=True) + cfg = {'verbose': 'false'} + session = pycore.Session(cfg = cfg, persistent = False) session.master = True session.location.setrefgeo(47.57917,-122.13232,2.00000) session.location.refscale = 150.0 @@ -62,9 +63,9 @@ def main(): values = list(EmaneIeee80211abgModel.getdefaultvalues()) # TODO: change any of the EMANE 802.11 parameter values here try: - values[ names.index('pathlossmode') ] = 'pathloss' + values[ names.index('pathlossmode') ] = '2ray' except ValueError: - values[ names.index('propagationmodel') ] = 'precomputed' + values[ names.index('propagationmodel') ] = '2ray' session.emane.setconfig(wlan.objid, EmaneIeee80211abgModel._name, values) services_str = "zebra|OSPFv3MDR|vtysh|IPForward"