@usex/mikrotik-mcp 1.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -8
- package/dist/cli.js +8571 -2330
- package/dist/index.d.ts +42 -2
- package/dist/index.js +7798 -2226
- package/dist/ui/dashboard.html +19 -0
- package/dist/ui/firewall.html +20 -0
- package/dist/ui/interfaces.html +20 -0
- package/dist/ui/observability.html +27 -0
- package/dist/ui/records.html +20 -0
- package/package.json +63 -50
- package/schemas/README.md +1 -1
- package/schemas/config.schema.json +112 -21
- package/schemas/tool-catalog.json +11783 -5555
- package/schemas/tools/add_dot1x_client.json +42 -0
- package/schemas/tools/add_dot1x_server.json +60 -0
- package/schemas/tools/add_graphing_interface.json +23 -0
- package/schemas/tools/add_graphing_queue.json +22 -0
- package/schemas/tools/add_graphing_resource.json +14 -0
- package/schemas/tools/add_ipv6_address.json +43 -0
- package/schemas/tools/add_ipv6_address_list_entry.json +32 -0
- package/schemas/tools/add_ipv6_default_route.json +34 -0
- package/schemas/tools/add_ipv6_dhcp_binding.json +42 -0
- package/schemas/tools/add_ipv6_dhcp_client.json +69 -0
- package/schemas/tools/add_ipv6_dhcp_option.json +29 -0
- package/schemas/tools/add_ipv6_dhcp_relay.json +35 -0
- package/schemas/tools/add_ipv6_nd.json +68 -0
- package/schemas/tools/add_ipv6_nd_prefix.json +35 -0
- package/schemas/tools/add_ipv6_route.json +64 -0
- package/schemas/tools/add_romon_port.json +34 -0
- package/schemas/tools/add_switch_port_isolation.json +23 -0
- package/schemas/tools/add_switch_rule.json +96 -0
- package/schemas/tools/add_traffic_generator_port.json +23 -0
- package/schemas/tools/add_traffic_generator_stream.json +39 -0
- package/schemas/tools/add_traffic_monitor.json +54 -0
- package/schemas/tools/create_ipv6_dhcp_server.json +60 -0
- package/schemas/tools/create_ipv6_filter_rule.json +103 -0
- package/schemas/tools/create_ipv6_mangle_rule.json +110 -0
- package/schemas/tools/create_ipv6_nat_rule.json +88 -0
- package/schemas/tools/create_ipv6_pool.json +29 -0
- package/schemas/tools/create_ipv6_raw_rule.json +78 -0
- package/schemas/tools/delete_s3_backup.json +15 -0
- package/schemas/tools/disable_ipv6_address_list_entry.json +15 -0
- package/schemas/tools/disable_ipv6_dhcp_relay.json +14 -0
- package/schemas/tools/disable_ipv6_filter_rule.json +14 -0
- package/schemas/tools/disable_ipv6_mangle_rule.json +14 -0
- package/schemas/tools/disable_ipv6_nat_rule.json +14 -0
- package/schemas/tools/disable_ipv6_raw_rule.json +14 -0
- package/schemas/tools/disable_ipv6_route.json +14 -0
- package/schemas/tools/disable_switch_rule.json +14 -0
- package/schemas/tools/disable_traffic_monitor.json +14 -0
- package/schemas/tools/download_backup_from_s3.json +25 -0
- package/schemas/tools/enable_ipv6_address_list_entry.json +15 -0
- package/schemas/tools/enable_ipv6_dhcp_relay.json +14 -0
- package/schemas/tools/enable_ipv6_filter_rule.json +14 -0
- package/schemas/tools/enable_ipv6_mangle_rule.json +14 -0
- package/schemas/tools/enable_ipv6_nat_rule.json +14 -0
- package/schemas/tools/enable_ipv6_raw_rule.json +14 -0
- package/schemas/tools/enable_ipv6_route.json +14 -0
- package/schemas/tools/enable_switch_rule.json +14 -0
- package/schemas/tools/enable_traffic_monitor.json +14 -0
- package/schemas/tools/flood_ping.json +37 -0
- package/schemas/tools/get_bandwidth_server.json +7 -0
- package/schemas/tools/get_dot1x_client.json +15 -0
- package/schemas/tools/get_dot1x_server.json +15 -0
- package/schemas/tools/get_ipv6_address.json +15 -0
- package/schemas/tools/get_ipv6_address_list_entry.json +15 -0
- package/schemas/tools/get_ipv6_dhcp_client.json +15 -0
- package/schemas/tools/get_ipv6_dhcp_relay.json +14 -0
- package/schemas/tools/get_ipv6_dhcp_server.json +14 -0
- package/schemas/tools/get_ipv6_filter_rule.json +15 -0
- package/schemas/tools/get_ipv6_mangle_rule.json +15 -0
- package/schemas/tools/get_ipv6_nat_rule.json +15 -0
- package/schemas/tools/get_ipv6_nd.json +15 -0
- package/schemas/tools/get_ipv6_neighbor.json +15 -0
- package/schemas/tools/get_ipv6_pool.json +14 -0
- package/schemas/tools/get_ipv6_raw_rule.json +15 -0
- package/schemas/tools/get_ipv6_route.json +15 -0
- package/schemas/tools/get_ipv6_settings.json +7 -0
- package/schemas/tools/get_mac_ping.json +7 -0
- package/schemas/tools/get_mac_server.json +7 -0
- package/schemas/tools/get_mac_winbox.json +7 -0
- package/schemas/tools/get_queue_interface.json +15 -0
- package/schemas/tools/get_romon.json +7 -0
- package/schemas/tools/get_sms_settings.json +7 -0
- package/schemas/tools/get_sniffer_settings.json +7 -0
- package/schemas/tools/get_switch.json +15 -0
- package/schemas/tools/get_switch_port.json +15 -0
- package/schemas/tools/get_switch_port_isolation.json +15 -0
- package/schemas/tools/get_switch_rule.json +15 -0
- package/schemas/tools/get_traffic_monitor.json +14 -0
- package/schemas/tools/ip_scan.json +26 -0
- package/schemas/tools/list_bandwidth_server_sessions.json +12 -0
- package/schemas/tools/list_dot1x_clients.json +22 -0
- package/schemas/tools/list_dot1x_servers.json +18 -0
- package/schemas/tools/list_graphing.json +20 -0
- package/schemas/tools/list_ipv6_address_lists.json +24 -0
- package/schemas/tools/list_ipv6_addresses.json +31 -0
- package/schemas/tools/list_ipv6_dhcp_bindings.json +21 -0
- package/schemas/tools/list_ipv6_dhcp_clients.json +27 -0
- package/schemas/tools/list_ipv6_dhcp_options.json +11 -0
- package/schemas/tools/list_ipv6_dhcp_relays.json +21 -0
- package/schemas/tools/list_ipv6_dhcp_servers.json +26 -0
- package/schemas/tools/list_ipv6_filter_rules.json +43 -0
- package/schemas/tools/list_ipv6_mangle_rules.json +37 -0
- package/schemas/tools/list_ipv6_nat_rules.json +37 -0
- package/schemas/tools/list_ipv6_nd.json +18 -0
- package/schemas/tools/list_ipv6_nd_prefixes.json +21 -0
- package/schemas/tools/list_ipv6_neighbors.json +29 -0
- package/schemas/tools/list_ipv6_pool_used.json +12 -0
- package/schemas/tools/list_ipv6_pools.json +14 -0
- package/schemas/tools/list_ipv6_raw_rules.json +37 -0
- package/schemas/tools/list_ipv6_routes.json +34 -0
- package/schemas/tools/list_mac_server_sessions.json +11 -0
- package/schemas/tools/list_queue_interfaces.json +16 -0
- package/schemas/tools/list_romon_ports.json +11 -0
- package/schemas/tools/list_s3_backups.json +22 -0
- package/schemas/tools/list_sms_inbox.json +12 -0
- package/schemas/tools/list_sniffer_connections.json +7 -0
- package/schemas/tools/list_sniffer_hosts.json +11 -0
- package/schemas/tools/list_sniffer_packets.json +15 -0
- package/schemas/tools/list_sniffer_protocols.json +7 -0
- package/schemas/tools/list_switch_port_isolation.json +12 -0
- package/schemas/tools/list_switch_ports.json +16 -0
- package/schemas/tools/list_switch_rules.json +21 -0
- package/schemas/tools/list_switches.json +16 -0
- package/schemas/tools/list_traffic_generator_ports.json +11 -0
- package/schemas/tools/list_traffic_generator_streams.json +14 -0
- package/schemas/tools/list_traffic_monitors.json +21 -0
- package/schemas/tools/move_ipv6_filter_rule.json +21 -0
- package/schemas/tools/move_ipv6_mangle_rule.json +21 -0
- package/schemas/tools/move_ipv6_nat_rule.json +21 -0
- package/schemas/tools/move_ipv6_raw_rule.json +21 -0
- package/schemas/tools/profile_cpu.json +22 -0
- package/schemas/tools/release_ipv6_dhcp_client.json +14 -0
- package/schemas/tools/remove_dot1x_client.json +15 -0
- package/schemas/tools/remove_dot1x_server.json +15 -0
- package/schemas/tools/remove_graphing.json +24 -0
- package/schemas/tools/remove_ipv6_address.json +14 -0
- package/schemas/tools/remove_ipv6_address_list_entry.json +15 -0
- package/schemas/tools/remove_ipv6_dhcp_binding.json +15 -0
- package/schemas/tools/remove_ipv6_dhcp_client.json +14 -0
- package/schemas/tools/remove_ipv6_dhcp_option.json +14 -0
- package/schemas/tools/remove_ipv6_dhcp_relay.json +14 -0
- package/schemas/tools/remove_ipv6_dhcp_server.json +14 -0
- package/schemas/tools/remove_ipv6_filter_rule.json +14 -0
- package/schemas/tools/remove_ipv6_mangle_rule.json +14 -0
- package/schemas/tools/remove_ipv6_nat_rule.json +14 -0
- package/schemas/tools/remove_ipv6_nd.json +15 -0
- package/schemas/tools/remove_ipv6_nd_prefix.json +15 -0
- package/schemas/tools/remove_ipv6_neighbor.json +15 -0
- package/schemas/tools/remove_ipv6_pool.json +14 -0
- package/schemas/tools/remove_ipv6_raw_rule.json +14 -0
- package/schemas/tools/remove_ipv6_route.json +15 -0
- package/schemas/tools/remove_romon_port.json +15 -0
- package/schemas/tools/remove_switch_port_isolation.json +15 -0
- package/schemas/tools/remove_switch_rule.json +14 -0
- package/schemas/tools/remove_traffic_generator_port.json +15 -0
- package/schemas/tools/remove_traffic_generator_stream.json +15 -0
- package/schemas/tools/remove_traffic_monitor.json +14 -0
- package/schemas/tools/renew_ipv6_dhcp_client.json +14 -0
- package/schemas/tools/s3_backup_info.json +15 -0
- package/schemas/tools/s3_backup_status.json +7 -0
- package/schemas/tools/save_sniffer.json +15 -0
- package/schemas/tools/send_sms.json +34 -0
- package/schemas/tools/show_firewall_filter.json +7 -0
- package/schemas/tools/show_interfaces.json +7 -0
- package/schemas/tools/show_system_dashboard.json +7 -0
- package/schemas/tools/speed_test.json +47 -0
- package/schemas/tools/start_sniffer.json +7 -0
- package/schemas/tools/start_traffic_generator.json +14 -0
- package/schemas/tools/stop_sniffer.json +7 -0
- package/schemas/tools/stop_traffic_generator.json +7 -0
- package/schemas/tools/update_bandwidth_server.json +24 -0
- package/schemas/tools/update_dot1x_client.json +36 -0
- package/schemas/tools/update_dot1x_server.json +54 -0
- package/schemas/tools/update_ipv6_filter_rule.json +77 -0
- package/schemas/tools/update_ipv6_mangle_rule.json +80 -0
- package/schemas/tools/update_ipv6_nat_rule.json +65 -0
- package/schemas/tools/update_ipv6_nd.json +64 -0
- package/schemas/tools/update_ipv6_pool.json +28 -0
- package/schemas/tools/update_ipv6_raw_rule.json +59 -0
- package/schemas/tools/update_ipv6_settings.json +35 -0
- package/schemas/tools/update_mac_ping.json +15 -0
- package/schemas/tools/update_mac_server.json +15 -0
- package/schemas/tools/update_mac_winbox.json +15 -0
- package/schemas/tools/update_queue_interface.json +20 -0
- package/schemas/tools/update_romon.json +19 -0
- package/schemas/tools/update_sms_settings.json +30 -0
- package/schemas/tools/update_sniffer_settings.json +39 -0
- package/schemas/tools/update_switch.json +34 -0
- package/schemas/tools/update_switch_port.json +39 -0
- package/schemas/tools/update_switch_port_isolation.json +22 -0
- package/schemas/tools/update_switch_rule.json +83 -0
- package/schemas/tools/update_traffic_monitor.json +46 -0
- package/schemas/tools/upload_backup_to_s3.json +25 -0
- package/schemas/tools/wake_on_lan.json +19 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_dot1x_client",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"interface": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"eap_methods": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Comma-separated EAP methods, e.g. 'eap-tls' or 'eap-peap,eap-mschapv2'"
|
|
12
|
+
},
|
|
13
|
+
"identity": {
|
|
14
|
+
"description": "EAP identity (username)",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"anonymous_identity": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"certificate": {
|
|
21
|
+
"description": "Client certificate name (required for eap-tls)",
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"password": {
|
|
25
|
+
"description": "EAP password (password methods)",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"comment": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"disabled": {
|
|
32
|
+
"default": false,
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": [
|
|
37
|
+
"interface",
|
|
38
|
+
"eap_methods",
|
|
39
|
+
"disabled"
|
|
40
|
+
],
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_dot1x_server",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"interface": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"auth_types": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"enum": [
|
|
12
|
+
"dot1x",
|
|
13
|
+
"mac-auth",
|
|
14
|
+
"dot1x,mac-auth"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"accounting": {
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
20
|
+
"interim_update": {
|
|
21
|
+
"description": "e.g. '5m' or '0s'",
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"mac_auth_mode": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": [
|
|
27
|
+
"mac-as-username",
|
|
28
|
+
"mac-as-username-and-password"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"guest_vlan_id": {
|
|
32
|
+
"description": "VLAN id or 'none'",
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"reject_vlan_id": {
|
|
36
|
+
"description": "VLAN id or 'none'",
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"server_fail_vlan_id": {
|
|
40
|
+
"description": "VLAN id or 'none'",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"reauth_timeout": {
|
|
44
|
+
"description": "Re-auth period or 'none'",
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"comment": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"disabled": {
|
|
51
|
+
"default": false,
|
|
52
|
+
"type": "boolean"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"interface",
|
|
57
|
+
"disabled"
|
|
58
|
+
],
|
|
59
|
+
"additionalProperties": false
|
|
60
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_graphing_interface",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"interface": {
|
|
7
|
+
"default": "all",
|
|
8
|
+
"description": "Interface to graph, or 'all'",
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"allow_address": {
|
|
12
|
+
"description": "Subnet allowed to view the graphs, e.g. '0.0.0.0/0'",
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"store_on_disk": {
|
|
16
|
+
"type": "boolean"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"required": [
|
|
20
|
+
"interface"
|
|
21
|
+
],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_graphing_queue",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"simple_queue": {
|
|
7
|
+
"default": "all",
|
|
8
|
+
"description": "Simple queue to graph, or 'all'",
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"allow_address": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"store_on_disk": {
|
|
15
|
+
"type": "boolean"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"simple_queue"
|
|
20
|
+
],
|
|
21
|
+
"additionalProperties": false
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_graphing_resource",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"allow_address": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"store_on_disk": {
|
|
10
|
+
"type": "boolean"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"additionalProperties": false
|
|
14
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_ipv6_address",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"address": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "IPv6 address with prefix, e.g. '2001:db8::1/64'"
|
|
9
|
+
},
|
|
10
|
+
"interface": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"advertise": {
|
|
14
|
+
"description": "Advertise the prefix via Router Advertisements",
|
|
15
|
+
"type": "boolean"
|
|
16
|
+
},
|
|
17
|
+
"eui_64": {
|
|
18
|
+
"description": "Derive the host part from the interface MAC (EUI-64)",
|
|
19
|
+
"type": "boolean"
|
|
20
|
+
},
|
|
21
|
+
"from_pool": {
|
|
22
|
+
"description": "IPv6 pool name to take the prefix from",
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"no_dad": {
|
|
26
|
+
"description": "Skip Duplicate Address Detection for this address",
|
|
27
|
+
"type": "boolean"
|
|
28
|
+
},
|
|
29
|
+
"comment": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"disabled": {
|
|
33
|
+
"default": false,
|
|
34
|
+
"type": "boolean"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": [
|
|
38
|
+
"address",
|
|
39
|
+
"interface",
|
|
40
|
+
"disabled"
|
|
41
|
+
],
|
|
42
|
+
"additionalProperties": false
|
|
43
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_ipv6_address_list_entry",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"list": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "Address-list name"
|
|
9
|
+
},
|
|
10
|
+
"address": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "IPv6 address or prefix to add, e.g. '2001:db8::1' or '2001:db8::/32'"
|
|
13
|
+
},
|
|
14
|
+
"timeout": {
|
|
15
|
+
"description": "Auto-remove timeout, e.g. '1d00:00:00'",
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"comment": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"disabled": {
|
|
22
|
+
"default": false,
|
|
23
|
+
"type": "boolean"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"list",
|
|
28
|
+
"address",
|
|
29
|
+
"disabled"
|
|
30
|
+
],
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_ipv6_default_route",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"gateway": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "Next-hop IPv6 address or interface"
|
|
9
|
+
},
|
|
10
|
+
"distance": {
|
|
11
|
+
"type": "integer",
|
|
12
|
+
"minimum": 1,
|
|
13
|
+
"maximum": 255
|
|
14
|
+
},
|
|
15
|
+
"check_gateway": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"routing_table": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"comment": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"disabled": {
|
|
25
|
+
"default": false,
|
|
26
|
+
"type": "boolean"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"gateway",
|
|
31
|
+
"disabled"
|
|
32
|
+
],
|
|
33
|
+
"additionalProperties": false
|
|
34
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_ipv6_dhcp_binding",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"address": {
|
|
7
|
+
"description": "Assigned IPv6 address, if any",
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"prefix": {
|
|
11
|
+
"description": "Delegated prefix, e.g. '2001:db8:1::/64'",
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"duid": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Client DUID the binding matches"
|
|
17
|
+
},
|
|
18
|
+
"iaid": {
|
|
19
|
+
"description": "Identity Association ID",
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"server": {
|
|
23
|
+
"description": "DHCPv6 server name, or 'all'",
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"life_time": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"comment": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"disabled": {
|
|
33
|
+
"default": false,
|
|
34
|
+
"type": "boolean"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": [
|
|
38
|
+
"duid",
|
|
39
|
+
"disabled"
|
|
40
|
+
],
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_ipv6_dhcp_client",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"interface": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"request": {
|
|
10
|
+
"default": "prefix",
|
|
11
|
+
"type": "string",
|
|
12
|
+
"enum": [
|
|
13
|
+
"address",
|
|
14
|
+
"prefix",
|
|
15
|
+
"address,prefix"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"pool_name": {
|
|
19
|
+
"description": "Name of the IPv6 pool to expose the delegated prefix as",
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"pool_prefix_length": {
|
|
23
|
+
"description": "Prefix length carved from the delegated pool, e.g. 64",
|
|
24
|
+
"type": "integer",
|
|
25
|
+
"minimum": 1,
|
|
26
|
+
"maximum": 128
|
|
27
|
+
},
|
|
28
|
+
"prefix_hint": {
|
|
29
|
+
"description": "Hint the desired delegated prefix, e.g. '::/56'",
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"add_default_route": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"enum": [
|
|
35
|
+
"yes",
|
|
36
|
+
"no",
|
|
37
|
+
"special-classless"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"default_route_distance": {
|
|
41
|
+
"type": "integer",
|
|
42
|
+
"minimum": -9007199254740991,
|
|
43
|
+
"maximum": 9007199254740991
|
|
44
|
+
},
|
|
45
|
+
"use_peer_dns": {
|
|
46
|
+
"type": "boolean"
|
|
47
|
+
},
|
|
48
|
+
"rapid_commit": {
|
|
49
|
+
"type": "boolean"
|
|
50
|
+
},
|
|
51
|
+
"dhcp_options": {
|
|
52
|
+
"description": "Comma-separated custom DHCP option names",
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"comment": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
"disabled": {
|
|
59
|
+
"default": false,
|
|
60
|
+
"type": "boolean"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"interface",
|
|
65
|
+
"request",
|
|
66
|
+
"disabled"
|
|
67
|
+
],
|
|
68
|
+
"additionalProperties": false
|
|
69
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_ipv6_dhcp_option",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"name": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"code": {
|
|
10
|
+
"type": "integer",
|
|
11
|
+
"minimum": -9007199254740991,
|
|
12
|
+
"maximum": 9007199254740991,
|
|
13
|
+
"description": "Numeric DHCPv6 option code"
|
|
14
|
+
},
|
|
15
|
+
"value": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Option value (use '0x...' for raw hex)"
|
|
18
|
+
},
|
|
19
|
+
"comment": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": [
|
|
24
|
+
"name",
|
|
25
|
+
"code",
|
|
26
|
+
"value"
|
|
27
|
+
],
|
|
28
|
+
"additionalProperties": false
|
|
29
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_ipv6_dhcp_relay",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"name": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"interface": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Interface facing the DHCPv6 clients"
|
|
12
|
+
},
|
|
13
|
+
"dhcp_server": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Comma-separated upstream DHCPv6 server IPv6 address(es)"
|
|
16
|
+
},
|
|
17
|
+
"delay_time": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"comment": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"disabled": {
|
|
24
|
+
"default": false,
|
|
25
|
+
"type": "boolean"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"required": [
|
|
29
|
+
"name",
|
|
30
|
+
"interface",
|
|
31
|
+
"dhcp_server",
|
|
32
|
+
"disabled"
|
|
33
|
+
],
|
|
34
|
+
"additionalProperties": false
|
|
35
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_ipv6_nd",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"interface": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"ra_interval": {
|
|
10
|
+
"description": "RA min-max interval range, e.g. '3m20s-10m'",
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"ra_delay": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"ra_lifetime": {
|
|
17
|
+
"description": "e.g. '30m' or 'none'",
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"ra_preference": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": [
|
|
23
|
+
"low",
|
|
24
|
+
"medium",
|
|
25
|
+
"high"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"hop_limit": {
|
|
29
|
+
"description": "Advertised hop limit (0-255 or 'unspecified')",
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"mtu": {
|
|
33
|
+
"type": "integer",
|
|
34
|
+
"minimum": -9007199254740991,
|
|
35
|
+
"maximum": 9007199254740991
|
|
36
|
+
},
|
|
37
|
+
"reachable_time": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"retransmit_interval": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"managed_address_configuration": {
|
|
44
|
+
"type": "boolean"
|
|
45
|
+
},
|
|
46
|
+
"other_configuration": {
|
|
47
|
+
"type": "boolean"
|
|
48
|
+
},
|
|
49
|
+
"advertise_dns": {
|
|
50
|
+
"type": "boolean"
|
|
51
|
+
},
|
|
52
|
+
"advertise_mac_address": {
|
|
53
|
+
"type": "boolean"
|
|
54
|
+
},
|
|
55
|
+
"comment": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
"disabled": {
|
|
59
|
+
"default": false,
|
|
60
|
+
"type": "boolean"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"interface",
|
|
65
|
+
"disabled"
|
|
66
|
+
],
|
|
67
|
+
"additionalProperties": false
|
|
68
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_ipv6_nd_prefix",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"prefix": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "Prefix to advertise, e.g. '2001:db8:1::/64'"
|
|
9
|
+
},
|
|
10
|
+
"interface": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"valid_lifetime": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"preferred_lifetime": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"autonomous": {
|
|
20
|
+
"type": "boolean"
|
|
21
|
+
},
|
|
22
|
+
"comment": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"disabled": {
|
|
26
|
+
"default": false,
|
|
27
|
+
"type": "boolean"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": [
|
|
31
|
+
"prefix",
|
|
32
|
+
"disabled"
|
|
33
|
+
],
|
|
34
|
+
"additionalProperties": false
|
|
35
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_ipv6_route",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"dst_address": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "Destination prefix, e.g. '2001:db8:1::/64'"
|
|
9
|
+
},
|
|
10
|
+
"gateway": {
|
|
11
|
+
"description": "Next-hop IPv6 address or interface (required for unicast)",
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"type": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"enum": [
|
|
17
|
+
"unicast",
|
|
18
|
+
"blackhole",
|
|
19
|
+
"unreachable",
|
|
20
|
+
"prohibit"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"distance": {
|
|
24
|
+
"type": "integer",
|
|
25
|
+
"minimum": 1,
|
|
26
|
+
"maximum": 255
|
|
27
|
+
},
|
|
28
|
+
"scope": {
|
|
29
|
+
"type": "integer",
|
|
30
|
+
"minimum": 0,
|
|
31
|
+
"maximum": 255
|
|
32
|
+
},
|
|
33
|
+
"target_scope": {
|
|
34
|
+
"type": "integer",
|
|
35
|
+
"minimum": 0,
|
|
36
|
+
"maximum": 255
|
|
37
|
+
},
|
|
38
|
+
"routing_table": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"pref_src": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"check_gateway": {
|
|
45
|
+
"description": "'ping', 'arp', 'bfd' or 'none'",
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"vrf_interface": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"comment": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"disabled": {
|
|
55
|
+
"default": false,
|
|
56
|
+
"type": "boolean"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": [
|
|
60
|
+
"dst_address",
|
|
61
|
+
"disabled"
|
|
62
|
+
],
|
|
63
|
+
"additionalProperties": false
|
|
64
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_romon_port",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"interface": {
|
|
7
|
+
"default": "all",
|
|
8
|
+
"description": "Interface, or 'all' for the default entry",
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"cost": {
|
|
12
|
+
"description": "Path cost for the overlay",
|
|
13
|
+
"type": "integer",
|
|
14
|
+
"minimum": -9007199254740991,
|
|
15
|
+
"maximum": 9007199254740991
|
|
16
|
+
},
|
|
17
|
+
"secrets": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"forbid": {
|
|
21
|
+
"description": "Forbid RoMON on this interface",
|
|
22
|
+
"type": "boolean"
|
|
23
|
+
},
|
|
24
|
+
"disabled": {
|
|
25
|
+
"default": false,
|
|
26
|
+
"type": "boolean"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"interface",
|
|
31
|
+
"disabled"
|
|
32
|
+
],
|
|
33
|
+
"additionalProperties": false
|
|
34
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_switch_port_isolation",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"port": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "Source port to isolate, e.g. 'ether1'"
|
|
9
|
+
},
|
|
10
|
+
"forwarding_override_ports": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Comma-separated allowed destination ports"
|
|
13
|
+
},
|
|
14
|
+
"comment": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"port",
|
|
20
|
+
"forwarding_override_ports"
|
|
21
|
+
],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
}
|