KVMHypervisor: implement instance policy routing
authorGuido Trotter <ultrotter@google.com>
Wed, 21 Oct 2009 22:13:21 +0000 (18:13 -0400)
committerGuido Trotter <ultrotter@google.com>
Thu, 22 Oct 2009 13:40:38 +0000 (09:40 -0400)
commit2c5afffb7d9b409b7ec4e14825c9be15efb7940a
tree2c1db44760f60b04092fa567f7e8877708de5ed9
parentb7b7cda6cf94ecaa3d5953ef4824496793db50cd
KVMHypervisor: implement instance policy routing

Until now we relied on traffic from instances being policy routed via a
rule based on the instance network. With this change we can enforce it
on the instance interfaces. Since the ip rules survive interface
disappearing and reappearing, we need first to remove leftover rules,
and then to apply the new one, when creating the interface.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/hypervisor/hv_kvm.py