Skip to content

Commit b75f741

Browse files
committed
network: Remove irrelevant TODO
I think the intention here was to use attr-style access rather than converting to a dict, but we're unlikely to do this at this point. Just drop the TODOs as they're just noise at this point. Change-Id: Id66fb87ea303f5dda84ebf8de244b81ea11735a5 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
1 parent e814bd2 commit b75f741

17 files changed

Lines changed: 0 additions & 81 deletions

openstackclient/network/v2/address_scope.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ def _get_attrs(
6161
return attrs
6262

6363

64-
# TODO(rtheis): Use the SDK resource mapped attribute names once the
65-
# OSC minimum requirements include SDK 1.0.
6664
class CreateAddressScope(command.ShowOne, common.NeutronCommandWithExtraArgs):
6765
_description = _("Create a new Address Scope")
6866

@@ -156,8 +154,6 @@ def take_action(self, parsed_args: argparse.Namespace) -> None:
156154
raise exceptions.CommandError(msg)
157155

158156

159-
# TODO(yanxing'an): Use the SDK resource mapped attribute names once the
160-
# OSC minimum requirements include SDK 1.0.
161157
class ListAddressScope(command.Lister):
162158
_description = _("List address scopes")
163159

@@ -253,8 +249,6 @@ def take_action(
253249
)
254250

255251

256-
# TODO(rtheis): Use the SDK resource mapped attribute names once the
257-
# OSC minimum requirements include SDK 1.0.
258252
class SetAddressScope(common.NeutronCommandWithExtraArgs):
259253
_description = _("Set address scope properties")
260254

openstackclient/network/v2/floating_ip.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,6 @@ def take_action(self, parsed_args: argparse.Namespace) -> None:
231231

232232

233233
class ListFloatingIP(command.Lister):
234-
# TODO(songminglong): Use SDK resource mapped attribute names once
235-
# the OSC minimum requirements include SDK 1.0
236-
237234
_description = _("List floating IP(s)")
238235

239236
def get_parser(self, prog_name: str) -> argparse.ArgumentParser:

openstackclient/network/v2/ip_availability.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ def _get_columns(item: Any) -> tuple[tuple[str, ...], tuple[str, ...]]:
3636
)
3737

3838

39-
# TODO(ankur-gupta-f): Use the SDK resource mapped attribute names once
40-
# the OSC minimum requirements include SDK 1.0.
4139
class ListIPAvailability(command.Lister):
4240
_description = _("List IP availability for network")
4341

openstackclient/network/v2/network.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ def _add_additional_network_options(parser: argparse.ArgumentParser) -> None:
208208
)
209209

210210

211-
# TODO(sindhu): Use the SDK resource mapped attribute names once the
212-
# OSC minimum requirements include SDK 1.0.
213211
class CreateNetwork(command.ShowOne, common.NeutronCommandWithExtraArgs):
214212
_description = _("Create new network")
215213

@@ -439,8 +437,6 @@ def take_action(self, parsed_args: argparse.Namespace) -> None:
439437
raise exceptions.CommandError(msg)
440438

441439

442-
# TODO(sindhu): Use the SDK resource mapped attribute names once the
443-
# OSC minimum requirements include SDK 1.0.
444440
class ListNetwork(command.Lister):
445441
_description = _("List networks")
446442

@@ -671,8 +667,6 @@ def take_action(
671667
)
672668

673669

674-
# TODO(sindhu): Use the SDK resource mapped attribute names once the
675-
# OSC minimum requirements include SDK 1.0.
676670
class SetNetwork(common.NeutronCommandWithExtraArgs):
677671
_description = _("Set network properties")
678672

openstackclient/network/v2/network_agent.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,6 @@ def take_action(self, parsed_args: argparse.Namespace) -> None:
190190
raise exceptions.CommandError(msg)
191191

192192

