From 390f8135bdf837ae931bcebc3f4ffdb8a9daae8b Mon Sep 17 00:00:00 2001 From: Bence Romsics Date: Wed, 21 Sep 2022 15:20:44 +0200 Subject: [PATCH] Improve help text for network create --external Change-Id: Ie802fbb8a35e53dcb79b5581f64caa2db1609480 Closes-Bug: #1990285 --- openstackclient/network/v2/network.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/openstackclient/network/v2/network.py b/openstackclient/network/v2/network.py index d7b37ebede..6a7c88baf5 100644 --- a/openstackclient/network/v2/network.py +++ b/openstackclient/network/v2/network.py @@ -271,14 +271,16 @@ class CreateNetwork(common.NetworkAndComputeShowOne, '--external', action='store_true', help=self.enhance_help_neutron( - _("Set this network as an external network " + _("The network has an external routing facility that's not " + "managed by Neutron and can be used as in: " + "openstack router set --external-gateway NETWORK " "(external-net extension required)")) ) external_router_grp.add_argument( '--internal', action='store_true', help=self.enhance_help_neutron( - _("Set this network as an internal network (default)")) + _("Opposite of '--external' (default)")) ) default_router_grp = parser.add_mutually_exclusive_group() default_router_grp.add_argument( @@ -690,13 +692,15 @@ class SetNetwork(common.NeutronCommandWithExtraArgs): external_router_grp.add_argument( '--external', action='store_true', - help=_("Set this network as an external network " + help=_("The network has an external routing facility that's not " + "managed by Neutron and can be used as in: " + "openstack router set --external-gateway NETWORK " "(external-net extension required)") ) external_router_grp.add_argument( '--internal', action='store_true', - help=_("Set this network as an internal network") + help=_("Opposite of '--external'") ) default_router_grp = parser.add_mutually_exclusive_group() default_router_grp.add_argument(