[ovs-dev] [PATCH 2/2] debian: Save openflow flows during package upgrade.

Gurucharan Shetty gshetty at nicira.com
Wed Oct 24 23:20:40 UTC 2012


When debian package for openvswitch-switch is upgraded,
export a variable, OVS_RESTART_SAVE_FLOWS=yes.
This will save the openflow flows in vswitchd and
re-apply it after the upgrade.

Feature #13555.
Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
---
 debian/openvswitch-switch.postinst |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/openvswitch-switch.postinst b/debian/openvswitch-switch.postinst
index 7b9d7bc..ac6ed65 100755
--- a/debian/openvswitch-switch.postinst
+++ b/debian/openvswitch-switch.postinst
@@ -49,6 +49,10 @@ esac
 OVS_MISSING_KMOD_OK=yes
 export OVS_MISSING_KMOD_OK
 
+# Save and restore openflow flows during a package upgrade.
+OVS_RESTART_SAVE_FLOWS=yes
+export OVS_RESTART_SAVE_FLOWS
+
 #DEBHELPER#
 
 exit 0
-- 
1.7.9.5




More information about the dev mailing list