Merge "CLI: Turn comments into docstring"
This commit is contained in:
commit
e24cbf9c30
@ -44,7 +44,7 @@ class TapFlow(extension.NeutronClientExtension):
|
||||
|
||||
|
||||
class ListTapFlow(extension.ClientExtensionList, TapFlow):
|
||||
# List tap flows.
|
||||
"""List tap flows."""
|
||||
|
||||
shell_command = 'tap-flow-list'
|
||||
list_columns = ['id', 'name', 'source_port', 'tap_service_id']
|
||||
@ -53,7 +53,7 @@ class ListTapFlow(extension.ClientExtensionList, TapFlow):
|
||||
|
||||
|
||||
class CreateTapFlow(extension.ClientExtensionCreate, TapFlow):
|
||||
# Create a tap flow.
|
||||
"""Create a tap flow."""
|
||||
|
||||
shell_command = 'tap-flow-create'
|
||||
list_columns = ['id', 'name', 'direction', 'source_port']
|
||||
@ -94,19 +94,19 @@ class CreateTapFlow(extension.ClientExtensionCreate, TapFlow):
|
||||
|
||||
|
||||
class DeleteTapFlow(extension.ClientExtensionDelete, TapFlow):
|
||||
# Delete a tap flow.
|
||||
"""Delete a tap flow."""
|
||||
|
||||
shell_command = 'tap-flow-delete'
|
||||
|
||||
|
||||
class ShowTapFlow(extension.ClientExtensionShow, TapFlow):
|
||||
# Show a tap flow.
|
||||
"""Show a tap flow."""
|
||||
|
||||
shell_command = 'tap-flow-show'
|
||||
|
||||
|
||||
class UpdateTapFlow(extension.ClientExtensionUpdate, TapFlow):
|
||||
# Update a tap flow.
|
||||
"""Update a tap flow."""
|
||||
|
||||
shell_command = 'tap-flow-update'
|
||||
list_columns = ['id', 'name']
|
||||
|
@ -43,7 +43,7 @@ class TapService(extension.NeutronClientExtension):
|
||||
|
||||
|
||||
class ListTapService(extension.ClientExtensionList, TapService):
|
||||
# List tap services.
|
||||
"""List tap services."""
|
||||
|
||||
shell_command = 'tap-service-list'
|
||||
list_columns = ['id', 'name', 'port']
|
||||
@ -52,7 +52,7 @@ class ListTapService(extension.ClientExtensionList, TapService):
|
||||
|
||||
|
||||
class CreateTapService(extension.ClientExtensionCreate, TapService):
|
||||
# Create a tap service.
|
||||
"""Create a tap service."""
|
||||
|
||||
shell_command = 'tap-service-create'
|
||||
list_columns = ['id', 'name', 'port', 'network']
|
||||
@ -89,19 +89,19 @@ class CreateTapService(extension.ClientExtensionCreate, TapService):
|
||||
|
||||
|
||||
class DeleteTapService(extension.ClientExtensionDelete, TapService):
|
||||
# Delete a tap service.
|
||||
"""Delete a tap service."""
|
||||
|
||||
shell_command = 'tap-service-delete'
|
||||
|
||||
|
||||
class ShowTapService(extension.ClientExtensionShow, TapService):
|
||||
# Show a tap service.
|
||||
"""Show a tap service."""
|
||||
|
||||
shell_command = 'tap-service-show'
|
||||
|
||||
|
||||
class UpdateTapService(extension.ClientExtensionUpdate, TapService):
|
||||
# Update a tap service.
|
||||
"""Update a tap service."""
|
||||
|
||||
shell_command = 'tap-service-update'
|
||||
list_columns = ['id', 'name']
|
||||
|
Loading…
x
Reference in New Issue
Block a user