In a similar scenario I set up a VLAN interface for green. Please see the cloud-init script for details: