Skip to content

Commit

Permalink
consistent naming
Browse files Browse the repository at this point in the history
  • Loading branch information
ms264556 committed Nov 20, 2023
1 parent 0c75211 commit ef8ac52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aioruckus/ruckusapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import xmltodict

from .exceptions import SchemaError
from .typing.policy import ArcApplication, ArcPolicy, AvpPort, DevicePolicy, Dpsk, Ip4Policy, Ip6Policy, L2Policy, L2Rule, PrecedencePolicy, Role, UrlBlockCategory, UrlFilter
from .typing.policy import ArcApplication, ArcPolicy, ArcPort, DevicePolicy, Dpsk, Ip4Policy, Ip6Policy, L2Policy, L2Rule, PrecedencePolicy, Role, UrlBlockCategory, UrlFilter

from .abcsession import AbcSession, ConfigItem
from .const import ERROR_POST_BADRESULT, URL_FILTERING_CATEGORIES, SystemStat
Expand Down Expand Up @@ -197,7 +197,7 @@ async def get_arc_applications(self) -> list[ArcApplication | dict]:
except KeyError:
return []

async def get_arc_ports(self) -> list[AvpPort | dict]:
async def get_arc_ports(self) -> list[ArcPort | dict]:
"""Return a list of Application Recognition & Control User Defined Ports"""
try:
return await self._get_conf(ConfigItem.AVPPORT_LIST, ["avpport"])
Expand Down
2 changes: 1 addition & 1 deletion aioruckus/typing/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'id': str, 'name': str, 'protocol': Literal['tcp', 'udp'] , 'src-ip': str, 'src-port': str, 'dst-ip': str, 'dst-port': str, 'netmask': str
}, total=False)

AvpPort = TypedDict('AvpPort', {
ArcPort = TypedDict('ArcPort', {
'id': str, 'name': str, 'port': str, 'protocol': Literal['tcp', 'udp']
}, total=False)

Expand Down

0 comments on commit ef8ac52

Please sign in to comment.