Skip to content

Commit cd91c73

Browse files
committed
fix(network): typo change neutron to network (#30)
1 parent ec8c1f9 commit cd91c73

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

src/openstack_mcp_server/tools/network_tools.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
class NetworkTools:
1313
"""
14-
A class to encapsulate Neutron-related tools and utilities.
14+
A class to encapsulate Network-related tools and utilities.
1515
"""
1616

1717
def register_tools(self, mcp: FastMCP):
1818
"""
19-
Register Neutron-related tools with the FastMCP instance.
19+
Register Network-related tools with the FastMCP instance.
2020
"""
2121

2222
mcp.tool()(self.get_networks)
@@ -63,7 +63,7 @@ def get_networks(
6363
shared_only: bool = False,
6464
) -> list[Network]:
6565
"""
66-
Get the list of Neutron networks with optional filtering.
66+
Get the list of Networks with optional filtering.
6767
6868
:param status_filter: Filter networks by status (e.g., `ACTIVE`, `DOWN`)
6969
:type status_filter: str | None
@@ -99,7 +99,7 @@ def create_network(
9999
provider_segmentation_id: int | None = None,
100100
) -> Network:
101101
"""
102-
Create a new Neutron network.
102+
Create a new Network.
103103
104104
:param name: Network name
105105
:type name: str
@@ -146,7 +146,7 @@ def create_network(
146146

147147
def get_network_detail(self, network_id: str) -> Network:
148148
"""
149-
Get detailed information about a specific Neutron network.
149+
Get detailed information about a specific Network.
150150
151151
:param network_id: ID of the network to retrieve
152152
:type network_id: str
@@ -168,7 +168,7 @@ def update_network(
168168
is_shared: bool | None = None,
169169
) -> Network:
170170
"""
171-
Update an existing Neutron network.
171+
Update an existing Network.
172172
173173
:param network_id: ID of the network to update
174174
:type network_id: str
@@ -205,7 +205,7 @@ def update_network(
205205

206206
def delete_network(self, network_id: str) -> None:
207207
"""
208-
Delete a Neutron network.
208+
Delete a Network.
209209
210210
:param network_id: ID of the network to delete
211211
:type network_id: str
@@ -253,7 +253,7 @@ def get_subnets(
253253
is_dhcp_enabled: bool | None = None,
254254
) -> list[Subnet]:
255255
"""
256-
Get the list of Neutron subnets with optional filtering.
256+
Get the list of Subnets with optional filtering.
257257
258258
:param network_id: Filter by network ID
259259
:type network_id: str | None
@@ -299,7 +299,7 @@ def create_subnet(
299299
host_routes: list[dict] | None = None,
300300
) -> Subnet:
301301
"""
302-
Create a new Neutron subnet.
302+
Create a new Subnet.
303303
304304
:param network_id: ID of the parent network
305305
:type network_id: str
@@ -348,7 +348,7 @@ def create_subnet(
348348

349349
def get_subnet_detail(self, subnet_id: str) -> Subnet:
350350
"""
351-
Get detailed information about a specific Neutron subnet.
351+
Get detailed information about a specific Subnet.
352352
353353
:param subnet_id: ID of the subnet to retrieve
354354
:type subnet_id: str
@@ -372,7 +372,7 @@ def update_subnet(
372372
host_routes: list[dict] | None = None,
373373
) -> Subnet:
374374
"""
375-
Update an existing Neutron subnet.
375+
Update an existing Subnet.
376376
377377
:param subnet_id: ID of the subnet to update
378378
:type subnet_id: str
@@ -418,7 +418,7 @@ def update_subnet(
418418

419419
def delete_subnet(self, subnet_id: str) -> None:
420420
"""
421-
Delete a Neutron subnet.
421+
Delete a Subnet.
422422
423423
:param subnet_id: ID of the subnet to delete
424424
:type subnet_id: str
@@ -523,7 +523,7 @@ def get_ports(
523523
network_id: str | None = None,
524524
) -> list[Port]:
525525
"""
526-
Get the list of Neutron ports with optional filtering.
526+
Get the list of Ports with optional filtering.
527527
528528
:param status_filter: Filter by port status (e.g., `ACTIVE`, `DOWN`)
529529
:type status_filter: str | None
@@ -785,7 +785,7 @@ def create_port(
785785
security_group_ids: list[str] | None = None,
786786
) -> Port:
787787
"""
788-
Create a new Neutron port.
788+
Create a new Port.
789789
790790
:param network_id: ID of the parent network
791791
:type network_id: str
@@ -824,7 +824,7 @@ def create_port(
824824

825825
def get_port_detail(self, port_id: str) -> Port:
826826
"""
827-
Get detailed information about a specific Neutron port.
827+
Get detailed information about a specific Port.
828828
829829
:param port_id: ID of the port to retrieve
830830
:type port_id: str
@@ -846,7 +846,7 @@ def update_port(
846846
security_group_ids: list[str] | None = None,
847847
) -> Port:
848848
"""
849-
Update an existing Neutron port.
849+
Update an existing Port.
850850
851851
:param port_id: ID of the port to update
852852
:type port_id: str
@@ -884,7 +884,7 @@ def update_port(
884884

885885
def delete_port(self, port_id: str) -> None:
886886
"""
887-
Delete a Neutron port.
887+
Delete a Port.
888888
889889
:param port_id: ID of the port to delete
890890
:type port_id: str
@@ -898,7 +898,7 @@ def delete_port(self, port_id: str) -> None:
898898

899899
def _convert_to_port_model(self, openstack_port) -> Port:
900900
"""
901-
Convert an OpenStack port object to a Port pydantic model.
901+
Convert an OpenStack Port object to a Port pydantic model.
902902
903903
:param openstack_port: OpenStack port object
904904
:type openstack_port: Any
@@ -931,7 +931,7 @@ def get_floating_ips(
931931
unassigned_only: bool | None = None,
932932
) -> list[FloatingIP]:
933933
"""
934-
Get the list of Neutron floating IPs with optional filtering.
934+
Get the list of Floating IPs with optional filtering.
935935
936936
:param status_filter: Filter by IP status (e.g., `ACTIVE`)
937937
:type status_filter: str | None
@@ -970,7 +970,7 @@ def create_floating_ip(
970970
project_id: str | None = None,
971971
) -> FloatingIP:
972972
"""
973-
Create a new Neutron floating IP.
973+
Create a new Floating IP.
974974
975975
:param floating_network_id: External (floating) network ID
976976
:type floating_network_id: str
@@ -1004,7 +1004,7 @@ def allocate_floating_ip_pool_to_project(
10041004
project_id: str,
10051005
) -> None:
10061006
"""
1007-
Allocate floating IP pool (external network access) to a project via RBAC.
1007+
Allocate Floating IP pool (external network access) to a project via RBAC.
10081008
10091009
:param floating_network_id: External network ID
10101010
:type floating_network_id: str
@@ -1029,7 +1029,7 @@ def attach_floating_ip_to_port(
10291029
fixed_ip_address: str | None = None,
10301030
) -> FloatingIP:
10311031
"""
1032-
Attach a floating IP to a port.
1032+
Attach a Floating IP to a Port.
10331033
10341034
:param floating_ip_id: Floating IP ID
10351035
:type floating_ip_id: str
@@ -1049,7 +1049,7 @@ def attach_floating_ip_to_port(
10491049

10501050
def detach_floating_ip_from_port(self, floating_ip_id: str) -> FloatingIP:
10511051
"""
1052-
Detach a floating IP from its port.
1052+
Detach a Floating IP from its Port.
10531053
10541054
:param floating_ip_id: Floating IP ID
10551055
:type floating_ip_id: str
@@ -1062,7 +1062,7 @@ def detach_floating_ip_from_port(self, floating_ip_id: str) -> FloatingIP:
10621062

10631063
def delete_floating_ip(self, floating_ip_id: str) -> None:
10641064
"""
1065-
Delete a Neutron floating IP.
1065+
Delete a Floating IP.
10661066
10671067
:param floating_ip_id: Floating IP ID to delete
10681068
:type floating_ip_id: str
@@ -1080,7 +1080,7 @@ def update_floating_ip_description(
10801080
description: str | None,
10811081
) -> FloatingIP:
10821082
"""
1083-
Update a floating IP's description.
1083+
Update a Floating IP's description.
10841084
10851085
:param floating_ip_id: Floating IP ID
10861086
:type floating_ip_id: str
@@ -1100,7 +1100,7 @@ def reassign_floating_ip_to_port(
11001100
fixed_ip_address: str | None = None,
11011101
) -> FloatingIP:
11021102
"""
1103-
Reassign a floating IP to a different port.
1103+
Reassign a Floating IP to a different Port.
11041104
11051105
:param floating_ip_id: Floating IP ID
11061106
:type floating_ip_id: str

0 commit comments

Comments
 (0)