From 6dafc662e64f51606a87e7144ad7ae29712c74c7 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Tue, 26 Jul 2016 10:11:00 -0400 Subject: [PATCH] Use deprecated_reason for network quota options This addresses some comments that were missed in change: I892855ccf8ae83c0bd5e2bc25ea64dee83ab79ed Change-Id: If4d035ddd7dc1092f93f869395acb0021e57aed8 --- nova/conf/api.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/nova/conf/api.py b/nova/conf/api.py index d08ed614fedc..9d55c9b5d026 100644 --- a/nova/conf/api.py +++ b/nova/conf/api.py @@ -306,11 +306,12 @@ The full path to the fping binary. os_network_opts = [ cfg.BoolOpt("enable_network_quota", deprecated_for_removal=True, + deprecated_reason=""" +CRUD operations on tenant networks are only available when using nova-network +and nova-network is itself deprecated.""", default=False, help=""" This option is used to enable or disable quota checking for tenant networks. -This option is deprecated since CRUD operations on tenant networks are only -available when using nova-network and nova-network is itself disabled. * Services that use this: @@ -364,12 +365,13 @@ Possible values: """), cfg.IntOpt('quota_networks', deprecated_for_removal=True, + deprecated_reason=""" +CRUD operations on tenant networks are only available when using nova-network +and nova-network is itself deprecated.""", default=3, help=""" This option controls the number of private networks that can be created per -project (or per tenant). This option is deprecated since CRUD operations on -tenant networks are only available when using nova-network and nova-network is -itself disabled. +project (or per tenant). * Services that use this: