From 9fc45cee5af611c888655c0c975b1ac5dde89200 Mon Sep 17 00:00:00 2001 From: Li Ma Date: Tue, 29 Jul 2014 19:09:53 -0700 Subject: [PATCH] Validate local_ip for Linuxbridge agent As oslo.config has introduced Opts for IPv4/6 address, the local_ip of linuxbridge agent needs to be verified. Change-Id: I806eaae38c04e30dd81c8a5f711c196946b04316 --- neutron/plugins/linuxbridge/common/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/plugins/linuxbridge/common/config.py b/neutron/plugins/linuxbridge/common/config.py index a8060a9eb..74942a17f 100644 --- a/neutron/plugins/linuxbridge/common/config.py +++ b/neutron/plugins/linuxbridge/common/config.py @@ -42,8 +42,8 @@ vxlan_opts = [ help=_("TOS for vxlan interface protocol packets.")), cfg.StrOpt('vxlan_group', default=DEFAULT_VXLAN_GROUP, help=_("Multicast group for vxlan interface.")), - cfg.StrOpt('local_ip', default='', - help=_("Local IP address of the VXLAN endpoints.")), + cfg.IPOpt('local_ip', version=4, + help=_("Local IP address of the VXLAN endpoints.")), cfg.BoolOpt('l2_population', default=False, help=_("Extension to use alongside ml2 plugin's l2population " "mechanism driver. It enables the plugin to populate " -- 2.45.2