yumapro  20.10-12
YumaPro SDK
agt.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
13 #define _H_agt
14 
15 /* FILE: agt.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 04-nov-05 abb Begun
37 02-aug-08 abb Convert from NCX typdef to YANG object design
38 03-oct-08 abb Convert to YANG only, remove app, parmset,
39  and parm layers in the NETCONF database
40 */
41 
42 #ifndef _H_agt_not
43 #include "agt_not.h"
44 #endif
45 
46 #ifndef _H_help
47 #include "help.h"
48 #endif
49 
50 #ifndef _H_log
51 #include "log.h"
52 #endif
53 
54 #ifndef _H_ncxtypes
55 #include "ncxtypes.h"
56 #endif
57 
58 #ifndef _H_status
59 #include "status.h"
60 #endif
61 
62 #ifdef __cplusplus
63 extern "C" {
64 #endif
65 
66 
67 /* define a top-level header here here */
68 
69 
157 /* header field defined here, used in rest of library */
158 
170 /********************************************************************
171 * *
172 * C O N S T A N T S *
173 * *
174 *********************************************************************/
175 
185 #define AGT_NUM_CB (AGT_CB_ROLLBACK+1)
186 
188 #define AGT_MAX_PORTS 4
189 
193 #define AGT_DEF_SUBSYS_TIMEOUT 30
194 
196 #define AGT_DEF_CONF_FILE \
197  (const xmlChar *)"/etc/yumapro/netconfd-pro.conf"
198 
200 #define AGT_DEF_FACTORY_CONFIG_FILE \
201  (const xmlChar *)"factory-startup-cfg.xml"
202 
204 #define AGT_DEF_CONF_DIR (const xmlChar *)"/etc/yumapro/netconfd-pro.d"
205 
207 #define AGT_DEF_FHS_LOG_FILE \
208  (const xmlChar *)"/var/log/netconfd-pro/server.log"
209 
211 #define AGT_DEF_SYSLIB_FILE (const xmlChar *)"libyp_system.so"
212 
214 #define AGT_SYSLIB_NAME (const xmlChar *)"yp_system"
215 
217 #define AGT_DEF_BACKUP_DIR (const xmlChar *)"$HOME/.yumapro/backups"
218 
220 #define AGT_DEF_BACKUPS_NAME (const xmlChar *)"backups"
221 
223 #define AGT_DEF_FHS_BACKUP_DIR \
224  (const xmlChar *)"/var/lib/netconfd-pro/backups"
225 
229 #define AGT_DEF_DELETE_EMPTY_NP FALSE
230 
234 #define AGT_DEF_SYSTEM_SORTED FALSE
235 
237 #define AGT_DEF_LAX_NAMESPACES TRUE
238 
240 #define AGT_DEF_EVENTLOG_SIZE 1000
241 
243 #define AGT_DEF_MAX_BURST 10
244 
246 #define AGT_DEF_HELLO_TIMEOUT 300
247 
249 #define AGT_DEF_IDLE_TIMEOUT 3600
250 
252 #define AGT_DEF_LINESIZE 72
253 
255 #define AGT_DEF_INDENT 1
256 
258 #define AGT_DEF_MESSAGE_INDENT -1
259 
261 #define AGT_DEF_MAX_SESSIONS 8
262 
264 #define AGT_DEF_MAX_CLI_SESSIONS 0
265 
267 #define AGT_DEF_YANGAPI_SERVER_URL (const xmlChar *)"http://localhost"
268 
270 #define AGT_DEF_RESTCONF_SERVER_URL (const xmlChar *)"http://localhost"
271 
273 #define AGT_DEF_SAVE_OWNERS FALSE
274 
276 #define AGT_DEF_JSON_LEAF_LIST_1LINE FALSE
277 
279 #define AGT_DEF_SAVE_CONFIG_SYSTEM FALSE
280 
282 #define AGT_DEF_GETBULK_MAX 10
283 
285 #define AGT_DEF_WITH_CONFIG_ID TRUE
286 
288 #define AGT_DEF_WITH_OCPATTERN FALSE
289 
291 #define AGT_DEF_NO_NVSTORE FALSE
292 
294 #define AGT_DEF_WITH_CALLHOME FALSE
295 
297 #define AGT_DEF_CALLHOME_RETRY_INT 60
298 
300 #define AGT_DEF_CALLHOME_RETRY_MAX 10
301 
303 #define AGT_DEF_CALLHOME_PORT NCX_DEF_SSH_CALLHOME
304 
306 #define AGT_DEF_CALLHOME_TLS_PORT NCX_DEF_TLS_CALLHOME
307 
309 #define AGT_DEF_CALLHOME_RESTCONF_TLS_PORT NCX_DEF_RESTCONF_TLS_CALLHOME
310 
312 #define AGT_YUMAWORKS_CALLHOME_MODULE (const xmlChar *)"yumaworks-callhome"
313 
315 #define AGT_YUMAWORKS_CALLHOME_REVISION (const xmlChar *)"2020-10-17"
316 #define AGT_DEF_FILELOC_FHS FALSE
317 
319 #define AGT_DEF_NO_AUDIT_LOG FALSE
320 
325 #define AGT_DEF_CRYPT_HASH_PREFIX (const xmlChar *)"$6$"
326 
328 #define AGT_DEF_MIN_PASSWD_LEN 8
329 
331 #define AGT_DEF_HA_ENABLED FALSE
332 
334 #define AGT_DEF_HA_SIL_STANDBY FALSE
335 
337 #define AGT_DEF_HA_PORT 8088
338 
340 #define AGT_DEF_HA_STANDBY_MODE AGT_HA_MODE_HOT_STANDBY
341 
343 #define AGT_DEF_YPCOAP_PORT 5683
344 
346 #define AGT_DEF_YPCOAP_DTLS_PORT 5684
347 
349 #define AGT_DEF_YPCOAP_ADDRESS (const xmlChar *)"0.0.0.0"
350 
352 #define AGT_DEF_RESTCONF_DEFAULT_ENCODING NCX_MSG_ENCODING_JSON
353 
355 #define AGT_DEF_TLS_PORT 6513
356 
358 #define AGT_DEF_DB_LOCK_RETRY 500 // mSec
359 
361 #define AGT_DEF_DB_LOCK_TIMEOUT 20 // Sec
362 
364 #define AGT_DEF_WITH_YUMAWORKS_CONFIG_CHANGE FALSE
365 
367 #define AGT_DEF_WITH_YUMAWORKS_CALLHOME TRUE
368 
370 #define AGT_DEF_WITH_YUMAWORKS_EVENT_STREAM TRUE
371 
373 #define AGT_DEF_WITH_NMDA FALSE
374 
376 #define AGT_DEF_STARTUP_SKIP_VALIDATION FALSE
377 
379 #define AGT_DEF_RETURN_STATUS FALSE
380 
384 #define AGT_DEF_WAIT_DATASTORE_READY FALSE
385 
387 #define AGT_SELECT_TIMEOUT_SEC 0
388 
391 #define AGT_SELECT_TIMEOUT_USEC 10000
392 
394 #define AGT_USER_VAR (const xmlChar *)"user"
395 
397 #define AGT_URL_SCHEME_LIST (const xmlChar *)"file"
398 
400 #define AGT_URL_SCHEME_LIST_TFTP (const xmlChar *)"file,tftp"
401 
403 #define AGT_FILE_SCHEME (const xmlChar *)"file:
404 
405 
406 #define AGT_TOASTER_MOD (const xmlChar *)"toaster"
407 
409 #define AGT_TEST_MOD (const xmlChar *)"test"
410 
412 #define AGT_SIL_SA (const xmlChar *)"sil-sa"
413 
415 #define AGT_DB_API (const xmlChar *)"db-api"
416 
418 #define AGT_YP_HA (const xmlChar *)"yp-ha"
419 
421 #define AGT_YP_GNMI (const xmlChar *)"yp-gnmi"
422 
424 #define AGT_YCONTROL_MOD (const xmlChar *)"yumaworks-ycontrol"
425 
427 #define AGT_DB_API_MOD (const xmlChar *)"yumaworks-db-api"
428 
430 #define AGT_SIL_SA_MOD (const xmlChar *)"yumaworks-sil-sa"
431 
433 #define AGT_PROFILE_MOD (const xmlChar *)"yumaworks-agt-profile"
434 
436 #define AGT_ACTION_MOD (const xmlChar *)"yang-attributes"
437 
439 #define AGT_YP_HA_MOD (const xmlChar *)"yumaworks-yp-ha"
440 
442 #define AGT_TEMPLATES_MOD (const xmlChar *)"yumaworks-templates"
443 
445 #define AGT_YP_GNMI_MOD (const xmlChar *)"yumaworks-yp-gnmi"
446 
448 #define AGT_DEF_SERVER_ID (const xmlChar *)"server1"
449 
451 #define AGT_WITHDEF_MOD (const xmlChar *)"ietf-netconf-with-defaults"
452 
453 
457 #define AGT_TEST_FL_MIN_ELEMS bit0
458 
460 #define AGT_TEST_FL_MAX_ELEMS bit1
461 
463 #define AGT_TEST_FL_MANDATORY bit2
464 
466 #define AGT_TEST_FL_MUST bit3
467 
469 #define AGT_TEST_FL_UNIQUE bit4
470 
472 #define AGT_TEST_FL_XPATH_TYPE bit5
473 
475 #define AGT_TEST_FL_CHOICE bit6
476 
478 #define AGT_TEST_FL_WHEN bit7
479 
481 #define AGT_TEST_ALL_COMMIT_MASK (bit0|bit1|bit2|bit3|bit4|bit5|bit6)
482 
484 #define AGT_TEST_INSTANCE_MASK (bit0|bit1|bit2|bit4|bit6)
485 
487 #define AGT_CLI_NOSTARTUP (const xmlChar *)"no-startup"
488 
490 #define AGT_CLI_STARTUP (const xmlChar *)"startup"
491 
493 #define AGT_CLI_FACTORY_STARTUP (const xmlChar *)"factory-startup"
494 
496 #define AGT_CLI_STARTUP_FACTORY_FILE (const xmlChar *)"startup-factory-file"
497 
499 #define AGT_EVAL_REQUEST_LIMIT 250
500 
504 #define AGT_MAX_OWNER_ID 255
505 
507 #define AGT_WATCHER (const xmlChar *)"ypwatcher"
508 
510 #define AGT_DEF_WAT_INTERVAL 10
511 
513 #define AGT_DEF_SSHD_COMMAND (const xmlChar *)"/usr/sbin/sshd"
514 
516 #define AGT_DEF_SUBSYS_COMMAND \
517  (const xmlChar *)"/usr/sbin/netconf-subsystem-pro"
518 
520 #define AGT_DEF_SNMP_SUBAGENT_PRIO 127
521 
522 /* flags for the agt_auditlog_events mask from
523  * --audit-log-events CLI parameter.
524  * edit-candidate events are generated when an edit
525 * to <candidate> is completed.
526  */
527 #define AGT_FL_AUDIT_EDIT_CANDIDATE bit0
528 
532 #define AGT_FL_AUDIT_EDIT_RUNNING bit1
533 
537 #define AGT_FL_AUDIT_UPDATE_STARTUP bit2
538 
540 #define AGT_FL_AUDIT_CLIENT_SESSION bit3
541 
543 #define AGT_FL_AUDIT_CONTROL_SESSION bit4
544 
546 #define AGT_FL_AUDIT_NACM_WRITE_ERROR bit5
547 
549 #define AGT_FL_AUDIT_NACM_EXEC_ERROR bit6
550 
552 #define AGT_FL_AUDIT_RPC_SUMMARY bit7
553 
555 #define AGT_FL_AUDIT_EDIT_DATA bit8
556 
558 #define AGT_DEF_AUDIT_EVENTS AGT_FL_AUDIT_EDIT_RUNNING
559 
561 #define AGT_DEF_CRL_MISSING_OK false
562 
564 #define AGT_DEF_CRL_MODE AGT_CRL_MODE_OFF
565 
567 #define AGT_DEF_CVT_SUBTREE_FILTER false
568 
572 #define AGT_DEF_PUSH_MIN_PERIOD 100
573 
575 #define AGT_DEF_PUSH_MIN_DAMPENING 100
576 
578 #define AGT_DEF_PUSH_MAX_PERIODIC 16
579 
581 #define AGT_DEF_PUSH_MAX_OPERATIONAL 4
582 
584 #define AGT_DEF_PUSH_SIMOP_ENABLED true
585 
587 #define AGT_DEF_PUSH_SIMOP_PERIOD 500
588 
590 #define AGT_DEF_PUSH_SIMOP_PATCH_UPDATE true
591 
592 
593 
594 
595 
596 /********************************************************************
597 * *
598 * T Y P E S *
599 * *
600 *********************************************************************/
601 
603 typedef enum agt_acmode_t_ {
609 } agt_acmode_t;
610 
611 
619 typedef enum agt_cbtyp_t_ {
624 } agt_cbtyp_t;
625 
626 
628 typedef enum agt_acm_model_t_ {
633 } agt_acm_model_t;
634 
635 
641 } agt_transaction_model_t;
642 
643 
645 typedef enum agt_commit_type_t_ {
649 } agt_commit_type_t;
650 
651 
653 typedef enum agt_exit_mode_t_ {
659 } agt_exit_mode_t;
660 
661 
663 typedef enum agt_tx_type_t_ {
669 } agt_tx_type_t;
670 
671 
673 typedef enum agt_ccparm_t_ {
679 } agt_ccparm_t;
680 
681 
683 typedef enum agt_ha_role_t_ {
688 } agt_ha_role_t;
689 
690 
692 typedef enum agt_ch_proto_t_ {
697 } agt_ch_proto_t;
698 
699 
701 typedef enum agt_crl_mode_t_ {
706 } agt_crl_mode_t;
707 
708 
710 typedef enum agt_hook_type_t_ {
715 } agt_hook_type_t;
716 
717 
721 typedef struct agt_replay_subsys_t_ {
722  dlq_hdr_t qhdr;
723  xmlChar *subsys_id;
724 } agt_replay_subsys_t;
725 
726 
760 typedef struct agt_profile_t_ {
764  ncx_agttarg_t agt_targ;
765 
767  ncx_agtstart_t agt_start;
768 
770  log_debug_t agt_log_level;
771 
773  log_debug_t agt_syslog_log_level;
774 
777 
780 
783 
786 
789 
792 
794  boolean agt_usestartup;
795 
798 
800  boolean agt_startup_error; /* T: stop, F: check fallback */
801 
803  boolean agt_running_error; /* T: stop, F: check fallback */
804 
806  boolean agt_logappend;
807 
809  boolean agt_xmlorder;
810 
813 
816 
819 
822 
831 
833  boolean agt_term_msg;
834 
836  boolean agt_alt_names;
837 
839  boolean agt_wildcards;
840 
842  ncx_name_match_t agt_match_names;
843 
845  agt_transaction_model_t agt_transaction_model;
846 
848  const xmlChar *agt_accesscontrol;
849 
851  const xmlChar *agt_conffile;
852 
854  const xmlChar *agt_confdir;
855 
857  const xmlChar *agt_logfile;
858 
860  const xmlChar *agt_startup;
861 
863  const xmlChar *agt_startup_factory_file;
864 
866  const xmlChar *agt_defaultStyle;
867 
869  const xmlChar *agt_superuser;
870 
872  const xmlChar *agt_extern_libspec;
873 
875  const xmlChar *agt_backup_dir;
876 
878  const xmlChar *agt_server_id;
879 
882 
884  uint32 agt_maxburst;
885 
888 
891 
893  uint32 agt_linesize;
894 
896  int32 agt_indent;
897 
900 
903 
905  boolean agt_useurl;
906 
909 
912 
915 
917  boolean agt_use_cli;
918 
921 
924 
927 
930 
933 
935  agt_acm_model_t agt_acm_model;
936 
938  ncx_withdefaults_t agt_defaultStyleEnum;
939 
942 
945 
948 
951 
954 
957 
960 
962  const xmlChar *agt_coap_address;
963 
965  const xmlChar *agt_yangapi_server_url;
966 
968  const xmlChar *agt_restconf_server_url;
969 
972 
975 
978 
981 
984 
987 
993 
996 
1004 
1007 
1010 
1013 
1016 
1019 
1022 
1024  const xmlChar *agt_subsys_info_file;
1025 
1028 
1031 
1039 
1050 
1056 
1063 
1069 
1074 
1079 
1088 
1093  const xmlChar *agt_crypt_hash_prefix;
1094 
1097 
1105 
1108 
1111 
1114 
1117 
1120 
1123 
1126 
1128  log_debug_t agt_audit_log_level;
1129 
1132 
1135 
1137  uint16 agt_ha_port;
1138 
1140  const xmlChar *agt_ha_server_key;
1141 
1143  const xmlChar *agt_ha_initial_active;
1144 
1145  // leaf-list ha-server not stored here; not sent to subsys
1146 
1149 
1154 
1155  /* TBD: add this data to subsystems in the near future */
1156 
1161 
1167 
1173 
1185 
1189  boolean agt_with_yang11_hello; /* d: false */
1190 
1197 
1202 
1208 
1209  /* the callhome-server parameter is handled by agt_callhome */
1210 
1215  const xmlChar *agt_sshd_path;
1216 
1221  const xmlChar *agt_subsys_path;
1222 
1227  const xmlChar *agt_sshd_config;
1228 
1229 
1236 
1239 
1242 
1244  ncx_msg_encoding_t agt_restconf_default_encoding;
1245 
1247  boolean agt_startup_fallback; /* T: restart, F: continue */
1248 
1250  boolean agt_running_fallback; /* T: restart, F: continue */
1251 
1252 
1253  /* the SNMP agent parameters */
1254 
1256  boolean agt_with_snmp;
1257 
1259  ncx_snmp_agt_role_t agt_snmp_agent_role;
1260 
1265 
1268  boolean agt_useurl_ftp;
1272 
1275 
1277  const xmlChar *agt_netconf_tls_address;
1278 
1281 
1283  const xmlChar *agt_netconf_tls_key;
1284 
1287 
1290 
1293 
1295  const xmlChar *agt_cert_default_user;
1296 
1298  const xmlChar *agt_errmsg_lang;
1299 
1302 
1307 
1310 
1313 
1316 
1318  boolean agt_with_gnmi;
1319 
1324 
1327 
1330 
1336 
1342 
1345 
1348 
1355 
1358 
1361 
1364 
1367 
1370 
1373 
1376 
1379 
1381  agt_crl_mode_t agt_crl_mode;
1382 
1385 
1387  boolean agt_with_nmda;
1388 
1391 
1394 
1397 
1400 
1402  uint16 agt_push_min_period; // centiseconds
1403 
1405  uint16 agt_push_min_dampening; // centiseconds
1406 
1408  uint32 agt_push_max_periodic; // count
1409 
1411  uint32 agt_push_max_operational; // count
1412 
1415 
1418 
1421 
1424 
1427 
1428 
1429  /****** state variables; TBD: move out of profile ******/
1430 
1433 
1435  boolean agt_load_done;
1436 
1439 
1442 
1445 
1448 
1451 
1454 
1456  dlq_hdr_t agt_savedevQ;
1457 
1459  dlq_hdr_t agt_commit_testQ;
1460 
1463 
1466 
1469 
1472  boolean agt_confdir_skipped;
1473 
1475  agt_ha_role_t agt_ha_role;
1476 
1479 
1480 } agt_profile_t;
1481 
1482 
1486 /******************* External System Callbacks ***********************/
1487 
1501 typedef void (*agt_system_init_profile_fn_t)
1502  (agt_profile_t *profile);
1503 
1504 
1517 typedef status_t (*agt_system_init1_fn_t)
1518  (boolean pre_cli);
1519 
1520 
1534 typedef status_t (*agt_system_init2_fn_t)
1535  (boolean pre_load);
1536 
1537 
1543 typedef void (*agt_system_cleanup_fn_t) (void);
1544 
1545 
1556 typedef status_t (*agt_nvsave_fn_t)
1557  (ncx_display_mode_t encoding,
1558  const xmlChar *filespec);
1559 
1560 
1575 typedef status_t (*agt_nvload_fn_t)
1576  (ncx_display_mode_t *encoding,
1577  xmlChar **filespec);
1578 
1579 
1583 typedef struct agt_syslib_cb_t_ {
1585  dlq_hdr_t qhdr;
1586 
1588  void *handle;
1589 
1591  xmlChar *libspec;
1592 
1595 
1598 
1601 
1604 
1606  status_t init1_status;
1607 
1609  status_t init2_status;
1610 
1612  boolean cleanup_done;
1613 } agt_syslib_cb_t;
1614 
1615 
1625 typedef void (*agt_replay_fn_t) (boolean is_start);
1626 
1627 
1631 /********************************************************************
1632 * *
1633 * F U N C T I O N S *
1634 * *
1635 *********************************************************************/
1636 
1637 
1661 extern status_t
1662  agt_init1 (int argc,
1663  char *argv[],
1664  boolean *showver,
1665  help_mode_t *showhelpmode);
1666 
1667 
1681 extern status_t
1682  agt_init1_ex (int argc,
1683  char *argv[],
1684  boolean factory_restart,
1685  boolean *showver,
1686  help_mode_t *showhelpmode);
1687 
1688 
1696 extern status_t
1697  agt_init1_sil_sa (void);
1698 
1699 
1714 extern status_t
1715  agt_init1_ypserver (int argc,
1716  char *argv[],
1717  boolean factory_restart,
1718  boolean *showver,
1719  help_mode_t *showhelpmode);
1720 
1721 
1734 extern status_t
1735  agt_init2 (void);
1736 
1737 
1751 extern status_t
1752  agt_init2_ex (boolean factory_restart);
1753 
1754 
1760 extern status_t
1761  agt_init2_sil_sa (void);
1762 
1763 
1770 extern void
1771  agt_cleanup (void);
1772 
1773 
1780 extern void
1781  agt_cleanup_sil_sa (void);
1782 
1783 
1791 extern agt_profile_t *
1792  agt_get_profile (void);
1793 
1794 
1802 extern void
1803  agt_request_shutdown (ncx_shutdowntyp_t mode,
1804  int intnum);
1805 
1806 
1812 extern boolean
1813  agt_shutdown_requested (void);
1814 
1815 
1821 extern ncx_shutdowntyp_t
1823 
1824 
1831 extern int
1832  agt_shutdown_term_signal (void);
1833 
1834 
1841 extern const xmlChar *
1842  agt_cbtype_name (agt_cbtyp_t cbtyp);
1843 
1844 
1854 extern boolean
1855  agt_advertise_module_needed (const xmlChar *modname);
1856 
1857 
1866 extern void agt_request_replay (void);
1867 
1868 
1878 extern void agt_request_replay_ex (void *cookie);
1879 
1880 
1886 extern void * agt_get_replay_cookie (void);
1887 
1888 
1899 extern void
1900  agt_request_replay_subsys (const xmlChar *subsys_id);
1901 
1902 
1908 extern boolean agt_replay_requested (void);
1909 
1910 
1916 extern void agt_start_replay (void);
1917 
1918 
1924 extern void agt_finish_replay (void);
1925 
1926 
1935 extern status_t
1937  agt_nvsave_fn_t store_fn);
1938 
1939 
1950 extern status_t
1951  agt_check_save_external_config (ncx_display_mode_t encoding,
1952  const xmlChar *filespec);
1953 
1954 
1963 extern status_t
1964  agt_add_allowed_user (const xmlChar *username);
1965 
1966 
1973 extern void
1974  agt_remove_allowed_user (const xmlChar *username);
1975 
1976 
1983 extern status_t
1984  agt_check_allowed_user (const xmlChar *username);
1985 
1986 
1992 extern void
1994 
1995 
2001 extern const xmlChar *
2002  agt_get_server_id (void);
2003 
2004 
2010 extern const xmlChar *
2011  agt_get_server_key (void);
2012 
2013 
2019 extern boolean
2020  agt_is_sil_sa (void);
2021 
2022 
2028 extern dlq_hdr_t *
2029  agt_get_savedevQ (void);
2030 
2031 
2038 extern boolean
2039  agt_replay_subsys_is_active (const xmlChar *subsys_id);
2040 
2041 
2048 extern boolean
2050 
2051 
2058 extern const xmlChar *
2059  agt_ha_role_str (agt_ha_role_t ha_role);
2060 
2061 
2068 extern agt_ha_role_t
2069  agt_ha_role_enum (const xmlChar *ha_role);
2070 
2071 
2078 extern boolean
2079  agt_use_notifications (void);
2080 
2081 
2089 extern status_t
2090  agt_check_load_config (agt_ha_role_t ha_role);
2091 
2092 
2098 extern boolean
2099  agt_init2_done (void);
2100 
2101 
2113 extern boolean
2114  agt_advertise_yang11_module_needed (ncx_module_t *mod);
2115 
2116 
2122 extern void
2123  agt_set_factory_restart (void);
2124 
2125 
2135 extern boolean
2136  agt_in_factory_restart (void);
2137 
2138 
2145 extern status_t
2146  agt_add_modcache (ncx_modcache_t *mc);
2147 
2148 
2155 extern ncx_modcache_t *
2156  agt_find_modcache (const xmlChar *modname);
2157 
2158 
2164 extern status_t
2165  agt_run_extloop (void);
2166 
2167 
2175 extern status_t
2176  agt_enter_maintenance_mode (boolean read_ok,
2177  boolean operation_ok);
2178 
2179 
2185 extern status_t
2187 
2188 
2194 extern boolean
2195  agt_in_maintenance_mode (void);
2196 
2197 
2205 extern boolean
2207 
2208 
2216 extern boolean
2218 
2219 
2225 extern boolean
2227 
2228 
2234 extern void
2235  agt_set_eventlog_size (uint32 eventlog_size);
2236 
2237 
2243 extern void
2244  agt_set_max_burst (uint32 max_burst);
2245 
2246 
2252 extern void
2253  agt_set_max_getbulk (uint32 max_getbulk);
2254 
2255 
2264 extern agt_not_msg_t *
2265  agt_make_term_msg (const xmlChar *msg,
2266  status_t *res);
2267 
2268 
2274 extern status_t
2275  agt_init_term_msg_module (void);
2276 
2277 
2283 extern boolean
2284  agt_use_nmda (void);
2285 
2286 
2293 extern boolean
2295 
2296 
2300 #ifdef __cplusplus
2301 } /* end extern 'C' */
2302 #endif
2303 
2304 #endif /* _H_agt */
agt_ha_role_t_
agt_ha_role_t_
server HA mode mode
Definition: agt.h:683
ncx_str.h
NCX Module Library String Utility Functions.
AGT_YCONTROL_MOD
#define AGT_YCONTROL_MOD
YANG module used for subsystem message transport.
Definition: agt.h:424
smioid_tree_dump
status_t smioid_tree_dump(void)
Traverses the SMI OID tree and prints the OID string and info on the obj_template_t instance.
Definition: smioid_tree.c:562
agt_sil_cleanup
void agt_sil_cleanup(void)
Cleanup the SIL Features Module.
Definition: agt_sil.c:7709
AGT_HOOK_TYPE_SETHOOK
@ AGT_HOOK_TYPE_SETHOOK
Set-Hook.
Definition: agt.h:712
agt_profile_t_::agt_factorystartup
boolean agt_factorystartup
track –factory-startup flag
Definition: agt.h:797
ERR_NCX_SKIPPED
@ ERR_NCX_SKIPPED
2001
Definition: status_enum.h:551
agt_acmode_t_
agt_acmode_t_
matches access-control enumeration in netconfd.yang
Definition: agt.h:603
agt_action_cleanup
void agt_action_cleanup(void)
Cleanup the Action handler.
Definition: agt_action.c:232
log_info_append
void void void void void void log_info_append(const char *fstr,...) __attribute__((format(printf
Append to a LOG_DEBUG_INFO log entry.
xml_strlen
uint32 xml_strlen(const xmlChar *str)
Get the String len for xmlChar.
Definition: xml_util.c:1406
AGT_HOOK_TYPE_NONE
@ AGT_HOOK_TYPE_NONE
not set
Definition: agt.h:711
agt_ypsnmp.h
Yuma Interface to net-snmp data structures. Agent interface.
agt_syslib_cb_t_::init_profile_fn
agt_system_init_profile_fn_t init_profile_fn
init profile callback
Definition: agt.h:1594
agt_restconf_cleanup
void agt_restconf_cleanup(void)
Cleanup the agt_yangapi module.
Definition: agt_restconf.c:1985
agt_cap.h
NETCONF Server capabilities handler.
DUMP_VAL_LOG
@ DUMP_VAL_LOG
dump val to main log
Definition: val.h:777
agt_modtags.h
YumaPro Module tags handler.
agt_cap_set_netconf_module
status_t agt_cap_set_netconf_module(void)
Initialize the NETCONF module capabilities.
Definition: agt_cap.c:1151
agt_getbulk_cleanup
void agt_getbulk_cleanup(void)
cleanup the server instrumentation library
Definition: agt_getbulk.c:1128
agt_connect_init
status_t agt_connect_init(void)
Initialize the agt_connect module.
Definition: agt_connect.c:187
agt_profile_t_::agt_logappend
boolean agt_logappend
–log-append parameter
Definition: agt.h:806
ncxmod_find_sil_file
xmlChar * ncxmod_find_sil_file(const xmlChar *fname, boolean generrors, status_t *res)
Determine the location of the specified server instrumentation library file.
Definition: ncxmod.c:5351
agt_cleanup
void agt_cleanup(void)
Cleanup the Server Library.
Definition: agt.c:4084
dlq_block_enque
void dlq_block_enque(dlq_hdrT *srcP, dlq_hdrT *dstP)
add all the queue entries in the srcP queue list to the end of the dstP queue list
Definition: dlq.c:731
AGT_CCPARM_NONE
@ AGT_CCPARM_NONE
not set
Definition: agt.h:674
agt_init1
status_t agt_init1(int argc, char *argv[], boolean *showver, help_mode_t *showhelpmode)
Initialize the Server Library: stage 1: CLI and profile.
Definition: agt.c:3209
xml_msg_clean_hdr
void xml_msg_clean_hdr(xml_msg_hdr_t *msg)
Clean all the memory used by the specified xml_msg_hdr_t but do not free the struct itself.
Definition: xml_msg.c:438
agt_profile_t_::agt_superuser
const xmlChar * agt_superuser
superuser name (allowed to be NULL)
Definition: agt.h:869
agt_hello_cleanup
void agt_hello_cleanup(void)
Cleanup the agt_hello module.
Definition: agt_hello.c:179
agt_curl.h
YumaPro libcurl API.
AGT_SILTYP_MODULE
@ AGT_SILTYP_MODULE
SIL is a module.
Definition: agt_sil_lib.h:108
ncx_file_remove
status_t ncx_file_remove(const xmlChar *filespec, boolean do_warn)
Close a file; check result.
Definition: ncx.c:13262
agt_restconf.h
IETF RESTCONF Protocol Message Handler.
agt_ses.h
Server Session Management.
agt_util.h
Utility Functions for NCX Server method routines.
agt_profile_t_::agt_use_ccommit
boolean agt_use_ccommit
enable confirmed-comiit
Definition: agt.h:908
agt_syslib_cb_t_::init1_status
status_t init1_status
init1 callback result
Definition: agt.h:1606
agt_crypt.h
crypt-hash data type handling
agt_run_extloop
status_t agt_run_extloop(void)
Run the agt_ncxserver in external loop mode.
Definition: agt.c:5137
agt_profile_t_::agt_use_notifications
boolean agt_use_notifications
enable notifications
Definition: agt.h:926
agt_sil_lib_call_init2
status_t agt_sil_lib_call_init2(void)
Call the available SIL init2 callbacks.
Definition: agt_sil_lib.c:844
y_yumaworks_event_stream_init
status_t y_yumaworks_event_stream_init(const xmlChar *modname, const xmlChar *revision)
initialize the yumaworks-event-filter server instrumentation library
Definition: yumaworks-event-stream.c:803
agt_profile_t_::agt_sil_wait_sa
boolean agt_sil_wait_sa
No CLI parameter!! Set to TRUE in agt_profile.c the load-config will wait if agt_ncx_load_any_waiting...
Definition: agt.h:1341
agt_profile_t_::agt_wait_datastore_ready
boolean agt_wait_datastore_ready
wait-datastore-ready parameter
Definition: agt.h:1423
agt_use_notifications
boolean agt_use_notifications(void)
Check if notifications currently enabled.
Definition: agt.c:4867
agt_restconf_static_restmon_cleanup
void agt_restconf_static_restmon_cleanup(void)
Call the cleanup function for the ietf-restconf-monitoring module.
Definition: agt_restconf.c:2753
agt_ncx_cfg_save
status_t agt_ncx_cfg_save(cfg_template_t *cfg)
Save the specified cfg to the its startup source, which should be stored in the cfg struct.
Definition: agt_ncx.c:5489
agt_db_api_cleanup
void agt_db_api_cleanup(void)
Cleanup the DB-API Module.
Definition: agt_db_api.c:1548
xml_strdup
xmlChar * xml_strdup(const xmlChar *copyFrom)
String duplicate for xmlChar.
Definition: xml_util.c:1553
agt_profile_t_::agt_ha_sil_standby
boolean agt_ha_sil_standby
call SIL code in standby mode
Definition: agt.h:1134
agt_acm_extern.h
NETCONF Server Access Control handler for external data model.
agt_replay_fn_t
void(* agt_replay_fn_t)(boolean is_start)
replay callback (agt_replay_fn_t)
Definition: agt.h:1625
AGT_TX_TYPE_RPC
@ AGT_TX_TYPE_RPC
DB-API RPC transaction.
Definition: agt.h:667
AGT_CFG_EDIT_TYPE_FULL
@ AGT_CFG_EDIT_TYPE_FULL
REPLACE = full database replace.
Definition: agt_cfg.h:191
ncxmod_subsys_info_remove
void ncxmod_subsys_info_remove(const xmlChar *filespec)
Remove the subsystem info file.
Definition: ncxmod.c:8863
agt_static_syslib_init1
status_t agt_static_syslib_init1(boolean pre_cli)
Call the init1 function for the yp_system-static.a library.
Definition: agt_static_syslib.c:110
agt_profile_t_::agt_watcher_interval
uint32 agt_watcher_interval
Specifies the number of seconds the YPWatcher process will sleep before checking if the netconfd-pro ...
Definition: agt.h:1055
agt_profile_t_::agt_with_nmda
boolean agt_with_nmda
with-nmda
Definition: agt.h:1387
agt_shutdown_mode_requested
ncx_shutdowntyp_t agt_shutdown_mode_requested(void)
Check what shutdown mode was requested.
Definition: agt.c:4211
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
agt_state.h
NETCONF State Monitoring Data Model Module support.
agt_val_clean_cached_results
void agt_val_clean_cached_results(void)
Clean cached results.
Definition: agt_val.c:14004
agt_getbulk_init2
status_t agt_getbulk_init2(void)
SIL init phase 2: non-config data structures.
Definition: agt_getbulk.c:1114
agt_profile_t_::agt_startup_factory_file
const xmlChar * agt_startup_factory_file
factory startup filespec
Definition: agt.h:863
AGT_DEF_BACKUPS_NAME
#define AGT_DEF_BACKUPS_NAME
hard-wired server backups dir name
Definition: agt.h:220
agt_request_replay
void agt_request_replay(void)
Request replay of the running config to SIL modules because SIL hardware has reset somehow.
Definition: agt.c:4301
agt_yp_ha_preinit
void agt_yp_ha_preinit(void)
Pre-Initialize the YP-HA subsys handler.
Definition: agt_yp_ha.c:221
agt_val_init_commit_tests
void agt_val_init_commit_tests(void)
Initialize commit tests.
Definition: agt_val.c:13984
agt_profile_t_::agt_running_error
boolean agt_running_error
–running-error parameter: stop, continue enums only
Definition: agt.h:803
ncxmod_find_data_file
xmlChar * ncxmod_find_data_file(const xmlChar *fname, boolean generrors, boolean backup_file, status_t *res)
Determine the location of the specified data file.
Definition: ncxmod.c:5068
ERR_NCX_DEF_NOT_FOUND
@ ERR_NCX_DEF_NOT_FOUND
250
Definition: status_enum.h:289
agt_in_factory_restart
boolean agt_in_factory_restart(void)
Check if a factory restort is in progress.
Definition: agt.c:5058
agt_profile_t_::agt_push_max_periodic
uint32 agt_push_max_periodic
push-max-periodic parameter
Definition: agt.h:1408
LOG_DEBUG_NONE
@ LOG_DEBUG_NONE
value not set or error
Definition: log.h:386
agt_profile_t_::agt_confdir
const xmlChar * agt_confdir
config dir: default: /etc/yumapro/netconfd-pro.d
Definition: agt.h:854
log_error
void log_error(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_ERROR log entry.
agt_ypgnmi.h
Server YP-GNMI support module.
agt_state_add_netconf_schema
status_t agt_state_add_netconf_schema(void)
Add a schema entry to the netconf-state DM for ietf-netconf.
Definition: agt_state.c:2635
agt_getbulk.h
YumaPro <get-bulk> Operation.
NCX_CFG_STATE_BAD
@ NCX_CFG_STATE_BAD
bad datastore being used anyway
Definition: ncxtypes.h:1421
AGT_SIL_SA_MOD
#define AGT_SIL_SA_MOD
YANG module used for SIL-SA service messages.
Definition: agt.h:430
ncx_owner_cleanup
void ncx_owner_cleanup(void)
Cleanup the Owner registry.
Definition: ncx_owner.c:142
val.h
Value Node Basic Support.
agt_ncx_load_any_waiting
boolean agt_ncx_load_any_waiting(void)
Check if any bundles are waiting to be loaded from a SIL-SA subsystem.
Definition: agt_ncx_load.c:3172
AGT_CRL_MODE_NONE
@ AGT_CRL_MODE_NONE
not set
Definition: agt.h:702
agt_profile_t_::agt_create_empty_npcontainers
boolean agt_create_empty_npcontainers
LAST DATA SENT TO SUBSYSTEMS create empty NP containers d: true.
Definition: agt.h:1153
agt_profile_t_::agt_sil_missing_error
boolean agt_sil_missing_error
treat missing SIL libraries as an error, not warning
Definition: agt.h:1009
ncx_get_first_module
ncx_module_t * ncx_get_first_module(void)
Get the first module in the ncx_modQ.
Definition: ncx.c:4729
agt_cap_set_caps
status_t agt_cap_set_caps(ncx_agttarg_t agttarg, ncx_agtstart_t agtstart, const xmlChar *defstyle, uint8 withdef_enabled)
Initialize the NETCONF server capabilities.
Definition: agt_cap.c:482
agt_timer_cleanup
void agt_timer_cleanup(void)
Cleanup the agt_timer module.
Definition: agt_timer.c:222
y_ietf_netconf_notifications_init
status_t y_ietf_netconf_notifications_init(void)
initialize the ietf-netconf-notifications server instrumentation library
Definition: agt_ietf_notif.c:766
NCX_CFG_STATE_OK
@ NCX_CFG_STATE_OK
normal state
Definition: ncxtypes.h:1420
AGT_TX_TYPE_NONE
@ AGT_TX_TYPE_NONE
not set
Definition: agt.h:664
agt_crl_mode_t_
agt_crl_mode_t_
server TLS CRL mode
Definition: agt.h:701
agt_profile_t_::agt_yumaworks_system
boolean agt_yumaworks_system
d: true
Definition: agt.h:826
agt_rpc.h
NETCONF protocol remote procedure call server-side definitions.
ncxmod_find_server_data_file
xmlChar * ncxmod_find_server_data_file(const xmlChar *fname, boolean fileloc_fhs, boolean generrors, boolean backup_file, boolean keep_result, status_t *res)
Find a server data file.
Definition: ncxmod.c:5233
agt_start_replay
void agt_start_replay(void)
Start replay of the running config to SIL modules.
Definition: agt.c:4413
smioid_tree_cleanup
void smioid_tree_cleanup(void)
Clean and free the oid tree.
Definition: smioid_tree.c:401
obj_testflags_t
uint8 obj_testflags_t
object test flags
Definition: obj.h:1052
y_ietf_netconf_notifications_init2
status_t y_ietf_netconf_notifications_init2(void)
SIL init phase 2: non-config data structures.
Definition: agt_ietf_notif.c:837
ncx_set_trim_whitespace
void ncx_set_trim_whitespace(boolean val)
Set the trim_whitespace flag.
Definition: ncx.c:14900
agt_ncxserver_run_extloop
status_t agt_ncxserver_run_extloop(boolean ycontrol, const xmlChar *txid_str, boolean extloop_mode)
IO server loop for the ncxserver socket (FULL MODE)
Definition: agt_ncxserver.c:3496
agt_profile_t_::agt_system_sorted
boolean agt_system_sorted
enable system-sorted (obsolete: sorted by val_child algorithms)
Definition: agt.h:929
ncx_use_xpath_backptrs
boolean ncx_use_xpath_backptrs(void)
Check if it is OK to use XPath back pointers or not.
Definition: ncx.c:11335
agt_restconf_static_restmon_init2
status_t agt_restconf_static_restmon_init2(void)
Call the ietf-restconf-monitoring init2 function.
Definition: agt_restconf.c:2733
log_vendor.h
Logging manager vendor API.
NCX_PROTO_NETCONF11
@ NCX_PROTO_NETCONF11
RFC 6241 base:1.1.
Definition: ncxtypes.h:784
agt_yangapi_cleanup
void agt_yangapi_cleanup(void)
Cleanup the agt_yangapi module.
Definition: agt_yangapi.c:859
agt_cfg_init_transactions
status_t agt_cfg_init_transactions(const xmlChar *txidfile, boolean foundfile)
Initialize the transaction ID functionality.
Definition: agt_cfg.c:1386
agt_profile_t_::agt_use_yuma_if
boolean agt_use_yuma_if
load yuma-if module
Definition: agt.h:977
agt_profile_t_::agt_log_level
log_debug_t agt_log_level
requested log-level
Definition: agt.h:770
agt_exit_maintenance_mode
status_t agt_exit_maintenance_mode(void)
Exit the server from mainenance mode to unblock client activity.
Definition: agt.c:5315
agt_yp_ha_cleanup
void agt_yp_ha_cleanup(void)
Cleanup the YP-HA Module.
Definition: agt_yp_ha.c:443
log_debug3
void void void void void void void void void void void log_debug3(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_DEBUG3 log entry.
agt_action.h
NETCONF Server YANG action handler.
agt_sil_lib_cleanup
void agt_sil_lib_cleanup(void)
Cleanup the module.
Definition: agt_sil_lib.c:785
NCX_DEF_TCP_PORT
#define NCX_DEF_TCP_PORT
port number for NETCONF over TCP
Definition: ncxconst.h:332
agt_ncx_load_cleanup
void agt_ncx_load_cleanup(void)
Cleanup the NCX Load module.
Definition: agt_ncx_load.c:2734
agt_cb_run_shutdown
void agt_cb_run_shutdown(void)
Run Shutdown callbacks.
Definition: agt_cb.c:4498
ncx_set_top_mandatory_allowed
void ncx_set_top_mandatory_allowed(boolean allowed)
Allow or disallow modules with top-level mandatory object to be loaded; used by the server when agt_r...
Definition: ncx.c:10745
agt_ypcoap_init
status_t agt_ypcoap_init(void)
Initialize the agt_ypcoap module.
Definition: agt_ypcoap.c:2490
agt_profile_t_::agt_netconf_tls_certificate
const xmlChar * agt_netconf_tls_certificate
–netconf-tls-cerificate parameter
Definition: agt.h:1280
agt_register_local_nv_handler
status_t agt_register_local_nv_handler(agt_nvload_fn_t load_fn, agt_nvsave_fn_t store_fn)
Register a set of nvstore and nvload callback functions to handle the non-volatile storage of the con...
Definition: agt.c:4485
agt_profile_t_::agt_conffile
const xmlChar * agt_conffile
config file: default: /etc/yumapro/netconfd-pro.conf
Definition: agt.h:851
agt_profile_t_::agt_netconf_tls_key
const xmlChar * agt_netconf_tls_key
–netconf-tls-key parameter
Definition: agt.h:1283
agt_set_max_burst
void agt_set_max_burst(uint32 max_burst)
Set the max-burst parameter.
Definition: agt.c:5242
y_ietf_netconf_partial_lock_init
status_t y_ietf_netconf_partial_lock_init(const xmlChar *modname, const xmlChar *revision)
ietf-netconf-partial-lock module init 1
Definition: agt_plock.c:725
agt_profile_t_::agt_netconf_tls_address
const xmlChar * agt_netconf_tls_address
–netconf-tls-address parameter
Definition: agt.h:1277
agt_val_delete_dead_nodes
status_t agt_val_delete_dead_nodes(ses_cb_t *scb, rpc_msg_t *msg, val_value_t *root)
Mark nodes deleted for each false when-stmt from <validate>
Definition: agt_val.c:13882
HELP_MODE_NONE
@ HELP_MODE_NONE
value not set
Definition: help.h:85
agt_init_term_msg_module
status_t agt_init_term_msg_module(void)
Init the term-msg module and object backptr.
Definition: agt.c:5392
AGT_EXIT_MODE_TIMEOUT
@ AGT_EXIT_MODE_TIMEOUT
exit loop with timeout
Definition: agt.h:657
ncx_set_list_deleteall_ok
void ncx_set_list_deleteall_ok(boolean val)
Set the list_deleteall_ok flag.
Definition: ncx.c:15061
agt_library_init2
status_t agt_library_init2(void)
Load the modules in the agt_library module.
Definition: agt_library.c:107
agt_ncxserver.h
NCX Server Transport and IO Library.
agt_profile_t_::agt_sil_invoke_for_defaults
boolean agt_sil_invoke_for_defaults
–sil-invoke-for-defaults parameter
Definition: agt.h:1315
agt_ncx_cfg_load
status_t agt_ncx_cfg_load(cfg_template_t *cfg, cfg_location_t cfgloc, const xmlChar *cfgparm)
Load the specifed config from the indicated source.
Definition: agt_ncx.c:5293
AGT_EXIT_MODE_DROPPED
@ AGT_EXIT_MODE_DROPPED
exit loop with session dropped
Definition: agt.h:658
heapcheck_report
void heapcheck_report(boolean use_logger, log_debug_t level, const char *label)
Generate a heap check report.
agt_profile_t_::agt_term_msg
boolean agt_term_msg
d: true for <term-msg> notification
Definition: agt.h:833
agt_callhome_init_postcli
status_t agt_callhome_init_postcli(void)
Initialize the Callhome module POST CLI parms.
Definition: agt_callhome.c:583
AGT_WATCHER
#define AGT_WATCHER
name of YP-watcher program
Definition: agt.h:507
agt_commit_type_t_
agt_commit_type_t_
NETCONF commit types.
Definition: agt.h:645
ncx_clean_mbackptrQ
void ncx_clean_mbackptrQ(dlq_hdr_t *backptrQ)
Clean an entire Q of ncx_backptr_t structs Use ncx_free_mbackptr to free node pointers.
Definition: ncx.c:11492
agt_cfg_cleanup_transactions
void agt_cfg_cleanup_transactions(const xmlChar *txidfile)
Cleanup the transaction ID functionality.
Definition: agt_cfg.c:1455
ncx_next_backptr
ncx_backptr_t * ncx_next_backptr(ncx_backptr_t *curptr)
Get next back pointer struct.
Definition: ncx.c:11545
agt_syslib_cb_t_::init1_fn
agt_system_init1_fn_t init1_fn
init1 callback
Definition: agt.h:1597
agt_profile_t_::agt_save_owners
boolean agt_save_owners
flag to save owner strings in the database
Definition: agt.h:1027
AGT_CCPARM_CONFIRM_TIMEOUT
@ AGT_CCPARM_CONFIRM_TIMEOUT
confirm-timeout
Definition: agt.h:676
y_yumaworks_event_filter_cleanup
void y_yumaworks_event_filter_cleanup(void)
Cleanup the server instrumentation library.
Definition: y_yumaworks_event_filter.c:465
agt_profile_t_::agt_load_done
boolean agt_load_done
server load-config done flag
Definition: agt.h:1435
agt_static_syslib_cleanup
void agt_static_syslib_cleanup(void)
Call the cleanup function for the yp_system-static.a library.
Definition: agt_static_syslib.c:151
agt_maintenance_mode_operation_ok
boolean agt_maintenance_mode_operation_ok(void)
Return true if in maintenance mode operations OK;.
Definition: agt.c:5214
agt_remove_allowed_user
void agt_remove_allowed_user(const xmlChar *username)
Remove an allowed-user name from the running system Does not change any config file allowed-user para...
Definition: agt.c:4595
agt_ses_init
status_t agt_ses_init(void)
INIT 1: Initialize the session manager module data structures.
Definition: agt_ses.c:465
agt_request_replay_ex
void agt_request_replay_ex(void *cookie)
Request replay of the running config to SIL modules because SIL hardware has reset somehow.
Definition: agt.c:4319
log_close
void log_close(void)
Close the logfile.
Definition: log.c:1106
agt_profile_t_::agt_audit_log_level
log_debug_t agt_audit_log_level
audit log level
Definition: agt.h:1128
agt_profile_t_::agt_useurl_ftp
boolean agt_useurl_ftp
–with-url-ftp
Definition: agt.h:1268
agt_profile_t_::agt_min_passwd_len
uint8 agt_min_passwd_len
minimum password length when setting crypt-hash variables
Definition: agt.h:1096
agt_state_init
status_t agt_state_init(void)
Initialize the agent state monitor module data structures.
Definition: agt_state.c:1962
agt_restconf_init
status_t agt_restconf_init(void)
Initialize the agt_restconf module.
Definition: agt_restconf.c:1960
agt_profile_t_::agt_max_cli_sessions
uint16 agt_max_cli_sessions
max CLI sessions
Definition: agt.h:947
AGT_ACM_MODEL_YUMA_NACM
@ AGT_ACM_MODEL_YUMA_NACM
YUMA NACM (obsolete, not supported)
Definition: agt.h:631
ERR_NCX_DUP_ENTRY
@ ERR_NCX_DUP_ENTRY
224
Definition: status_enum.h:263
agt_profile_t_::agt_push_min_dampening
uint16 agt_push_min_dampening
push-min-dampening parameter
Definition: agt.h:1405
agt_profile_t_::agt_socket_port
uint16 agt_socket_port
listen on this TCP port if TCP socket is enabled
Definition: agt.h:1468
agt_not_init2
status_t agt_not_init2(void)
INIT 2: Initialize the monitoring data structures This must be done after the <running> config is loa...
Definition: agt_not.c:4911
agt_enter_maintenance_mode
status_t agt_enter_maintenance_mode(boolean read_ok, boolean operation_ok)
Set the server to mainenance mode to block client activity.
Definition: agt.c:5277
agt_profile_t_::agt_yuma_time_filter
boolean agt_yuma_time_filter
use the yuma-time-filter module
Definition: agt.h:1357
agt_profile_t_::agt_use_db_lock
boolean agt_use_db_lock
db-lock used only if WITH_YCONTROL=1 and CLI set
Definition: agt.h:1366
agt_profile_t_::agt_netconf_tls_port
uint16 agt_netconf_tls_port
–netconf-tls-port parameter
Definition: agt.h:1286
agt_not_init_sil_sa
status_t agt_not_init_sil_sa(void)
INIT 1: Initialize the server notification module data structures.
Definition: agt_not.c:4880
agt_set_factory_restart
void agt_set_factory_restart(void)
Set the flag so the server will restart with the factory config.
Definition: agt.c:5036
ncxmod_subsys_info_write
status_t ncxmod_subsys_info_write(const xmlChar *filespec, const xmlChar *ipaddr, uint16 portnum)
Write the subsystem info file;.
Definition: ncxmod.c:8782
AGT_ACM_MODEL_EXTERNAL
@ AGT_ACM_MODEL_EXTERNAL
external ACM via yp_system library
Definition: agt.h:632
ncxconst.h
Contains NCX constants.
ncxmod.h
NCX Module Load Manager.
agt_find_modcache
ncx_modcache_t * agt_find_modcache(const xmlChar *modname)
Find a module to the modcache queue and hash table.
Definition: agt.c:5111
agt_not.h
NETCONF Notifications DM module support.
y_yuma_time_filter_cleanup
void y_yuma_time_filter_cleanup(void)
yuma-time-filter module cleanup
Definition: agt_time_filter.c:135
agt_profile_t_::agt_with_maint_mode
boolean agt_with_maint_mode
allow maintenance mode to be used
Definition: agt.h:1344
NCX_PROTO_YUMA_YANGAPI
@ NCX_PROTO_YUMA_YANGAPI
YumaPro YANG-API 1.0.
Definition: ncxtypes.h:785
NCX_PROTO_YUMA_CLI
@ NCX_PROTO_YUMA_CLI
YumaPro Internal CLI 1.0.
Definition: ncxtypes.h:786
agt_profile_t_::agt_push_simop_period
uint32 agt_push_simop_period
push-simop-period parameter
Definition: agt.h:1414
cfg_set_target
void cfg_set_target(ncx_cfg_t cfg_id)
Set the CFG_FL_TARGET flag in the specified config.
Definition: cfg.c:1551
ncxmod_setup_yumadir
status_t ncxmod_setup_yumadir(void)
Setup the ~/.yuma directory if it does not exist.
Definition: ncxmod.c:7179
agt_yangapi.h
Yuma REST API Message Handler.
agt_profile_t_::agt_yangapi_server_url
const xmlChar * agt_yangapi_server_url
YANG-API server URL (obsolete)
Definition: agt.h:965
agt_profile_t_::agt_has_startup
boolean agt_has_startup
has startup flag for –with-startup
Definition: agt.h:791
log_vendor_extern_register_send_fn
void log_vendor_extern_register_send_fn(logfn_vendor_send_t new_vendor_logfn)
Register vendor function to accept YumaPro log output stream (mandatory)
Definition: log_vendor_extern.c:94
y_ietf_netconf_partial_lock_init2
status_t y_ietf_netconf_partial_lock_init2(void)
ietf-netconf-partial-lock module init 2
Definition: agt_plock.c:819
AGT_TX_TYPE_GET
@ AGT_TX_TYPE_GET
GET2 transaction.
Definition: agt.h:665
agt_profile_t_::agt_useurl
boolean agt_useurl
–with-url parameter
Definition: agt.h:905
help.h
YANG help text support for CLI Print help text for various templates.
agt_profile_t_::agt_with_yp_coap_dtls
boolean agt_with_yp_coap_dtls
enable YP-CoAP DTLS sessions (not supported)
Definition: agt.h:1119
AGT_EXIT_MODE_ERROR
@ AGT_EXIT_MODE_ERROR
exit loop with error
Definition: agt.h:656
agt_ncx_init
status_t agt_ncx_init(void)
Initialize the NETCONF Server standard method routines.
Definition: agt_ncx.c:5230
cfg_get_root
val_value_t * cfg_get_root(ncx_cfg_t cfgid)
Get the config root for the specified config.
Definition: cfg.c:3240
AGT_HA_ROLE_ACTIVE
@ AGT_HA_ROLE_ACTIVE
HA active role.
Definition: agt.h:687
agt_profile_t_::agt_message_indent
int32 agt_message_indent
–message-indent parameter
Definition: agt.h:899
agt_profile_t_::agt_conf_dirspec
xmlChar * agt_conf_dirspec
malloced string indicating the confdir pathspec in use
Definition: agt.h:1471
agt_profile_t_::agt_with_canonical
boolean agt_with_canonical
–with-canonical parameter
Definition: agt.h:1309
ncx_set_ypwatcher_running
void ncx_set_ypwatcher_running(void)
Set the ypwatcher running flag.
Definition: ncx.c:14813
AGT_ACM_MODEL_NONE
@ AGT_ACM_MODEL_NONE
not set
Definition: agt.h:629
agt_cb.h
NETCONF Server Data Model callback handler.
agt_profile_t_::agt_coap_address
const xmlChar * agt_coap_address
Coap over DTLS address (not implemented)
Definition: agt.h:962
agt_modtags_init2
status_t agt_modtags_init2(void)
Initialize YumaPro module tags feature (phase 2)
Definition: agt_modtags.c:778
agt_static_yanglib_cleanup
void agt_static_yanglib_cleanup(void)
Call the cleanup function for the ietf-yang-library.
Definition: agt_static_yanglib.c:165
agt_profile_t_::agt_with_yang_api
boolean agt_with_yang_api
enable YANG-API sessions (obsolete)
Definition: agt.h:1110
agt_replay_subsys_t_::subsys_id
xmlChar * subsys_id
malloced subsystem name string
Definition: agt.h:723
agt_ccparm_t_
agt_ccparm_t_
confirmed-commit parms
Definition: agt.h:673
agt_profile_t_::agt_load_validate_errors
boolean agt_load_validate_errors
server load-config had errors flag
Definition: agt.h:1438
agt_profile_t_::agt_savedevQ
dlq_hdr_t agt_savedevQ
Q of malloced ncx_save_deviations_t.
Definition: agt.h:1456
log_info
void void void void void log_info(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_INFO log entry.
agt_maintenance_mode_read_ok
boolean agt_maintenance_mode_read_ok(void)
Return true if in maintenance mode reads OK;.
Definition: agt.c:5199
agt_commit_complete_init
void agt_commit_complete_init(void)
Initialise the callback commit module.
Definition: agt_commit_complete.c:123
agt_cbtype_name
const xmlChar * agt_cbtype_name(agt_cbtyp_t cbtyp)
Get the string for the server callback phase.
Definition: agt.c:4247
agt_acm_extern_init0
void agt_acm_extern_init0(void)
Init 0 Pre-init 1 phase.
Definition: agt_acm_extern.c:105
AGT_CH_PROTO_NETCONF_TLS
@ AGT_CH_PROTO_NETCONF_TLS
netconf-over-tls callhome
Definition: agt.h:695
agt_init2_sil_sa
status_t agt_init2_sil_sa(void)
Initialize the Server Library for SIL-SA.
Definition: agt.c:4046
agt_rpc_cleanup
void agt_rpc_cleanup(void)
Cleanup the agt_rpc module.
Definition: agt_rpc.c:2531
log_debug2
void void void void void void void void void log_debug2(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_DEBUG2 log entry.
agt_val.h
NETCONF Server database callback handler.
AGT_HA_ROLE_STANDBY
@ AGT_HA_ROLE_STANDBY
HA standby role.
Definition: agt.h:686
agt_curl_init
void agt_curl_init(void)
Iniitial the libcurl API.
agt_yp_ha_mgmt_enabled
boolean agt_yp_ha_mgmt_enabled(void)
Check if MGMT protocols disabled because YP-HA Standby mode.
Definition: agt_yp_ha.c:877
agt_syslib_cb_t_::cleanup_done
boolean cleanup_done
cleanup done flag
Definition: agt.h:1612
agt_templates_init
status_t agt_templates_init(void)
initialize the yumaworks-templates
Definition: agt_templates.c:293
agt_profile_t_::agt_targ
ncx_agttarg_t agt_targ
BEGIN DATA SENT TO SUBSYSTEMS; target type (candidate or running)
Definition: agt.h:764
agt_ietf_notif.h
ietf-netconf-notifications YANG module support
y_yumaworks_templates_cleanup
void y_yumaworks_templates_cleanup(void)
cleanup the server instrumentation library
Definition: y_yumaworks_templates.c:307
agt_init2_ex
status_t agt_init2_ex(boolean factory_restart)
Initialize the Server Library (phase 2 init - extended)
Definition: agt.c:3371
AGT_COMMIT_TYPE_REPLAY
@ AGT_COMMIT_TYPE_REPLAY
internal replay commit
Definition: agt.h:648
def_reg.h
Definition Registry module.
agt_profile_t_::agt_maxburst
uint32 agt_maxburst
–maxburst parameter
Definition: agt.h:884
NCX_DISPLAY_MODE_NONE
@ NCX_DISPLAY_MODE_NONE
not set
Definition: ncxtypes.h:448
ncx_set_bestmatch
status_t ncx_set_bestmatch(void)
Setup the bestmatch module versions, if enabled.
Definition: ncx.c:14060
agt_profile_t_::agt_useurl_tftp
boolean agt_useurl_tftp
the libcurl variables
Definition: agt.h:1267
agt_in_maintenance_mode
boolean agt_in_maintenance_mode(void)
Return true if in mainenance mode now.
Definition: agt.c:5184
NO_ERR
@ NO_ERR
000
Definition: status_enum.h:188
agt_commit_complete.h
NETCONF Server Commit Complete callback handler. This file contains functions to support registering,...
agt_signal.h
Handle interrupt signals for the server.
agt_init1_ex
status_t agt_init1_ex(int argc, char *argv[], boolean factory_restart, boolean *showver, help_mode_t *showhelpmode)
Initialize the Server Library: stage 1: CLI and profile Added factory_restart parameter.
Definition: agt.c:3246
ncx_file_copy
status_t ncx_file_copy(const xmlChar *src_filespec, const xmlChar *dst_filespec)
Copy a file; check result.
Definition: ncx.c:13328
agt_profile_t_::agt_list_deleteall_ok
boolean agt_list_deleteall_ok
allow delete-all and remove-all operations on a list
Definition: agt.h:812
agt_profile_t_::agt_trim_whitespace
boolean agt_trim_whitespace
–trim-whitespace CLI parameter
Definition: agt.h:1274
agt_profile.h
NETCONF Server agt_profile data structure.
log_vendor_extern.h
Logging manager vendor API registration.
ncx_set_system_sorted
void ncx_set_system_sorted(boolean val)
Set the system_sorted value.
Definition: ncx.c:10140
agt_static_yanglib_init1
status_t agt_static_yanglib_init1(void)
Load the ietf-yang-library SIL even if it is statically linked.
Definition: agt_static_yanglib.c:126
agt_ncx_load_boot_bundle
status_t agt_ncx_load_boot_bundle(const xmlChar *bundle)
Load a bundle at boot-time.
Definition: agt_ncx_load.c:3058
agt_ses_cleanup
void agt_ses_cleanup(void)
Cleanup the session manager module data structures.
Definition: agt_ses.c:499
ncx_any_mod_errors
boolean ncx_any_mod_errors(void)
Check if any of the loaded modules are loaded with non-fatal errors.
Definition: ncx.c:3451
agt_get_server_key
const xmlChar * agt_get_server_key(void)
Get the ha-server-key string.
Definition: agt.c:4717
agt_yp_ha_init
status_t agt_yp_ha_init(void)
Initialize the YP-HA subsys handler (begin phase 2 init)
Definition: agt_yp_ha.c:247
ncx_set_save_owners
void ncx_set_save_owners(boolean val)
Set the save_owners flag.
Definition: ncx.c:15180
NCX_PROTO_RESTCONF
@ NCX_PROTO_RESTCONF
IETF RESTCONF.
Definition: ncxtypes.h:788
agt_yp_ha_init2
status_t agt_yp_ha_init2(void)
Initialize the YP-HA shared state (phase 2 init, post external init).
Definition: agt_yp_ha.c:367
agt_profile_t_::agt_lax_namespaces
boolean agt_lax_namespaces
lax namespace usage: will try to match element name
Definition: agt.h:932
cfg_init_static_db
status_t cfg_init_static_db(ncx_cfg_t cfg_id)
Initialize the specified static configuration slot.
Definition: cfg.c:1287
ncx_get_message_indent
int8 ncx_get_message_indent(void)
Get the protoco9l output indent amount.
Definition: ncx.c:10775
yumaworks-event-stream.h
SIL callbacks for the yumaworks-event-stream module.
AGT_HOOK_TYPE_TRANSACTION
@ AGT_HOOK_TYPE_TRANSACTION
Transaction Hook.
Definition: agt.h:713
agt_check_allowed_user
status_t agt_check_allowed_user(const xmlChar *username)
Check a username in the allowed-user Q.
Definition: agt.c:4632
agt_static_syslib_init_profile
void agt_static_syslib_init_profile(void)
Override the agt_profile default initialization.
Definition: agt_static_syslib.c:87
ncx_get_yang_version
ncx_yang_version_t ncx_get_yang_version(const ncx_module_t *mod)
Get the yang-version used in the module.
Definition: ncx.c:12937
agt_profile_t_::agt_use_netconf
boolean agt_use_netconf
enable NETCONF protocol
Definition: agt.h:920
agt_profile_t_::agt_no_nvstore
boolean agt_no_nvstore
this field indicates that the server should not load or save using the normal APIs during transaction...
Definition: agt.h:1184
agt_profile_t_::agt_yumaworks_templates
boolean agt_yumaworks_templates
d: true
Definition: agt.h:827
agt_system_init_profile_fn_t
void(* agt_system_init_profile_fn_t)(agt_profile_t *profile)
system init server profile callback
Definition: agt.h:1502
agt_request_shutdown
void agt_request_shutdown(ncx_shutdowntyp_t mode, int intnum)
Request some sort of server shutdown.
Definition: agt.c:4136
y_yumaworks_event_filter.h
System SIL callbacks for yumaworks-event-filter module.
NCX_SHUT_FALLBACK
@ NCX_SHUT_FALLBACK
, called from <shutdown>, SIGINT, SIGKILL, SIGQUIT, SIGABRT, SIGTRAP, SIGTERM
Definition: ncxtypes.h:378
agt_cb_cleanup
void agt_cb_cleanup(void)
Cleanup the server callback module.
Definition: agt_cb.c:1125
agt_profile_t_::agt_restconf_default_encoding
ncx_msg_encoding_t agt_restconf_default_encoding
this enum indicates the –restconf-default-encoding CLI parameter
Definition: agt.h:1244
agt_syslib_cb_t_
struct to keep track of the dynamic external yp-system hooks library
Definition: agt.h:1583
agt_db_lock.h
Server DB-API DB-Edit-Lock support module.
agt_val_root_check
status_t agt_val_root_check(ses_cb_t *scb, xml_msg_hdr_t *msghdr, agt_cfg_transaction_t *txcb, val_value_t *root)
Perform a YANG validation root-check.
Definition: agt_val.c:12863
val_dump_value
void val_dump_value(val_value_t *val, int32 startindent, log_debug_t lvl)
Printf the specified val_value_t struct to the logfile, or stdout if none set Uses conf file format (...
Definition: val.c:5688
agt_support_save.h
Implement <get-support-save> RPC function.
agt_profile_t_::agt_yumaworks_getbulk
boolean agt_yumaworks_getbulk
use the yumaworks-getbulk module
Definition: agt.h:1360
ERR_NCX_MISSING_FILE
@ ERR_NCX_MISSING_FILE
226
Definition: status_enum.h:265
agt_profile_t_::agt_ha_role
agt_ha_role_t agt_ha_role
saved HA role
Definition: agt.h:1475
agt_profile_t_::agt_ports
uint16 agt_ports[AGT_MAX_PORTS]
these port numbers are for the NETCONF-over-SSH protocol
Definition: agt.h:953
log_debug4
void void void void void void void void void void void void void log_debug4(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_DEBUG4 log entry.
agt_replay_subsys_is_active
boolean agt_replay_subsys_is_active(const xmlChar *subsys_id)
Find a subsys replay request struct in the activeQ.
Definition: agt.c:4764
agt_ncx.h
NETCONF Server standard method routines.
agt_rpc_init
status_t agt_rpc_init(void)
Initialize the agt_rpc module.
Definition: agt_rpc.c:2496
ERR_NCX_OPERATION_FAILED
@ ERR_NCX_OPERATION_FAILED
274
Definition: status_enum.h:315
GET_MOD_SIL_LOADED
#define GET_MOD_SIL_LOADED(M)
check flag used by agt_sil_lib to make sure modules loaded by import
Definition: ncxtypes.h:79
agt_profile_t_::agt_max_sessions
uint16 agt_max_sessions
max sessions (total)
Definition: agt.h:944
agt_ha_role_enum
agt_ha_role_t agt_ha_role_enum(const xmlChar *ha_role)
Get the enum for the specified HA role string.
Definition: agt.c:4838
AGT_CCPARM_CONFIRMED
@ AGT_CCPARM_CONFIRMED
confirmed
Definition: agt.h:675
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_TM_NONE
@ AGT_TM_NONE
this value is used
Definition: agt.h:638
agt_sil.h
SIL Transaction APIs.
agt_acm_init2
status_t agt_acm_init2(void)
Phase 2 : Initialize the nacm.yang configuration data structures.
Definition: agt_acm.c:207
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
agt_static_yanglib_init2
status_t agt_static_yanglib_init2(void)
Call the init2 function for the ietf-yang-library.
Definition: agt_static_yanglib.c:146
LOGDEBUG2
#define LOGDEBUG2
Check if at least log-level=debug2.
Definition: log.h:292
AGT_ACM_MODEL_IETF_NACM
@ AGT_ACM_MODEL_IETF_NACM
IETF NACM (default)
Definition: agt.h:630
cfg_get_config
cfg_template_t * cfg_get_config(const xmlChar *cfgname)
Get the config struct from its name.
Definition: cfg.c:1468
dlq_createSQue
void dlq_createSQue(dlq_hdrT *queAddr)
create a static queue header
Definition: dlq.c:177
agt_init1_ypserver
status_t agt_init1_ypserver(int argc, char *argv[], boolean factory_restart, boolean *showver, help_mode_t *showhelpmode)
Initialize the Server Library: stage 1: CLI and profile Added factory_restart parameter yp-controller...
Definition: agt.c:3316
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
heapchk.h
Internal Heap Checking Utilities.
agt_profile_t_::agt_log_acm_reads
boolean agt_log_acm_reads
log NACM read requests
Definition: agt.h:782
AGT_TX_TYPE_EDIT
@ AGT_TX_TYPE_EDIT
EDIT1 or EDIT2 transaction.
Definition: agt.h:666
NCX_AGT_TARG_CANDIDATE
@ NCX_AGT_TARG_CANDIDATE
target=candidate
Definition: ncxtypes.h:354
agt_profile_t_::agt_library_mode
boolean agt_library_mode
this field indicates the server is operating in library mode It will look for YANG modules but only l...
Definition: agt.h:1166
y_yumaworks_templates_init2
status_t y_yumaworks_templates_init2(void)
SIL init phase 2: non-config data structures.
Definition: y_yumaworks_templates.c:262
agt_profile_t_::agt_withdef_enabled
uint8 agt_withdef_enabled
bitmask of the with-defaults enumerations that should be enabled in the server
Definition: agt.h:1049
agt_ncx_load_init
status_t agt_ncx_load_init(void)
Initialize the NCX Load module.
Definition: agt_ncx_load.c:2704
agt_sil_init
status_t agt_sil_init(void)
Initialize the SIL features module (phase 2)
Definition: agt_sil.c:7655
agt_use_nmda
boolean agt_use_nmda(void)
Check if NMDA is enabled.
Definition: agt.c:5424
agt_profile_t_::agt_startup_prune_ok
boolean agt_startup_prune_ok
–startup-prune-ok parameter
Definition: agt.h:1301
agt_time_filter.h
Support yuma-time-filter YANG module.
AGT_EXIT_MODE_OK
@ AGT_EXIT_MODE_OK
exit loop with OK
Definition: agt.h:655
log_vendor_test_send_to_syslog
void log_vendor_test_send_to_syslog(log_debug_app_t app, log_debug_t level, const char *fstr, va_list args)
Pass vendor log data to syslog, but pretend to be a vendor callback.
Definition: log_vendor.c:156
agt_profile_t_::agt_accesscontrol
const xmlChar * agt_accesscontrol
access control model
Definition: agt.h:848
agt_get_savedevQ
dlq_hdr_t * agt_get_savedevQ(void)
Get the agt_savedevQ pointer.
Definition: agt.c:4747
agt_profile_t_::agt_autodelete_pdu_error
boolean agt_autodelete_pdu_error
If 'true' the server will treat edit-config auto-delete because of false when-stmts as an error inste...
Definition: agt.h:1078
agt_profile_t_::agt_startup
const xmlChar * agt_startup
startup filespec
Definition: agt.h:860
agt_profile_t_::agt_ha_initial_active
const xmlChar * agt_ha_initial_active
active server to use if standby
Definition: agt.h:1143
AGT_DB_API_MOD
#define AGT_DB_API_MOD
YANG module used for DB-API service messages.
Definition: agt.h:427
agt_profile_t_::agt_crl_mode
agt_crl_mode_t agt_crl_mode
tls-crl-mode parameter
Definition: agt.h:1381
agt_profile_t_::agt_startup_error
boolean agt_startup_error
–startup-error parameter: stop, continue enums only
Definition: agt.h:800
agt_profile_t_::agt_with_yumaworks_event_stream
boolean agt_with_yumaworks_event_stream
with-yumaworks-event-stream
Definition: agt.h:1378
agt_ha_role_str
const xmlChar * agt_ha_role_str(agt_ha_role_t ha_role)
Get the string for the specified HA role enumeration.
Definition: agt.c:4808
agt_profile_t_::agt_restconf_strict_headers
boolean agt_restconf_strict_headers
If 'true' the server will only accept requests with normative Accept header entries specified in the ...
Definition: agt.h:1073
agt_profile_t_::agt_idle_timeout
uint32 agt_idle_timeout
–idle-timeout parameter
Definition: agt.h:890
agt_profile_t_::agt_callhome_reconnect
boolean agt_callhome_reconnect
CLI parameter –callhome-reconnect.
Definition: agt.h:1347
agt_system_cleanup_fn_t
void(* agt_system_cleanup_fn_t)(void)
system cleanup callback
Definition: agt.h:1543
agt_syslib_cb_t_::handle
void * handle
handle from dlopen
Definition: agt.h:1588
ERR_NCX_INVALID_VALUE
@ ERR_NCX_INVALID_VALUE
258
Definition: status_enum.h:299
agt_ch_proto_t_
agt_ch_proto_t_
server callhome protocol
Definition: agt.h:692
NCX_CFGID_CANDIDATE
@ NCX_CFGID_CANDIDATE
candidate datastore
Definition: ncxtypes.h:385
val_set_all_tags
void val_set_all_tags(val_value_t *val, time_t *timestamp, ncx_transaction_id_t txid)
Set the etag and last_modified field for the node and all config sub-children.
Definition: val.c:13540
agt_sil_lib.h
Server Instrumentation Library Support.
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
agt_profile_t_::agt_startup_create_ok
boolean agt_startup_create_ok
no CLI parameter!! set to TRUE! change in yp-system library or agt_profile.c
Definition: agt.h:1306
NCX_CFGID_STARTUP
@ NCX_CFGID_STARTUP
startup datastore
Definition: ncxtypes.h:386
obj_dict_dump
void obj_dict_dump(void)
Print the sorted dictionary contents.
Definition: obj_dict.c:345
NCX_DEF_STARTUP_FILE
#define NCX_DEF_STARTUP_FILE
Default startup config data file name.
Definition: ncxconst.h:457
agt_profile_t_::agt_audit_log_events
uint32 agt_audit_log_events
–audit-log-events to control audit log content
Definition: agt.h:1329
agt_profile_t_::agt_with_snmp
boolean agt_with_snmp
this flag indicates that the snmp agent should be enabled
Definition: agt.h:1256
agt_profile_t_::agt_no_audit_log
boolean agt_no_audit_log
this flag indicates the –no-audit-log CLI parameter
Definition: agt.h:1241
agt_profile_t_::agt_push_max_operational
uint32 agt_push_max_operational
push-max-operational parameter
Definition: agt.h:1411
agt_profile_t_::agt_ha_enabled
boolean agt_ha_enabled
enable YP-HA
Definition: agt.h:1131
log_debug_append
void void void void void void void void log_debug_append(const char *fstr,...) __attribute__((format(printf
Append to a LOG_DEBUG_DEBUG log entry.
AGT_CB_VALIDATE
@ AGT_CB_VALIDATE
P1: write operation validate.
Definition: agt.h:620
ncxmod_get_subdir_filespec
xmlChar * ncxmod_get_subdir_filespec(const xmlChar *subdir, boolean fileloc_fhs, status_t *res)
Get the subdir specification for the given subdir name The correct .yumapro directory will be used fo...
Definition: ncxmod.c:8494
agt_set_mod_defaults
status_t agt_set_mod_defaults(ncx_module_t *mod, val_value_t *valroot, boolean set_candidate, boolean set_augment, boolean force)
Check for any top-level config leafs that have a default value, and add them to the running configura...
Definition: agt_util.c:4375
AGT_EXIT_MODE_NONE
@ AGT_EXIT_MODE_NONE
this value is used
Definition: agt.h:654
agt_state_cleanup
void agt_state_cleanup(void)
Cleanup the module data structures.
Definition: agt_state.c:2278
agt_ypcoap_cleanup
void agt_ypcoap_cleanup(void)
Cleanup the agt_ypcoap module.
Definition: agt_ypcoap.c:2580
agt_profile_t_::agt_load_top_rootcheck_errors
boolean agt_load_top_rootcheck_errors
server load-config had top root-check errors flag
Definition: agt.h:1444
ERR_INTERNAL_MEM
@ ERR_INTERNAL_MEM
003
Definition: status_enum.h:193
agt_ypsnmp_agentx_connected
boolean agt_ypsnmp_agentx_connected(void)
Check if the AgentX agent succ connected to the master agent.
Definition: agt_ypsnmp_agentx.c:1166
AGT_YP_HA_MOD
#define AGT_YP_HA_MOD
YANG module used for YP-HA service messages.
Definition: agt.h:439
val_child.h
Value Node Child Access Support.
agt_not_init
status_t agt_not_init(void)
INIT 1: Initialize the server notification module data structures.
Definition: agt_not.c:4727
agt_get2_init
status_t agt_get2_init(void)
Initialize the Get2 module.
Definition: agt_get2.c:558
agt_profile_t_::agt_sshd_config
const xmlChar * agt_sshd_config
set the sshd_config file to use for sshd exectuable for callhome default is $HOME/....
Definition: agt.h:1227
agt_profile_t_::agt_subsys_info_file
const xmlChar * agt_subsys_info_file
location of subsys info file
Definition: agt.h:1024
ERR_INTERNAL_INIT_SEQ
@ ERR_INTERNAL_INIT_SEQ
007
Definition: status_enum.h:197
get_error_string
const char * get_error_string(status_t res)
Get the error message for a specific internal error.
Definition: status.c:239
agt_check_load_config
status_t agt_check_load_config(agt_ha_role_t ha_role)
Check if the boot-time load-config should be done because it was deferred while waiting for the YP-HA...
Definition: agt.c:4897
agt_crypt_init
status_t agt_crypt_init(void)
Initialize this module.
Definition: agt_crypt.c:390
agt_sil_lib_init
void agt_sil_lib_init(void)
Initialize the module.
Definition: agt_sil_lib.c:768
agt_profile_t_::agt_save_config_system
boolean agt_save_config_system
flag to skip generation of the startup XML file when a save_config is done by the server.
Definition: agt.h:1038
agt_profile_t_::agt_xmlorder
boolean agt_xmlorder
use strict XML order flag
Definition: agt.h:809
agt_cap_set_modules
status_t agt_cap_set_modules(void)
Initialize the NETCONF server capabilities modules list.
Definition: agt_cap.c:791
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_ycontrol_init_was_done
boolean agt_ycontrol_init_was_done(void)
Return TRUE if this module has been initialized.
Definition: agt_ycontrol.c:2051
AGT_ACMOD_ENFORCING
@ AGT_ACMOD_ENFORCING
full enforcement
Definition: agt.h:609
NCX_CFGID_RUNNING
@ NCX_CFGID_RUNNING
running datastore (no value for not set!)
Definition: ncxtypes.h:384
agt_plock.h
Partial Lock Operation.
agt_profile_t_::agt_sil_skip_keys
boolean agt_sil_skip_keys
do not invoke the SIL callback for a key leaf
Definition: agt.h:1012
agt_profile_t_::agt_use_yumaworks_event_filter
boolean agt_use_yumaworks_event_filter
load yumaworks-event-filter module
Definition: agt.h:983
agt_replay_requested
boolean agt_replay_requested(void)
Check if config replay is pending.
Definition: agt.c:4383
agt_syslib_cb_t_::qhdr
dlq_hdr_t qhdr
queue header
Definition: agt.h:1585
YANG_MODULE
#define YANG_MODULE
yang attributes module
Definition: yangconst.h:70
agt_profile_t_::agt_errmsg_lang
const xmlChar * agt_errmsg_lang
–errmsg-lang parameter
Definition: agt.h:1298
agt_profile_t_::agt_ietf_system_notifs
boolean agt_ietf_system_notifs
d: true
Definition: agt.h:825
y_yumaworks_templates.h
System SIL callbacks for yumaworks-templates module.
yangconst.h
Contains YANG constants separated to prevent H file include loops.
agt_profile_t_::agt_syslog_log_level
log_debug_t agt_syslog_log_level
requested SYSLOG log-level
Definition: agt.h:773
load_SIL
status_t load_SIL(const xmlChar *modname, const xmlChar *revision, agt_siltype_t siltyp, boolean is_sil_sa)
Load the SIL code or load the YANG module.
Definition: agt_sil_lib.c:260
agt_static_syslib.h
yp-system library linked with STATIC_SERVER=1
cfg_set_state
void cfg_set_state(ncx_cfg_t cfg_id, cfg_state_t new_state)
Change the state of the specified static config.
Definition: cfg.c:1409
AGT_CRL_MODE_OFF
@ AGT_CRL_MODE_OFF
CRL check off.
Definition: agt.h:703
agt_profile_t_::agt_hello_timeout
uint32 agt_hello_timeout
–hello-timeout parameter
Definition: agt.h:887
agt_profile_t_::agt_startup_fallback
boolean agt_startup_fallback
this flag indicates the –startup-error parm is set to fallback
Definition: agt.h:1247
agt_profile_t_::agt_with_gnmi
boolean agt_with_gnmi
this flag indicates that the gNMI support should be enabled
Definition: agt.h:1318
y_yuma_time_filter_init2
status_t y_yuma_time_filter_init2(void)
yuma-time-filter module init 2
Definition: agt_time_filter.c:118
agt_profile_t_::agt_use_yuma_mysession
boolean agt_use_yuma_mysession
load yuma-mysession module
Definition: agt.h:980
agt_profile_t_::agt_with_yumaworks_config_change
boolean agt_with_yumaworks_config_change
with-yumaworks-config-change
Definition: agt.h:1375
LOGINFO
#define LOGINFO
Check if at least log-level=info.
Definition: log.h:279
dlq_nextEntry
#define dlq_nextEntry(nodeP)
get the next queue entry after the current entry
Definition: dlq.h:265
agt_profile_t_::agt_simple_json_names
boolean agt_simple_json_names
use simple JSON names instead of YANG JSON names
Definition: agt.h:1148
agt_hello_init
status_t agt_hello_init(void)
Initialize the agt_hello module.
Definition: agt_hello.c:151
agt_profile_t_::agt_with_yang11_hello
boolean agt_with_yang11_hello
this field indicates whether the NETCONF hello message should conform to the standard and leave out Y...
Definition: agt.h:1189
AGT_CCPARM_PERSIST_ID
@ AGT_CCPARM_PERSIST_ID
persist-id
Definition: agt.h:678
agt.h
Multi-Protocol Network Management Server.
agt_profile_t_::agt_load_rootcheck_errors
boolean agt_load_rootcheck_errors
server load-config root-check had errors flag
Definition: agt.h:1441
agt_make_leaf
val_value_t * agt_make_leaf(obj_template_t *parentobj, const xmlChar *leafname, const xmlChar *leafstrval, status_t *res)
make a string val_value_t struct for a specified leaf or leaf-list
Definition: agt_util.c:3683
agt_check_save_external_config
status_t agt_check_save_external_config(ncx_display_mode_t encoding, const xmlChar *filespec)
Check if an external NV handler needs to be used to save the config.
Definition: agt.c:4525
agt_profile_t_::agt_with_netconf_tls
boolean agt_with_netconf_tls
enable NETCONF over TLS sessions
Definition: agt.h:1122
AGT_MAX_PORTS
#define AGT_MAX_PORTS
maximum number of –port leaf-list values that will be saved
Definition: agt.h:188
agt_not_add_to_payload
void agt_not_add_to_payload(agt_not_msg_t *notif, val_value_t *val)
Queue the specified value node into the payloadQ for the specified notification.
Definition: agt_not.c:6000
AGT_CRL_MODE_CLIENT
@ AGT_CRL_MODE_CLIENT
CRL check client cert.
Definition: agt.h:704
agt_init2
status_t agt_init2(void)
Initialize the Server Library (phase 2 init)
Definition: agt.c:3348
AGT_WITHDEF_MOD
#define AGT_WITHDEF_MOD
YANG module for with-defaults definitions.
Definition: agt.h:451
ncx_new_modcache
ncx_modcache_t * ncx_new_modcache(const xmlChar *modname, boolean hidemod)
New ncx_modcache_t record.
Definition: ncx.c:14298
ncx_owner_init
void ncx_owner_init(void)
Initialize the Owner registry.
Definition: ncx_owner.c:122
agt_profile_t_::agt_with_netconf
boolean agt_with_netconf
If 'true' then the corresponding protocol will be enabled.
Definition: agt.h:1104
agt_db_lock_init_waiting
boolean agt_db_lock_init_waiting(void)
Check if db-lock is stuck in init-waiting state.
Definition: agt_db_lock.c:940
agt_profile_t_::agt_sil_delete_children_first
boolean agt_sil_delete_children_first
–sil-delete-children-first CLI parameter
Definition: agt.h:1271
val_dump_value_max
void val_dump_value_max(val_value_t *val, int32 startindent, int32 indent_amount, val_dumpvalue_mode_t dumpmode, ncx_display_mode_t display_mode, boolean with_meta, boolean configonly, log_debug_t lvl)
Printf the specified val_value_t struct to the logfile, or stdout if none set Uses conf file format (...
Definition: val.c:5859
AGT_CRL_MODE_CA
@ AGT_CRL_MODE_CA
CRL check client and CA certs.
Definition: agt.h:705
ncx_get_display_mode_str
const xmlChar * ncx_get_display_mode_str(ncx_display_mode_t dmode)
Get the string for the specified enum value.
Definition: ncx.c:9090
agt_signal_cleanup
void agt_signal_cleanup(void)
Cleanup the agt_signal module.
Definition: agt_signal.c:108
ncx_file_buffcopy
status_t ncx_file_buffcopy(const xmlChar *src_buff, uint32 src_bufflen, const xmlChar *dst_filespec)
Copy a buffer to a file; check result.
Definition: ncx.c:13432
agt_shutdown_requested
boolean agt_shutdown_requested(void)
Check if some sort of server shutdown is in progress.
Definition: agt.c:4194
agt_profile_t_::agt_notif_sequence_id
boolean agt_notif_sequence_id
d: false
Definition: agt.h:823
agt_profile_t_::agt_sil_prio_reverse_for_deletes
boolean agt_sil_prio_reverse_for_deletes
–sil-prio-reverse-for-deletes parameter
Definition: agt.h:1326
agt_restcmn.h
Common function for RESTCONF and YANG-API protocols.
agt_profile_t_::agt_startup_skip_validation
boolean agt_startup_skip_validation
startup-skip-validation
Definition: agt.h:1390
agt_profile_t_::agt_use_ycontrol
boolean agt_use_ycontrol
enable YControl protocol
Definition: agt.h:995
agt_profile_t_::agt_coap_port
uint16 agt_coap_port
the CoAP port number used only if WITH_COAP and agt_use_coap set
Definition: agt.h:956
ncx_set_with_snmp
void ncx_set_with_snmp(boolean val)
Set the with_snmp value.
Definition: ncx.c:13975
AGT_DEF_FHS_BACKUP_DIR
#define AGT_DEF_FHS_BACKUP_DIR
hardwired FHS backups dir location
Definition: agt.h:223
ERR_NCX_NOT_FOUND
@ ERR_NCX_NOT_FOUND
225
Definition: status_enum.h:264
agt_templates_cleanup
void agt_templates_cleanup(void)
Cleanup the yumaworks-templates.
Definition: agt_templates.c:312
agt_profile_t_::agt_log_event_drops
boolean agt_log_event_drops
log event drops
Definition: agt.h:1006
agt_profile_t_::agt_with_restconf
boolean agt_with_restconf
enable RESTCONF sessions
Definition: agt.h:1107
ncx_file_rename
status_t ncx_file_rename(const xmlChar *old_filespec, const xmlChar *new_filespec, boolean do_warn)
Rename a file; check result.
Definition: ncx.c:13294
agt_system_init2_fn_t
status_t(* agt_system_init2_fn_t)(boolean pre_load)
system init2 callback
Definition: agt.h:1535
agt_support_save_init
status_t agt_support_save_init(void)
Initialize the NETCONF Server support save method routines.
Definition: agt_support_save.c:1021
agt_nmda.h
Server NMDA support.
agt_db_lock_cleanup
void agt_db_lock_cleanup(void)
Cleanup the DB-Edit-Lock Module.
Definition: agt_db_lock.c:492
agt_add_modcache
status_t agt_add_modcache(ncx_modcache_t *mc)
Add a module to the modcache queue and hash table.
Definition: agt.c:5078
agt_profile_t_::agt_yumaworks_ids
boolean agt_yumaworks_ids
use the yumaworks-ids module
Definition: agt.h:1363
agt_nmda_cleanup
void agt_nmda_cleanup(void)
Cleanup the NMDA Module.
Definition: agt_nmda.c:156
agt_profile_t_::agt_sil_getbulk_max
uint32 agt_sil_getbulk_max
Specifies the maximum number of getbulk entries to request from a GET2 callback.
Definition: agt.h:1087
agt_profile_t_::agt_commit_testQ
dlq_hdr_t agt_commit_testQ
Q of malloced agt_commit_test_t.
Definition: agt.h:1459
agt_profile_t_::agt_load_apply_errors
boolean agt_load_apply_errors
server load-config had apply phase errors flag
Definition: agt.h:1447
agt_crypt_cleanup
void agt_crypt_cleanup(void)
Cleanup this module.
Definition: agt_crypt.c:426
AGT_COMMIT_TYPE_NONE
@ AGT_COMMIT_TYPE_NONE
not set
Definition: agt.h:646
agt_syslib_cb_t_::libspec
xmlChar * libspec
yp-system library spec that was loaded (bundle or module)
Definition: agt.h:1591
agt_profile_t_::agt_json_leaf_list_1line
boolean agt_json_leaf_list_1line
flag to print JSON leaf-list value on 1 line
Definition: agt.h:1030
ncx_set_message_indent
void ncx_set_message_indent(int8 msg_indent)
Set the protocol output message indent amount.
Definition: ncx.c:10791
ncx_set_base_schema
void ncx_set_base_schema(void)
Set the base_schema_set flag to true.
Definition: ncx.c:13145
NCX_MAX_NUMLEN
#define NCX_MAX_NUMLEN
max number len to use for static buffer allocation only
Definition: ncxconst.h:136
xml_msg_init_hdr
void xml_msg_init_hdr(xml_msg_hdr_t *msg)
Initialize a new xml_msg_hdr_t struct.
Definition: xml_msg.c:393
cfg_clean_roots
void cfg_clean_roots(void)
Cleanup the cfg->root nodes before all the objects are freed.
Definition: cfg.c:1231
agt_callhome_init
status_t agt_callhome_init(void)
Initialize the Callhome module.
Definition: agt_callhome.c:563
agt_library_init
void agt_library_init(void)
Initialize the agt_library module.
Definition: agt_library.c:85
agt_connect_cleanup
void agt_connect_cleanup(void)
Cleanup the agt_connect module.
Definition: agt_connect.c:214
ncx_first_backptr
ncx_backptr_t * ncx_first_backptr(dlq_hdr_t *que)
Get first back pointer struct.
Definition: ncx.c:11513
agt_profile_t_::agt_sil_root_check_first
boolean agt_sil_root_check_first
–sil-root-check-first to do root check in edit-config before the SIL validate callbacks are invoked t...
Definition: agt.h:1335
agt_cleanup_sil_sa
void agt_cleanup_sil_sa(void)
Cleanup the Server Library for SIL-SA usage.
Definition: agt.c:4100
log_audit_close
void log_audit_close(void)
Close the audit_logfile.
Definition: log.c:1162
agt_profile_t_::agt_coap_dtls_port
uint16 agt_coap_dtls_port
Coap over DTLS port (not implemented)
Definition: agt.h:959
agt_set_basic_withdef_enabled
void agt_set_basic_withdef_enabled(void)
Force the basic mode to be enabled in the agt_withdef_enabled bitmask.
Definition: agt_util.c:6133
agt_profile_t_::agt_fileloc_fhs
boolean agt_fileloc_fhs
this flag enables FHS file locations for server data files
Definition: agt.h:1238
agt_profile_clean_server_profile
void agt_profile_clean_server_profile(agt_profile_t *agt_profile)
Clean the server profile variables.
Definition: agt_profile.c:656
agt_profile_t_::agt_leaflist_deleteall_ok
boolean agt_leaflist_deleteall_ok
allow delete-all and remove-all operations on a leaf-list
Definition: agt.h:815
NCX_AGT_START_DISTINCT
@ NCX_AGT_START_DISTINCT
with-startup=true
Definition: ncxtypes.h:366
agt_ypsnmp_cleanup
void agt_ypsnmp_cleanup(void)
Cleanup the agt_ypsnmp module.
Definition: agt_ypsnmp.c:3390
agt_profile_t_::agt_sil_test_get_when
boolean agt_sil_test_get_when
enable config=false when-stmt checking for GET1 and GET2 callback functions; if false then the callba...
Definition: agt.h:1354
agt_cbtyp_t_
agt_cbtyp_t_
enumeration of the different server EDIT callback types These are used as array indices so there is n...
Definition: agt.h:619
y_yumaworks_event_filter_init
status_t y_yumaworks_event_filter_init(const xmlChar *modname, const xmlChar *revision)
initialize the yumaworks-event-filter server instrumentation library
Definition: y_yumaworks_event_filter.c:322
ncx_set_xmlorder
void ncx_set_xmlorder(boolean val)
Set the xmlorder flag.
Definition: ncx.c:15030
agt_profile_t_::agt_audit_log_console_level
log_debug_t agt_audit_log_console_level
log console level
Definition: agt.h:1125
agt_profile_t_::agt_with_modtags
boolean agt_with_modtags
–with-modtags parameter
Definition: agt.h:1312
agt_sys_cleanup
void agt_sys_cleanup(void)
Cleanup the module data structures.
Definition: agt_sys.c:1158
ncx_get_source_ex
xmlChar * ncx_get_source_ex(const xmlChar *fspec, boolean expand_cwd, status_t *res)
Expand a filespec into an absolute path.
Definition: ncx.c:8163
NCX_DISPLAY_MODE_PREFIX
@ NCX_DISPLAY_MODE_PREFIX
plain CLI display mode with YANG prefixes added to nodes
Definition: ncxtypes.h:454
agt_profile_t_::agt_use_rollback_failed_backup
boolean agt_use_rollback_failed_backup
save running config for a commit, in case the rollback fails
Definition: agt.h:1015
agt_yp_ha_get_role
agt_ha_role_t agt_yp_ha_get_role(void)
Get the YP-HA server role for this server.
Definition: agt_yp_ha.c:921
agt_profile_t_::agt_insecure_ok
boolean agt_insecure_ok
–insecure-ok parameter
Definition: agt.h:1292
agt_profile_t_::agt_crypt_hash_prefix
const xmlChar * agt_crypt_hash_prefix
specifies the string that will be pre-pended to the password before calling crypt_r to generate the h...
Definition: agt.h:1093
agt_acm_model_t_
agt_acm_model_t_
select the YANG module for the access control model
Definition: agt.h:628
agt_sys_init2
status_t agt_sys_init2(void)
INIT 2: Initialize the monitoring data structures This must be done after the <running> config is loa...
Definition: agt_sys.c:851
agt_profile_t_::agt_support_save
boolean agt_support_save
d: true (needs WITH_SUPPORT_SAVE=1)
Definition: agt.h:830
agt_register_replay_callback
void agt_register_replay_callback(agt_replay_fn_t cbfn)
Register a callback function for a replay config event.
Definition: agt.c:4683
agt_profile_t_::agt_use_local_transport
boolean agt_use_local_transport
use local transport flag
Definition: agt.h:923
agt_profile_t_::agt_extern_libspec
const xmlChar * agt_extern_libspec
extern library spec
Definition: agt.h:872
agt_cb_init
status_t agt_cb_init(void)
Init the server callback module.
Definition: agt_cb.c:1088
agt_ncx_cleanup
void agt_ncx_cleanup(void)
Cleanup the NETCONF Server standard method routines.
Definition: agt_ncx.c:5261
agt_callhome_cleanup
void agt_callhome_cleanup(void)
Cleanup the Callhome module.
Definition: agt_callhome.c:687
agt_ypcoap.h
Yuma Interface to libcoap data structures. Agent interface.
agt_profile_t_::agt_server_id
const xmlChar * agt_server_id
assigned server ID
Definition: agt.h:878
agt_not_new_notification
agt_not_msg_t * agt_not_new_notification(obj_template_t *eventType)
Malloc and initialize the fields in an agt_not_msg_t.
Definition: agt_not.c:5910
ncxmod_load_annotation
status_t ncxmod_load_annotation(const xmlChar *deviname, dlq_hdr_t *deviationQ)
Load an annotation module (special compiler processing)
Definition: ncxmod.c:4784
agt_cfg_free_transaction
void agt_cfg_free_transaction(agt_cfg_transaction_t *txcb)
Clean and free a agt_cfg_transaction_t struct.
Definition: agt_cfg.c:1278
val_purge_errors_from_root
void val_purge_errors_from_root(val_value_t *val)
Remove any error nodes under a root container that were saved for error recording purposes.
Definition: val_util.c:3342
agt_profile_t_::agt_ha_port
uint16 agt_ha_port
port number is default 8088
Definition: agt.h:1137
AGT_COMMIT_TYPE_NORMAL
@ AGT_COMMIT_TYPE_NORMAL
normal client operation
Definition: agt.h:647
AGT_HA_ROLE_NONE
@ AGT_HA_ROLE_NONE
not set
Definition: agt.h:684
NCX_DISPLAY_MODE_PLAIN
@ NCX_DISPLAY_MODE_PLAIN
plain CLI display mode
Definition: ncxtypes.h:451
agt_ypsnmp_init
status_t agt_ypsnmp_init(void)
Initialize the agt_ypsnmp module.
Definition: agt_ypsnmp.c:3306
agt_profile_t_::agt_use_yuma_arp
boolean agt_use_yuma_arp
load yuma-arp module
Definition: agt.h:974
agt_ycontrol_init1
status_t agt_ycontrol_init1(void)
Initialize the agt_ycontrol module (phase 1)
Definition: agt_ycontrol.c:1056
agt_profile_t_::agt_snmp_subagent_priority
uint16 agt_snmp_subagent_priority
identify the SNMP subagent priority, what priority will be used for OID callbacks registration
Definition: agt.h:1264
agt_profile_t_::agt_subsys_timeout
uint16 agt_subsys_timeout
subsystem timeout in seconds
Definition: agt.h:950
agt_profile_t_::agt_running_fallback
boolean agt_running_fallback
this flag indicates the –running-error parm is set to fallback
Definition: agt.h:1250
NCX_SHUT_NONE
@ NCX_SHUT_NONE
not set
Definition: ncxtypes.h:372
xml_strcmp
int xml_strcmp(const xmlChar *s1, const xmlChar *s2)
String compare for xmlChar.
Definition: xml_util.c:1746
agt_request_replay_subsys
void agt_request_replay_subsys(const xmlChar *subsys_id)
Request replay of the running config to the SIL-SA modules on the specified subsystem.
Definition: agt.c:4343
agt_syslib_cb_t_::init2_fn
agt_system_init2_fn_t init2_fn
init2 callback
Definition: agt.h:1600
cfg_register_reload_candidate_cb
void cfg_register_reload_candidate_cb(cfg_reload_candidate_cb_t cbfn)
Register a callback function to be called anytime the.
Definition: cfg.c:3307
agt_get2.h
2nd generation GET support
agt_get2_cleanup
void agt_get2_cleanup(void)
Cleanup the Get2 module.
Definition: agt_get2.c:608
ncxmod_load_module
status_t ncxmod_load_module(const xmlChar *modname, const xmlChar *revision, dlq_hdr_t *savedevQ, ncx_module_t **retmod)
Determine the location of the specified module and then load it into the system, if not already loade...
Definition: ncxmod.c:4342
agt_profile_t_::agt_use_yangapi
boolean agt_use_yangapi
enable YANG-API protocol (obsolete: ignored)
Definition: agt.h:911
agt_profile_t_::agt_load_factory_fallback
boolean agt_load_factory_fallback
server load-config allowed to use factory-fallback flag
Definition: agt.h:1450
agt_tx_type_t_
agt_tx_type_t_
YControl transaction type.
Definition: agt.h:663
agt_profile_t_::agt_transaction_model
agt_transaction_model_t agt_transaction_model
TBD private transaction model.
Definition: agt.h:845
agt_profile_t_::agt_allow_tcp_socket
boolean agt_allow_tcp_socket
allow a TCP socket instead of an AF_LOCAL socket for connections
Definition: agt.h:1018
LOGDEBUG4
#define LOGDEBUG4
Check if at least log-level=debug4.
Definition: log.h:302
log.h
NCX System Logging Manager.
y_yumaworks_event_stream_cleanup
void y_yumaworks_event_stream_cleanup(void)
cleanup the server instrumentation library
Definition: yumaworks-event-stream.c:914
agt_finish_replay
void agt_finish_replay(void)
Finish replay of the running config to SIL modules.
Definition: agt.c:4446
AGT_HA_ROLE_NOT_SET
@ AGT_HA_ROLE_NOT_SET
HA role not set.
Definition: agt.h:685
ERR_BUFF_OVFL
@ ERR_BUFF_OVFL
106
Definition: status_enum.h:218
ncxtypes.h
YANG module data structures Many internal representations of YANG module constructs.
agt_ypsnmp_agentx_cleanup
void agt_ypsnmp_agentx_cleanup(void)
Cleanup the agt_ypsnmp AgetnX module.
Definition: agt_ypsnmp_agentx.c:1023
agt_ncx_load.h
NETCONF Server load and unload operations.
agt_profile_t_::agt_with_warnings
boolean agt_with_warnings
this field indicates if agt_record_warning will be allowed to set the error-severity field to warning
Definition: agt.h:1160
agt_profile_t_::agt_max_strlen
int32 agt_max_strlen
max-strlen parameter
Definition: agt.h:1369
agt_sys.h
NETCONF system.yang DM module support.
agt_cli.h
NETCONF Server Command Line Interface handler.
agt_profile_t_::agt_netconf_tls_trust_store
const xmlChar * agt_netconf_tls_trust_store
–netconf-tls-trust-store parameter
Definition: agt.h:1289
agt_hello.h
Handle the NETCONF <hello> (top-level) element.
AGT_TX_TYPE_HOOK
@ AGT_TX_TYPE_HOOK
hook callback for edit
Definition: agt.h:668
agt_profile_t_::agt_use_rollback_on_error
boolean agt_use_rollback_on_error
Use rollback-on-error.
Definition: agt.h:992
agt_profile_t_::agt_acm_model
agt_acm_model_t agt_acm_model
NACM or external ACM model.
Definition: agt.h:935
ncx_remove_backptr
void ncx_remove_backptr(ncx_backptr_t *ptr)
Remove the specified backptr for deletion.
Definition: ncx.c:11592
NCX_DEF_SOURCE_ADDRESS
#define NCX_DEF_SOURCE_ADDRESS
default source address
Definition: ncxconst.h:329
cfg_ok_to_read
status_t cfg_ok_to_read(const cfg_template_t *cfg)
Check if the specified config can be read right now.
Definition: cfg.c:2226
rpc_new_msg
rpc_msg_t * rpc_new_msg(void)
Malloc and initialize a new rpc_msg_t struct.
Definition: rpc.c:84
LOGDEBUG
#define LOGDEBUG
Check if at least log-level=debug.
Definition: log.h:287
agt_acm_is_superuser
boolean agt_acm_is_superuser(const xmlChar *username)
Check if the specified user name is the superuser Low-level access; no scb available.
Definition: agt_acm.c:954
AGT_SYSLIB_NAME
#define AGT_SYSLIB_NAME
hard-wired yp-startup library name
Definition: agt.h:214
agt_profile_t_::agt_use_cli
boolean agt_use_cli
enable yp-shell
Definition: agt.h:917
agt_db_lock_init
status_t agt_db_lock_init(void)
Initialize the DB-Edit-Lock subsysystem handler.
Definition: agt_db_lock.c:425
agt_profile_t_
Multiple instances are not supported.
Definition: agt.h:760
log_error_append
void void log_error_append(const char *fstr,...) __attribute__((format(printf
Append to a LOG_DEBUG_ERROR log entry.
agt_profile_t_::agt_delete_empty_npcontainers
boolean agt_delete_empty_npcontainers
delete empty config=true NP containers: d: false
Definition: agt.h:821
ncx_enable_bestmatch
void ncx_enable_bestmatch(void)
Enable the bestmatch import processing feature.
Definition: ncx.c:14045
AGT_CH_PROTO_RESTCONF_TLS
@ AGT_CH_PROTO_RESTCONF_TLS
restconf-over-ssh callhome
Definition: agt.h:696
ncx_set_leaflist_deleteall_ok
void ncx_set_leaflist_deleteall_ok(boolean val)
Set the leaflist_deleteall_ok flag.
Definition: ncx.c:15092
agt_nvload_fn_t
status_t(* agt_nvload_fn_t)(ncx_display_mode_t *encoding, xmlChar **filespec)
nvload callback
Definition: agt.h:1576
agt_profile_t_::agt_validate_all
boolean agt_validate_all
validate all flag
Definition: agt.h:788
cfg_setup_running
status_t cfg_setup_running(void)
Setup the running config root if load_running_config did not add anything.
Definition: cfg.c:3265
ncx_free_mbackptr
void ncx_free_mbackptr(ncx_backptr_t *ptr)
Free an ncx_backptr_t struct; Free the 'node' pointer first.
Definition: ncx.c:11451
agt_connect.h
Handle the <ncx-connect> (top-level) element.
agt_waiting_datastore_ready
boolean agt_waiting_datastore_ready(void)
Check if client sessions are blocked until the datastore is ready.
Definition: agt.c:5441
ERR_NCX_CFG_NOT_FOUND
@ ERR_NCX_CFG_NOT_FOUND
307
Definition: status_enum.h:350
agt_profile_t_::agt_with_config_id
boolean agt_with_config_id
this field indicates if the :config-id capability is enabled or not.
Definition: agt.h:1172
load_SIL_loadpath
status_t load_SIL_loadpath(const xmlChar *modname, const xmlChar *revision, agt_siltype_t siltyp, boolean is_sil_sa, boolean is_loadpath)
Load the SIL code or load the YANG module.
Definition: agt_sil_lib.c:288
agt_templates.h
YANG Configuration Templates (yumaworks-templates.yang)
agt_cfg.h
Manage Server configuration edit transactions.
agt_profile_t_::agt_logfile
const xmlChar * agt_logfile
main logfile
Definition: agt.h:857
agt_profile_t_::agt_load_def_startup_factory
boolean agt_load_def_startup_factory
server load-config factory flag
Definition: agt.h:1453
agt_replay_subsys_t_::qhdr
dlq_hdr_t qhdr
queue header
Definition: agt.h:722
dlq_deque
void * dlq_deque(dlq_hdrT *listP)
remove the first queue node from the queue list
Definition: dlq.c:286
agt_profile_t_::agt_restconf_server_url
const xmlChar * agt_restconf_server_url
RESTCONF server URL.
Definition: agt.h:968
AGT_YP_GNMI_MOD
#define AGT_YP_GNMI_MOD
YANG module used for YP-GNMI service messages.
Definition: agt.h:445
ncx_find_deviation_module
ncx_module_t * ncx_find_deviation_module(const xmlChar *modname)
Find a deviation module ncx_module_t in the deviation_moduleQ;.
Definition: ncx.c:13586
y_yumaworks_event_filter_init2
status_t y_yumaworks_event_filter_init2(void)
SIL init phase 2: non-config data structures.
Definition: y_yumaworks_event_filter.c:425
ERR_NCX_SHUTDOWN_MODE
@ ERR_NCX_SHUTDOWN_MODE
418
Definition: status_enum.h:461
dlq_empty
#define dlq_empty(listP)
check if queue list is empty
Definition: dlq.h:367
agt_acm.h
NETCONF Server Access Control Entry Points.
agt_profile_t_::agt_with_yumaworks_callhome
boolean agt_with_yumaworks_callhome
with-yumaworks-callhome
Definition: agt.h:1372
agt_profile_t_::agt_import_version_bestmatch
boolean agt_import_version_bestmatch
import-version-bestmatch parameter
Definition: agt.h:1396
agt_profile_t_::agt_push_simop_enabled
boolean agt_push_simop_enabled
push-simop-enabled parameter
Definition: agt.h:1417
agt_get_replay_cookie
void * agt_get_replay_cookie(void)
Get the current replay cookie.
Definition: agt.c:4400
agt_profile_t_::agt_accesscontrol_enum
agt_acmode_t agt_accesscontrol_enum
access control enum
Definition: agt.h:941
xml_strcpy
uint32 xml_strcpy(xmlChar *copyTo, const xmlChar *copyFrom)
String copy for xmlChar.
Definition: xml_util.c:1486
agt_make_term_msg
agt_not_msg_t * agt_make_term_msg(const xmlChar *msg, status_t *res)
Create a <term-msg> notification.
Definition: agt.c:5346
rpc_free_msg
void rpc_free_msg(rpc_msg_t *msg)
Free all the memory used by the specified rpc_msg_t.
Definition: rpc.c:152
agt_profile_t_::agt_alt_names
boolean agt_alt_names
Yuma REST-API urlselect extra parameters.
Definition: agt.h:836
ERR_XML_READER_START_FAILED
@ ERR_XML_READER_START_FAILED
212
Definition: status_enum.h:251
agt_profile_t_::agt_push_simop_patch_update
boolean agt_push_simop_patch_update
push-simop-patch-update parameter
Definition: agt.h:1420
agt_profile_t_::agt_crl_missing_ok
boolean agt_crl_missing_ok
tls-crl-missing-ok parameter
Definition: agt.h:1384
agt_is_sil_sa
boolean agt_is_sil_sa(void)
Check if server running in SIL-SA mode.
Definition: agt.c:4733
agt_support_save_cleanup
void agt_support_save_cleanup(void)
Cleanup the NETCONF Server support save method routines.
Definition: agt_support_save.c:1063
agt_set_max_getbulk
void agt_set_max_getbulk(uint32 max_getbulk)
Set the max-getbulk parameter.
Definition: agt.c:5257
AGT_ACMOD_NONE
@ AGT_ACMOD_NONE
not set
Definition: agt.h:608
agt_profile_t_::agt_sil_skip_load
boolean agt_sil_skip_load
skip the SIL callbacks for load-config Useful if the authoritative database is really the external sy...
Definition: agt.h:1003
agt_state_init2
status_t agt_state_init2(void)
Initialize the monitoring data structures. This must be done after the <running> config is loaded.
Definition: agt_state.c:2030
AGT_CB_ROLLBACK
@ AGT_CB_ROLLBACK
P3-neg: write operation rollback.
Definition: agt.h:623
AGT_CH_PROTO_NETCONF_SSH
@ AGT_CH_PROTO_NETCONF_SSH
netconf-over-ssh callhome
Definition: agt.h:694
agt_get_profile
agt_profile_t * agt_get_profile(void)
Get the server profile struct.
Definition: agt.c:4118
agt_sys_init
status_t agt_sys_init(void)
INIT 1: Initialize the server notification module data structures.
Definition: agt_sys.c:727
agt_get_server_id
const xmlChar * agt_get_server_id(void)
Get the server-id string.
Definition: agt.c:4700
y_ietf_netconf_partial_lock_cleanup
void y_ietf_netconf_partial_lock_cleanup(void)
ietf-netconf-partial-lock module cleanup
Definition: agt_plock.c:836
AGT_TM_PRIVATE
@ AGT_TM_PRIVATE
private transactions
Definition: agt.h:640
agt_profile_t_::agt_rootflags
obj_testflags_t agt_rootflags
root commit descendant test flags
Definition: agt.h:1432
agt_profile_t_::agt_yuma_system_notifs
boolean agt_yuma_system_notifs
d: false
Definition: agt.h:824
ncx_get_backptr_node
void * ncx_get_backptr_node(ncx_backptr_t *backptr)
Get the back pointer node pointer.
Definition: ncx.c:11577
agt_profile_t_::agt_snmp_agent_role
ncx_snmp_agt_role_t agt_snmp_agent_role
identify the SNMP agent native mode master|subagent
Definition: agt.h:1259
agt_profile_t_::agt_audit_log_candidate
boolean agt_audit_log_candidate
If true, then transactions to the candidate datastore will be recorded in the audit log.
Definition: agt.h:1062
agt_ypgnmi_init
status_t agt_ypgnmi_init(void)
Initialize the YP-GNMI subsysystem handler.
Definition: agt_ypgnmi.c:1865
dlq_firstEntry
#define dlq_firstEntry(listP)
get the first entry in the queue list
Definition: dlq.h:337
agt_system_init1_fn_t
status_t(* agt_system_init1_fn_t)(boolean pre_cli)
system init1 callback
Definition: agt.h:1518
agt_hook_type_t_
agt_hook_type_t_
Hook types enumeration to specify Hook type.
Definition: agt.h:710
agt_profile_t_::agt_with_yang_patch_running
boolean agt_with_yang_patch_running
with-yang-patch-running parameter
Definition: agt.h:1399
ncx_set_protocol_enabled
void ncx_set_protocol_enabled(ncx_protocol_t proto)
Set the specified protocol version to be enabled.
Definition: ncx.c:10275
agt_library_cleanup
void agt_library_cleanup(void)
Cleanup the agt_library module.
Definition: agt_library.c:144
ERR_NCX_ACCESS_DENIED
@ ERR_NCX_ACCESS_DENIED
267
Definition: status_enum.h:308
ncx_delete_all_obsolete_objects
void ncx_delete_all_obsolete_objects(void)
Go through all the modules and delete the obsolete nodes.
Definition: ncx.c:10553
ncx_get_source
xmlChar * ncx_get_source(const xmlChar *fspec, status_t *res)
Expand a filespec into an absolute path.
Definition: ncx.c:8362
ncx.h
YANG module utility functions.
agt_profile_t_::agt_cert_default_user
const xmlChar * agt_cert_default_user
–cert-default-user parameter
Definition: agt.h:1295
agt_replay_main_is_active
boolean agt_replay_main_is_active(void)
Check if the replay in progress is for the main server or could be for a subsystem.
Definition: agt.c:4790
agt_replay_subsys_t_
for the list of subsystems requesting or in progress for a config load or replay
Definition: agt.h:721
agt_profile_t_::agt_use_restconf
boolean agt_use_restconf
enable RESTCONF protocol
Definition: agt.h:914
AGT_CB_COMMIT
@ AGT_CB_COMMIT
P3-pos: write operation commit.
Definition: agt.h:622
agt_acm_cleanup
void agt_acm_cleanup(void)
Cleanup the NETCONF Server access control module.
Definition: agt_acm.c:251
agt_syslib_cb_t_::init2_status
status_t init2_status
init2 callback result
Definition: agt.h:1609
ncxmod_load_deviation
status_t ncxmod_load_deviation(const xmlChar *deviname, dlq_hdr_t *deviationQ)
Load a deviation module (special handling by compiler)
Definition: ncxmod.c:4744
agt_yp_ha.h
YumaPro High Availability module (YP-HA)
agt_advertise_module_needed
boolean agt_advertise_module_needed(const xmlChar *modname)
Check if the module should be advertised or not.
Definition: agt.c:4277
agt_profile_t_::agt_with_yp_shell
boolean agt_with_yp_shell
enable yp-shell sessions
Definition: agt.h:1113
cfg_get_config_id
cfg_template_t * cfg_get_config_id(ncx_cfg_t cfgid)
Get the config struct from its ID.
Definition: cfg.c:1530
ncx_set_empty_npcon_presence
void ncx_set_empty_npcon_presence(boolean val)
Set the empty_npcon_presence value.
Definition: ncx.c:13633
y_yumaworks_templates_init
status_t y_yumaworks_templates_init(const xmlChar *modname, const xmlChar *revision)
initialize the yumaworks-templates server instrumentation library
Definition: y_yumaworks_templates.c:207
agt_profile_t_::agt_ypserver_mode
boolean agt_ypserver_mode
this flag indicates the server is rnning as yp-controller and not netconfd-pro
Definition: agt.h:1323
cfg_fill_candidate_from_running
status_t cfg_fill_candidate_from_running(ses_id_t sesid)
Fill the <candidate> config with the config contents of the <running> config.
Definition: cfg.c:1582
agt_profile_t_::agt_session_sync_mutex
boolean agt_session_sync_mutex
session sync mutex flag
Definition: agt.h:779
y_ietf_netconf_notifications_cleanup
void y_ietf_netconf_notifications_cleanup(void)
cleanup the server instrumentation library
Definition: agt_ietf_notif.c:851
agt_profile_t_::agt_defaultStyleEnum
ncx_withdefaults_t agt_defaultStyleEnum
default with-defaults enum
Definition: agt.h:938
agt_cap_update_config_id
status_t agt_cap_update_config_id(void)
Update the config-id capability id' value to the new txid for the running config.
Definition: agt_cap.c:1040
agt_profile_t_::agt_with_yp_coap
boolean agt_with_yp_coap
enable YP-CoAP sessions (not supported)
Definition: agt.h:1116
agt_modtags_init
status_t agt_modtags_init(void)
Initialize YumaPro module tags feature.
Definition: agt_modtags.c:741
AGT_ACMOD_PERMISSIVE
@ AGT_ACMOD_PERMISSIVE
permissive mode, read + exec allowed
Definition: agt.h:610
agt_ycontrol_send_shutdown_event
status_t agt_ycontrol_send_shutdown_event(void)
Send a <shutdown-event> message to all subsystems.
Definition: agt_ycontrol.c:2011
obj_dict.h
Object Dictionary utilities (NOT USED) The YANG Hash for the object identifier is used as the hash ke...
ncx_set_with_dblock
void ncx_set_with_dblock(boolean val)
Set the is_with_dblock value.
Definition: ncx.c:14731
agt_profile_t_::agt_wildcards
boolean agt_wildcards
Allow wildcards in filters.
Definition: agt.h:839
agt_cap_cleanup
void agt_cap_cleanup(void)
Clean the NETCONF server capabilities.
Definition: agt_cap.c:276
agt_profile_t_::agt_return_status
boolean agt_return_status
return exit code or zero
Definition: agt.h:1426
agt_get2_init2
status_t agt_get2_init2(void)
Initialize the Get2 module (phase II init)
Definition: agt_get2.c:580
ncx_set_getbulk_max
void ncx_set_getbulk_max(uint32 max_entries)
Set the max_entries parameter for GET2 callbacks.
Definition: ncx.c:12887
agt_nvsave_fn_t
status_t(* agt_nvsave_fn_t)(ncx_display_mode_t encoding, const xmlChar *filespec)
brief nvsave callback
Definition: agt.h:1557
agt_ycontrol.h
Handle the YumaPro Control Protocol <ycontrol> (top-level) element.
agt_nmda_init
status_t agt_nmda_init(void)
Initialize the NMDA modules.
Definition: agt_nmda.c:79
agt_exit_mode_t_
agt_exit_mode_t_
exit reasons for YControl IO loop
Definition: agt.h:653
agt_static_syslib_init2
status_t agt_static_syslib_init2(boolean pre_load)
Call the init2 function for the yp_system-static.a library.
Definition: agt_static_syslib.c:133
agt_static_yanglib.h
IETF YANG Library Static Initialization and Cleanup.
agt_ses_new_dummy_session
ses_cb_t * agt_ses_new_dummy_session(void)
Create a dummy session control block.
Definition: agt_ses.c:535
agt_profile_t_::agt_match_names
ncx_name_match_t agt_match_names
match names behavior; needs to be EXACT for YANG
Definition: agt.h:842
AGT_DEF_BACKUP_DIR
#define AGT_DEF_BACKUP_DIR
default server backups directory
Definition: agt.h:217
yang_split_filename
boolean yang_split_filename(const xmlChar *filename, uint32 *modnamelen)
Split a module parameter into its filename components.
Definition: yang.c:3863
agt_profile_t_::agt_defaultStyle
const xmlChar * agt_defaultStyle
default-style for with-defaults
Definition: agt.h:866
agt_cli_cleanup
void agt_cli_cleanup(void)
Cleanup the module static data.
Definition: agt_cli.c:3454
dlq_enque
void dlq_enque(REG void *newP, REG dlq_hdrT *listP)
add a queue node to the end of a queue list Add newP to listP
Definition: dlq.c:246
agt_profile_t_::agt_with_callhome
boolean agt_with_callhome
this field indicates that the IETF Callhome feature is enabled if true and WITH_CALLHOME is built int...
Definition: agt.h:1196
agt_profile_t_::agt_startup_txid_file
xmlChar * agt_startup_txid_file
cached location of startup transaction ID file
Definition: agt.h:1462
agt_restconf_static_restmon_init1
status_t agt_restconf_static_restmon_init1(void)
Load the ietf-restconf-monitoring SIL even if it is statically linked.
Definition: agt_restconf.c:2713
AGT_PROFILE_MOD
#define AGT_PROFILE_MOD
YANG module for the agent profile.
Definition: agt.h:433
agt_profile_t_::agt_socket_address
xmlChar * agt_socket_address
strdup of socket-address CLI parameter
Definition: agt.h:1465
agt_profile_t_::agt_callhome_retry_interval
uint16 agt_callhome_retry_interval
this field specifies the number of seconds to wait after a connect attempt to the callhome server has...
Definition: agt.h:1201
ncx_set_with_canonical
void ncx_set_with_canonical(boolean val)
Set the with_canonical flag.
Definition: ncx.c:15149
agt_library.h
Setup the server in library mode.
agt_shutdown_term_signal
int agt_shutdown_term_signal(void)
Get the shutdown termination signal if any.
Definition: agt.c:4228
agt_profile_t_::agt_stream_output
boolean agt_stream_output
stream message output: d:true; no CLI support yet
Definition: agt.h:818
SES_NULL_SID
#define SES_NULL_SID
session ID zero not used
Definition: ses.h:222
agt_ycontrol_cleanup
void agt_ycontrol_cleanup(void)
Cleanup the agt_ycontrol module.
Definition: agt_ycontrol.c:1143
agt_profile_t_::agt_defer_load
boolean agt_defer_load
saved defer load config flag
Definition: agt.h:1478
agt_commit_complete_cleanup
void agt_commit_complete_cleanup(void)
Cleanup the callback commit module.
Definition: agt_commit_complete.c:140
agt_nmda_init2
status_t agt_nmda_init2(void)
NMDA init phase 2.
Definition: agt_nmda.c:124
agt_profile_t_::agt_cvt_subtree_filter
boolean agt_cvt_subtree_filter
convert-subtree-filterparameter
Definition: agt.h:1393
agt_profile_t_::agt_sil_validate_candidate
boolean agt_sil_validate_candidate
If true, the server will invoke the VALIDATE phase for SIL and SIL-SA callbacks when each edit is mad...
Definition: agt.h:1068
agt_profile_t_::agt_subsys_path
const xmlChar * agt_subsys_path
set the netconf subsystem for sshd exectuable path for callhome default is /usr/sbin/netconf-subsyste...
Definition: agt.h:1221
val_child_next_same
val_value_t * val_child_next_same(val_value_t *curnode)
Get the next node of the same type.
Definition: val_child.c:2359
VAL_STR
#define VAL_STR(V)
Access the value as a string ONLY if typ_is_string() is true.
Definition: val.h:464
ncx_owner.h
NETCONF Server owner registry for NMDA support.
agt_timer.h
Handle timer services for the server.
agt_init2_done
boolean agt_init2_done(void)
Check if the init2 phase is complete.
Definition: agt.c:4983
ncx_get_next_module
ncx_module_t * ncx_get_next_module(const ncx_module_t *mod)
Get the next module in the ncx_modQ.
Definition: ncx.c:4751
AGT_ACMOD_OFF
@ AGT_ACMOD_OFF
NACM completely off.
Definition: agt.h:612
agt_profile_t_::agt_linesize
uint32 agt_linesize
line size for logging
Definition: agt.h:893
AGT_TM_SHARED
@ AGT_TM_SHARED
shared transactions (only value supported)
Definition: agt.h:639
smioid_tree.h
AVL Tree storage of SMI OID data.
agt_not_cleanup
void agt_not_cleanup(void)
Cleanup the module data structures.
Definition: agt_not.c:5049
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
agt_not_cleanup_sil_sa
void agt_not_cleanup_sil_sa(void)
Cleanup the module data structures.
Definition: agt_not.c:5120
agt_profile_t_::agt_indent
int32 agt_indent
–indent parameter
Definition: agt.h:896
agt_maintenance_mode_session_ok
boolean agt_maintenance_mode_session_ok(void)
Return true if in maintenance mode new sessions OK;.
Definition: agt.c:5227
agt_init1_sil_sa
status_t agt_init1_sil_sa(void)
Initialize the Server Library: stage 1: CLI and profile.
Definition: agt.c:3273
SET_ERROR
#define SET_ERROR(E)
macro SET_ERROR
Definition: status_enum.h:103
ncx_set_all_obj_xpath_backptrs
status_t ncx_set_all_obj_xpath_backptrs(void)
Add Xpath back pointers to the data-db objects in the database.
Definition: ncx.c:11351
y_yuma_time_filter_init
status_t y_yuma_time_filter_init(const xmlChar *modname, const xmlChar *revision)
yuma-time-filter module init 1
Definition: agt_time_filter.c:77
agt_getbulk_init
status_t agt_getbulk_init(void)
initialize the yumaworks-getbulk server instrumentation library
Definition: agt_getbulk.c:1047
agt_profile_t_::agt_use_yuma_system
boolean agt_use_yuma_system
load yuma-system module
Definition: agt.h:986
agt_db_api_init
status_t agt_db_api_init(void)
Initialize the DB-API module.
Definition: agt_db_api.c:1500
agt_ypgnmi_cleanup
void agt_ypgnmi_cleanup(void)
Cleanup the YP-GNMI Module.
Definition: agt_ypgnmi.c:1907
agt_acm_init
status_t agt_acm_init(void)
Initialize the NETCONF Server access control module.
Definition: agt_acm.c:138
agt_profile_t_::agt_pthread_log_level
log_debug_t agt_pthread_log_level
requested PTHREADS log level
Definition: agt.h:776
agt_profile_t_::agt_start
ncx_agtstart_t agt_start
startup type enum (distinct or mirror)
Definition: agt.h:767
agt_profile_t_::agt_backup_dir
const xmlChar * agt_backup_dir
backup dir location
Definition: agt.h:875
agt_not_free_notification
void agt_not_free_notification(agt_not_msg_t *notif)
Scrub the memory in an agt_not_template_t by freeing all the sub-fields and then freeing the entire s...
Definition: agt_not.c:5953
agt_set_eventlog_size
void agt_set_eventlog_size(uint32 eventlog_size)
Set the eventlog-size parameter.
Definition: agt.c:5169
NCX_CFG_RUNNING
#define NCX_CFG_RUNNING
NETCONF built-in config names.
Definition: ncxconst.h:579
agt_advertise_yang11_module_needed
boolean agt_advertise_yang11_module_needed(ncx_module_t *mod)
Check whether the NETCONF hello message should conform to the standard and leave out YANG 1....
Definition: agt.c:5009
agt_syslib_cb_t_::cleanup_fn
agt_system_cleanup_fn_t cleanup_fn
cleanup callback
Definition: agt.h:1603
agt_ypsnmp_agentx.h
Yuma Interface to net-snmp data structures. AgentX interface.
NCX_SNMP_AGT_ROLE_SUBAGENT
@ NCX_SNMP_AGT_ROLE_SUBAGENT
SNMP sub-agent role.
Definition: ncxtypes.h:1316
agt_profile_t_::agt_usestartup
boolean agt_usestartup
track –no-startup flag
Definition: agt.h:794
yang_extract_filespec_info
status_t yang_extract_filespec_info(const char *filespec, xmlChar **modname, xmlChar **revision, boolean *isyang)
Split a filespec into its filename components.
Definition: yang.c:4099
agt_profile_t_::agt_ha_server_key
const xmlChar * agt_ha_server_key
server-key to keep HA pools separate
Definition: agt.h:1140
agt_profile_init_server_profile
void agt_profile_init_server_profile(agt_profile_t *agt_profile)
Hardwire the initial server profile variables.
Definition: agt_profile.c:123
def_reg_find_modcache
ncx_modcache_t * def_reg_find_modcache(const xmlChar *modname)
find one modcache_t in the registry
Definition: def_reg.c:595
agt_callhome_init2
status_t agt_callhome_init2(void)
Initialize the Callhome module (Init phase II)
Definition: agt_callhome.c:605
AGT_ACMOD_DISABLED
@ AGT_ACMOD_DISABLED
almost all access control turned off
Definition: agt.h:611
NCX_DEF_STARTUP_TXID_FILE
#define NCX_DEF_STARTUP_TXID_FILE
Default startup config transaction ID file name.
Definition: ncxconst.h:454
AGT_HOOK_TYPE_POST_SETHOOK
@ AGT_HOOK_TYPE_POST_SETHOOK
Post Set-Hook.
Definition: agt.h:714
agt_profile_t_::agt_callhome_retry_max
uint16 agt_callhome_retry_max
this field specifies the number of retry attempts the server should attempt to the callhome server be...
Definition: agt.h:1207
NCX_PROTO_NETCONF10
@ NCX_PROTO_NETCONF10
RFC 4741 base:1.0
Definition: ncxtypes.h:783
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.
agt_ses_free_dummy_session
void agt_ses_free_dummy_session(ses_cb_t *scb)
Free a dummy session control block.
Definition: agt_ses.c:641
print_errors
void print_errors(void)
Dump any entries stored in the error_stack.
Definition: status.c:155
agt_profile_t_::agt_log_acm_writes
boolean agt_log_acm_writes
log NACM write requests
Definition: agt.h:785
agt_curl_cleanup
void agt_curl_cleanup(void)
Cleanup the libcurl API.
agt_db_api.h
Server DB-API support module.
agt_cap_update_module_setid
status_t agt_cap_update_module_setid(void)
Update YANG-LIBRARY capability module setID.
Definition: agt_cap.c:1175
NCX_DISPLAY_MODE_XML
@ NCX_DISPLAY_MODE_XML
XML display mode.
Definition: ncxtypes.h:460
ncxmod_scan_loadpath
status_t ncxmod_scan_loadpath(ncxmod_callback_fn_t cbfn, void *cookie)
Check for all the modules in the YUMAPRO_LOADPATH (–loadpath) Invoke the callback function which will...
Definition: ncxmod.c:8982
agt_ycontrol_init2
status_t agt_ycontrol_init2(void)
Initialize the agt_ycontrol module (phase 2)
Definition: agt_ycontrol.c:1122
log_debug3_append
void void void void void void void void void void void void log_debug3_append(const char *fstr,...) __attribute__((format(printf
Append to a LOG_DEBUG_DEBUG3 log entry.
ncx_create_pidfile
status_t ncx_create_pidfile(const xmlChar *progname, boolean fileloc_fhs)
Create the pidfile for the specified program.
Definition: ncx.c:11826
agt_signal_init
void agt_signal_init(void)
Initialize the agt_signal module.
Definition: agt_signal.c:77
AGT_TEMPLATES_MOD
#define AGT_TEMPLATES_MOD
YANG module foryumaworks templates.
Definition: agt.h:442
agt_profile_t_::agt_use_yuma_proc
boolean agt_use_yuma_proc
load yuma-proc module
Definition: agt.h:971
ncxmod_setup_backup_dir
status_t ncxmod_setup_backup_dir(const xmlChar *backup_dir)
Setup the ~/.yumapro/backups directory if it does not exist.
Definition: ncxmod.c:7247
AGT_CH_PROTO_NONE
@ AGT_CH_PROTO_NONE
not set
Definition: agt.h:693
agt_profile_t_::agt_with_ocpattern
boolean agt_with_ocpattern
this flag enables/disables the special OpenConfig usage of the YANG pattern-statement.
Definition: agt.h:1235
agt_callhome.h
IETF CallHome reverse connection support.
agt_cfg_new_transaction
agt_cfg_transaction_t * agt_cfg_new_transaction(ncx_cfg_t cfgid, agt_cfg_edit_type_t edit_type, boolean rootcheck, boolean is_validate, boolean is_rollback, status_t *res)
Malloc and initialize agt_cfg_transaction_t struct.
Definition: agt_cfg.c:812
CFG_ST_READY
@ CFG_ST_READY
ready and no locks
Definition: cfg.h:201
ncx_new_backptr
ncx_backptr_t * ncx_new_backptr(void *node)
Malloc and initialize a new ncx_backptr_t struct.
Definition: ncx.c:11412
agt_profile_t_::agt_usevalidate
boolean agt_usevalidate
–with-validate parameter
Definition: agt.h:902
AGT_CCPARM_PERSIST
@ AGT_CCPARM_PERSIST
persist
Definition: agt.h:677
agt_profile_t_::agt_eventlog_size
uint32 agt_eventlog_size
eventlog-size set to 0 to disable replay
Definition: agt.h:881
def_reg_add_modcache
status_t def_reg_add_modcache(ncx_modcache_t *mc)
add one module info cache to the registry
Definition: def_reg.c:572
agt_modtags_cleanup
void agt_modtags_cleanup(void)
Cleanup the module static data.
Definition: agt_modtags.c:846
agt_profile_t_::agt_sshd_path
const xmlChar * agt_sshd_path
set the sshd exectuable path for callhome default is /usr/sbin/sshd only set by vendor in agt_init1 p...
Definition: agt.h:1215
ncx_set_config_state
void ncx_set_config_state(ncx_config_state_t val)
Set the config_state flag.
Definition: ncx.c:14962
LOGDEBUG3
#define LOGDEBUG3
Check if at least log-level=debug3.
Definition: log.h:297
agt_transaction_model_t_
agt_transaction_model_t_
not used yet in YANG-API or NETCONF!
Definition: agt.h:637
ncx_free_modcache
void ncx_free_modcache(ncx_modcache_t *mc)
Free a ncx_modcache_t record.
Definition: ncx.c:14324
agt_action_init
status_t agt_action_init(void)
Initialize the Action handler.
Definition: agt_action.c:182
agt_ypsnmp_agentx_init
status_t agt_ypsnmp_agentx_init(void)
Initialize the agt_ypsnmp AgentX module.
Definition: agt_ypsnmp_agentx.c:931
ncx_set_startup_prune
void ncx_set_startup_prune(boolean val)
Set the startup_prune flag.
Definition: ncx.c:14931
ncx_init_user_types
status_t ncx_init_user_types(void)
Initialize the user types after ietf-inet-types module loaded.
Definition: ncx.c:14556
agt_profile_t_::agt_use_tcp_socket
boolean agt_use_tcp_socket
use a TCP socket instead of an AF_LOCAL socket for connections
Definition: agt.h:1021
agt_profile_t_::agt_push_min_period
uint16 agt_push_min_period
push-min-period parameter
Definition: agt.h:1402
agt_timer_init
void agt_timer_init(void)
Initialize the agt_timer module.
Definition: agt_timer.c:199
agt_yangapi_init
status_t agt_yangapi_init(void)
Initialize the agt_yangapi module.
Definition: agt_yangapi.c:834
AGT_CB_APPLY
@ AGT_CB_APPLY
P2: write operation apply.
Definition: agt.h:621
NCX_DEF_INDENT
#define NCX_DEF_INDENT
default indent amount for nesting XML or other structured output
Definition: ncxconst.h:441