ON THIS PAGE
Appendix: Tree Structure of Full YANG Model
In this appendix, the section Legend explains the syntax of the YANG model tree structure
generated with the command pyang -f tree
.
The section YANG Model
Tree Structure gives the output from that command applied to
netrounds-ncc.yang
. Parts of this output are reproduced elsewhere
in the document.
Legend
Each node is printed as: <status> <flags> <name> <opts> <type> <if-features> <status> is one of: + for current x for deprecated o for obsolete <flags> is one of: rw for configuration data ro for non-configuration data -x for rpcs and actions -n for notifications <name> is the name of the node (<name>) means that the node is a choice node :(<name>) means that the node is a case node If the node is augmented into the tree from another module, its name is printed as <prefix>:<name>. <opts> is one of: ? for an optional leaf, choice, anydata or anyxml ! for a presence container * for a leaf-list or list
YANG Model Tree Structure
module: netrounds-ncc +--rw statistics | +--ro users? int32 | +--ro users-created-24h? int32 | +--ro users-active-1h? int32 | +--ro test-agent-appliance? int32 | +--ro test-agent-appliance-online? int32 | +--ro test-agent-application? int32 | +--ro test-agent-application-online? int32 | +--ro monitors-started? int32 | +--ro monitor-tasks-started? int32 | +--ro monitor-tasks-running-http? int32 | +--ro monitor-tasks-running-ping? int32 | +--ro monitor-tasks-running-dns? int32 | +--ro monitor-tasks-running-iptv? int32 | +--ro streams-active? int32 | +--ro accounts? int32 | +--ro accounts-created-24h? int32 | +--ro scheduled-calls-running? int32 | +--ro scheduled-call-latency? decimal64 +--rw accounts +--rw account* [name] +--rw name string +--rw statistics | +--ro users? int32 | +--ro users-created-24h? int32 | +--ro users-active-1h? int32 | +--ro test-agent-appliance? int32 | +--ro test-agent-appliance-online? int32 | +--ro test-agent-application? int32 | +--ro test-agent-application-online? int32 | +--ro monitors-started? int32 | +--ro monitor-tasks-started? int32 | +--ro monitor-tasks-running-http? int32 | +--ro monitor-tasks-running-ping? int32 | +--ro monitor-tasks-running-dns? int32 | +--ro monitor-tasks-running-iptv? int32 | +--ro streams-active? int32 +--rw test-agents | +--rw test-agent* [name] | +--rw name string | +--rw description? string | +--rw tags | | +--rw tag* [name] | | +--rw name -> ../../../../../tags/tag/name | +--ro state | | +--ro last-update? yang:date-and-time | | +--ro status? test-agent-status-t | | +--ro version? string | | +--ro uptime? int64 | | +--ro cpu-usage? percent-t | | +--ro memory-usage? percent-t | | +--ro interface-config-error? string | | +--ro update-error? string | | +--ro ntp | | | +--ro client | | | | +--ro time-offset? decimal64 | | | +--ro sources* [address] | | | +--ro address string | | | +--ro status? string | | | +--ro stratum? int64 | | | +--ro poll-interval? int64 | | | +--ro reach? string | | | +--ro last-rx? int64 | | +--ro load-average | | +--ro last-1-minute? decimal64 | | +--ro last-5-minutes? decimal64 | | +--ro last-15-minutes? decimal64 | +--rw ntp | | +--rw interface? string | | +--rw servers* [address] | | | +--rw address union | | +--rw enable-ipv6? boolean | +--rw management | | +--rw interface? string | | +--rw use-public-address? boolean | +--rw interfaces | | +--rw interface* [name] | | +--rw name string | | +--rw description? string | | +--rw interface-type? interface-type-t | | +--rw mac? yang:mac-address | | +--rw mtu? uint16 | | +--rw speed? speed-t | | +--rw physical | | | +--rw auth | | | +--rw (auth-type)? | | | +--:(eap-tls) | | | | +--rw eap-tls! | | | | +--rw ca-cert? string | | | | +--rw client-cert? string | | | | +--rw identity string | | | | +--rw private-key? string | | | +--:(eap-ttls) | | | | +--rw eap-ttls! | | | | +--rw ca-cert? string | | | | +--rw identity string | | | | +--rw anonymous-identity? string | | | | +--rw password string | | | +--:(peap) | | | +--rw peap! | | | +--rw ca-cert? string | | | +--rw identity string | | | +--rw anonymous-identity? string | | | +--rw password string | | +--rw bridge | | | +--rw members | | | +--rw member* [interface] | | | +--rw interface -> ../../../../../interface/name | | +--rw vlan | | | +--rw id vlan-id-t | | | +--rw parent -> ../../../interface/name | | +--rw wifi | | | +--rw ssid? string | | | +--rw bssid? yang:mac-address | | | +--rw country? string | | | +--rw ht boolean | | | +--rw ht40 boolean | | | +--rw vht boolean | | | +--rw sgi boolean | | | +--rw ldpc boolean | | | +--rw ht-mcs? string | | | +--rw vht-max-mcs uint8 | | | +--rw vht-max-mimo uint8 | | | +--rw freq-2-4 boolean | | | +--rw freq-5 boolean | | | +--rw auth | | | +--rw (auth-type)? | | | +--:(personal) | | | | +--rw personal! | | | | +--rw cipher cipher-auth-t | | | | +--rw password string | | | +--:(eap-tls) | | | | +--rw eap-tls! | | | | +--rw cipher cipher-auth-t | | | | +--rw ca-cert? string | | | | +--rw client-cert? string | | | | +--rw identity string | | | | +--rw private-key? string | | | +--:(eap-ttls) | | | | +--rw eap-ttls! | | | | +--rw cipher cipher-auth-t | | | | +--rw ca-cert? string | | | | +--rw identity string | | | | +--rw anonymous-identity? string | | | | +--rw password string | | | +--:(peap) | | | +--rw peap! | | | +--rw cipher cipher-auth-t | | | +--rw ca-cert? string | | | +--rw identity string | | | +--rw anonymous-identity? string | | | +--rw password string | | +--rw mobile | | | +--rw apn? string | | | +--rw pdp_type string | | | +--rw rat_band mobile-rat-band-t | | | +--rw rat_mode mobile-rat-mode-t | | +--rw interface-config | | +--rw ipv4-address | | | +--rw (address-type)? | | | +--:(static) | | | | +--rw static! | | | | +--rw address tailf:ipv4-address-and-prefix-length | | | | +--rw routes* [network] | | | | | +--rw network tailf:ipv4-address-and-prefix-length | | | | | +--rw gateway inet:ipv4-address | | | | +--rw dns-servers* inet:ipv4-address | | | +--:(dhcp) | | | +--rw dhcp! | | | +--rw vendor-id? string | | +--rw ipv6-address | | +--rw (address-type)? | | +--:(static) | | | +--rw static! | | | +--rw address tailf:ipv6-address-and-prefix-length | | | +--rw routes* [network] | | | | +--rw network tailf:ipv6-address-and-prefix-length | | | | +--rw gateway inet:ipv6-address | | | +--rw dns-servers* inet:ipv6-address | | +--:(dhcp) | | | +--rw dhcp! | | | +--rw vendor-id? string | | +--:(slaac) | | +--rw slaac! | | +--rw dns-servers* inet:ipv6-address | +--rw ssh-keys | +--rw ssh-key* [name] | +--rw name string | +--rw ssh-key-value string | +--ro test-agent? -> /accounts/account/test-agents/test-agent/name +--ro registered-test-agents | +--ro test-agent* [name] | +--ro name string | +--ro description? string | +--ro tags | | +--ro tag* [name] | | +--ro name -> ../../../../../tags/tag/name | +--ro state | | +--ro last-update? yang:date-and-time | | +--ro status? test-agent-status-t | | +--ro version? string | | +--ro uptime? int64 | | +--ro cpu-usage? percent-t | | +--ro memory-usage? percent-t | | +--ro interface-config-error? string | | +--ro update-error? string | | +--ro ntp | | | +--ro client | | | | +--ro time-offset? decimal64 | | | +--ro sources* [address] | | | +--ro address string | | | +--ro status? string | | | +--ro stratum? int64 | | | +--ro poll-interval? int64 | | | +--ro reach? string | | | +--ro last-rx? int64 | | +--ro load-average | | +--ro last-1-minute? decimal64 | | +--ro last-5-minutes? decimal64 | | +--ro last-15-minutes? decimal64 | +--ro ntp | | +--ro interface? string | | +--ro servers* [address] | | | +--ro address union | | +--ro enable-ipv6? boolean | +--ro management | | +--ro interface? string | | +--ro use-public-address? boolean | +--ro interfaces | | +--ro interface* [name] | | +--ro name string | | +--ro description? string | | +--ro interface-type? interface-type-t | | +--ro mac? yang:mac-address | | +--ro mtu? uint16 | | +--ro speed? speed-t | | +--ro physical | | | +--ro auth | | | +--ro (auth-type)? | | | +--:(eap-tls) | | | | +--ro eap-tls! | | | | +--ro ca-cert? string | | | | +--ro client-cert? string | | | | +--ro identity string | | | | +--ro private-key? string | | | +--:(eap-ttls) | | | | +--ro eap-ttls! | | | | +--ro ca-cert? string | | | | +--ro identity string | | | | +--ro anonymous-identity? string | | | | +--ro password string | | | +--:(peap) | | | +--ro peap! | | | +--ro ca-cert? string | | | +--ro identity string | | | +--ro anonymous-identity? string | | | +--ro password string | | +--ro bridge | | | +--ro members | | | +--ro member* [interface] | | | +--ro interface -> ../../../../../interface/name | | +--ro vlan | | | +--ro id vlan-id-t | | | +--ro parent -> ../../../interface/name | | +--ro wifi | | | +--ro ssid? string | | | +--ro bssid? yang:mac-address | | | +--ro country? string | | | +--ro ht boolean | | | +--ro ht40 boolean | | | +--ro vht boolean | | | +--ro sgi boolean | | | +--ro ldpc boolean | | | +--ro ht-mcs? string | | | +--ro vht-max-mcs uint8 | | | +--ro vht-max-mimo uint8 | | | +--ro freq-2-4 boolean | | | +--ro freq-5 boolean | | | +--ro auth | | | +--ro (auth-type)? | | | +--:(personal) | | | | +--ro personal! | | | | +--ro cipher cipher-auth-t | | | | +--ro password string | | | +--:(eap-tls) | | | | +--ro eap-tls! | | | | +--ro cipher cipher-auth-t | | | | +--ro ca-cert? string | | | | +--ro client-cert? string | | | | +--ro identity string | | | | +--ro private-key? string | | | +--:(eap-ttls) | | | | +--ro eap-ttls! | | | | +--ro cipher cipher-auth-t | | | | +--ro ca-cert? string | | | | +--ro identity string | | | | +--ro anonymous-identity? string | | | | +--ro password string | | | +--:(peap) | | | +--ro peap! | | | +--ro cipher cipher-auth-t | | | +--ro ca-cert? string | | | +--ro identity string | | | +--ro anonymous-identity? string | | | +--ro password string | | +--ro mobile | | | +--ro apn? string | | | +--ro pdp_type string | | | +--ro rat_band mobile-rat-band-t | | | +--ro rat_mode mobile-rat-mode-t | | +--ro interface-config | | +--ro ipv4-address | | | +--ro (address-type)? | | | +--:(static) | | | | +--ro static! | | | | +--ro address tailf:ipv4-address-and-prefix-length | | | | +--ro routes* [network] | | | | | +--ro network tailf:ipv4-address-and-prefix-length | | | | | +--ro gateway inet:ipv4-address | | | | +--ro dns-servers* inet:ipv4-address | | | +--:(dhcp) | | | +--ro dhcp! | | | +--ro vendor-id? string | | +--ro ipv6-address | | +--ro (address-type)? | | +--:(static) | | | +--ro static! | | | +--ro address tailf:ipv6-address-and-prefix-length | | | +--ro routes* [network] | | | | +--ro network tailf:ipv6-address-and-prefix-length | | | | +--ro gateway inet:ipv6-address | | | +--ro dns-servers* inet:ipv6-address | | +--:(dhcp) | | | +--ro dhcp! | | | +--ro vendor-id? string | | +--:(slaac) | | +--ro slaac! | | +--ro dns-servers* inet:ipv6-address | +--ro ssh-keys | +--ro ssh-key* [name] | +--ro name string | +--ro ssh-key-value string | +--ro test-agent? -> /accounts/account/test-agents/test-agent/name +--rw tags | +--rw tag* [name] | +--rw name string | +--rw color? string +--ro tests | +--ro test* [id] | | +--ro id uint32 | | +--ro name? string | | +--ro status? test-status-t | | +--ro start-time? yang:date-and-time | | +--ro end-time? yang:date-and-time | | +--ro report-url? string | | +--ro report-url-pdf? string | | +--ro steps | | +--ro step* [id] | | +--ro id uint32 | | +--ro name? string | | +--ro start-time? yang:date-and-time | | +--ro end-time? yang:date-and-time | | +--ro status? test-status-t | | +--ro status-message? string | +--ro templates | +--ro template* [name] | +--ro name string | +--ro description? string | +--ro tags? string | +--ro parameters | +--ro parameter* [key] | +--ro key string | +--ro type? parameter-type-t +--rw twamp-reflectors | +--rw twamp-reflector* [name] | +--rw name string | +--rw address string | +--rw ipv6? boolean | +--rw port uint16 | +--rw control-port? uint16 | +--rw gps-lat? gps-lat-t | +--rw gps-long? gps-long-t | +--rw tags | +--rw tag* [name] | +--rw name -> ../../../../../tags/tag/name +--rw ping-hosts | +--rw ping-host* [name] | +--rw name string | +--rw host string | +--rw ipv6? boolean | +--rw gps-lat? gps-lat-t | +--rw gps-long? gps-long-t | +--rw tags | +--rw tag* [name] | +--rw name -> ../../../../../tags/tag/name +--rw y1731-meps | +--rw y1731-mep* [name] | +--rw name string | +--rw mac yang:mac-address | +--rw meg-level uint8 +--rw iptv-channels | +--rw iptv-channel* [name] | +--rw name string | +--rw ip string | +--rw source? string | +--rw port uint16 | +--rw pnum? uint16 +--rw sip-accounts | +--rw sip-account* [sip-address] | +--rw sip-address ascii-string-t | +--rw registrar? ascii-string-t | +--rw password ascii-string-t | +--rw proxy? ascii-string-t | +--rw user-auth? ascii-string-t | +--rw uri-rewrite? ascii-string-t +--rw monitors | +--rw monitor* [name] | | +--rw name string | | +--rw description? string | | +--rw started? boolean | | +--rw template string | | +--rw tags | | | +--rw tag* [name] | | | +--rw name -> ../../../../../tags/tag/name | | +--rw alarm-configs | | | +--rw alarm-config* [identifier] | | | +--rw identifier string | | | +--rw template? -> ../../../../../alarm-templates/alarm-template/name | | | +--rw email? -> ../../../../../alarm-email-lists/alarm-email-list/name | | | +--rw snmp? -> ../../../../../snmp-managers/snmp-manager/name | | | +--rw thr-es-critical? uint16 | | | +--rw thr-es-critical-clear? uint16 | | | +--rw thr-es-major? uint16 | | | +--rw thr-es-major-clear? uint16 | | | +--rw thr-es-minor? uint16 | | | +--rw thr-es-minor-clear? uint16 | | | +--rw thr-es-warning? uint16 | | | +--rw thr-es-warning-clear? uint16 | | | +--rw no-data-severity? uint16 | | | +--rw no-data-timeout? uint16 | | | +--rw action? string | | | +--rw window-size? uint16 | | | +--rw interval? uint16 | | | +--rw send-only-once? boolean | | | +--rw snmp-trap-per-stream? boolean | | +--rw parameters | | | +--rw parameter* [key] | | | +--rw key string | | | +--rw (value-type) | | | +--:(integer) | | | | +--rw integer? int64 | | | +--:(float) | | | | +--rw float? decimal64 | | | +--:(string) | | | | +--rw string? string | | | +--:(test-agent-interfaces) | | | | +--rw test-agent-interfaces | | | | +--rw test-agent-interface* [account test-agent interface] | | | | +--rw account -> ../../../../../../../name | | | | +--rw test-agent -> ../../../../../../../test-agents/test-agent/name | | | | +--rw interface string | | | | +--rw ip-version? inet:ip-version | | | +--:(twamp-reflectors) | | | | +--rw twamp-reflectors | | | | +--rw twamp-reflector* [name] | | | | +--rw name -> ../../../../../../../twamp-reflectors/twamp-reflector/name | | | +--:(ping-hosts) | | | | +--rw ping-hosts | | | | +--rw ping-host* [name] | | | | +--rw name -> ../../../../../../../ping-hosts/ping-host/name | | | +--:(y1731-meps) | | | | +--rw y1731-meps | | | | +--rw y1731-mep* [name] | | | | +--rw name -> ../../../../../../../y1731-meps/y1731-mep/name | | | +--:(sip-accounts) | | | | +--rw sip-accounts | | | | +--rw sip-account* [account test-agent interface sip-address] | | | | +--rw account -> ../../../../../../../name | | | | +--rw test-agent -> ../../../../../../../test-agents/test-agent/name | | | | +--rw interface -> deref(../test-agent)/../interfaces/interface/name | | | | +--rw sip-address -> ../../../../../../../sip-accounts/sip-account/sip-address | | | +--:(iptv-channels) | | | +--rw iptv-channels | | | +--rw iptv-channel* [name] | | | +--rw name -> ../../../../../../../iptv-channels/iptv-channel/name | | +--ro status | | +--ro id? uint32 | | +--ro last-15-minutes | | | +--ro status? monitor-sla-status-t | | | +--ro status-value? percent-t | | +--ro last-hour | | | +--ro status? monitor-sla-status-t | | | +--ro status-value? percent-t | | +--ro last-24-hours | | +--ro status? monitor-sla-status-t | | +--ro status-value? percent-t | +--ro templates | +--ro template* [name] | +--ro name string | +--ro description? string | +--ro parameters | | +--ro parameter* [key] | | +--ro key string | | +--ro type? parameter-type-t | +--ro tags? string +--rw alarm-templates | +--rw alarm-template* [name] | +--rw name string | +--rw email? -> ../../../alarm-email-lists/alarm-email-list/name | +--rw snmp? -> ../../../snmp-managers/snmp-manager/name | +--rw thr-es-critical? uint16 | +--rw thr-es-critical-clear? uint16 | +--rw thr-es-major? uint16 | +--rw thr-es-major-clear? uint16 | +--rw thr-es-minor? uint16 | +--rw thr-es-minor-clear? uint16 | +--rw thr-es-warning? uint16 | +--rw thr-es-warning-clear? uint16 | +--rw no-data-severity? uint16 | +--rw no-data-timeout? uint16 | +--rw action? string | +--rw window-size? uint16 | +--rw interval? uint16 | +--rw send-only-once? boolean | +--rw snmp-trap-per-stream? boolean +--rw alarm-email-lists | +--rw alarm-email-list* [name] | +--rw name string | +--rw addresses* string +--rw snmp-managers +--rw snmp-manager* [name] +--rw name string +--rw ip? string +--rw port? uint16 +--rw version? string +--rw community? string +--rw engine-id? string +--rw user-name? string +--rw security? snmp-security-t +--rw auth-password? string +--rw priv-password? string rpcs: +---x start-test | +---w input | | +---w name string | | +---w account -> /accounts/account/name | | +---w template string | | +---w parameters | | +---w parameter* [key] | | +---w key string | | +---w (value-type) | | +--:(integer) | | | +---w integer? int64 | | +--:(float) | | | +---w float? decimal64 | | +--:(string) | | | +---w string? string | | +--:(test-agent-interfaces) | | | +---w test-agent-interfaces | | | +---w test-agent-interface* [account test-agent interface] | | | +---w account -> ../../../../../account | | | +---w test-agent -> deref(../../../../../account)/../test-agents/test-agent/name | | | +---w interface string | | | +---w ip-version? inet:ip-version | | +--:(twamp-reflectors) | | | +---w twamp-reflectors | | | +---w twamp-reflector* [name] | | | +---w name -> deref(../../../../../account)/../twamp-reflectors/twamp-reflector/name | | +--:(ping-hosts) | | | +---w ping-hosts | | | +---w ping-host* [name] | | | +---w name -> deref(../../../../../account)/../ping-hosts/ping-host/name | | +--:(y1731-meps) | | | +---w y1731-meps | | | +---w y1731-mep* [name] | | | +---w name -> deref(../../../../../account)/../y1731-meps/y1731-mep/name | | +--:(iptv-channels) | | | +---w iptv-channels | | | +---w iptv-channel* [name] | | | +---w name -> deref(../../../../../account)/../iptv-channels/iptv-channel/name | | +--:(sip-accounts) | | +---w sip-accounts | | +---w sip-account* [account test-agent interface sip-address] | | +---w account -> ../../../../../account | | +---w test-agent -> deref(../../../../../account)/../test-agents/test-agent/name | | +---w interface -> deref(../test-agent)/../interfaces/interface/name | | +---w sip-address -> deref(../../../../../account)/../sip-accounts/sip-account/sip-address | +--ro output | +--ro result test-status-t | +--ro id? uint32 | +--ro error-text? string +---x sync-from-ncc | +---w input | | +---w without_interface_config? boolean | +--ro output | +--ro success boolean | +--ro error-text? string +---x reboot-test-agents | +---w input | | +---w test-agents | | +---w (all-or-list) | | +--:(test-agent) | | | +---w test-agent* [account name] | | | +---w account -> /accounts/account/name | | | +---w name -> deref(../account)/../test-agents/test-agent/name | | +--:(all-in-account) | | +---w all-in-account? -> /accounts/account/name | +--ro output | +--ro test-agents-failed* [account name] | | +--ro account -> /accounts/account/name | | +--ro name -> /accounts/account/test-agents/test-agent/name | | +--ro reason? string | +--ro error-text? string +---x update-test-agents | +---w input | | +---w test-agents | | +---w (all-or-list) | | +--:(test-agent) | | | +---w test-agent* [account name] | | | +---w account -> /accounts/account/name | | | +---w name -> deref(../account)/../test-agents/test-agent/name | | +--:(all-in-account) | | +---w all-in-account? -> /accounts/account/name | +--ro output | +--ro test-agents-failed* [account name] | | +--ro account -> /accounts/account/name | | +--ro name -> /accounts/account/test-agents/test-agent/name | | +--ro reason? string | +--ro error-text? string +---x sync-test-agents-stats | +---w input | | +---w test-agents | | +---w (all-or-list) | | +--:(test-agent) | | | +---w test-agent* [account name] | | | +---w account -> /accounts/account/name | | | +---w name -> deref(../account)/../test-agents/test-agent/name | | +--:(all-in-account) | | +---w all-in-account? -> /accounts/account/name | +--ro output | +--ro test-agents-failed* [account name] | | +--ro account -> /accounts/account/name | | +--ro name -> /accounts/account/test-agents/test-agent/name | | +--ro reason? string | +--ro error-text? string +---x export-test-templates | +---w input | | +---w account -> /accounts/account/name | | +---w templates | | +---w template* [name] | | +---w name -> deref(../../../account)/../tests/templates/template/name | +--ro output | +--ro data string | +--ro warnings string | +--ro error-text? string +---x export-monitor-templates | +---w input | | +---w account -> /accounts/account/name | | +---w templates | | +---w template* [name] | | +---w name -> deref(../../../account)/../monitors/templates/template/name | +--ro output | +--ro data string | +--ro warnings string | +--ro error-text? string +---x import-test-templates | +---w input | | +---w account -> /accounts/account/name | | +---w overwrite? boolean | | +---w data string | +--ro output | +--ro warnings string | +--ro error-text? string +---x import-monitor-templates +---w input | +---w account -> /accounts/account/name | +---w overwrite? boolean | +---w data string +--ro output +--ro warnings string +--ro error-text? string notifications: +---n test-agent-status-change | +--ro account -> /accounts/account/name | +--ro test-agent -> /accounts/account/test-agents/test-agent/name | +--ro status test-agent-status-t | +--ro tags? string +---n test-status-change | +--ro account -> /accounts/account/name | +--ro id -> /accounts/account/tests/test/id | +--ro status test-status-t | +--ro finished? boolean +---n monitor-sla-status-change +--ro account -> /accounts/account/name +--ro monitor -> /accounts/account/monitors/monitor/name +--ro status monitor-sla-status-t +--ro prev-status monitor-sla-status-t +--ro url string +--ro tags? string