What should be done is having the networking-sfc package to produce /usr/bin/sfc-neutron-openvswitch-agent, and have the sysv-rc/upstart/systemd startup stuff use that binary instead of /usr/bin/neutron-openvswitch-agent. I wrote the full explanation here:
This way, there would be no reason to deinstall neutron-openvswitch-agent.
If you really don't want to do this way, then the way to do it is to dpkg-divert the file (see the man page for dpkg-divert), but I wouldn't recommend it.
Bartosz,
What should be done is having the networking-sfc package to produce /usr/bin/ sfc-neutron- openvswitch- agent, and have the sysv-rc/ upstart/ systemd startup stuff use that binary instead of /usr/bin/ neutron- openvswitch- agent. I wrote the full explanation here:
http:// lists.openstack .org/pipermail/ openstack- dev/2016- June/097956. html
This way, there would be no reason to deinstall neutron- openvswitch- agent.
If you really don't want to do this way, then the way to do it is to dpkg-divert the file (see the man page for dpkg-divert), but I wouldn't recommend it.