So in this case,
if (l3_agent_mode == (
l3_const.L3_AGENT_MODE_DVR_NO_EXTERNAL) and requesting_agent_mode == ( const.L3_AGENT_MODE_DVR_SNAT)): port['agent'] = (l3_const.L3_AGENT_MODE_DVR_NO_EXTERNAL) port_dict.update({port['id']: port})
So in this case it should also include 'requesting_agent_mode = const.L3_AGENT_MODE_DVR_NO_EXTERNAL' or 'requesting_agent_mode = const.L3_AGENT_MODE_DVR_SNAT'.
Probably this should solve the problem.
So in this case, const.L3_ AGENT_MODE_ DVR_NO_ EXTERNAL) and
requesting_ agent_mode == (
const. L3_AGENT_ MODE_DVR_ SNAT)):
port[ 'agent' ] = (l3_const. L3_AGENT_ MODE_DVR_ NO_EXTERNAL)
port_ dict.update( {port[' id']: port})
if (l3_agent_mode == (
l3_
So in this case it should also include 'requesting_ agent_mode = const.L3_ AGENT_MODE_ DVR_NO_ EXTERNAL' or 'requesting_ agent_mode = const.L3_ AGENT_MODE_ DVR_SNAT' .
Probably this should solve the problem.