4747
4848
4949def _add_updatable_args (parser ):
50- parser .add_argument ('--name' , help = _ ('Name of this Tap service .' ))
50+ parser .add_argument ('--name' , help = _ ('Name of the tap flow .' ))
5151 parser .add_argument (
52- '--description' , help = _ ('Description for this Tap service .' )
52+ '--description' , help = _ ('Description of the tap flow .' )
5353 )
5454
5555
5656class CreateTapFlow (command .ShowOne ):
57- _description = _ ("Create a tap flow" )
57+ _description = _ ("Create a new tap flow. " )
5858
5959 def get_parser (self , prog_name ):
6060 parser = super ().get_parser (prog_name )
@@ -64,13 +64,15 @@ def get_parser(self, prog_name):
6464 '--port' ,
6565 required = True ,
6666 metavar = "SOURCE_PORT" ,
67- help = _ ('Source port to which the Tap Flow is connected .' ),
67+ help = _ ('Source port (name or ID) to monitor .' ),
6868 )
6969 parser .add_argument (
7070 '--tap-service' ,
7171 required = True ,
7272 metavar = "TAP_SERVICE" ,
73- help = _ ('Tap Service to which the Tap Flow belongs.' ),
73+ help = _ (
74+ 'Tap service (name or ID) to associate with this tap flow.'
75+ ),
7476 )
7577 parser .add_argument (
7678 '--direction' ,
@@ -79,15 +81,15 @@ def get_parser(self, prog_name):
7981 choices = ['IN' , 'OUT' , 'BOTH' ],
8082 type = lambda s : s .upper (),
8183 help = _ (
82- 'Direction of the Tap flow. Possible options are: '
83- 'IN, OUT, BOTH'
84+ 'Direction of the Tap flow. Valid options are: '
85+ 'IN, OUT and BOTH'
8486 ),
8587 )
8688 parser .add_argument (
8789 '--vlan-filter' ,
8890 required = False ,
8991 metavar = "VLAN_FILTER" ,
90- help = _ ('VLAN Ids to be mirrored in the form of range string.' ),
92+ help = _ ('VLAN IDs to mirror in the form of range string.' ),
9193 )
9294 return parser
9395
@@ -125,7 +127,7 @@ def take_action(self, parsed_args):
125127
126128
127129class ListTapFlow (command .Lister ):
128- _description = _ ("List tap flows that belong to a given tenant " )
130+ _description = _ ("List tap flows. " )
129131
130132 def get_parser (self , prog_name ):
131133 parser = super ().get_parser (prog_name )
@@ -158,14 +160,14 @@ def take_action(self, parsed_args):
158160
159161
160162class ShowTapFlow (command .ShowOne ):
161- _description = _ ("Show information of a given tap flow" )
163+ _description = _ ("Show tap flow details. " )
162164
163165 def get_parser (self , prog_name ):
164166 parser = super ().get_parser (prog_name )
165167 parser .add_argument (
166168 TAP_FLOW ,
167169 metavar = f"<{ TAP_FLOW } >" ,
168- help = _ ("ID or name of tap flow to look up ." ),
170+ help = _ ("Tap flow to display (name or ID) ." ),
169171 )
170172 return parser
171173
@@ -181,15 +183,15 @@ def take_action(self, parsed_args):
181183
182184
183185class DeleteTapFlow (command .Command ):
184- _description = _ ("Delete a tap flow" )
186+ _description = _ ("Delete a tap flow. " )
185187
186188 def get_parser (self , prog_name ):
187189 parser = super ().get_parser (prog_name )
188190 parser .add_argument (
189191 TAP_FLOW ,
190192 metavar = f"<{ TAP_FLOW } >" ,
191193 nargs = "+" ,
192- help = _ ("ID(s) or name(s) of tap flow to delete." ),
194+ help = _ ("Tap flow to delete (name or ID) ." ),
193195 )
194196 return parser
195197
@@ -200,7 +202,6 @@ def take_action(self, parsed_args):
200202 try :
201203 id = client .find_tap_flow (id_or_name , ignore_missing = False ).id
202204 client .delete_tap_flow (id )
203- LOG .warning ("Tap flow %(id)s deleted" , {'id' : id })
204205 except Exception as e :
205206 fails += 1
206207 LOG .error (
@@ -224,7 +225,7 @@ def get_parser(self, prog_name):
224225 parser .add_argument (
225226 TAP_FLOW ,
226227 metavar = f"<{ TAP_FLOW } >" ,
227- help = _ ("ID or name of tap flow to update ." ),
228+ help = _ ("Tap flow to modify (name or ID) ." ),
228229 )
229230 _add_updatable_args (parser )
230231 return parser
0 commit comments