Contextualization problem with gateway

Hello,

my OpenNebula scenario needs that each instance, during a reboot or restart, doesn’t regenerate networking configuration file if in that file user has added a gateway definition. Could I do this in some configuration way?
I could modify file /etc/one-context.d/loc-10-network and evaluate if existing file contains a line with “gateway”, but I would like to know if someone has same problem as me.

Thanksk.