FLAGS.add_option -> FLAGS.register_opt > commit d1888a3359345acffd8d0845c137eefd88072112 > Author: Mark McLoughlin <[email protected]> > Date: Fri Feb 3 00:50:58 2012 +0000 > > Remove the last of the gflags shim layer > > Make FLAGS a ConfigOpts instance and fix up all the places where we > expected FlagValues behaviour. > > Change-Id: I8f96f42e0d8d30ba6b362d29861e717cf0fa9e89
Change-Id: I4897dc848efa7fff6c73399a72d876fb503121e7 Signed-off-by: Isaku Yamahata <[email protected]> --- quantum/plugins/ryu/nova/linux_net.py | 2 +- quantum/plugins/ryu/nova/vif.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quantum/plugins/ryu/nova/linux_net.py b/quantum/plugins/ryu/nova/linux_net.py index 500d6f0..d2803ca 100644 --- a/quantum/plugins/ryu/nova/linux_net.py +++ b/quantum/plugins/ryu/nova/linux_net.py @@ -28,7 +28,7 @@ ryu_linux_net_opt = cfg.StrOpt('linuxnet_ovs_ryu_api_host', help='Openflow Ryu REST API host:port') FLAGS = flags.FLAGS -FLAGS.add_option(ryu_linux_net_opt) +FLAGS.register_opt(ryu_linux_net_opt) def _get_datapath_id(bridge_name): diff --git a/quantum/plugins/ryu/nova/vif.py b/quantum/plugins/ryu/nova/vif.py index 91c416c..2bd2f00 100644 --- a/quantum/plugins/ryu/nova/vif.py +++ b/quantum/plugins/ryu/nova/vif.py @@ -32,7 +32,7 @@ ryu_libvirt_ovs_driver_opt = cfg.StrOpt('libvirt_ovs_ryu_api_host', help='Openflow Ryu REST API host:port') FLAGS = flags.FLAGS -FLAGS.add_option(ryu_libvirt_ovs_driver_opt) +FLAGS.register_opt(ryu_libvirt_ovs_driver_opt) def _get_datapath_id(bridge_name): -- 1.7.1.1 ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
