Mikrotik Routeros
@keeb/mikrotik-routerosv2026.07.09.1
01README
MikroTik RouterOS management over the REST API: decomposed, per-object typed resources for system, interfaces, bridge, and IP — plus port enable/disable, set-identity, and reboot. Queryable with CEL.
02Models
@keeb/mikrotik-routeros/systemv2026.07.09.1system.ts
fn discover()
Read system resource, routerboard, health sensors, and identity; write one typed resource per object
fn set_identity(name: string)
Rename the device (system identity) and record the new value
| Argument | Type | Description |
|---|---|---|
| name | string | New device identity (hostname), e.g. crs309-rack |
fn reboot()
Soft-reboot the device. The switch drops the connection immediately, so no data is written.
Resources
resource(infinite)— Host resource snapshot: CPU, memory, version, uptime
routerboard(infinite)— RouterBOARD hardware/firmware snapshot
health(infinite)— One health sensor reading (temperature, voltage, …)
identity(infinite)— The device identity (hostname)
@keeb/mikrotik-routeros/interfacev2026.07.09.1interface.ts
fn discover()
Read all interfaces; write one typed `port` resource per interface
fn enable_port(name: string)
Enable (un-disable) a port by name and record its new state
| Argument | Type | Description |
|---|---|---|
| name | string | Interface name, e.g. sfp-sfpplus3 or ether1 |
fn disable_port(name: string)
Disable a port by name and record its new state
| Argument | Type | Description |
|---|---|---|
| name | string | Interface name, e.g. sfp-sfpplus3 or ether1 |
fn set_comment(name: string, comment: string)
Set (or clear) a port's comment/label and record it
| Argument | Type | Description |
|---|---|---|
| name | string | Interface name, e.g. sfp-sfpplus3 |
| comment | string | Comment/label to set (empty string clears it) |
Resources
port(infinite)— One interface/port: type, link state, and traffic counters
@keeb/mikrotik-routeros/bridgev2026.07.09.1bridge.ts
fn discover()
Read bridges, bridge ports, and bridge VLANs; write one typed resource per object
Resources
bridge(infinite)— One L2 bridge and its spanning-tree/VLAN settings
bridgePort(infinite)— One bridge member port with hardware-offload and role
vlan(infinite)— One bridge-VLAN entry with tagged/untagged membership
@keeb/mikrotik-routeros/ipv2026.07.09.1ip.ts
fn discover()
Read IP addresses, routes, and DNS settings; write one typed resource per object
Resources
address(infinite)— One configured IP address and its interface
route(infinite)— One route-table entry
dns(infinite)— DNS resolver settings snapshot
03Stats
A
100 / 100
Downloads
0
Archive size
17.4 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
04Platforms
05Labels