net-mgmt/net-snmp - add xmlrpxc section (#4022)

some people seem to like xmlrpc syncs which can also be used for partial restores
This commit is contained in:
Ad Schellevis
2024-06-03 17:12:12 +02:00
committed by GitHub
parent 8c0e8dbee2
commit c14389baf2
@@ -32,6 +32,18 @@ function netsnmp_enabled()
return (string)$model->enabled == '1';
}
function netsnmp_xmlrpc_sync()
{
return [
[
'description' => gettext('Netsnmp'),
'section' => 'OPNsense.netsnmp',
'services' => ['snmpd'],
'id' => 'netsnmp'
]
];
}
function netsnmp_services()
{
$services = array();