|
libnetconf2
2.0.24
NETCONF server and client library in C.
|
Call Home functionality for server-side applications. More...
Modules | |
| Server-side Call Home on SSH | |
| SSH settings for the Call Home functionality. | |
| Server-side Call Home on TLS | |
| TLS settings for the Call Home functionality. | |
Functions | |
| int | nc_connect_ch_client_dispatch (const char *client_name, int(*session_clb)(const char *client_name, struct nc_session *new_session)) |
| Establish a Call Home connection with a listening NETCONF client. More... | |
| int | nc_server_ch_add_client (const char *name) |
| Add a new Call Home client. More... | |
| int | nc_server_ch_client_add_endpt (const char *client_name, const char *endpt_name, NC_TRANSPORT_IMPL ti) |
| Add a new Call Home client endpoint. More... | |
| int | nc_server_ch_client_del_endpt (const char *client_name, const char *endpt_name, NC_TRANSPORT_IMPL ti) |
| Remove a Call Home client endpoint. More... | |
| int | nc_server_ch_client_endpt_enable_keepalives (const char *client_name, const char *endpt_name, int enable) |
| Change Call Home client endpoint keepalives state. Affects only new connections. More... | |
| int | nc_server_ch_client_endpt_set_address (const char *client_name, const char *endpt_name, const char *address) |
| Change Call Home client endpoint listening address. More... | |
| int | nc_server_ch_client_endpt_set_keepalives (const char *client_name, const char *endpt_name, int idle_time, int max_probes, int probe_interval) |
| Change Call Home client endpoint keepalives parameters. Affects only new connections. More... | |
| int | nc_server_ch_client_endpt_set_port (const char *client_name, const char *endpt_name, uint16_t port) |
| Change Call Home client endpoint listening port. More... | |
| int | nc_server_ch_client_is_endpt (const char *client_name, const char *endpt_name) |
| Check if an endpoint of a Call Home client exists. More... | |
| int | nc_server_ch_client_periodic_set_anchor_time (const char *client_name, time_t anchor_time) |
| Set Call Home client periodic connection period anchor time. More... | |
| int | nc_server_ch_client_periodic_set_idle_timeout (const char *client_name, uint16_t idle_timeout) |
| Set Call Home client periodic connection idle timeout. More... | |
| int | nc_server_ch_client_periodic_set_period (const char *client_name, uint16_t period) |
| Set Call Home client periodic connection period for reconnecting. More... | |
| int | nc_server_ch_client_set_conn_type (const char *client_name, NC_CH_CONN_TYPE conn_type) |
| Set Call Home client connection type. More... | |
| int | nc_server_ch_client_set_max_attempts (const char *client_name, uint8_t max_attempts) |
| Set Call Home client overall max attempts. More... | |
| int | nc_server_ch_client_set_start_with (const char *client_name, NC_CH_START_WITH start_with) |
| Set Call Home client start-with policy. More... | |
| int | nc_server_ch_del_client (const char *name) |
| Drop any connections, stop connecting and remove a client. More... | |
| int | nc_server_ch_is_client (const char *name) |
| Check if a Call Home client exists. More... | |
Call Home functionality for server-side applications.
| int nc_connect_ch_client_dispatch | ( | const char * | client_name, |
| int(*)(const char *client_name, struct nc_session *new_session) | session_clb | ||
| ) |
Establish a Call Home connection with a listening NETCONF client.
| [in] | client_name | Existing client name. |
| [out] | session_clb | Function that is called for every established session on the client. new_session pointer is internally discarded afterwards. If the callback returns non-zero, the new_session is freed. |
| int nc_server_ch_add_client | ( | const char * | name | ) |
Add a new Call Home client.
| [in] | name | Arbitrary unique client name. |
| int nc_server_ch_client_add_endpt | ( | const char * | client_name, |
| const char * | endpt_name, | ||
| NC_TRANSPORT_IMPL | ti | ||
| ) |
Add a new Call Home client endpoint.
| [in] | client_name | Existing client name. |
| [in] | endpt_name | Arbitrary unique (within the client) endpoint name. |
| [in] | ti | Transport protocol to use. |
| int nc_server_ch_client_del_endpt | ( | const char * | client_name, |
| const char * | endpt_name, | ||
| NC_TRANSPORT_IMPL | ti | ||
| ) |
Remove a Call Home client endpoint.
| [in] | client_name | Existing client name. |
| [in] | endpt_name | Existing endpoint of client_name. NULL matches all endpoints. |
| [in] | ti | Client transport protocol. NULL matches any protocol. Redundant to set if endpt_name is set, client names are unique disregarding their protocol. |
| int nc_server_ch_client_endpt_enable_keepalives | ( | const char * | client_name, |
| const char * | endpt_name, | ||
| int | enable | ||
| ) |
Change Call Home client endpoint keepalives state. Affects only new connections.
| [in] | client_name | Existing Call Home client name. |
| [in] | endpt_name | Existing endpoint name of client_name. |
| [in] | enable | Whether to enable or disable keepalives. |
| int nc_server_ch_client_endpt_set_address | ( | const char * | client_name, |
| const char * | endpt_name, | ||
| const char * | address | ||
| ) |
Change Call Home client endpoint listening address.
On error the previous listening socket (if any) is left untouched.
| [in] | client_name | Existing Call Home client name. |
| [in] | endpt_name | Existing endpoint name of client_name. |
| [in] | address | New listening address. |
| int nc_server_ch_client_endpt_set_keepalives | ( | const char * | client_name, |
| const char * | endpt_name, | ||
| int | idle_time, | ||
| int | max_probes, | ||
| int | probe_interval | ||
| ) |
Change Call Home client endpoint keepalives parameters. Affects only new connections.
| [in] | client_name | Existing Call Home client name. |
| [in] | endpt_name | Existing endpoint name of client_name. |
| [in] | idle_time | Keepalive idle time in seconds, 1 by default, -1 to keep previous value. |
| [in] | max_probes | Keepalive max probes sent, 10 by default, -1 to keep previous value. |
| [in] | probe_interval | Keepalive probe interval in seconds, 5 by default, -1 to keep previous value. |
| int nc_server_ch_client_endpt_set_port | ( | const char * | client_name, |
| const char * | endpt_name, | ||
| uint16_t | port | ||
| ) |
Change Call Home client endpoint listening port.
On error the previous listening socket (if any) is left untouched.
| [in] | client_name | Existing Call Home client name. |
| [in] | endpt_name | Existing endpoint name of client_name. |
| [in] | port | New listening port. |
| int nc_server_ch_client_is_endpt | ( | const char * | client_name, |
| const char * | endpt_name | ||
| ) |
Check if an endpoint of a Call Home client exists.
| [in] | client_name | Client name. |
| [in] | endpt_name | Endpoint name. |
| int nc_server_ch_client_periodic_set_anchor_time | ( | const char * | client_name, |
| time_t | anchor_time | ||
| ) |
Set Call Home client periodic connection period anchor time.
| [in] | client_name | Existing Call Home client name. |
| [in] | anchor_time | Call Home periodic connection anchor time for the period. |
| int nc_server_ch_client_periodic_set_idle_timeout | ( | const char * | client_name, |
| uint16_t | idle_timeout | ||
| ) |
Set Call Home client periodic connection idle timeout.
| [in] | client_name | Existing Call Home client name. |
| [in] | idle_timeout | Call Home periodic idle timeout. |
| int nc_server_ch_client_periodic_set_period | ( | const char * | client_name, |
| uint16_t | period | ||
| ) |
Set Call Home client periodic connection period for reconnecting.
| [in] | client_name | Existing Call Home client name. |
| [in] | period | Call Home periodic connection period in minutes. |
| int nc_server_ch_client_set_conn_type | ( | const char * | client_name, |
| NC_CH_CONN_TYPE | conn_type | ||
| ) |
Set Call Home client connection type.
| [in] | client_name | Existing Call Home client name. |
| [in] | conn_type | Call Home connection type. |
| int nc_server_ch_client_set_max_attempts | ( | const char * | client_name, |
| uint8_t | max_attempts | ||
| ) |
Set Call Home client overall max attempts.
| [in] | client_name | Existing Call Home client name. |
| [in] | max_attempts | Call Home overall max reconnect attempts. |
| int nc_server_ch_client_set_start_with | ( | const char * | client_name, |
| NC_CH_START_WITH | start_with | ||
| ) |
Set Call Home client start-with policy.
| [in] | client_name | Existing Call Home client name. |
| [in] | start_with | Call Home client start-with. |
| int nc_server_ch_del_client | ( | const char * | name | ) |
Drop any connections, stop connecting and remove a client.
| [in] | name | Client name. NULL matches all the clients. |
| int nc_server_ch_is_client | ( | const char * | name | ) |
Check if a Call Home client exists.
| [in] | name | Client name. |