pass the remote controller ip for the whitelist

parent 7c3b9af3
......@@ -162,7 +162,6 @@ def sendError(start_response):
def networkapp(environ, start_response):
cur_path = environ['PATH_INFO']
print environ
print mapper
print cur_path
result = mapper.match(cur_path)
......@@ -284,10 +283,13 @@ def deidtectRemAction(dic, start_response, environ):
vlanid = int(vlanid)
tunid = int(tunid)
d.sendRemReq(cmd=cmd, name=idsname, ryuip=ryuip, switch=switchdpid, port=port,
controllerip = socket.gethostbyname(socket.gethostname())
d.sendRemReq(cmd=cmd, name=idsname, ryuip=controllerip, switch=switchdpid, port=port,
vlan=vlanid, tunid=tunid)
remoteIP = get_client_address(environ);
remoteIP = ryuip;
#add the proxy ip
#handling only one remote instance as of now
#extend to have multiple sites as future work!
......
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