ovs-monitor-ipsec: Don't reconfigure cert-based authentication as often.
authorJustin Pettit <jpettit@nicira.com>
Tue, 10 Jan 2012 02:46:23 +0000 (18:46 -0800)
committerJustin Pettit <jpettit@nicira.com>
Tue, 10 Jan 2012 18:21:59 +0000 (10:21 -0800)
commit3831d6f4ce1b0023702ad5e4bf75a455d57dc187
tree7c0926a02ce13f3ac2399fd2140f9a2bd1f9aed2
parenta685eb5a760579f0fe45cf5e5fe8db93468cb91d
ovs-monitor-ipsec: Don't reconfigure cert-based authentication as often.

ovs-monitor-ipsec wakes up when the Interface table is modified.  To
prevent needless reconfiguration, it maintains a dictionary of the
currently implemented configuration and compares it to any new changes.
Unfortunately, for certificate-based authentication we create a new
"peer_cert_file" key in our local dictionary, which always causes the
comparison to fail.  This forces expensive renegotiation for any change
in the Interface tables.  This commit uses set difference to detect
changes from the previous configuration as opposed to a straight simple
comparison.

Bug #9103

Signed-off-by: Justin Pettit <jpettit@nicira.com>
debian/ovs-monitor-ipsec