[pox-dev] typeerror-init-takes-exactly-3-arguments-2-given
kofi adu
kofiadubb at yahoo.com
Tue Apr 29 12:01:21 PDT 2014
Hi Murphy
i am trying to run my program and it gives me this prompt. Is there any help? thanks
i get this error
typeerror-init-takes-exactly-3-arguments-2-given
# class
class VideoCache (object):
# Constructor of the class
def __init__(self, connection, transparent):
# track the connection to the switch to send messages
self.connection = connection
self.transparent = transparent
# Add listener events to handle connection events from OpenFlow switch
connection.addListeners(self)
log.debug("Initializing VideoCache, transparent=%s", str(self.transparent))
# Turn on Nicira packet_ins.
# Nicira extensions to support openFlow 1.0
msg = nx.nx_packet_in_format()
event.connection.send(msg)
# Turn on ability to specify table in flow_mods
msg = nx.nx_flow_mod_table_id()
event.connection.send(msg)
the launch function below
def launch ():
# create new class object
MyCache = VideoCache('IDEALCACHE')
# add this class into the core.
core.register("cache", MyCache)
log.info("Video cache is running.")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20140429/d48cb0b7/attachment-0001.htm>
More information about the pox-dev
mailing list