yumapro  25.10-4
YumaPro SDK
Loading...
Searching...
No Matches
agt.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
3 * Copyright (c) 2012 - 2025, 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
34date init comment
35----------------------------------------------------------------------
3604-nov-05 abb Begun
3702-aug-08 abb Convert from NCX typdef to YANG object design
3803-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
63extern "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
227#define AGT_SRID_FHS_BACKUP_DIR \
228 (const xmlChar *)"/var/lib/netconfd-pro/%s/backups"
229
233#define AGT_DEF_DELETE_EMPTY_NP FALSE
234
238#define AGT_DEF_SYSTEM_SORTED FALSE
239
241#define AGT_DEF_LAX_NAMESPACES TRUE
242
244#define AGT_DEF_EVENTLOG_SIZE 1000
245
247#define AGT_DEF_MAX_BURST 10
248
250#define AGT_DEF_HELLO_TIMEOUT 300
251
253#define AGT_DEF_IDLE_TIMEOUT 3600
254
256#define AGT_DEF_LINESIZE 72
257
259#define AGT_DEF_INDENT 1
260
262#define AGT_DEF_MESSAGE_INDENT (-1)
263
265#define AGT_DEF_MAX_SESSIONS 8
266
268#define AGT_DEF_MAX_CLI_SESSIONS 0
269
271#define AGT_DEF_MAX_USER_SESSIONS 0
272
276#define AGT_MAX_USERNAME_LEN 1024
277
281#define AGT_MAX_PER_USER_SESSIONS 1024
282
283
285#define AGT_DEF_YANGAPI_SERVER_URL (const xmlChar *)"http://localhost"
286
288#define AGT_DEF_RESTCONF_SERVER_URL (const xmlChar *)"http://localhost"
289
291#define AGT_DEF_SAVE_OWNERS FALSE
292
294#define AGT_DEF_JSON_LEAF_LIST_1LINE FALSE
295
297#define AGT_DEF_SAVE_CONFIG_SYSTEM FALSE
298
300#define AGT_DEF_WITH_CONFIG_ID TRUE
301
303#define AGT_DEF_WITH_FSYNC FALSE
304
306#define AGT_DEF_WITH_OCPATTERN FALSE
307
309#define AGT_DEF_NO_NVSTORE FALSE
310
312#define AGT_DEF_WITH_CALLHOME FALSE
313
315#define AGT_DEF_WITH_SCHEMA_MOUNT TRUE
316
318#define AGT_DEF_CALLHOME_RETRY_INT 60
319
321#define AGT_DEF_CALLHOME_RETRY_MAX 10
322
324#define AGT_DEF_CALLHOME_PORT NCX_DEF_SSH_CALLHOME
325
327#define AGT_DEF_CALLHOME_TLS_PORT NCX_DEF_TLS_CALLHOME
328
330#define AGT_DEF_CALLHOME_RESTCONF_TLS_PORT NCX_DEF_RESTCONF_TLS_CALLHOME
331
333#define AGT_YUMAWORKS_CALLHOME_MODULE (const xmlChar *)"yumaworks-callhome"
334
336#define AGT_YUMAWORKS_CALLHOME_REVISION (const xmlChar *)"2020-10-17"
337#define AGT_DEF_FILELOC_FHS FALSE
338
340#define AGT_DEF_NO_AUDIT_LOG FALSE
341
346#define AGT_DEF_CRYPT_HASH_PREFIX (const xmlChar *)"$6$"
347
349#define AGT_DEF_MIN_PASSWD_LEN 8
350
352#define AGT_DEF_HA_ENABLED FALSE
353
355#define AGT_DEF_HA_SIL_STANDBY FALSE
356
358#define AGT_DEF_HA_PORT 8088
359
361#define AGT_DEF_HA_STANDBY_MODE AGT_HA_MODE_HOT_STANDBY
362
364#define AGT_DEF_YPCOAP_PORT 5683
365
367#define AGT_DEF_YPCOAP_DTLS_PORT 5684
368
370#define AGT_DEF_YPCOAP_ADDRESS (const xmlChar *)"0.0.0.0"
371
373#define AGT_DEF_RESTCONF_DEFAULT_ENCODING NCX_MSG_ENCODING_JSON
374
376#define AGT_DEF_TLS_PORT 6513
377
379#define AGT_DEF_DB_LOCK_RETRY 500 // mSec
380
382#define AGT_DEF_DB_LOCK_TIMEOUT 20 // Sec
383
385#define AGT_DEF_WITH_YUMAWORKS_CONFIG_CHANGE FALSE
386
388#define AGT_DEF_WITH_YUMAWORKS_CALLHOME TRUE
389
391#define AGT_DEF_WITH_YUMAWORKS_EVENT_STREAM TRUE
392
394#define AGT_DEF_WITH_NMDA FALSE
395
397#define AGT_DEF_STARTUP_SKIP_VALIDATION FALSE
398
400#define AGT_DEF_RETURN_STATUS FALSE
401
405#define AGT_DEF_WAIT_DATASTORE_READY FALSE
406
408#define AGT_DEF_YANG_SID_MODE NCX_YANG_SID_MODE_SID_FILE
409
411#define AGT_DEF_WITH_YANG_CBOR FALSE
412
416#define AGT_DEF_SILCALL_DELETE_FIRST TRUE
417
422#define AGT_DEF_XPATH_DBLSLASH_OK FALSE
423
425#define AGT_DEF_SIL_CC_CALLBACK_ALL FALSE
426
428#define AGT_DEF_DISABLED_PROTOCOLS EMPTY_STRING
429
433#define AGT_DEF_WITH_FACTORY_DATASTORE FALSE
434
436#define AGT_SELECT_TIMEOUT_SEC 0
437
440#define AGT_SELECT_TIMEOUT_USEC 10000
441
443#define AGT_USER_VAR (const xmlChar *)"user"
444
446#define AGT_URL_SCHEME_LIST (const xmlChar *)"file"
447
449#define AGT_URL_SCHEME_LIST_TFTP (const xmlChar *)"file,tftp"
450
452#define AGT_DEF_WITH_REGEX_FILTER true
453
455#define AGT_DEF_WITH_YANGLIB_AUGMENTEDBY true
456
458#define AGT_FILE_SCHEME (const xmlChar *)"file:///"
459
461#define AGT_TOASTER_MOD (const xmlChar *)"toaster"
462
464#define AGT_TEST_MOD (const xmlChar *)"test"
465
467#define AGT_SIL_SA (const xmlChar *)"sil-sa"
468
470#define AGT_DB_API (const xmlChar *)"db-api"
471
473#define AGT_YP_HA (const xmlChar *)"yp-ha"
474
476#define AGT_YP_GNMI (const xmlChar *)"yp-gnmi"
477
479#define AGT_YP_GRPC (const xmlChar *)"yp-grpc"
480
482#define AGT_YCONTROL_MOD (const xmlChar *)"yumaworks-ycontrol"
483
485#define AGT_DB_API_MOD (const xmlChar *)"yumaworks-db-api"
486
488#define AGT_SIL_SA_MOD (const xmlChar *)"yumaworks-sil-sa"
489
491#define AGT_PROFILE_MOD (const xmlChar *)"yumaworks-agt-profile"
492
494#define AGT_ACTION_MOD (const xmlChar *)"yang-attributes"
495
497#define AGT_YP_HA_MOD (const xmlChar *)"yumaworks-yp-ha"
498
500#define AGT_TEMPLATES_MOD (const xmlChar *)"yumaworks-templates"
501
503#define AGT_LOCK_MOD (const xmlChar *)"yumaworks-lock"
504
506#define AGT_YP_GNMI_MOD (const xmlChar *)"yumaworks-yp-gnmi"
507
509#define AGT_YP_GRPC_MOD (const xmlChar *)"yumaworks-yp-grpc"
510
512#define AGT_YP_SCHEMA_MOUNT_MOD (const xmlChar *)"yumaworks-schema-mount"
513
515#define AGT_YP_SM_YANGLIB_MOD (const xmlChar *)"yumaworks-sm-yanglib"
516
518#define AGT_DEF_SERVER_ID (const xmlChar *)"server1"
519
521#define AGT_WITHDEF_MOD (const xmlChar *)"ietf-netconf-with-defaults"
522
524#define AGT_JSON_PREFIX (const xmlChar *)"json-"
525#define AGT_JSON_PREFIX_LEN 5
526
530#define AGT_TEST_FL_MIN_ELEMS bit0
531
533#define AGT_TEST_FL_MAX_ELEMS bit1
534
536#define AGT_TEST_FL_MANDATORY bit2
537
539#define AGT_TEST_FL_MUST bit3
540
542#define AGT_TEST_FL_UNIQUE bit4
543
545#define AGT_TEST_FL_XPATH_TYPE bit5
546
548#define AGT_TEST_FL_CHOICE bit6
549
551#define AGT_TEST_FL_WHEN bit7
552
554#define AGT_TEST_ALL_COMMIT_MASK (bit0|bit1|bit2|bit3|bit4|bit5|bit6)
555
557#define AGT_TEST_INSTANCE_MASK (bit0|bit1|bit2|bit4|bit6)
558
560#define AGT_CLI_NOSTARTUP (const xmlChar *)"no-startup"
561
563#define AGT_CLI_STARTUP (const xmlChar *)"startup"
564
566#define AGT_CLI_FACTORY_STARTUP (const xmlChar *)"factory-startup"
567
569#define AGT_CLI_STARTUP_FACTORY_FILE (const xmlChar *)"startup-factory-file"
570
572#define AGT_EVAL_REQUEST_LIMIT 500
573
577#define AGT_MAX_OWNER_ID 255
578
580#define AGT_WATCHER (const xmlChar *)"ypwatcher"
581
583#define AGT_DEF_WAT_INTERVAL 10
584
586#define AGT_DEF_SSHD_COMMAND (const xmlChar *)"/usr/sbin/sshd"
587
589#define AGT_DEF_SUBSYS_COMMAND \
590 (const xmlChar *)"/usr/sbin/netconf-subsystem-pro"
591
593#define AGT_DEF_SNMP_SUBAGENT_PRIO 127
594
595/* flags for the agt_auditlog_events mask from
596 * --audit-log-events CLI parameter.
597 * edit-candidate events are generated when an edit
598* to <candidate> is completed.
599 */
600#define AGT_FL_AUDIT_EDIT_CANDIDATE bit0
601
605#define AGT_FL_AUDIT_EDIT_RUNNING bit1
606
610#define AGT_FL_AUDIT_UPDATE_STARTUP bit2
611
613#define AGT_FL_AUDIT_CLIENT_SESSION bit3
614
616#define AGT_FL_AUDIT_CONTROL_SESSION bit4
617
619#define AGT_FL_AUDIT_NACM_WRITE_ERROR bit5
620
622#define AGT_FL_AUDIT_NACM_EXEC_ERROR bit6
623
625#define AGT_FL_AUDIT_RPC_SUMMARY bit7
626
628#define AGT_FL_AUDIT_EDIT_DATA bit8
629
631#define AGT_FL_AUDIT_RPC_ERROR bit9
632
636#define AGT_FL_AUDIT_RPC_REQUEST bit10
637
638
639
641#define AGT_DEF_AUDIT_EVENTS AGT_FL_AUDIT_EDIT_RUNNING
642
644#define AGT_DEF_CRL_MISSING_OK false
645
647#define AGT_DEF_CRL_MODE AGT_CRL_MODE_OFF
648
650#define AGT_DEF_CVT_SUBTREE_FILTER false
651
655#define AGT_DEF_PUSH_MIN_PERIOD 100
656
658#define AGT_DEF_PUSH_MIN_DAMPENING 100
659
661#define AGT_DEF_PUSH_MAX_PERIODIC 16
662
664#define AGT_DEF_PUSH_MAX_OPERATIONAL 4
665
667#define AGT_DEF_PUSH_MAX_SEGMENT_SIZE 1400
668
670#define AGT_DEF_PUSH_SIMOP_ENABLED true
671
673#define AGT_DEF_PUSH_SIMOP_PERIOD 500
674
676#define AGT_DEF_PUSH_SIMOP_PATCH_UPDATE true
677
679#define AGT_NON_NMDA_YANGLIB_REV (const xmlChar *)"2016-06-21"
680
682#define AGT_NMDA_YANGLIB_REV (const xmlChar *)"2019-01-04"
683
685#define AGT_SIL_SA_MODULE (const xmlChar *)"yumaworks-sil-sa"
686
690#define AGT_DEF_TLS_DEPRECATED_OK false
691
693#define AGT_DEF_TLS_DH_ENABLED true
694
700#define AGT_DEF_CLIENT_USERNAME (const xmlChar *)"admin"
701
703#define AGT_DEF_SAVE_CONFIG_TEMPNAME true
704
706#define AGT_SAVE_CONFIG_TEMPNAME_EXT (const xmlChar *)".temp"
707
712#define AGT_DEF_RETURN_EMPTY_NPCONTAINERS TRUE
713
719#define AGT_DEF_MAX_DBLSLASH_MATCHES 25
720
721
734#define AGT_DEF_MAX_NODES_PER_UPDATE 10000
735
736
738#define AGT_DEF_NUM_CONFIGURED_SUBSCRIPTIONS 1000
739
741#define AGT_FIRST_CONFIGURED_SUBSCRIPTION 1001
742
744#define AGT_DEF_AUTO_DISCARD_ON_LOCK_TIMEOUT TRUE
745
746
747/********************************************************************
748* *
749* T Y P E S *
750* *
751*********************************************************************/
752
754typedef enum agt_acmode_t_ {
761
762
770typedef enum agt_cbtyp_t_ {
776
777
779typedef enum agt_acm_model_t_ {
785
786
788typedef enum agt_transaction_model_t_ {
793
794
796typedef enum agt_commit_type_t_ {
801
802
804typedef enum agt_exit_mode_t_ {
811
812
814typedef enum agt_tx_type_t_ {
822
823
825typedef enum agt_ccparm_t_ {
832
833
835typedef enum agt_ha_role_t_ {
841
842
844typedef enum agt_ch_proto_t_ {
850
851
853typedef enum agt_crl_mode_t_ {
859
860
862typedef enum agt_hook_type_t_ {
868
869
871typedef enum agt_sa_push_op_t_ {
874
877
880
883
886
889
892
894
898typedef struct agt_replay_subsys_t_ {
899 dlq_hdr_t qhdr;
900 xmlChar *subsys_id;
902
903
905typedef struct agt_sa_push_parms_t_ {
907 dlq_hdr_t qhdr;
908
911
914
917
919 xmlChar *push_target;
920
923
925 boolean is_periodic;
926
928 xmlChar *push_filter;
929
932
935
937 boolean push_active;
938
940
941
945typedef struct agt_maxuser_t_ {
946 dlq_hdr_t qhdr;
947 xmlChar *username;
950
951
985typedef struct agt_profile_t_ {
990
993
996
999
1002
1005
1008
1011
1014
1017
1020
1023
1026
1028 boolean agt_startup_error; /* T: stop, F: check fallback */
1029
1031 boolean agt_running_error; /* T: stop, F: check fallback */
1032
1035
1038
1041
1044
1047
1050
1059
1064
1067
1070
1073
1076
1078 const xmlChar *agt_accesscontrol;
1079
1081 const xmlChar *agt_conffile;
1082
1084 const xmlChar *agt_confdir;
1085
1087 const xmlChar *agt_logfile;
1088
1090 const xmlChar *agt_startup;
1091
1094
1096 const xmlChar *agt_defaultStyle;
1097
1102 //const xmlChar *agt_superuser;
1103
1105 const xmlChar *agt_extern_libspec;
1106
1108 const xmlChar *agt_backup_dir;
1109
1113 const xmlChar *agt_server_id;
1114
1121 const xmlChar *agt_server_root;
1122
1125
1128
1131
1134
1137
1140
1143
1146
1148 boolean agt_useurl;
1149
1152
1155
1158
1161
1164
1167
1170
1173
1176
1179
1182
1185
1188
1191
1194
1197
1199 uint16 agt_ports[AGT_MAX_PORTS];
1200
1203
1206
1208 const xmlChar *agt_coap_address;
1209
1212
1215
1218
1221
1224
1227
1230
1233
1239
1242
1250
1253
1256
1259
1262
1265
1268
1275
1278
1281
1289
1300
1306
1313
1319
1324
1329
1338
1344
1347
1355
1358
1361
1364
1367
1370
1373
1378
1381
1384
1387
1390
1393
1396
1399
1401 const xmlChar *agt_ha_server_key;
1402
1405
1406 // leaf-list ha-server not stored here; not sent to subsys
1407
1410
1416
1419
1420 /* TBD: add this data to subsystems in the near future */
1421
1426
1432
1438
1450
1455 boolean agt_with_yang11_hello; /* d: false */
1456
1463
1468
1474
1475 /* the callhome-server parameter is handled by agt_callhome */
1476
1481 const xmlChar *agt_sshd_path;
1482
1487 const xmlChar *agt_subsys_path;
1488
1493 const xmlChar *agt_sshd_config;
1494
1495
1502
1505
1508
1511
1513 boolean agt_startup_fallback; /* T: restart, F: continue */
1514
1516 boolean agt_running_fallback; /* T: restart, F: continue */
1517
1518
1519 /* the SNMP agent parameters */
1520
1525
1528
1533
1540
1543
1546
1549
1551 const xmlChar *agt_netconf_tls_key;
1552
1555
1558
1561
1564
1566 const xmlChar *agt_errmsg_lang;
1567
1570
1575
1578
1581
1584
1587
1590
1595
1598
1601
1607
1613
1616
1619
1626
1629
1632
1635
1638
1641
1644
1647
1650
1653
1656
1659
1664
1669
1674
1679
1684
1686 uint16 agt_push_min_period; // centiseconds
1687
1689 uint16 agt_push_min_dampening; // centiseconds
1690
1692 uint32 agt_push_max_periodic; // count
1693
1696
1699
1702
1707
1712
1717
1723
1728
1731
1736
1744 const xmlChar *agt_sm_config;
1745
1750
1751
1756
1759
1769
1775
1782 const xmlChar *agt_tls_cipherlist;
1783
1786
1791
1794
1797
1800
1803
1808
1813
1814 /* YPW-2000
1815 * Enable use of a temp file while saving config files such
1816 * as startup-cfg.xml or backup-cfg.xml
1817 * The file is renamed to the provided filespec after
1818 * it is written; If no rename because crash then restart will
1819 * not find real xml file; No CLI to disable
1820 */
1821 boolean agt_save_config_tempname;
1822
1827
1833
1836
1844
1846 const xmlChar *agt_user_parm;
1847
1856
1859
1868
1875
1881
1888
1896
1903
1914
1917 boolean agt_sil_skip_global_edit_apply;
1918
1919
1922
1923 /* TBD: --auto-discard-on-lock-timeout=true */
1928
1931
1934
1950 uint16 agt_num_configured_subscriptions;
1951
1954
1955
1956
1957 /****** state variables; TBD: move out of profile ******/
1958
1961
1964
1967
1970
1973
1976
1979
1982
1984 dlq_hdr_t agt_savedevQ;
1985
1988
1991
1994
1997
2000 boolean agt_confdir_skipped;
2001
2004
2007
2014
2019
2022
2025
2028
2031
2034
2035
2036
2037
2039
2040
2044/******************* External System Callbacks ***********************/
2045
2060 (agt_profile_t *profile);
2061
2062
2076 (boolean pre_cli);
2077
2078
2093 (boolean pre_load);
2094
2095
2101typedef void (*agt_system_cleanup_fn_t) (void);
2102
2103
2115 (ncx_display_mode_t encoding,
2116 const xmlChar *filespec);
2117
2118
2135 (ncx_display_mode_t *encoding,
2136 xmlChar **filespec);
2137
2138
2142typedef struct agt_syslib_cb_t_ {
2144 dlq_hdr_t qhdr;
2145
2147 void *handle;
2148
2150 xmlChar *libspec;
2151
2154
2157
2160
2163
2166
2169
2173
2174
2176typedef struct agt_edit_parms_cb_t_ {
2177
2178
2179 /**** state data used for the edit transaction ****/
2180 yang_patch_cb_t *pcb;
2181
2183
2184
2194typedef void (*agt_replay_fn_t) (boolean is_start);
2195
2196
2208typedef void (*agt_factory_reset_fn_t) (void);
2209
2210
2214/********************************************************************
2215* *
2216* F U N C T I O N S *
2217* *
2218*********************************************************************/
2219
2220
2244extern status_t
2245 agt_init1 (int argc,
2246 char *argv[],
2247 boolean *showver,
2248 help_mode_t *showhelpmode);
2249
2250
2264extern status_t
2265 agt_init1_ex (int argc,
2266 char *argv[],
2267 boolean factory_restart,
2268 boolean *showver,
2269 help_mode_t *showhelpmode);
2270
2271
2279extern status_t
2280 agt_init1_sil_sa (void);
2281
2282
2297extern status_t
2298 agt_init1_ypserver (int argc,
2299 char *argv[],
2300 boolean factory_restart,
2301 boolean *showver,
2302 help_mode_t *showhelpmode);
2303
2304
2317extern status_t
2318 agt_init2 (void);
2319
2320
2334extern status_t
2335 agt_init2_ex (boolean factory_restart);
2336
2337
2343extern status_t
2344 agt_init2_sil_sa (void);
2345
2346
2353extern void
2354 agt_cleanup (void);
2355
2356
2363extern void
2364 agt_cleanup_sil_sa (void);
2365
2366
2374extern agt_profile_t *
2375 agt_get_profile (void);
2376
2377
2385extern void
2387 int intnum);
2388
2389
2395extern boolean
2397
2398
2404extern ncx_shutdowntyp_t
2406
2407
2414extern int
2416
2417
2424extern const xmlChar *
2426
2427
2437extern boolean
2438 agt_advertise_module_needed (const xmlChar *modname);
2439
2440
2449extern void agt_request_replay (void);
2450
2451
2461extern void agt_request_replay_ex (void *cookie);
2462
2463
2469extern void * agt_get_replay_cookie (void);
2470
2471
2482extern void
2483 agt_request_replay_subsys (const xmlChar *subsys_id);
2484
2485
2491extern boolean agt_replay_requested (void);
2492
2493
2499extern void agt_start_replay (void);
2500
2501
2507extern void agt_finish_replay (void);
2508
2509
2518extern status_t
2520 agt_nvsave_fn_t store_fn);
2521
2522
2533extern status_t
2535 const xmlChar *filespec);
2536
2537
2549extern status_t
2550 agt_add_allowed_user (const xmlChar *username);
2551
2552
2559extern void
2560 agt_remove_allowed_user (const xmlChar *username);
2561
2562
2569extern status_t
2570 agt_check_allowed_user (const xmlChar *username);
2571
2572
2573
2582extern status_t
2583 agt_add_superuser (const xmlChar *username);
2584
2585
2592extern void
2593 agt_remove_superuser (const xmlChar *username);
2594
2595
2602extern status_t
2603 agt_check_superuser (const xmlChar *username);
2604
2605
2611extern void
2613
2614
2620extern const xmlChar *
2621 agt_get_server_id (void);
2622
2623
2630extern const xmlChar *
2631 agt_get_server_root (void);
2632
2633
2639extern const xmlChar *
2640 agt_get_server_key (void);
2641
2642
2648extern boolean
2649 agt_is_sil_sa (void);
2650
2651
2657extern dlq_hdr_t *
2658 agt_get_savedevQ (void);
2659
2660
2667extern boolean
2668 agt_replay_subsys_is_active (const xmlChar *subsys_id);
2669
2670
2677extern boolean
2679
2680
2687extern const xmlChar *
2689
2690
2697extern agt_ha_role_t
2698 agt_ha_role_enum (const xmlChar *ha_role);
2699
2700
2707extern const xmlChar *
2709
2710
2717extern agt_sa_push_op_t
2718 agt_sa_push_op_enum (const xmlChar *push_op);
2719
2720
2727extern boolean
2728 agt_use_notifications (void);
2729
2730
2738extern status_t
2740
2741
2750extern boolean
2751 agt_init2_done (void);
2752
2753
2760extern boolean
2761 agt_init2_load_done (void);
2762
2763
2775extern boolean
2777
2778
2785extern void
2786 agt_set_factory_restart (void);
2787
2788
2798extern boolean
2800
2801
2810extern void
2811 agt_set_full_factory_reset (void);
2812
2813
2826extern boolean
2828
2829
2836extern status_t
2838
2839
2846extern ncx_modcache_t *
2847 agt_find_modcache (const xmlChar *modname);
2848
2849
2856extern status_t
2857 agt_run_extloop (void);
2858
2859
2867extern status_t
2868 agt_enter_maintenance_mode (boolean read_ok,
2869 boolean operation_ok);
2870
2871
2877extern status_t
2879
2880
2886extern boolean
2888
2889
2897extern boolean
2899
2900
2908extern boolean
2910
2911
2917extern boolean
2919
2920
2926extern void
2927 agt_set_eventlog_size (uint32 eventlog_size);
2928
2929
2935extern void
2936 agt_set_max_burst (uint32 max_burst);
2937
2938
2945extern void
2946 agt_set_max_getbulk (uint32 max_getbulk);
2947
2948
2956extern agt_not_msg_t *
2957 agt_make_term_msg (const xmlChar *msg,
2958 status_t *res);
2959
2960
2966extern status_t
2968
2969
2975extern boolean
2976 agt_use_nmda (void);
2977
2978
2984extern boolean
2985 agt_use_new_yanglib (void);
2986
2987
2994extern boolean
2996
2997
3003extern boolean
3004 agt_use_yang_cbor (void);
3005
3006
3012extern const char *
3014
3015
3021extern const xmlChar *
3022 agt_get_user_parm (void);
3023
3024
3031extern status_t
3032 agt_add_maxuser_parm (const xmlChar *cliparm);
3033
3034
3035
3046 agt_get_maxuser_parm (const xmlChar *username,
3047 uint16 *retval);
3048
3049
3058extern boolean agt_protocol_enabled (const xmlChar *proto);
3059
3060
3071extern status_t agt_enable_protocol (const xmlChar *proto);
3072
3073
3084extern status_t agt_disable_protocol (const xmlChar *proto);
3085
3086
3094extern boolean
3096
3097
3101#ifdef __cplusplus
3102} /* end extern 'C' */
3103#endif
3104
3105#endif /* _H_agt */
NETCONF Notifications DM module support.
agt_exit_mode_t
exit reasons for YControl IO loop
Definition: agt.h:804
status_t(* agt_system_init2_fn_t)(boolean pre_load)
system init2 callback
Definition: agt.h:2093
agt_commit_type_t
NETCONF commit types.
Definition: agt.h:796
status_t(* agt_nvload_fn_t)(ncx_display_mode_t *encoding, xmlChar **filespec)
nvload callback
Definition: agt.h:2135
void(* agt_system_cleanup_fn_t)(void)
system cleanup callback
Definition: agt.h:2101
agt_sa_push_op_t
SIL-SA PUSH operation enumerations.
Definition: agt.h:871
agt_hook_type_t
Hook types enumeration to specify Hook type.
Definition: agt.h:862
void(* agt_replay_fn_t)(boolean is_start)
replay callback (agt_replay_fn_t)
Definition: agt.h:2194
agt_transaction_model_t
not used yet in YANG-API or NETCONF!
Definition: agt.h:788
agt_ccparm_t
confirmed-commit parms
Definition: agt.h:825
status_t(* agt_system_init1_fn_t)(boolean pre_cli)
system init1 callback
Definition: agt.h:2076
agt_ch_proto_t
server callhome protocol
Definition: agt.h:844
status_t(* agt_nvsave_fn_t)(ncx_display_mode_t encoding, const xmlChar *filespec)
brief nvsave callback
Definition: agt.h:2115
agt_acmode_t
matches access-control enumeration in netconfd.yang
Definition: agt.h:754
agt_crl_mode_t
server TLS CRL mode
Definition: agt.h:853
agt_acm_model_t
select the YANG module for the access control model
Definition: agt.h:779
agt_tx_type_t
YControl transaction type.
Definition: agt.h:814
agt_ha_role_t
server HA mode mode
Definition: agt.h:835
void(* agt_factory_reset_fn_t)(void)
factory-reset callback (agt_factory_reset_fn_t)
Definition: agt.h:2208
#define AGT_MAX_PORTS
maximum number of "--port" leaf-list values that will be saved
Definition: agt.h:188
agt_cbtyp_t
enumeration of the different server EDIT callback types These are used as array indices so there is n...
Definition: agt.h:770
void(* agt_system_init_profile_fn_t)(agt_profile_t *profile)
system init server profile callback
Definition: agt.h:2060
@ AGT_EXIT_MODE_NONE
this value is used
Definition: agt.h:805
@ AGT_EXIT_MODE_ERROR
exit loop with error
Definition: agt.h:807
@ AGT_EXIT_MODE_TIMEOUT
exit loop with timeout
Definition: agt.h:808
@ AGT_EXIT_MODE_OK
exit loop with OK
Definition: agt.h:806
@ AGT_EXIT_MODE_DROPPED
exit loop with session dropped
Definition: agt.h:809
@ AGT_COMMIT_TYPE_NORMAL
normal client operation
Definition: agt.h:798
@ AGT_COMMIT_TYPE_REPLAY
internal replay commit
Definition: agt.h:799
@ AGT_COMMIT_TYPE_NONE
not set
Definition: agt.h:797
@ AGT_SA_PUSH_OP_MODIFY
modify request from client (TBD)
Definition: agt.h:891
@ AGT_SA_PUSH_OP_RESUME
resume subscription
Definition: agt.h:882
@ AGT_SA_PUSH_OP_NONE
not set
Definition: agt.h:873
@ AGT_SA_PUSH_OP_FINISH
finish subscription
Definition: agt.h:885
@ AGT_SA_PUSH_OP_SYNC
sync requested from client (TBD)
Definition: agt.h:888
@ AGT_SA_PUSH_OP_SUSPEND
suspend subscription
Definition: agt.h:879
@ AGT_SA_PUSH_OP_START
start subscription
Definition: agt.h:876
@ AGT_HOOK_TYPE_SETHOOK
Set-Hook.
Definition: agt.h:864
@ AGT_HOOK_TYPE_NONE
not set
Definition: agt.h:863
@ AGT_HOOK_TYPE_TRANSACTION
Transaction Hook.
Definition: agt.h:865
@ AGT_HOOK_TYPE_POST_SETHOOK
Post Set-Hook.
Definition: agt.h:866
@ AGT_TM_PRIVATE
private transactions
Definition: agt.h:791
@ AGT_TM_SHARED
shared transactions (only value supported)
Definition: agt.h:790
@ AGT_TM_NONE
this value is used
Definition: agt.h:789
@ AGT_CCPARM_CONFIRMED
confirmed
Definition: agt.h:827
@ AGT_CCPARM_NONE
not set
Definition: agt.h:826
@ AGT_CCPARM_PERSIST
persist
Definition: agt.h:829
@ AGT_CCPARM_CONFIRM_TIMEOUT
confirm-timeout
Definition: agt.h:828
@ AGT_CCPARM_PERSIST_ID
persist-id
Definition: agt.h:830
@ AGT_CH_PROTO_NONE
not set
Definition: agt.h:845
@ AGT_CH_PROTO_RESTCONF_TLS
restconf-over-ssh callhome
Definition: agt.h:848
@ AGT_CH_PROTO_NETCONF_SSH
netconf-over-ssh callhome
Definition: agt.h:846
@ AGT_CH_PROTO_NETCONF_TLS
netconf-over-tls callhome
Definition: agt.h:847
@ AGT_ACMOD_PERMISSIVE
permissive mode, read + exec allowed
Definition: agt.h:757
@ AGT_ACMOD_OFF
NACM completely off.
Definition: agt.h:759
@ AGT_ACMOD_DISABLED
almost all access control turned off
Definition: agt.h:758
@ AGT_ACMOD_NONE
not set
Definition: agt.h:755
@ AGT_ACMOD_ENFORCING
full enforcement
Definition: agt.h:756
@ AGT_CRL_MODE_CA
CRL check client and CA certs.
Definition: agt.h:857
@ AGT_CRL_MODE_CLIENT
CRL check client cert.
Definition: agt.h:856
@ AGT_CRL_MODE_NONE
not set
Definition: agt.h:854
@ AGT_CRL_MODE_OFF
CRL check off.
Definition: agt.h:855
@ AGT_ACM_MODEL_IETF_NACM
IETF NACM (default)
Definition: agt.h:781
@ AGT_ACM_MODEL_YUMA_NACM
YUMA NACM (obsolete, not supported)
Definition: agt.h:782
@ AGT_ACM_MODEL_NONE
not set
Definition: agt.h:780
@ AGT_ACM_MODEL_EXTERNAL
external ACM via yp_system library
Definition: agt.h:783
@ AGT_TX_TYPE_NONE
not set
Definition: agt.h:815
@ AGT_TX_TYPE_GET
GET2 transaction.
Definition: agt.h:816
@ AGT_TX_TYPE_HOOK
hook callback for edit
Definition: agt.h:819
@ AGT_TX_TYPE_SA_PUSH
SIL-SA PUSH callback control subscriptions.
Definition: agt.h:820
@ AGT_TX_TYPE_RPC
DB-API RPC transaction.
Definition: agt.h:818
@ AGT_TX_TYPE_EDIT
EDIT1 or EDIT2 transaction.
Definition: agt.h:817
@ AGT_HA_ROLE_STANDBY
HA standby role.
Definition: agt.h:838
@ AGT_HA_ROLE_NONE
not set
Definition: agt.h:836
@ AGT_HA_ROLE_ACTIVE
HA active role.
Definition: agt.h:839
@ AGT_HA_ROLE_NOT_SET
HA role not set.
Definition: agt.h:837
@ AGT_CB_APPLY
P2: write operation apply.
Definition: agt.h:772
@ AGT_CB_VALIDATE
P1: write operation validate.
Definition: agt.h:771
@ AGT_CB_ROLLBACK
P3-neg: write operation rollback.
Definition: agt.h:774
@ AGT_CB_COMMIT
P3-pos: write operation commit.
Definition: agt.h:773
agt_not_msg_t * agt_make_term_msg(const xmlChar *msg, status_t *res)
Create a <term-msg> notification.
Definition: agt.c:6524
void agt_remove_superuser(const xmlChar *username)
Remove a superuser name from the running system Does not change any config file allowed-user paramete...
Definition: agt.c:5618
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:5408
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:3967
boolean agt_protocol_enabled(const xmlChar *proto)
Check if protocol sessions are enabled.
Definition: agt.c:6828
void agt_cleanup(void)
Cleanup the Server Library.
Definition: agt.c:4946
const xmlChar * agt_get_user_parm(void)
Get the user-parm string (if any)
Definition: agt.c:6691
const xmlChar * agt_get_server_root(void)
Get the server-root string.
Definition: agt.c:5722
status_t agt_add_maxuser_parm(const xmlChar *cliparm)
Add a maxuser parameter value.
Definition: agt.c:6705
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:5223
void agt_cleanup_sil_sa(void)
Cleanup the Server Library for SIL-SA usage.
Definition: agt.c:4962
void * agt_get_replay_cookie(void)
Get the current replay cookie.
Definition: agt.c:5283
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:6455
const char * agt_get_aflocal_sockname(void)
Get the AFLOCAL socket name to use for <ncx-connect>
Definition: agt.c:6676
status_t agt_init_term_msg_module(void)
Init the term-msg module and object backptr.
Definition: agt.c:6571
agt_sa_push_op_t agt_sa_push_op_enum(const xmlChar *push_op)
Get the enum for the specified SA PUSH operation string.
Definition: agt.c:5920
const xmlChar * agt_sa_push_op_str(agt_sa_push_op_t push_op)
Get the string for the specified SA PUSH operation.
Definition: agt.c:5889
status_t agt_init2(void)
Initialize the Server Library (phase 2 init)
Definition: agt.c:3999
boolean agt_use_nmda(void)
Check if NMDA is enabled.
Definition: agt.c:6605
int agt_shutdown_term_signal(void)
Get the shutdown termination signal if any.
Definition: agt.c:5108
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:5812
status_t agt_disable_protocol(const xmlChar *proto)
Disable the named protocol.
Definition: agt.c:6938
status_t agt_get_maxuser_parm(const xmlChar *username, uint16 *retval)
Get the maxuser max-sessions value for a specified user.
Definition: agt.c:6802
boolean agt_maintenance_mode_operation_ok(void)
Return true if in maintenance mode operations OK;.
Definition: agt.c:6377
const xmlChar * agt_ha_role_str(agt_ha_role_t ha_role)
Get the string for the specified HA role enumeration.
Definition: agt.c:5830
status_t agt_check_superuser(const xmlChar *username)
Check a username in the superuser Q.
Definition: agt.c:5659
boolean agt_is_sil_sa(void)
Check if server running in SIL-SA mode.
Definition: agt.c:5755
boolean agt_yang_push_is_enabled(void)
Check if agt_push is enabled.
Definition: agt.c:6998
status_t agt_add_modcache(ncx_modcache_t *mc)
Add a module to the modcache queue and hash table.
Definition: agt.c:6239
status_t agt_add_superuser(const xmlChar *username)
Add a backptr to the string in the val_value_t containing the username that is a superuser.
Definition: agt.c:5576
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:5368
status_t agt_enable_protocol(const xmlChar *proto)
Enable the named protocol.
Definition: agt.c:6876
const xmlChar * agt_cbtype_name(agt_cbtyp_t cbtyp)
Get the string for the server callback phase.
Definition: agt.c:5127
agt_profile_t * agt_get_profile(void)
Get the server profile struct.
Definition: agt.c:4980
boolean agt_waiting_datastore_ready(void)
Check if client sessions are blocked until the datastore is ready.
Definition: agt.c:6638
void agt_request_replay(void)
Request replay of the running config to SIL modules because SIL hardware has reset somehow.
Definition: agt.c:5181
const xmlChar * agt_get_server_id(void)
Get the server-id string.
Definition: agt.c:5705
boolean agt_maintenance_mode_session_ok(void)
Return true if in maintenance mode new sessions OK;.
Definition: agt.c:6390
status_t agt_init2_ex(boolean factory_restart)
Initialize the Server Library (phase 2 init - extended)
Definition: agt.c:4022
boolean agt_init2_load_done(void)
Check if the init2 phase is complete and all modules loaded.
Definition: agt.c:6105
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:5199
boolean agt_use_yang_cbor(void)
Check if YANG CBOR is enabled.
Definition: agt.c:6659
boolean agt_in_full_factory_reset(void)
Check if a full factory reset is in progress.
Definition: agt.c:6219
void agt_request_shutdown(ncx_shutdowntyp_t mode, int intnum)
Request some sort of server shutdown.
Definition: agt.c:4998
status_t agt_init2_sil_sa(void)
Initialize the Server Library for SIL-SA.
Definition: agt.c:4902
void agt_start_replay(void)
Start replay of the running config to SIL modules.
Definition: agt.c:5296
status_t agt_check_allowed_user(const xmlChar *username)
Check a username in the allowed-user Q.
Definition: agt.c:5520
status_t agt_exit_maintenance_mode(void)
Exit the server from mainenance mode to unblock client activity.
Definition: agt.c:6493
status_t agt_init1_sil_sa(void)
Initialize the Server Library: stage 1: CLI and profile.
Definition: agt.c:3924
boolean agt_use_notifications(void)
Check if notifications currently enabled.
Definition: agt.c:5963
boolean agt_use_new_yanglib(void)
Check if NMDA or use-new-yanglib is enabled.
Definition: agt.c:6621
boolean agt_in_factory_restart(void)
Check if a factory restort is in progress.
Definition: agt.c:6180
const xmlChar * agt_get_server_key(void)
Get the ha-server-key string.
Definition: agt.c:5739
boolean agt_maintenance_mode_read_ok(void)
Return true if in maintenance mode reads OK;.
Definition: agt.c:6362
boolean agt_in_maintenance_mode(void)
Return true if in mainenance mode now.
Definition: agt.c:6347
ncx_modcache_t * agt_find_modcache(const xmlChar *modname)
Find a module to the modcache queue and hash table.
Definition: agt.c:6272
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:3897
boolean agt_shutdown_requested(void)
Check if some sort of server shutdown is in progress.
Definition: agt.c:5068
boolean agt_replay_requested(void)
Check if config replay is pending.
Definition: agt.c:5266
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:5993
void agt_set_max_burst(uint32 max_burst)
Set the max-burst parameter.
Definition: agt.c:6405
ncx_shutdowntyp_t agt_shutdown_mode_requested(void)
Check what shutdown mode was requested.
Definition: agt.c:5091
dlq_hdr_t * agt_get_savedevQ(void)
Get the agt_savedevQ pointer.
Definition: agt.c:5769
boolean agt_advertise_module_needed(const xmlChar *modname)
Check if the module should be advertised or not.
Definition: agt.c:5157
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:5481
boolean agt_replay_subsys_is_active(const xmlChar *subsys_id)
Find a subsys replay request struct in the activeQ.
Definition: agt.c:5786
void agt_register_replay_callback(agt_replay_fn_t cbfn)
Register a callback function for a replay config event.
Definition: agt.c:5688
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:3860
void agt_set_max_getbulk(uint32 max_getbulk)
Set the max-getbulk parameter.
Definition: agt.c:6422
void agt_set_eventlog_size(uint32 eventlog_size)
Set the eventlog-size parameter.
Definition: agt.c:6332
boolean agt_init2_done(void)
Check if the init2 phase is complete.
Definition: agt.c:6087
void agt_finish_replay(void)
Finish replay of the running config to SIL modules.
Definition: agt.c:5329
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:6131
agt_ha_role_t agt_ha_role_enum(const xmlChar *ha_role)
Get the enum for the specified HA role string.
Definition: agt.c:5860
uint32 agt_not_subid_t
subscription-id parameter
Definition: agt_not.h:123
log_debug_t
The debug level enumerations used in util/log.c.
Definition: log.h:348
status_t
global error return code
Definition: status_enum.h:219
help_mode_t
modes to match the keywords brief, normal, full
Definition: help.h:84
ncx_agttarg_t
enum to identify the agent native target
Definition: ncxtypes.h:540
ncx_yang_sid_mode_t
YANG SID Allocation mode from yang-sid-mode typedef.
Definition: ncxtypes.h:1870
ncx_agtstart_t
enum to identify the agent native startup mode
Definition: ncxtypes.h:551
ncx_msg_encoding_t
enumeration for message encoding formats
Definition: ncxtypes.h:672
ncx_snmp_agt_role_t
enum to identify the SNMP agent native mode
Definition: ncxtypes.h:1699
ncx_name_match_t
Node name match modes.
Definition: ncxtypes.h:720
ncx_display_mode_t
enumeration of val_dump_value display modes Some RESTCONF code uses this field incorrectly for messag...
Definition: ncxtypes.h:642
ncx_withdefaults_t
enum for with-defaults enum values
Definition: ncxtypes.h:1339
ncx_shutdowntyp_t
enumeration of the different program shutdown modes
Definition: ncxtypes.h:559
uint8 obj_testflags_t
object test flags
Definition: obj.h:1251
YANG help text support for CLI Print help text for various templates.
NCX System Logging Manager.
YANG module data structures Many internal representations of YANG module constructs.
Global error messages for status code enumerations.
struct to contain all agt_send_edit parameters
Definition: agt.h:2176
for the list of username / max-session values to support the –max-per-user-sessions CLI parameter
Definition: agt.h:945
xmlChar * username
malloced user name string
Definition: agt.h:947
dlq_hdr_t qhdr
queue header
Definition: agt.h:946
uint16 max_sessions
max session count 0 .
Definition: agt.h:948
one notification message that will be sent to all subscriptions in the stream and kept in the replay ...
Definition: agt_not.h:143
Multiple instances are not supported.
Definition: agt.h:985
boolean agt_auto_discard_on_lock_timeout
flag to enable automatic <discard-changes> after a <lock> timeout event on the <candidate> datastore.
Definition: agt.h:1927
const xmlChar * agt_backup_dir
backup dir location
Definition: agt.h:1108
boolean agt_with_yp_coap_dtls
enable YP-CoAP DTLS sessions (not supported)
Definition: agt.h:1369
boolean agt_allow_tcp_socket
allow a TCP socket instead of an AF_LOCAL socket for connections
Definition: agt.h:1264
const xmlChar * agt_startup
startup filespec
Definition: agt.h:1090
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:1318
int32 agt_message_indent
–message-indent parameter
Definition: agt.h:1142
boolean agt_use_ccommit
enable confirmed-comiit
Definition: agt.h:1151
boolean agt_use_tcp_socket
use a TCP socket instead of an AF_LOCAL socket for connections
Definition: agt.h:1267
boolean agt_with_yumaworks_config_change
with-yumaworks-config-change
Definition: agt.h:1649
boolean agt_useurl_ftp
–with-url-ftp
Definition: agt.h:1536
boolean agt_with_yp_shell
enable yp-shell sessions
Definition: agt.h:1363
ncx_name_match_t agt_match_names
match names behavior; needs to be EXACT for YANG
Definition: agt.h:1072
boolean agt_tls_deprecated_ok
YPW-1984: TLS Deprecated OK.
Definition: agt.h:1802
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:1625
boolean agt_with_error_number
enable the <error-number) element added to error info some NC clients do not implement the error-info...
Definition: agt.h:1843
boolean agt_use_yuma_if
load yuma-if module
Definition: agt.h:1223
boolean agt_with_yp_coap
enable YP-CoAP sessions (not supported)
Definition: agt.h:1366
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:1328
uint16 agt_socket_port
listen on this TCP port if TCP socket is enabled
Definition: agt.h:1996
boolean agt_return_status
return exit code or zero; bit7 all-booleans3
Definition: agt.h:1727
boolean agt_use_yuma_arp
load yuma-arp module
Definition: agt.h:1220
uint32 agt_linesize
line size for logging
Definition: agt.h:1136
boolean agt_useurl
–with-url parameter
Definition: agt.h:1148
ncx_yang_sid_mode_t agt_yang_sid_mode
yang-sid-mode parameter
Definition: agt.h:1796
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:1612
boolean agt_wait_datastore_ready
wait-datastore-ready parameter bit6 all-booleans3
Definition: agt.h:1716
boolean agt_with_new_notifs
flag to indicate that the new notifications defined in RFC 8639 should be used, even if bundle yang-p...
Definition: agt.h:1895
uint32 agt_max_nodes_per_update
IETF max-nodes-per-update NO CLI PARAMTER TO SET THIS VALUE.
Definition: agt.h:1722
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:1249
const xmlChar * agt_netconf_tls_certificate
–netconf-tls-cerificate parameter
Definition: agt.h:1548
boolean agt_fileloc_fhs
this flag enables FHS file locations for server data files
Definition: agt.h:1504
uint16 agt_max_sessions
max sessions (total)
Definition: agt.h:1187
const xmlChar * agt_extern_libspec
superuser name (allowed to be NULL) moved to agt.c agt_superuserQ Q of ncx_backptr_t to malloced stri...
Definition: agt.h:1105
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:1455
boolean agt_load_rootcheck_errors
server load-config root-check had errors flag
Definition: agt.h:1969
uint8 agt_withdef_enabled
bitmask of the with-defaults enumerations that should be enabled in the server
Definition: agt.h:1299
uint16 agt_snmp_subagent_priority
identify the SNMP subagent priority, what priority will be used for OID callbacks registration
Definition: agt.h:1532
boolean agt_save_owners
flag to save owner strings in the database
Definition: agt.h:1277
boolean agt_with_yumaworks_callhome
with-yumaworks-callhome
Definition: agt.h:1643
const xmlChar * agt_yangapi_server_url
YANG-API server URL (obsolete)
Definition: agt.h:1211
uint16 agt_first_configured_subscription
number of subscription IDs to reserve for configured subscriptions if WITH_YANG_PUSH=1 and WITH_YANG_...
Definition: agt.h:1949
boolean agt_restconf_strict_headers
If 'true' the server will only accept requests with normative Accept header entries specified in the ...
Definition: agt.h:1323
const xmlChar * agt_conffile
config file: default: /etc/yumapro/netconfd-pro.conf
Definition: agt.h:1081
const xmlChar * agt_user_parm
back-pointer to the user-parm string if any
Definition: agt.h:1846
boolean agt_load_validate_errors
server load-config had errors flag
Definition: agt.h:1966
boolean agt_with_yang_patch_running
with-yang-patch-running parameter; bit3 all-booleans3
Definition: agt.h:1683
boolean agt_with_config_id
this field indicates if the :config-id capability is enabled or not.
Definition: agt.h:1437
agt_crl_mode_t agt_crl_mode
tls-crl-mode parameter
Definition: agt.h:1655
boolean agt_use_local_transport
use local transport flag
Definition: agt.h:1166
boolean agt_ypserver_mode
this flag indicates the server is rnning as yp-controller and not netconfd-pro
Definition: agt.h:1594
boolean agt_sil_invoke_for_defaults
–sil-invoke-for-defaults parameter
Definition: agt.h:1586
boolean agt_create_empty_npcontainers_ro
special flag for create NP containers if read-only child nodes
Definition: agt.h:1418
boolean agt_use_rollback_on_error
Use rollback-on-error.
Definition: agt.h:1238
boolean agt_xmlorder
use strict XML order flag
Definition: agt.h:1037
const xmlChar * agt_errmsg_lang
–errmsg-lang parameter
Definition: agt.h:1566
boolean agt_create_empty_npcontainers
LAST DATA SENT TO SUBSYSTEMS create empty NP containers d: true bit27 in all-booleans2.
Definition: agt.h:1415
boolean agt_with_yang_push2
flag to enable YANG Push2 functionality –with-yang-push2 CLI parameter
Definition: agt.h:2018
log_debug_t agt_audit_log_level
audit log level
Definition: agt.h:1386
boolean agt_system_sorted
enable system-sorted (obsolete: sorted by val_child algorithms)
Definition: agt.h:1172
ncx_withdefaults_t agt_defaultStyleEnum
default with-defaults enum
Definition: agt.h:1181
uint32 agt_watcher_interval
Specifies the number of seconds the YPWatcher process will sleep before checking if the netconfd-pro ...
Definition: agt.h:1305
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:1431
xmlChar * agt_subsys_info_file
location of subsys info file YPW-2080: Multi-Instance Mode This filespec will contain the SRID so it ...
Definition: agt.h:1274
boolean agt_with_yanglib_augmentedby
–with-yanglib-augmentedby parameter
Definition: agt.h:1933
boolean agt_with_regex_filter
–with-regex-filter parameter
Definition: agt.h:1930
obj_testflags_t agt_rootflags
root commit descendant test flags
Definition: agt.h:1960
uint16 agt_max_cli_sessions
max CLI sessions
Definition: agt.h:1190
boolean agt_delete_empty_npcontainers
delete empty config=true NP containers: d: false
Definition: agt.h:1049
boolean agt_push_simop_enabled
push-simop-enabled parameter; bit4 all-booleans3
Definition: agt.h:1706
boolean agt_validate_all
validate all flag
Definition: agt.h:1013
uint8 agt_max_dblslash_matches
Max number of dblslash wildcard matches to allow this is an arbitrary limit meant to prevent the XPat...
Definition: agt.h:1880
boolean agt_with_nmda
with-nmda; bit31 in all-booleans2
Definition: agt.h:1663
boolean agt_load_def_startup_factory
server load-config factory flag
Definition: agt.h:1981
boolean agt_use_yuma_proc
load yuma-proc module
Definition: agt.h:1217
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:1473
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:1606
boolean agt_no_yang_push
flag indicates that yang-push bundle is loaded only to use the notifications.
Definition: agt.h:2013
boolean agt_simple_json_names
use simple JSON names instead of YANG JSON names
Definition: agt.h:1409
uint16 agt_max_lock_hold_time
YPW-2027 Enforce a max lock hold time if non-zero value.
Definition: agt.h:1826
boolean agt_with_netconf_tls
enable NETCONF over TLS sessions
Definition: agt.h:1372
const xmlChar * agt_netconf_tls_address
–netconf-tls-address parameter
Definition: agt.h:1545
const xmlChar * agt_server_root
assigned server root ID
Definition: agt.h:1121
const xmlChar * agt_tls_cipherlist
–tls-cipherlist CLI parameter Use with extreme caution! Advanced libopenssl usage not supported passe...
Definition: agt.h:1782
boolean agt_use_ycontrol
enable YControl protocol
Definition: agt.h:1241
boolean agt_with_factory_datastore
track –factory-datastore flag
Definition: agt.h:1025
boolean agt_has_startup
has startup flag for –with-startup
Definition: agt.h:1016
boolean agt_ha_sil_standby
call SIL code in standby mode
Definition: agt.h:1395
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:1343
boolean agt_with_ocpattern
this flag enables/disables the special OpenConfig usage of the YANG pattern-statement.
Definition: agt.h:1501
boolean agt_use_rollback_failed_backup
save running config for a commit, in case the rollback fails
Definition: agt.h:1261
boolean agt_use_yuma_system
load yuma-system module
Definition: agt.h:1232
boolean agt_enable_grpc
flag to enable gRPC sessions
Definition: agt.h:2033
boolean agt_sil_invoke_false_when_deletes
–sil-invoke-false-when-deletes parameter
Definition: agt.h:1583
boolean agt_audit_log_candidate
If true, then transactions to the candidate datastore will be recorded in the audit log.
Definition: agt.h:1312
uint16 agt_push_min_dampening
push-min-dampening parameter (in SIL-SA transfer)
Definition: agt.h:1689
boolean agt_trim_whitespace
–trim-whitespace CLI parameter
Definition: agt.h:1542
uint32 agt_maxburst
–maxburst parameter
Definition: agt.h:1127
uint32 agt_push_max_periodic
push-max-periodic parameter
Definition: agt.h:1692
boolean agt_return_error_with_data
enable returning rpc-error with data YPW-2187: add –return-error-with-data parameter Allow GET2 callb...
Definition: agt.h:1874
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:1462
boolean agt_yumaworks_ids
use the yumaworks-ids module
Definition: agt.h:1634
boolean agt_stream_output
stream message output: d:true; no CLI support yet
Definition: agt.h:1046
boolean agt_save_load_events
No CLI parameter for save load events! If true then NETCONF notifications generated for the YANG libr...
Definition: agt.h:1867
const xmlChar * agt_ha_initial_active
active server to use if standby
Definition: agt.h:1404
const xmlChar * agt_cert_default_user
–cert-default-user parameter
Definition: agt.h:1563
boolean agt_ha_enabled
enable YP-HA
Definition: agt.h:1392
agt_ha_role_t agt_ha_role
saved HA role
Definition: agt.h:2003
boolean agt_enable_restconf
flag to enable RESTCONF sessions
Definition: agt.h:2024
boolean agt_yuma_time_filter
use the yuma-time-filter module
Definition: agt.h:1628
const xmlChar * agt_sshd_config
set the sshd_config file to use for sshd exectuable for callhome default is $HOME/....
Definition: agt.h:1493
boolean agt_with_sm
this flag indicates that the Schema Mount support should be enabled
Definition: agt.h:1735
boolean agt_use_netconf
enable NETCONF protocol
Definition: agt.h:1163
boolean agt_callhome_reconnect
CLI parameter –callhome-reconnect.
Definition: agt.h:1618
uint16 agt_ha_port
port number is default 8088
Definition: agt.h:1398
boolean agt_with_yumaworks_lock
enable the <lock-all> and <unlock-all> operations
Definition: agt.h:1835
boolean agt_with_yumaworks_compare
with-yumaworks-compare
Definition: agt.h:1646
boolean agt_enable_netconf
flag to enable NETCONF sessions
Definition: agt.h:2021
boolean agt_use_notifications
enable notifications
Definition: agt.h:1169
boolean agt_yuma_system_notifs
d: false
Definition: agt.h:1052
boolean agt_with_netconf
If 'true' then the corresponding protocol will be enabled.
Definition: agt.h:1354
agt_acm_model_t agt_acm_model
NACM or external ACM model.
Definition: agt.h:1178
ncx_agttarg_t agt_targ
BEGIN DATA SENT TO SUBSYSTEMS; target type (candidate or running)
Definition: agt.h:989
boolean agt_xpath_dblslash_ok
YPW-1981: XPath Dblslash OK.
Definition: agt.h:1799
boolean agt_use_db_lock
db-lock used only if WITH_YCONTROL=1 and CLI set
Definition: agt.h:1637
boolean agt_insecure_ok
–insecure-ok parameter
Definition: agt.h:1560
const xmlChar * agt_subsys_path
set the netconf subsystem for sshd exectuable path for callhome default is /usr/sbin/netconf-subsyste...
Definition: agt.h:1487
boolean agt_support_save
d: true (needs WITH_SUPPORT_SAVE=1)
Definition: agt.h:1058
boolean agt_defer_load
saved defer load config flag
Definition: agt.h:2006
boolean agt_running_error
–running-error parameter: stop, continue enums only
Definition: agt.h:1031
boolean agt_audit_log_localtime
audit log localtime
Definition: agt.h:1389
agt_transaction_model_t agt_transaction_model
TBD private transaction model.
Definition: agt.h:1075
uint16 agt_coap_dtls_port
Coap over DTLS port (not implemented)
Definition: agt.h:1205
boolean agt_cvt_subtree_filter
convert-subtree-filter parameter; bit2 all-booleans3
Definition: agt.h:1673
const xmlChar * agt_netconf_tls_key
–netconf-tls-key parameter
Definition: agt.h:1551
boolean agt_with_yang_api
enable YANG-API sessions (obsolete)
Definition: agt.h:1360
const xmlChar * agt_sm_config
set the Schema Mount configuration file.
Definition: agt.h:1744
boolean agt_startup_fallback
this flag indicates the –startup-error parm is set to fallback
Definition: agt.h:1513
boolean agt_term_msg
d: true for <term-msg> notification bit30 in all-booleans2
Definition: agt.h:1063
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:1481
boolean agt_sil_cc_callback_all
YPW-2042 Apply Commit Completeness Callbacks to All Edit Transactions instead of just the <commit> op...
Definition: agt.h:1832
boolean agt_yumaworks_getbulk
use the yumaworks-getbulk module
Definition: agt.h:1631
boolean agt_yumaworks_system
d: true
Definition: agt.h:1054
boolean agt_json_leaf_list_1line
flag to print JSON leaf-list value on 1 line
Definition: agt.h:1280
boolean agt_with_snmp
this flag indicates that the snmp agent should be enabled.
Definition: agt.h:1524
boolean agt_logappend
–log-append parameter
Definition: agt.h:1034
boolean agt_load_done
server load-config done flag
Definition: agt.h:1963
boolean agt_sil_skip_global_edit_validate
YPW-2276: sil-skip-global-edit-* parameters.
Definition: agt.h:1916
boolean agt_load_top_rootcheck_errors
server load-config had top root-check errors flag
Definition: agt.h:1972
xmlChar * agt_startup_txid_file
cached location of startup transaction ID file
Definition: agt.h:1990
boolean agt_with_yumaworks_event_stream
with-yumaworks-event-stream
Definition: agt.h:1652
dlq_hdr_t agt_savedevQ
Q of malloced ncx_save_deviations_t.
Definition: agt.h:1984
boolean agt_sil_autodelete
enable SIL/SIL-SA callback for auto-deletions
Definition: agt.h:1855
boolean agt_enable_gnmi
flag to enable gNMI sessions
Definition: agt.h:2030
ncx_snmp_agt_role_t agt_snmp_agent_role
identify the SNMP agent native mode master|subagent
Definition: agt.h:1527
log_debug_t agt_syslog_log_level
requested SYSLOG log-level
Definition: agt.h:998
boolean agt_factorystartup
track –factory-startup flag
Definition: agt.h:1022
boolean agt_log_acm_writes
log NACM write requests
Definition: agt.h:1010
boolean agt_use_yangapi
enable YANG-API protocol (obsolete: ignored)
Definition: agt.h:1154
boolean agt_enable_cli
flag to enable CLI sessions
Definition: agt.h:2027
const xmlChar * agt_startup_factory_file
factory startup filespec
Definition: agt.h:1093
const xmlChar * agt_netconf_tls_trust_store
–netconf-tls-trust-store parameter
Definition: agt.h:1557
boolean agt_tls_common_auth
internal flag to enable Common Authentication Mode NO CLI PARAMETER FOR THIS SETTING IN 23....
Definition: agt.h:1377
boolean agt_leaflist_deleteall_ok
allow delete-all and remove-all operations on a leaf-list
Definition: agt.h:1043
uint16 agt_coap_port
the CoAP port number used only if WITH_COAP and agt_use_coap set
Definition: agt.h:1202
const xmlChar * agt_ha_server_key
server-key to keep HA pools separate
Definition: agt.h:1401
boolean agt_use_yumaworks_sm_yanglib
load yumaworks-sm-yanglib module ignored unless agt_with_sm and agt_sm_config both set
Definition: agt.h:1755
boolean agt_with_canonical
–with-canonical parameter
Definition: agt.h:1577
dlq_hdr_t agt_commit_testQ
Q of malloced agt_commit_test_t.
Definition: agt.h:1987
const xmlChar * agt_confdir
config dir: default: /etc/yumapro/netconfd-pro.d
Definition: agt.h:1084
boolean agt_with_restconf
enable RESTCONF sessions
Definition: agt.h:1357
boolean agt_silcall_delete_first
YPW-1975: SILCALL delete first.
Definition: agt.h:1785
uint16 agt_subsys_timeout
subsystem timeout in seconds
Definition: agt.h:1196
boolean agt_with_modtags
–with-modtags parameter
Definition: agt.h:1580
boolean agt_highres_event_time
–highres-event-time parameter Affects the <eventTime> leaf in all notifications
Definition: agt.h:1790
boolean agt_ietf_system_notifs
d: true
Definition: agt.h:1053
uint32 agt_audit_log_events
–audit-log-events to control audit log content
Definition: agt.h:1600
boolean agt_with_new_yanglib
Flag to indicate that the YANG Library from RFC 8525 will be present, even if with-nmda=false This do...
Definition: agt.h:1887
boolean agt_sil_skip_keys
do not invoke the SIL callback for a key leaf
Definition: agt.h:1258
boolean agt_use_yuma_mysession
load yuma-mysession module
Definition: agt.h:1226
boolean agt_load_apply_errors
server load-config had apply phase errors flag
Definition: agt.h:1975
boolean agt_sil_prio_reverse_for_deletes
–sil-prio-reverse-for-deletes parameter
Definition: agt.h:1597
boolean agt_load_factory_fallback
server load-config allowed to use factory-fallback flag
Definition: agt.h:1978
int32 agt_max_strlen
max-strlen parameter
Definition: agt.h:1640
boolean agt_alt_names
Yuma REST-API urlselect extra parameters.
Definition: agt.h:1066
uint8 agt_min_passwd_len
minimum password length when setting crypt-hash variables
Definition: agt.h:1346
boolean agt_disable_imported_ok
YPW-2209: flag to enable disabling of imported objects that are not loaded via module or bundle param...
Definition: agt.h:1913
boolean agt_with_grpc
this flag indicates that the gRPC support should be enabled
Definition: agt.h:1730
boolean agt_use_yumaworks_event_filter
load yumaworks-event-filter module
Definition: agt.h:1229
boolean agt_useurl_tftp
the libcurl variables
Definition: agt.h:1535
boolean agt_use_cli
enable yp-shell
Definition: agt.h:1160
boolean agt_startup_prune_ok
–startup-prune-ok parameter
Definition: agt.h:1569
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:1288
log_debug_t agt_pthread_log_level
requested PTHREADS log level
Definition: agt.h:1001
boolean agt_import_version_bestmatch
import-version-bestmatch parameter bit0 in all-booleans3
Definition: agt.h:1678
uint32 agt_idle_timeout
–idle-timeout parameter
Definition: agt.h:1133
uint32 agt_eventlog_size
eventlog-size set to 0 to disable replay
Definition: agt.h:1124
boolean agt_log_event_drops
log event drops
Definition: agt.h:1252
boolean agt_usevalidate
–with-validate parameter
Definition: agt.h:1145
boolean agt_with_gnmi
this flag indicates that the gNMI support should be enabled
Definition: agt.h:1589
boolean agt_remove_schema_aug_leafs
this flag indicates the deprecated schema list leafs added from yumaworks-system should be removed.
Definition: agt.h:1768
boolean agt_with_maint_mode
allow maintenance mode to be used
Definition: agt.h:1615
agt_acmode_t agt_accesscontrol_enum
access control enum
Definition: agt.h:1184
boolean agt_use_yumaworks_cert_usermap
load yumaworks-cert-usermap module
Definition: agt.h:1758
boolean agt_log_acm_reads
log NACM read requests
Definition: agt.h:1007
boolean agt_push_simop_patch_update
push-simop-patch-update parameter bit5 all-booleans3
Definition: agt.h:1711
const xmlChar * agt_defaultStyle
default-style for with-defaults
Definition: agt.h:1096
boolean agt_usestartup
track –no-startup flag
Definition: agt.h:1019
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:1425
boolean agt_startup_skip_validation
startup-skip-validation; bit1 all-booleans3
Definition: agt.h:1668
boolean agt_startup_error
–startup-error parameter: stop, continue enums only
Definition: agt.h:1028
boolean agt_no_audit_log
this flag indicates the –no-audit-log CLI parameter
Definition: agt.h:1507
boolean agt_running_fallback
this flag indicates the –running-error parm is set to fallback
Definition: agt.h:1516
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:1467
uint16 agt_push_max_segment_size
push-max-segment-size for UDP-Notif only
Definition: agt.h:1701
uint16 agt_max_user_sessions
max USER sessions
Definition: agt.h:1193
boolean agt_tls_v13_only
YPW-2487: force server to accept only TLS 1.3 protocol for NETCONF over TLS sessions.
Definition: agt.h:1812
uint16 agt_netconf_tls_port
–netconf-tls-port parameter
Definition: agt.h:1554
boolean agt_with_ietf_caps
flag to indicate the ietf-system-capabilities module should be loaded if WITH_YANG_PUSH is used and a...
Definition: agt.h:1902
const xmlChar * agt_server_id
assigned server ID NcxName (1 .
Definition: agt.h:1113
xmlChar * agt_socket_address
strdup of socket-address CLI parameter
Definition: agt.h:1993
int32 agt_indent
–indent parameter
Definition: agt.h:1139
boolean agt_sil_delete_children_first
–sil-delete-children-first CLI parameter
Definition: agt.h:1539
log_debug_t agt_audit_log_console_level
log console level
Definition: agt.h:1383
boolean agt_startup_create_ok
no CLI parameter!! set to TRUE! change in yp-system library or agt_profile.c
Definition: agt.h:1574
const xmlChar * agt_restconf_server_url
RESTCONF server URL.
Definition: agt.h:1214
ncx_agtstart_t agt_start
startup type enum (distinct or mirror)
Definition: agt.h:992
uint32 agt_push_simop_period
push-simop-period parameter
Definition: agt.h:1698
const xmlChar * agt_logfile
main logfile
Definition: agt.h:1087
uint32 agt_sil_getbulk_max
Specifies the maximum number of getbulk entries to request from a GET2 callback.
Definition: agt.h:1337
uint32 agt_push_max_operational
push-max-operational parameter
Definition: agt.h:1695
boolean agt_lax_namespaces
lax namespace usage: will try to match element name
Definition: agt.h:1175
uint32 agt_hello_timeout
–hello-timeout parameter
Definition: agt.h:1130
boolean agt_tls_autosan_mode
–netconf-tls-autosan-mode
Definition: agt.h:1380
boolean agt_crl_missing_ok
tls-crl-missing-ok parameter
Definition: agt.h:1658
uint16 agt_push_min_period
push-min-period parameter (in SIL-SA transfer)
Definition: agt.h:1686
boolean agt_wildcards
Allow wildcards in filters.
Definition: agt.h:1069
log_debug_t agt_log_level
requested log-level
Definition: agt.h:995
xmlChar * agt_conf_dirspec
malloced string indicating the confdir pathspec in use
Definition: agt.h:1999
boolean agt_with_fsync
–with-fsync parameter
Definition: agt.h:1921
boolean agt_list_deleteall_ok
allow delete-all and remove-all operations on a list
Definition: agt.h:1040
const xmlChar * agt_coap_address
Coap over DTLS address (not implemented)
Definition: agt.h:1208
uint32 agt_publisher_id
UDP-Notif Message Publisher ID assigned to the main server.
Definition: agt.h:1953
boolean agt_tls_debug
–tls-debug CLI parameter this flag indicates that extra TLS debugging should be enabled in the server
Definition: agt.h:1774
boolean agt_with_yang_cbor
with-yang-cbor parameter
Definition: agt.h:1793
boolean agt_tls_dh_enabled
YPW-1994: enable TLS DH parameters needed for TLS 1.3 there is no CLI parameter for this flag; defaul...
Definition: agt.h:1807
ncx_msg_encoding_t agt_restconf_default_encoding
this enum indicates the –restconf-default-encoding CLI parameter
Definition: agt.h:1510
const xmlChar * agt_accesscontrol
access control model
Definition: agt.h:1078
boolean agt_sil_missing_error
treat missing SIL libraries as an error, not warning
Definition: agt.h:1255
boolean agt_yumaworks_templates
d: true
Definition: agt.h:1055
boolean agt_no_nvstore
this field indicates that the server should not load or save using the normal APIs during transaction...
Definition: agt.h:1449
boolean agt_use_restconf
enable RESTCONF protocol
Definition: agt.h:1157
ncx_msg_encoding_t agt_sm_config_encoding
this flag indicates what parser engine to use to parse the SM Config file.
Definition: agt.h:1749
boolean agt_return_empty_npcontainers
–return-empty-npcontainers CLI parameter
Definition: agt.h:1858
boolean agt_session_sync_mutex
session sync mutex flag
Definition: agt.h:1004
boolean agt_notif_sequence_id
d: false
Definition: agt.h:1051
for the list of subsystems requesting or in progress for a config load or replay
Definition: agt.h:898
dlq_hdr_t qhdr
queue header
Definition: agt.h:899
xmlChar * subsys_id
malloced subsystem name string
Definition: agt.h:900
SIL-SA PUSH Parameter Block.
Definition: agt.h:905
agt_not_subid_t subscription_id
subscription-id assigned
Definition: agt.h:913
boolean sync_on_start
T: sync-on-start requested; F: no-sync-on-start.
Definition: agt.h:934
dlq_hdr_t qhdr
queue header for sa_push_parmsQ
Definition: agt.h:907
obj_template_t * push_obj
push target object
Definition: agt.h:922
xmlChar * push_target
push target string set on SIL-SA only
Definition: agt.h:919
uint32 push_period
period or dampening period in centiseconds
Definition: agt.h:931
boolean push_active
state data saved by SIL-SA
Definition: agt.h:937
agt_sa_push_op_t push_op
push operation for the push-request
Definition: agt.h:916
boolean is_periodic
T: periodic subscription; F: on-change.
Definition: agt.h:925
xmlChar * push_filter
XPath filter for the subscription.
Definition: agt.h:928
uint32 observer_id
observer ID assigned
Definition: agt.h:910
struct to keep track of the dynamic external yp-system hooks library
Definition: agt.h:2142
agt_system_init1_fn_t init1_fn
init1 callback
Definition: agt.h:2156
status_t init1_status
init1 callback result
Definition: agt.h:2165
boolean cleanup_done
cleanup done flag
Definition: agt.h:2171
dlq_hdr_t qhdr
queue header
Definition: agt.h:2144
xmlChar * libspec
yp-system library spec that was loaded (bundle or module)
Definition: agt.h:2150
agt_system_init_profile_fn_t init_profile_fn
init profile callback
Definition: agt.h:2153
void * handle
handle from dlopen
Definition: agt.h:2147
status_t init2_status
init2 callback result
Definition: agt.h:2168
agt_system_cleanup_fn_t cleanup_fn
cleanup callback
Definition: agt.h:2162
agt_system_init2_fn_t init2_fn
init2 callback
Definition: agt.h:2159
server module info cache record for def_reg_add_mod
Definition: ncxtypes.h:1707
representation of one module or submodule during and after parsing
Definition: ncxtypes.h:1181
One YANG data-def-stmt.
Definition: obj.h:1284
One YANG Patch Request.
Definition: yang_patch.h:155