IP Block Management#
This file contains info obtained from Node.fetch_route_planner_status()
.
- class mafic.IPRoutePlannerType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#
Bases:
Enum
The type of IP route planner.
More info about what planner to use can be found in the lavalink docs.
- BALANCING_IP = 'BalancingIPRoutePlanner'#
IP address used is selected randomly.
This represents
LoadBalance
in config.
- NANO_IP = 'NanoIPRoutePlanner'#
IP address used is switched on clock update.
This reprersents
NanoSwitch
in config.
- ROTATING_IP = 'RotatingIPRoutePlanner'#
IP address used is switched on ban.
This represents
RotateOnBan
in config.
- ROTATING_NANO_IP = 'RotatingNanoIPRoutePlanner'#
IP address used is switched on clock update, rotates to a different block on ban.
This represents
RotatingNanoSwitch
in config.
- class mafic.IPBlockType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#
Bases:
Enum
The type of IP block.
- class mafic.FailingAddress(data)#
Bases:
object
Represents a failing IP address.
- time#
The time the address was added to the list of failing addresses.
- Type:
- class mafic.BaseIPRoutePlannerStatus(data)#
Bases:
ABC
An abstract base class representing the status of an IP route planner.
- failing_addresses#
The list of failing addresses.
- Type:
- type#
The type of route planner.
- Type:
- class mafic.BalancingIPRoutePlannerStatus(data)#
Bases:
BaseIPRoutePlannerStatus
Represents the status of a balancing IP route planner.
- type#
The type of route planner. This will always be
IPRoutePlannerType.BALANCING_IP
.
- class mafic.NanoIPRoutePlannerStatus(data)#
Bases:
BaseIPRoutePlannerStatus
Represents the status of a nano IP route planner.
- type#
The type of route planner. This will always be
IPRoutePlannerType.NANO_IP
.
- class mafic.RotatingIPRoutePlannerStatus(data)#
Bases:
BaseIPRoutePlannerStatus
Represents the status of a rotating IP route planner.
- type#
The type of route planner. This will always be
IPRoutePlannerType.ROTATING_IP
.
- class mafic.RotatingNanoIPRoutePlannerStatus(data)#
Bases:
BaseIPRoutePlannerStatus
Represents the status of a rotating nano IP route planner.
- type#
The type of route planner. This will always be
IPRoutePlannerType.ROTATING_NANO_IP
.
- mafic.ip.RoutePlannerStatus#
Represents the status of an IP route planner. This can be one of the following:
To determine the type of route planner, check the
BaseIPRoutePlannerStatus.type
attribute.alias of
Union
[RotatingIPRoutePlannerStatus
,NanoIPRoutePlannerStatus
,RotatingNanoIPRoutePlannerStatus
,BalancingIPRoutePlannerStatus
]