Bug 1481

Summary: Openflow example does not run
Product: ns-3 Reporter: Josh Pelkey <joshpelkey>
Component: openflowAssignee: Blake Hurd <naimorai>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs, tomh
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   

Description Josh Pelkey 2012-08-05 21:08:15 UTC
I had to modify the wscript to get the openflow example to run correctly. I don't know if this is exactly the right thing to do, but I pulled it from the click wscript:

diff -r d830f5eac8ec src/openflow/wscript
--- a/src/openflow/wscript	Sat Aug 04 09:40:51 2012 -0700
+++ b/src/openflow/wscript	Sun Aug 05 21:03:12 2012 -0400
@@ -106,6 +106,8 @@
     conf.env['LIBPATH_OPENFLOW'] = [
         os.path.abspath(os.path.join(conf.env['WITH_OPENFLOW'],'build','default')),
         os.path.abspath(os.path.join(conf.env['WITH_OPENFLOW'],'lib'))]
+
+    conf.env['DEFINES_OPENFLOW'] = ['NS3_OPENFLOW']
     
     conf.env['OPENFLOW'] = conf.check_nonfatal(fragment=test_code, lib='openflow', 
                                                libpath=conf.env['LIBPATH_OPENFLOW'],
Comment 1 Tom Henderson 2012-08-27 03:19:45 UTC
changeset: e3475c94c01a