193-
# TODO(huanxuan): Use the SDK resource mapped attribute names once the
194-
# OSC minimum requirements include SDK 1.0.
195193
class ListNetworkAgent(command.Lister):
196194
_description = _("List network agents")
197195
_supported_agents = {
@@ -378,8 +376,6 @@ def take_action(self, parsed_args: argparse.Namespace) -> None:
378376
client.remove_router_from_agent(agent, router)
379377

380378

381-
# TODO(huanxuan): Use the SDK resource mapped attribute names once the
382-
# OSC minimum requirements include SDK 1.0.
383379
class SetNetworkAgent(command.Command):
384380
_description = _("Set network agent properties")
385381

openstackclient/network/v2/network_auto_allocated_topology.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ def _get_attrs(
6363
return attrs
6464

6565

66-
# TODO(ankur-gupta-f): Use the SDK resource mapped attribute names once the
67-
# OSC minimum requirements include SDK 1.0.
6866
class CreateAutoAllocatedTopology(command.ShowOne):
6967
_description = _("Create the auto allocated topology for project")
7068

@@ -130,8 +128,6 @@ def take_action(
130128
return (columns, data)
131129

132130

133-
# TODO(ankur-gupta-f): Use the SDK resource mapped attribute names once the
134-
# OSC minimum requirements include SDK 1.0.
135131
class DeleteAutoAllocatedTopology(command.Command):
136132
_description = _("Delete auto allocated topology for project")
137133

openstackclient/network/v2/network_flavor.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ def take_action(self, parsed_args: argparse.Namespace) -> None:
9292
)
9393

9494

95-
# TODO(dasanind): Use the SDK resource mapped attribute names once the
96-
# OSC minimum requirements include SDK 1.0.
9795
class CreateNetworkFlavor(command.ShowOne, common.NeutronCommandWithExtraArgs):
9896
_description = _("Create new network flavor")
9997

@@ -247,8 +245,6 @@ def take_action(self, parsed_args: argparse.Namespace) -> None:
247245
)
248246

249247

250-
# TODO(dasanind): Use only the SDK resource mapped attribute names once the
251-
# OSC minimum requirements include SDK 1.0.
252248
class SetNetworkFlavor(common.NeutronCommandWithExtraArgs):
253249
_description = _("Set network flavor properties")
254250

openstackclient/network/v2/network_flavor_profile.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ def _get_attrs(
5555
return attrs
5656

5757

58-
# TODO(ndahiwade): Use the SDK resource mapped attribute names once the
59-
# OSC minimum requirements include SDK 1.0.
6058
class CreateNetworkFlavorProfile(
6159
command.ShowOne, common.NeutronCommandWithExtraArgs
6260
):
@@ -194,8 +192,6 @@ def take_action(
194192
)
195193

196194

197-
# TODO(ndahiwade): Use the SDK resource mapped attribute names once the
198-
# OSC minimum requirements include SDK 1.0.
199195
class SetNetworkFlavorProfile(common.NeutronCommandWithExtraArgs):
200196
_description = _("Set network flavor profile properties")
201197

openstackclient/network/v2/network_meter.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ def _get_attrs(
6464
return attrs
6565

6666

67-
# TODO(ankur-gupta-f): Use the SDK resource mapped attribute names once the
68-
# OSC minimum requirements include SDK 1.0.
6967
class CreateMeter(command.ShowOne, common.NeutronCommandWithExtraArgs):
7068
_description = _("Create network meter")
7169

@@ -119,8 +117,6 @@ def take_action(
119117
return (display_columns, data)
120118

121119

122-
# TODO(ankur-gupta-f): Use the SDK resource mapped attribute names once the
123-
# OSC minimum requirements include SDK 1.0.
124120
class DeleteMeter(command.Command):
125121
_description = _("Delete network meter")
126122

openstackclient/network/v2/network_qos_policy.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ def _get_attrs(
8282
return attrs
8383

8484

85-
# TODO(abhiraut): Use the SDK resource mapped attribute names once the
86-
# OSC minimum requirements include SDK 1.0.
8785
class CreateNetworkQosPolicy(
8886
command.ShowOne, common.NeutronCommandWithExtraArgs
8987
):
@@ -186,8 +184,6 @@ def take_action(self, parsed_args: argparse.Namespace) -> None:
186184
raise exceptions.CommandError(msg)
187185

188186

189-
# TODO(abhiraut): Use only the SDK resource mapped attribute names once the
190-
# OSC minimum requirements include SDK 1.0.
191187
class ListNetworkQosPolicy(command.Lister):
192188
_description = _("List QoS policies")
193189

@@ -248,8 +244,6 @@ def take_action(
248244
)
249245

250246

251-
# TODO(abhiraut): Use the SDK resource mapped attribute names once the
252-
# OSC minimum requirements include SDK 1.0.
253247
class SetNetworkQosPolicy(common.NeutronCommandWithExtraArgs):
254248
_description = _("Set QoS policy properties")
255249

0 commit comments

Comments
 (0)