25 lines
808 B
Diff
25 lines
808 B
Diff
|
From 390d1cb8b057ef0e6869fb57dc1e6b6997af49f0 Mon Sep 17 00:00:00 2001
|
||
|
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
|
||
|
Date: Fri, 3 Apr 2020 16:10:04 +0200
|
||
|
Subject: [PATCH] aws-vpc-move-ip: delete remaining route entries
|
||
|
|
||
|
---
|
||
|
heartbeat/aws-vpc-move-ip | 4 ++++
|
||
|
1 file changed, 4 insertions(+)
|
||
|
|
||
|
diff --git a/heartbeat/aws-vpc-move-ip b/heartbeat/aws-vpc-move-ip
|
||
|
index 97a467217..26ca6007d 100755
|
||
|
--- a/heartbeat/aws-vpc-move-ip
|
||
|
+++ b/heartbeat/aws-vpc-move-ip
|
||
|
@@ -256,6 +256,10 @@ ec2ip_drop() {
|
||
|
return $OCF_ERR_GENERIC
|
||
|
fi
|
||
|
|
||
|
+ # delete remaining route-entries if any
|
||
|
+ ip route show to exact ${OCF_RESKEY_ip}/32 dev $OCF_RESKEY_interface | xargs -r ip route delete
|
||
|
+ ip route show table local to exact ${OCF_RESKEY_ip}/32 dev $OCF_RESKEY_interface | xargs -r ip route delete
|
||
|
+
|
||
|
return $OCF_SUCCESS
|
||
|
}
|
||
|
|