This is an example of how YANG's submodules can be used to structure a somewhat larger module into logical units. The example is the configuration of a set of services on a Linux-based networking device. There is a master module and a set of submodules:
execd.yang: The master module which defines the namespace and includes all submodules
execd-types.yang: A submodule which contains reusable types. Several other submodules include this one.
execd-interfaces.yang: A submodule for configuration and status of network interfaces.
execd-syslog.yang: A submodule for configuration of logging to remote syslog servers.
execd-dns.yang: A submodule for configuration of the DNS resolver.
execd-ntp.yang: A submodule for configuration and status of the NTP daemon.
FlowMon
This is the data model for configuration data of the FlowMon probe. The YANG model tries to be as close as possible
to the original RELAX NG schema from which
it was manually converted.