From be6ab2449d8daeabec124c3c601f1aa2d3b5c6ec Mon Sep 17 00:00:00 2001 From: Jakub Libosvar Date: Tue, 29 Jul 2014 10:50:12 +0200 Subject: [PATCH] Validate local_ip for OVS agent is actual ip address tunnel_sync() writes this value into ovsdb and value is not validated. In case non-ip value is written into ovsdb row must be deleted manually. Change-Id: I57eee81e6821eb2cb26b3d07a39bc94b81243570 Closes-bug: #1284684 --- neutron/plugins/openvswitch/common/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/plugins/openvswitch/common/config.py b/neutron/plugins/openvswitch/common/config.py index d9e045483..2392372ef 100644 --- a/neutron/plugins/openvswitch/common/config.py +++ b/neutron/plugins/openvswitch/common/config.py @@ -37,8 +37,8 @@ ovs_opts = [ cfg.StrOpt('tun_peer_patch_port', default='patch-int', help=_("Peer patch port in tunnel bridge for integration " "bridge.")), - cfg.StrOpt('local_ip', default='', - help=_("Local IP address of GRE tunnel endpoints.")), + cfg.IPOpt('local_ip', version=4, + help=_("Local IP address of tunnel endpoint.")), cfg.ListOpt('bridge_mappings', default=DEFAULT_BRIDGE_MAPPINGS, help=_("List of :. " -- 2.45.2