Thanks to Erick Colnick the issue has been isolated to the sequence/timing of when the gateway-set occurs. If no VM ports are present when gateway-set occurs, then added later, an error occurs. But if the VM ports are added first (like how I was doing the test) there is no problem.
Early on in the DVR development we had similar issues because the notification path is different for when VM ports are added.
Thanks to Erick Colnick the issue has been isolated to the sequence/timing of when the gateway-set occurs. If no VM ports are present when gateway-set occurs, then added later, an error occurs. But if the VM ports are added first (like how I was doing the test) there is no problem.
Early on in the DVR development we had similar issues because the notification path is different for when VM ports are added.