yumapro  20.10-12
YumaPro SDK
agt_cli.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
3  * Copyright (c) 2012 - 2021, YumaWorks, Inc., All Rights Reserved.
4  *
5  * Unless required by applicable law or agreed to in writing,
6  * software distributed under the License is distributed on an
7  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8  * KIND, either express or implied. See the License for the
9  * specific language governing permissions and limitations
10  * under the License.
11  */
12 #ifndef _H_agt_cli
13 #define _H_agt_cli
14 
15 /* FILE: agt_cli.h
16 *********************************************************************
17 * *
18 * P U R P O S E *
19 * *
20 *********************************************************************/
21 
28 /*********************************************************************
29 * *
30 * C H A N G E H I S T O R Y *
31 * *
32 *********************************************************************
33 
34 date init comment
35 ----------------------------------------------------------------------
36 27-oct-06 abb Begun
37 01-aug-08 abb Convert from NCX PSD to YANG OBJ
38 
39 */
40 
41 #ifndef _H_agt
42 #include "agt.h"
43 #endif
44 
45 #ifndef _H_help
46 #include "help.h"
47 #endif
48 
49 #ifndef _H_val
50 #include "val.h"
51 #endif
52 
53 #ifndef _H_status
54 #include "status.h"
55 #endif
56 
57 #ifdef __cplusplus
58 extern "C" {
59 #endif
60 
61 /********************************************************************
62 * *
63 * C O N S T A N T S
64 * *
65 *********************************************************************/
66 
67 #define AGT_CLI_MODULE (const xmlChar *)"netconfd-pro"
68 #define AGT_CLI_CONTAINER (const xmlChar *)"netconfd-pro"
69 
70 #define AGT_CLI_RUNNING_ERROR (const xmlChar *)"running-error"
71 #define AGT_CLI_STARTUP_ERROR (const xmlChar *)"startup-error"
72 #define AGT_CLI_STARTUP_STOP (const xmlChar *)"stop"
73 #define AGT_CLI_STARTUP_CONTINUE (const xmlChar *)"continue"
74 #define AGT_CLI_STARTUP_FALLBACK (const xmlChar *)"fallback"
75 
76 #define AGT_CLI_DELETE_EMPTY_NPCONTAINERS \
77  (const xmlChar *)"delete-empty-npcontainers"
78 
79 #define AGT_CLI_SUPERUSER NCX_EL_SUPERUSER
80 
81 #define AGT_CLI_MAX_BURST NCX_EL_MAX_BURST
82 
83 #define AGT_CLI_MAX_SESSIONS (const xmlChar *)"max-sessions"
84 
85 #define AGT_CLI_MAX_CLI_SESSIONS (const xmlChar *)"max-cli-sessions"
86 
87 #define AGT_CLI_SUBSYS_TIMEOUT (const xmlChar *)"subsys-timeout"
88 
89 /********************************************************************
90 * *
91 * F U N C T I O N S *
92 * *
93 *********************************************************************/
94 
125 extern status_t
126  agt_cli_process_input (int argc,
127  char *argv[],
128  agt_profile_t *agt_profile,
129  boolean *showver,
130  help_mode_t *showhelpmode,
131  boolean *no_watcher);
132 
133 
139 extern val_value_t *
140  agt_cli_get_valset (void);
141 
142 
148 extern const xmlChar *
149  agt_cli_get_confspec (void);
150 
151 
157 extern void
158  agt_cli_cleanup (void);
159 
160 
164 #ifdef __cplusplus
165 } /* end extern 'C' */
166 #endif
167 
168 #endif /* _H_agt_cli */
NCX_AGT_TARG_RUNNING
@ NCX_AGT_TARG_RUNNING
target=running
Definition: ncxtypes.h:355
NCX_MATCH_EXACT
@ NCX_MATCH_EXACT
exact (default)
Definition: ncxtypes.h:523
xml_strlen
uint32 xml_strlen(const xmlChar *str)
Get the String len for xmlChar.
Definition: xml_util.c:1406
val_set_home_parms
status_t val_set_home_parms(val_value_t *parentval)
Handle the home and yumapro-home parameters.
Definition: val_util.c:5415
HELP_MODE_NORMAL
@ HELP_MODE_NORMAL
–normal mode selected or default
Definition: help.h:87
val_set_simval_obj
status_t val_set_simval_obj(val_value_t *val, obj_template_t *obj, const xmlChar *valstr)
Set an initialized val_value_t as a simple type.
Definition: val_util.c:4444
agt_conf.h
NETCONF Server Configuration File Handling.
xml_val_new_cstring
val_value_t * xml_val_new_cstring(const xmlChar *name, xmlns_id_t nsid, const xmlChar *strval)
Set up a new string from a const string copy a const string.
Definition: xml_val.c:451
agt_ses.h
Server Session Management.
AGT_DEF_FHS_LOG_FILE
#define AGT_DEF_FHS_LOG_FILE
default FHS main log location
Definition: agt.h:207
agt_util.h
Utility Functions for NCX Server method routines.
AGT_DEF_CRL_MODE
#define AGT_DEF_CRL_MODE
default CRL mode for TLS
Definition: agt.h:564
xml_strdup
xmlChar * xml_strdup(const xmlChar *copyFrom)
String duplicate for xmlChar.
Definition: xml_util.c:1553
VAL_ENU
#define VAL_ENU(V)
Access the enum struct in the value ONLY if BCX_NT_ENUM.
Definition: val.h:426
log_audit_open
status_t log_audit_open(const char *fname, boolean append, boolean tstamps)
Open the audit logfile for writing.
Definition: log.c:1144
val_fast_replace_string
status_t val_fast_replace_string(const xmlChar *str, uint32 stringlen, val_value_t *copy)
Replace a specified val_value_t struct with a string type Reuse everything – just set the val->v....
Definition: val.c:8139
val_find_child
val_value_t * val_find_child(const val_value_t *parent, const xmlChar *modname, const xmlChar *childname)
Find the first instance of the specified child node.
Definition: val.c:8560
VAL_L_UINT16
#define VAL_L_UINT16(V)
Access the left-hand-side value as an uint16 ONLY if NCX_BT_UINT16.
Definition: val.h:494
LOG_DEBUG_NONE
@ LOG_DEBUG_NONE
value not set or error
Definition: log.h:386
log_error
void log_error(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_ERROR log entry.
AGT_DEF_PUSH_MAX_OPERATIONAL
#define AGT_DEF_PUSH_MAX_OPERATIONAL
default max number of operational subscriptions
Definition: agt.h:581
NCX_MSG_ENCODING_XML
@ NCX_MSG_ENCODING_XML
XML message encoding.
Definition: ncxtypes.h:477
AGT_DEF_MAX_BURST
#define AGT_DEF_MAX_BURST
default –max-burst value
Definition: agt.h:243
val.h
Value Node Basic Support.
AGT_CRL_MODE_NONE
@ AGT_CRL_MODE_NONE
not set
Definition: agt.h:702
VAL_UINT32
#define VAL_UINT32(V)
Access the value as an uint32 ONLY if NCX_BT_UINT32.
Definition: val.h:497
val_next_child_same
val_value_t * val_next_child_same(val_value_t *curchild)
Get the next instance of the corresponding child node.
Definition: val.c:8456
AGT_DEF_SSHD_COMMAND
#define AGT_DEF_SSHD_COMMAND
default SSH command for callhome use
Definition: agt.h:513
AGT_DEF_WAT_INTERVAL
#define AGT_DEF_WAT_INTERVAL
default watcher check interval in seconds
Definition: agt.h:510
NCX_DEF_TCP_PORT
#define NCX_DEF_TCP_PORT
port number for NETCONF over TCP
Definition: ncxconst.h:332
ncx_num.h
NCX Module Library Number Utility Functions.
AGT_DEF_CONF_FILE
#define AGT_DEF_CONF_FILE
default etc config filespec
Definition: agt.h:196
agt_set_max_burst
void agt_set_max_burst(uint32 max_burst)
Set the max-burst parameter.
Definition: agt.c:5242
HELP_MODE_NONE
@ HELP_MODE_NONE
value not set
Definition: help.h:85
AGT_DEF_YANGAPI_SERVER_URL
#define AGT_DEF_YANGAPI_SERVER_URL
default YANG-API URI start (obsolete)
Definition: agt.h:267
AGT_DEF_HELLO_TIMEOUT
#define AGT_DEF_HELLO_TIMEOUT
default –hello-timeout value
Definition: agt.h:246
agt_ses_set_idle_timeout
void agt_ses_set_idle_timeout(uint32 val)
Set the idle-timeout parameter.
Definition: agt_ses.c:2466
ncx_get_withdefaults_value
int32 ncx_get_withdefaults_value(const xmlChar *withdefstr)
Get the YANG integer value for the enum for the specified string value.
Definition: ncx.c:8876
agt_callhome_add_server_cli
status_t agt_callhome_add_server_cli(const xmlChar *valstr, agt_ch_proto_t ch_proto)
Add a CallHome server entry from the –callhome-server CLI parm.
Definition: agt_callhome.c:764
val_set_feature_parms
status_t val_set_feature_parms(val_value_t *parentval)
Handle the YANG feature parameter set.
Definition: val_util.c:5127
VAL_UINT16
#define VAL_UINT16(V)
Access the value as an uint16 ONLY if NCX_BT_UINT16.
Definition: val.h:491
agt_audit_cvt_log_events
uint32 agt_audit_cvt_log_events(val_value_t *val, status_t *res)
Get the binary bits from the YANG bits value.
Definition: agt_audit.c:881
AGT_CLI_STARTUP
#define AGT_CLI_STARTUP
name of startup case
Definition: agt.h:490
AGT_DEF_MAX_CLI_SESSIONS
#define AGT_DEF_MAX_CLI_SESSIONS
default –max-cli-sessions value
Definition: agt.h:264
AGT_DEF_PUSH_SIMOP_PERIOD
#define AGT_DEF_PUSH_SIMOP_PERIOD
default simop period is 5 seconds
Definition: agt.h:587
ncx_init_num
void ncx_init_num(ncx_num_t *num)
Init a ncx_num_t struct.
Definition: ncx_num.c:162
ncxconst.h
Contains NCX constants.
ncxmod.h
NCX Module Load Manager.
help.h
YANG help text support for CLI Print help text for various templates.
val_set_message_indent_parm
status_t val_set_message_indent_parm(val_value_t *parentval)
Handle the message-indent parameter.
Definition: val_util.c:5375
ncx_set_enum
status_t ncx_set_enum(const xmlChar *enum_name, const int32 enum_val, ncx_enum_t *retenu)
Parse an enumerated integer string into an ncx_enum_t without matching it against any typdef.
Definition: ncx.c:6445
AGT_DEF_PUSH_SIMOP_ENABLED
#define AGT_DEF_PUSH_SIMOP_ENABLED
default simulated operational mode
Definition: agt.h:584
val_find_next_child
val_value_t * val_find_next_child(const val_value_t *parent, const xmlChar *modname, const xmlChar *childname, const val_value_t *curchild)
Find the next instance of the specified child node.
Definition: val.c:8748
VAL_ENUM_NAME
#define VAL_ENUM_NAME(V)
Access the enum name in the value ONLY if BCX_NT_ENUM This is the macro used to check values in SIL c...
Definition: val.h:434
log_info
void void void void void log_info(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_INFO log entry.
AGT_CH_PROTO_NETCONF_TLS
@ AGT_CH_PROTO_NETCONF_TLS
netconf-over-tls callhome
Definition: agt.h:695
NO_ERR
@ NO_ERR
000
Definition: status_enum.h:188
ncx_clean_list
void ncx_clean_list(ncx_list_t *list)
Scrub the memory of a ncx_list_t but do not delete it.
Definition: ncx_list.c:139
xml_val.h
Utility functions for creating value structs.
agt_audit.h
NETCONF protocol audit log support.
agt_add_allowed_user
status_t agt_add_allowed_user(const xmlChar *username)
Add a backptr to the string in the val_value_t containing the username that is allowed.
Definition: agt.c:4565
agt_sil.h
SIL Transaction APIs.
ncx_find_object
obj_template_t * ncx_find_object(ncx_module_t *mod, const xmlChar *objname)
Find a top level module object.
Definition: ncx.c:4345
HELP_MODE_BRIEF
@ HELP_MODE_BRIEF
–brief mode selected
Definition: help.h:86
log_warn
void void void log_warn(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_WARN log entry.
ERR_INTERNAL_VAL
@ ERR_INTERNAL_VAL
004
Definition: status_enum.h:194
AGT_DEF_SYSTEM_SORTED
#define AGT_DEF_SYSTEM_SORTED
this can be over-ridden by the –system-sorted CLI parameter THIS PARAMETER IGNORED SINCE val_child DO...
Definition: agt.h:234
NCX_AGT_TARG_CANDIDATE
@ NCX_AGT_TARG_CANDIDATE
target=candidate
Definition: ncxtypes.h:354
AGT_CLI_STARTUP_FACTORY_FILE
#define AGT_CLI_STARTUP_FACTORY_FILE
name of startup factory file parameter
Definition: agt.h:496
val_child_add
status_t val_child_add(val_value_t *child, val_value_t *parent)
Add a child value node to a parent value node.
Definition: val_child.c:1542
val_util.h
Value Node Utilities.
xml_val_new_number
val_value_t * xml_val_new_number(const xmlChar *name, xmlns_id_t nsid, ncx_num_t *num, ncx_btype_t btyp)
Set up a new number.
Definition: xml_val.c:657
NCX_MSG_ENCODING_JSON
@ NCX_MSG_ENCODING_JSON
JSON message encoding.
Definition: ncxtypes.h:480
ERR_NCX_INVALID_VALUE
@ ERR_NCX_INVALID_VALUE
258
Definition: status_enum.h:299
agt_cli_process_input
status_t agt_cli_process_input(int argc, char *argv[], agt_profile_t *agt_profile, boolean *showver, help_mode_t *showhelpmode, boolean *no_watcher)
Process the param line parameters against the hardwired parmset for the netconfd program.
Definition: agt_cli.c:2820
ncxmod_setup_fhs_dirs
status_t ncxmod_setup_fhs_dirs(void)
Setup the following FHS location server directories if they do not already exist.
Definition: ncxmod.c:7297
VAL_BITS
#define VAL_BITS
Access the value as a bits value ONLY if NCX_BT_BITS.
Definition: val.h:527
AGT_DEF_IDLE_TIMEOUT
#define AGT_DEF_IDLE_TIMEOUT
default idle timeout value
Definition: agt.h:249
NCX_BT_UINT16
@ NCX_BT_UINT16
uint16
Definition: ncxtypes.h:212
ERR_INTERNAL_MEM
@ ERR_INTERNAL_MEM
003
Definition: status_enum.h:193
val_child.h
Value Node Child Access Support.
NCX_DEF_MAX_STRLEN
#define NCX_DEF_MAX_STRLEN
default max strlen
Definition: ncxconst.h:370
ncx_add_strlist
status_t ncx_add_strlist(const xmlChar *liststr, uint32 liststrlen, ncx_list_t *list)
add a string as a complete list member to an initialized list must be type NCX_BT_STRING
Definition: ncx_list.c:1303
agt_ses_set_max_cli_sessions
void agt_ses_set_max_cli_sessions(uint16 val)
Set the max-cli-sessions parameter.
Definition: agt_ses.c:2428
AGT_DEF_SUBSYS_TIMEOUT
#define AGT_DEF_SUBSYS_TIMEOUT
number of seconds before timeout for subsystems to respond to an edit request
Definition: agt.h:193
ERR_INTERNAL_PTR
@ ERR_INTERNAL_PTR
002
Definition: status_enum.h:192
log_debug
void void void void void void void log_debug(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_DEBUG log entry.
AGT_ACMOD_ENFORCING
@ AGT_ACMOD_ENFORCING
full enforcement
Definition: agt.h:609
AGT_DEF_RESTCONF_SERVER_URL
#define AGT_DEF_RESTCONF_SERVER_URL
default RESTCONF URI start
Definition: agt.h:270
val_set_binary_display_maxlen_parm
status_t val_set_binary_display_maxlen_parm(val_value_t *parentval)
Handle the –binary-display-maxlen parameter.
Definition: val_util.c:7837
AGT_CLI_FACTORY_STARTUP
#define AGT_CLI_FACTORY_STARTUP
name of factory-startup case
Definition: agt.h:493
AGT_DEF_MAX_SESSIONS
#define AGT_DEF_MAX_SESSIONS
default –max-sessions value
Definition: agt.h:261
agt.h
Multi-Protocol Network Management Server.
conf.h
NCX Text Config file parser.
AGT_DEF_PUSH_MIN_PERIOD
#define AGT_DEF_PUSH_MIN_PERIOD
YANG Push Periodic Subscription: units centiseconds min period 1 second.
Definition: agt.h:572
VAL_INT32
#define VAL_INT32(V)
Access the value as an int32 ONLY if NCX_BT_INT32.
Definition: val.h:458
AGT_MAX_PORTS
#define AGT_MAX_PORTS
maximum number of –port leaf-list values that will be saved
Definition: agt.h:188
NCX_AGT_START_MIRROR
@ NCX_AGT_START_MIRROR
with-startup=false
Definition: ncxtypes.h:365
agt_conf_load_files
status_t agt_conf_load_files(const xmlChar *conf_filespec, val_value_t *valset, const xmlChar *conf_dirspec, boolean *skip_def_confdir)
Default main loaded first: /etc/yumapro/netconfd-pro.conf.
Definition: agt_conf.c:203
ERR_NCX_NOT_FOUND
@ ERR_NCX_NOT_FOUND
225
Definition: status_enum.h:264
agt_ses_set_max_sessions
void agt_ses_set_max_sessions(uint16 val)
Set the max-sessions parameter.
Definition: agt_ses.c:2409
AGT_DEF_EVENTLOG_SIZE
#define AGT_DEF_EVENTLOG_SIZE
default –eventlog-size value
Definition: agt.h:240
ncx_get_withdefaults_enum
ncx_withdefaults_t ncx_get_withdefaults_enum(const xmlChar *withdefstr)
Get the enum for the specified string value.
Definition: ncx.c:8844
AGT_DEF_INDENT
#define AGT_DEF_INDENT
default –indent value
Definition: agt.h:255
ncx_get_name_match_string
const xmlChar * ncx_get_name_match_string(ncx_name_match_t match)
Get the string for the ncx_name_match_t enum.
Definition: ncx.c:10649
VAL_UINT
#define VAL_UINT(V)
Access the value as an uint32 ONLY if NCX_BT_UINT8, 16, 32.
Definition: val.h:482
NCX_AGT_START_DISTINCT
@ NCX_AGT_START_DISTINCT
with-startup=true
Definition: ncxtypes.h:366
cli_parse
val_value_t * cli_parse(runstack_context_t *rcxt, int argc, char *argv[], obj_template_t *obj, boolean valonly, boolean script, boolean autocomp, cli_mode_t mode, status_t *status)
schema based CLI support
Definition: cli.c:1533
AGT_CLI_NOSTARTUP
#define AGT_CLI_NOSTARTUP
name of no-startup case
Definition: agt.h:487
ncx_clean_num
void ncx_clean_num(ncx_btype_t btyp, ncx_num_t *num)
Scrub the memory in a ncx_num_t by freeing all the sub-fields.
Definition: ncx_num.c:189
val_set_with_ocpattern_parm
status_t val_set_with_ocpattern_parm(val_value_t *parentval)
Handle the –with-ocpattern parameter.
Definition: val_util.c:5463
agt_yp_ha_add_server_cli
status_t agt_yp_ha_add_server_cli(const xmlChar *valstr)
Add an HA server entry from the –ha-server CLI parm.
Definition: agt_yp_ha.c:477
xml_strcmp
int xml_strcmp(const xmlChar *s1, const xmlChar *s2)
String compare for xmlChar.
Definition: xml_util.c:1746
VAL_BOOL
#define VAL_BOOL(V)
Access the value as a boolean ONLY IF btyp == NCX_BT_BOOLEAN.
Definition: val.h:405
CLI_MODE_PROGRAM
@ CLI_MODE_PROGRAM
real argc, argv
Definition: cli.h:123
val_set_by_default
boolean val_set_by_default(const val_value_t *val)
Check if the value was set by val_add_defaults.
Definition: val.c:12571
AGT_DEF_MESSAGE_INDENT
#define AGT_DEF_MESSAGE_INDENT
default –message-indent value
Definition: agt.h:258
val_set_logging_parms_ex
status_t val_set_logging_parms_ex(val_value_t *parentval, const xmlChar *fhs_logfile)
Check the parent value struct (expected to be a container or list) for the full set of logging contro...
Definition: val_util.c:4720
val_set_errmsg_parm
status_t val_set_errmsg_parm(val_value_t *parentval)
Check the parent value struct (expected to be a container or list) for the errmsg parameter.
Definition: val_util.c:5504
agt_cli.h
NETCONF Server Command Line Interface handler.
agt_sil_set_subsys_timeout
void agt_sil_set_subsys_timeout(uint32 val)
Set the subsys-timeout parameter.
Definition: agt_sil.c:9206
LOGDEBUG
#define LOGDEBUG
Check if at least log-level=debug.
Definition: log.h:287
val_set_protocols_parm
status_t val_set_protocols_parm(val_value_t *parentval)
Handle the –protocols parameter.
Definition: val_util.c:5229
cli.h
command line interpreter parsing to internal val_value_t format
AGT_DEF_PUSH_MAX_PERIODIC
#define AGT_DEF_PUSH_MAX_PERIODIC
default max number of periodic subscriptions
Definition: agt.h:578
HELP_MODE_FULL
@ HELP_MODE_FULL
–full selected
Definition: help.h:88
ncx_list.h
NCX Module Library List Utility Functions.
agt_crl_mode_enum
agt_crl_mode_t agt_crl_mode_enum(const xmlChar *crl_mode)
Get the enum for the CRL mode string.
Definition: agt_util.c:6875
AGT_DEF_SUBSYS_COMMAND
#define AGT_DEF_SUBSYS_COMMAND
default subsystem command for callhome use
Definition: agt.h:516
AGT_DEF_PUSH_MIN_DAMPENING
#define AGT_DEF_PUSH_MIN_DAMPENING
YANG Push min dampening 1 second.
Definition: agt.h:575
agt_cli_get_confspec
const xmlChar * agt_cli_get_confspec(void)
Retrieve the config file used or NULL if none.
Definition: agt_cli.c:3442
ncx_allow_get_when_check
void ncx_allow_get_when_check(void)
Allow server get retrievals to test for false when-stmt during retrieval operations on YANG data.
Definition: ncx.c:14614
AGT_DEF_SERVER_ID
#define AGT_DEF_SERVER_ID
default –server-id value
Definition: agt.h:448
AGT_CH_PROTO_NETCONF_SSH
@ AGT_CH_PROTO_NETCONF_SSH
netconf-over-ssh callhome
Definition: agt.h:694
NCX_MATCH_NONE
@ NCX_MATCH_NONE
not set
Definition: ncxtypes.h:522
ncx_set_use_return_status
void ncx_set_use_return_status(void)
Enable the return_status parameter.
Definition: ncx.c:15232
ncx_get_source
xmlChar * ncx_get_source(const xmlChar *fspec, status_t *res)
Expand a filespec into an absolute path.
Definition: ncx.c:8362
VAL_OBJ
#define VAL_OBJ(V)
Access the object template.
Definition: val.h:381
ncx.h
YANG module utility functions.
AGT_DEF_CONF_DIR
#define AGT_DEF_CONF_DIR
default –confdir value
Definition: agt.h:204
LOG_DEBUG_DEBUG
@ LOG_DEBUG_DEBUG
debug level 1
Definition: log.h:394
agt_yp_ha.h
YumaPro High Availability module (YP-HA)
obj.h
Data Object Support.
VAL_INT
#define VAL_INT(V)
Access the value as an int ONLY if NCX_BT_INT8, 16, 32.
Definition: val.h:443
val_set_warning_parms
status_t val_set_warning_parms(val_value_t *parentval)
Check the parent value struct (expected to be a container or list) for the common warning control par...
Definition: val_util.c:4587
LOG_DEBUG_INFO
@ LOG_DEBUG_INFO
all previous + user info trace
Definition: log.h:392
AGT_ACMOD_PERMISSIVE
@ AGT_ACMOD_PERMISSIVE
permissive mode, read + exec allowed
Definition: agt.h:610
ncx_init_list
void ncx_init_list(ncx_list_t *list, ncx_btype_t btyp)
Initialize an allocated ncx_list_t.
Definition: ncx_list.c:113
ncx_get_name_match_value
int32 ncx_get_name_match_value(ncx_name_match_t match)
Get the YANG integer value for the ncx_name_match_t enum.
Definition: ncx.c:10687
ncx_set_getbulk_max
void ncx_set_getbulk_max(uint32 max_entries)
Set the max_entries parameter for GET2 callbacks.
Definition: ncx.c:12887
ncx_string_in_list
boolean ncx_string_in_list(const xmlChar *str, const ncx_list_t *list)
Check if the string value is in the list List type must be string based, or an enum.
Definition: ncx_list.c:343
NCX_SNMP_AGT_ROLE_MASTER
@ NCX_SNMP_AGT_ROLE_MASTER
SNMP master server role.
Definition: ncxtypes.h:1315
ncx_set_max_strlen
void ncx_set_max_strlen(int32 num)
Set the –max-strlen parameter.
Definition: ncx.c:14783
val_set_path_parms
status_t val_set_path_parms(val_value_t *parentval)
Set the main search paths for files.
Definition: val_util.c:5022
agt_cli_cleanup
void agt_cli_cleanup(void)
Cleanup the module static data.
Definition: agt_cli.c:3454
ncx_file_close
void ncx_file_close(FILE *fp)
Close a file; check result.
Definition: ncx.c:13235
agt_ses_set_hello_timeout
void agt_ses_set_hello_timeout(uint32 val)
Set the hello-timeout parameter.
Definition: agt_ses.c:2447
VAL_STR
#define VAL_STR(V)
Access the value as a string ONLY if typ_is_string() is true.
Definition: val.h:464
AGT_ACMOD_OFF
@ AGT_ACMOD_OFF
NACM completely off.
Definition: agt.h:612
ncx_find_module
ncx_module_t * ncx_find_module(const xmlChar *modname, const xmlChar *revision)
Find a ncx_module_t in the ncx_sesmodQ.
Definition: ncx.c:3227
SET_ERROR
#define SET_ERROR(E)
macro SET_ERROR
Definition: status_enum.h:103
AGT_DEF_PUSH_SIMOP_PATCH_UPDATE
#define AGT_DEF_PUSH_SIMOP_PATCH_UPDATE
default simop message mode (patch or update)
Definition: agt.h:590
agt_set_eventlog_size
void agt_set_eventlog_size(uint32 eventlog_size)
Set the eventlog-size parameter.
Definition: agt.c:5169
NCX_BT_STRING
@ NCX_BT_STRING
string
Definition: ncxtypes.h:217
AGT_DEF_FACTORY_CONFIG_FILE
#define AGT_DEF_FACTORY_CONFIG_FILE
default startup-factory-file value
Definition: agt.h:200
val_set_subdirs_parm
status_t val_set_subdirs_parm(val_value_t *parentval)
set the subdirs parameter
Definition: val_util.c:5081
NCX_SNMP_AGT_ROLE_SUBAGENT
@ NCX_SNMP_AGT_ROLE_SUBAGENT
SNMP sub-agent role.
Definition: ncxtypes.h:1316
AGT_ACMOD_DISABLED
@ AGT_ACMOD_DISABLED
almost all access control turned off
Definition: agt.h:611
val_free_value
void val_free_value(val_value_t *val)
Scrub the memory in a val_value_t by freeing all the sub-fields and then freeing the entire struct it...
Definition: val.c:2842
agt_cli_get_valset
val_value_t * agt_cli_get_valset(void)
Retrieve the command line parameter set from boot time.
Definition: agt_cli.c:3427
status.h
Global error messages for status code enumerations.
ncx_get_name_match_enum
ncx_name_match_t ncx_get_name_match_enum(const xmlChar *str)
Get the enum for the string name of a ncx_name_match_t enum.
Definition: ncx.c:10613
agt_callhome.h
IETF CallHome reverse connection support.