driver / standard (pull_request) Successful in 25s
driver / lint (pull_request) Successful in 26s
driver / types (pull_request) Failing after 35s
driver / test (3.13) (pull_request) Failing after 18s
driver / test (3.12) (pull_request) Failing after 21s
driver / lowest (pull_request) Failing after 17s
driver / build (pull_request) Successful in 30s
driver / security (pull_request) Failing after 40s
CI / driver (pull_request) Failing after 1m25s
driver / publish (pull_request) Skipped
OPNsense keeps its cron jobs in its configuration and runs each as a configd action, so the POSIX implementation does not fit: the driver has no shell, and a job's command is not a shell line. The cron API reads and writes them instead. get_scheduled_jobs reads every job in one request (/api/cron/settings/get, which carries the selected action rather than its display text). A job another component registered is platform, one written by put_scheduled_job carries the napalm-scheduled-job marker in its description and is application, the rest admin. Every job can be enabled and disabled; only an application's job is edited or deleted. put_scheduled_job takes a configd action as command and refuses one configd does not offer; get_scheduled_job_commands lists them. Running a job now is refused: the API cannot run a configd action. Every write reads the job again and refuses one whose digest changed. Parameters are written one per line and only without blanks, quotes or backslashes: OPNsense up to 26.1 splits them as a shell would, 26.7 takes a line per argument, and only such arguments mean the same to both. Requires napalm-device-types 4.26.0. Closes #43
198 lines
4.8 KiB
JSON
198 lines
4.8 KiB
JSON
{
|
|
"job": {
|
|
"jobs": {
|
|
"job": {
|
|
"0b6e3c52-6a1e-4c7a-9a0e-2f0a1d6c3b11": {
|
|
"origin": "cron",
|
|
"enabled": "1",
|
|
"minutes": "0",
|
|
"hours": "3",
|
|
"days": "*",
|
|
"months": "*",
|
|
"weekdays": "1-5",
|
|
"who": "root",
|
|
"command": {
|
|
"filter refresh_aliases": {
|
|
"value": "Update and reload firewall aliases",
|
|
"selected": 0
|
|
},
|
|
"firmware auto-update": {
|
|
"value": "Automatic firmware update",
|
|
"selected": 0
|
|
},
|
|
"ids update": {
|
|
"value": "Update and reload intrusion detection rules",
|
|
"selected": 0
|
|
},
|
|
"system ha_reconfigure_backup": {
|
|
"value": "HA update and reconfigure backup",
|
|
"selected": 0
|
|
},
|
|
"system remote backup": {
|
|
"value": "Remote backup",
|
|
"selected": 1
|
|
},
|
|
"unbound dnsbl": {
|
|
"value": "Update Unbound DNSBLs",
|
|
"selected": 0
|
|
}
|
|
},
|
|
"parameters": "",
|
|
"description": "Nightly configuration backup"
|
|
},
|
|
"1f2d8e04-93b7-4f4e-8c55-7d1e0c9a2b22": {
|
|
"origin": "IDS",
|
|
"enabled": "0",
|
|
"minutes": "30",
|
|
"hours": "1",
|
|
"days": "*",
|
|
"months": "*",
|
|
"weekdays": "*",
|
|
"who": "root",
|
|
"command": {
|
|
"filter refresh_aliases": {
|
|
"value": "Update and reload firewall aliases",
|
|
"selected": 0
|
|
},
|
|
"firmware auto-update": {
|
|
"value": "Automatic firmware update",
|
|
"selected": 0
|
|
},
|
|
"ids update": {
|
|
"value": "Update and reload intrusion detection rules",
|
|
"selected": 1
|
|
},
|
|
"system ha_reconfigure_backup": {
|
|
"value": "HA update and reconfigure backup",
|
|
"selected": 0
|
|
},
|
|
"system remote backup": {
|
|
"value": "Remote backup",
|
|
"selected": 0
|
|
},
|
|
"unbound dnsbl": {
|
|
"value": "Update Unbound DNSBLs",
|
|
"selected": 0
|
|
}
|
|
},
|
|
"parameters": "",
|
|
"description": "ids rule updates"
|
|
},
|
|
"2a7c9b16-4d3e-4b8f-a1c2-5e6f7a8b9c33": {
|
|
"origin": "cron",
|
|
"enabled": "1",
|
|
"minutes": "*/15",
|
|
"hours": "*",
|
|
"days": "*",
|
|
"months": "*",
|
|
"weekdays": "*",
|
|
"who": "root",
|
|
"command": {
|
|
"filter refresh_aliases": {
|
|
"value": "Update and reload firewall aliases",
|
|
"selected": 0
|
|
},
|
|
"firmware auto-update": {
|
|
"value": "Automatic firmware update",
|
|
"selected": 0
|
|
},
|
|
"ids update": {
|
|
"value": "Update and reload intrusion detection rules",
|
|
"selected": 0
|
|
},
|
|
"system ha_reconfigure_backup": {
|
|
"value": "HA update and reconfigure backup",
|
|
"selected": 0
|
|
},
|
|
"system remote backup": {
|
|
"value": "Remote backup",
|
|
"selected": 0
|
|
},
|
|
"unbound dnsbl": {
|
|
"value": "Update Unbound DNSBLs",
|
|
"selected": 1
|
|
}
|
|
},
|
|
"parameters": "",
|
|
"description": "napalm-scheduled-job: dnsbl-refresh Refresh the DNS blocklists"
|
|
},
|
|
"3c8d0e27-5f4a-4c9b-b2d3-6f7a8b9c0d44": {
|
|
"origin": "cron",
|
|
"enabled": "1",
|
|
"minutes": "0",
|
|
"hours": "4",
|
|
"days": "1",
|
|
"months": "*",
|
|
"weekdays": "*",
|
|
"who": "root",
|
|
"command": {
|
|
"filter refresh_aliases": {
|
|
"value": "Update and reload firewall aliases",
|
|
"selected": 1
|
|
},
|
|
"firmware auto-update": {
|
|
"value": "Automatic firmware update",
|
|
"selected": 0
|
|
},
|
|
"ids update": {
|
|
"value": "Update and reload intrusion detection rules",
|
|
"selected": 0
|
|
},
|
|
"system ha_reconfigure_backup": {
|
|
"value": "HA update and reconfigure backup",
|
|
"selected": 0
|
|
},
|
|
"system remote backup": {
|
|
"value": "Remote backup",
|
|
"selected": 0
|
|
},
|
|
"unbound dnsbl": {
|
|
"value": "Update Unbound DNSBLs",
|
|
"selected": 0
|
|
}
|
|
},
|
|
"parameters": "--quiet\n--all\n",
|
|
"description": "Monthly alias refresh"
|
|
},
|
|
"4d9e1f38-6a5b-4dac-83e4-7a8b9c0d1e55": {
|
|
"origin": "cron",
|
|
"enabled": "0",
|
|
"minutes": "0",
|
|
"hours": "5",
|
|
"days": "*",
|
|
"months": "*",
|
|
"weekdays": "0",
|
|
"who": "root",
|
|
"command": {
|
|
"filter refresh_aliases": {
|
|
"value": "Update and reload firewall aliases",
|
|
"selected": 0
|
|
},
|
|
"firmware auto-update": {
|
|
"value": "Automatic firmware update",
|
|
"selected": 1
|
|
},
|
|
"ids update": {
|
|
"value": "Update and reload intrusion detection rules",
|
|
"selected": 0
|
|
},
|
|
"system ha_reconfigure_backup": {
|
|
"value": "HA update and reconfigure backup",
|
|
"selected": 0
|
|
},
|
|
"system remote backup": {
|
|
"value": "Remote backup",
|
|
"selected": 0
|
|
},
|
|
"unbound dnsbl": {
|
|
"value": "Update Unbound DNSBLs",
|
|
"selected": 0
|
|
}
|
|
},
|
|
"parameters": "",
|
|
"description": "napalm-scheduled-job: Not_A_Name written by hand"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |