local tap add and del for deditect core finished :)

parent 3c33b0e9
......@@ -83,7 +83,7 @@ class deidtect:
ryuip = self.cfg['RYU_IP']
print "Sending tap rq to local enterprise controller"
#self.sendLocalTapReq(cmd, switch,port,vlan,None);
self.sendLocalTapReq(cmd, switch,port,vlan,None);
#follow the order
print "Sending cloud req remote deidtect controller"
......@@ -160,6 +160,15 @@ def deidtectAction(dic, start_response):
vlanid = dic.get('vlanid',None)
tunid = dic.get('tunid',None)
port = int(port)
vlanid = int(port)
tunid = int(tunid)
if site == "local":
d.sendReq(cmd=cmd, name=idsname, switch=switchdpid, port=port,
vlan=vlanid, tunid=tunid)
return sendOK(start_response);
if __name__ == '__main__':
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment