C Header Generated from YANG Model - amybuck/SONiC-NAS GitHub Wiki
This information includes an example which shows the C header file generated from the sFlow YANG model by the SONiC Object Library YANG parser.
The YANG model has two top-level containers:
- YANG list named entry
- YANG container named socket-address
The SONiC Object Library YANG parser generates the C header for this YANG model. The header includes the C definitions for the YANG entities:
-
Category for the YANG model:
-
cps_api_obj_CAT_BASE_SFLOW
-
Subcategory for each YANG container:
-
BASE_SFLOW_ENTRY_OBJ
-
BASE_SFLOW_SOCKET_ADDRESS_OBJ
-
Attribute IDs for each property in each YANG container:
-
BASE_SFLOW_ENTRY_IFINDEX
-
BASE_SFLOW_ENTRY_DIRECTION