]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Validate local_ip for Linuxbridge agent
authorLi Ma <skywalker.nick@gmail.com>
Wed, 30 Jul 2014 02:09:53 +0000 (19:09 -0700)
committerLi Ma <skywalker.nick@gmail.com>
Fri, 19 Dec 2014 11:28:33 +0000 (03:28 -0800)
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

index a8060a9ebbd3011df604f4ca85e876b35d91647a..74942a17f6cbbd6c5b9dc5610d77c4bd018d7720 100644 (file)
@@ -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 "