summaryrefslogtreecommitdiff
path: root/trove/common/cfg.py
diff options
context:
space:
mode:
authorLingxian Kong <anlin.kong@gmail.com>2020-04-16 17:50:55 +1200
committerLingxian Kong <anlin.kong@gmail.com>2020-04-26 09:56:50 +1200
commit429c39890e3242c6a502037673943b38452c5811 (patch)
tree1ecb67979bcb664996e6f1e1a0146b59567e8a0a /trove/common/cfg.py
parenta4057b10af44e7f21243e539dd2daad2ad61657b (diff)
downloadtrove-429c39890e3242c6a502037673943b38452c5811.tar.gz
Support ip address type for instances
Include address type in getting instance response. * Deprecate confip option network_label_regex as we don't reply on Nova to get addresses, network names don't make any sense. * Add 'addresses' in instance API response, keep 'ip' as is but mark it deprecated in API doc, python-troveclient shouldn't break. Story: 2007562 Task: 39445 Change-Id: Ia0458b5ddae8959ce29c17e444e1a51a026283cd
Diffstat (limited to 'trove/common/cfg.py')
-rw-r--r--trove/common/cfg.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/trove/common/cfg.py b/trove/common/cfg.py
index a97623f6..becfe393 100644
--- a/trove/common/cfg.py
+++ b/trove/common/cfg.py
@@ -373,7 +373,8 @@ common_opts = [
'mariadb': '7a4f82cc-10d2-4bc6-aadc-d9aacc2a3cb5'},
help='Unique ID to tag notification events.'),
cfg.StrOpt('network_label_regex', default='^private$',
- help='Regular expression to match Trove network labels.'),
+ help='Regular expression to match Trove network labels.',
+ deprecated_for_removal=True),
cfg.StrOpt('ip_regex', default=None,
help='List IP addresses that match this regular expression.'),
cfg.StrOpt('black_list_regex', default=None,