IP
Ip
¶
Bases: Base
Class that generates the connection with a MikroTik router.
Attributes:
| Name | Type | Description |
|---|---|---|
service |
dict
|
Dictionary with the services available on the router. |
Source code in netmikro/modules/ip.py
ip_port_set(service_name, port)
¶
Set the API port number.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
service_name
|
str
|
The service to be changed. |
required |
port
|
int
|
The new port number. |
required |
Examples:
Source code in netmikro/modules/ip.py
IpService
¶
Class for representing ip service on a MikroTik router.
Attributes:
| Name | Type | Description |
|---|---|---|
port |
int
|
Port number of the service. |
disabled |
bool
|
Whether the service is disabled or not. |
available_from |
str
|
IP address from which the service is available. |
Examples: