But when I input pyretic.py –v high pyretic.examples.pyretic_switch,I get these information:
Traceback (most recent call last):
File "/root/pyretic/pyretic.py", line 211, in
main()
File "/root/pyretic/pyretic.py", line 124, in main
module = import_module(module_name)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/root/pyretic/pyretic/examples/pyretic_switch.py", line 7, in
@dynamic
NameError: name 'dynamic' is not defined
hi: I am a newer in SDN.I get a trouble about pyretic.The following is pyretic_switcher.py.
from pyretic.lib.corelib import from pyretic.lib.std import
@dynamic
def act_like_switch(self): """ Implement switch-like behavior. """
def main(): return act_like_switch()
But when I input pyretic.py –v high pyretic.examples.pyretic_switch,I get these information:
Traceback (most recent call last): File "/root/pyretic/pyretic.py", line 211, in
main()
File "/root/pyretic/pyretic.py", line 124, in main
module = import_module(module_name)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/root/pyretic/pyretic/examples/pyretic_switch.py", line 7, in
@dynamic
NameError: name 'dynamic' is not defined
what should I do? thanks