Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
7195-snmp-Types-and-specs-for-snmp_notification...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 7195-snmp-Types-and-specs-for-snmp_notification_mib-recon.patch of Package erlang
From 28ebbbb2e1f073587a73746c76fa4ad91bbeb12f Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Mon, 15 Jan 2024 18:59:38 +0100 Subject: [PATCH 55/67] [snmp] Types and specs for snmp_notification_mib:recondfigure/1 --- lib/snmp/doc/src/snmp_notification_mib.xml | 27 ++++++++------------ lib/snmp/src/agent/snmp_notification_mib.erl | 8 ++++-- 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/lib/snmp/doc/src/snmp_notification_mib.xml b/lib/snmp/doc/src/snmp_notification_mib.xml index 55d4e9eb25..f65cf79c21 100644 --- a/lib/snmp/doc/src/snmp_notification_mib.xml +++ b/lib/snmp/doc/src/snmp_notification_mib.xml @@ -102,28 +102,21 @@ </func> <func> - <name since="">reconfigure(ConfDir) -> void()</name> + <name name="reconfigure" arity="1" clause_i="1" since=""/> <fsummary>Configure the SNMP-NOTIFICATION-MIB</fsummary> - <type> - <v>ConfDir = string()</v> - </type> <desc> <p>Inserts all data in the configuration files into the - database and destroys all old data, including the rows with - StorageType <c>nonVolatile</c>. The rows created from the - configuration file will have StorageType <c>nonVolatile</c>. - </p> - <p>Thus, the data in the SNMP-NOTIFICATION-MIB, after this - function has been called, is from the configuration files. - </p> + database and destroys all old data, including the rows with + StorageType <c>nonVolatile</c>. The rows created from the + configuration file will have StorageType <c>nonVolatile</c>. </p> + <p>Thus, the data in the SNMP-NOTIFICATION-MIB, after this + function has been called, is from the configuration files.</p> <p>If an error is found in the configuration file, it is - reported using the function <c>config_err/2</c> of the - error report module, - and the function fails with reason <c>configuration_error</c>. - </p> + reported using the function <c>config_err/2</c> of the + error report module, + and the function fails with reason <c>configuration_error</c>. </p> <p><c>ConfDir</c> is a string which points to the directory - where the configuration files are found. - </p> + where the configuration files are found. </p> <p>The configuration file read is: <c>notify.conf</c>.</p> <marker id="add_notify"></marker> diff --git a/lib/snmp/src/agent/snmp_notification_mib.erl b/lib/snmp/src/agent/snmp_notification_mib.erl index 8eef25eb1e..7b91e5c839 100644 --- a/lib/snmp/src/agent/snmp_notification_mib.erl +++ b/lib/snmp/src/agent/snmp_notification_mib.erl @@ -95,9 +95,13 @@ configure(ConfDir) -> %% Returns: ok %% Fails: exit(configuration_error) %%----------------------------------------------------------------- -reconfigure(Dir) -> + +-spec reconfigure(ConfDir) -> snmp:void() when + ConfDir :: string(). + +reconfigure(ConfDir) -> set_sname(), - case (catch do_reconfigure(Dir)) of + case (catch do_reconfigure(ConfDir)) of ok -> ok; {error, Reason} -> -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor