diff options
Diffstat (limited to 'src/plugins/yang/openconfig/openconfig-igmp-types.yang')
-rw-r--r-- | src/plugins/yang/openconfig/openconfig-igmp-types.yang | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/plugins/yang/openconfig/openconfig-igmp-types.yang b/src/plugins/yang/openconfig/openconfig-igmp-types.yang new file mode 100644 index 0000000..5fe22e7 --- /dev/null +++ b/src/plugins/yang/openconfig/openconfig-igmp-types.yang @@ -0,0 +1,53 @@ +module openconfig-igmp-types { + + yang-version "1"; + + // namespace + namespace "http://openconfig.net/yang/igmp/types"; + + prefix "oc-igmp-types"; + + // import some basic types + import openconfig-extensions { prefix "oc-ext"; } + + // meta + organization + "OpenConfig working group"; + + contact + "OpenConfig working group + www.openconfig.net"; + + description + "This module defines types related to the IGMP protocol model."; + + oc-ext:openconfig-version "0.1.0"; + + revision "2018-02-19" { + description + "Initial revision."; + reference "0.1.0"; + } + + // typedef statements + + typedef igmp-version { + type uint8 { + range 1..3; + } + description + "IGMP Version."; + reference "v1 = RFC1112, v2 = RFC2236, v3 = RFC3376"; + } + + typedef igmp-interval-type { + type uint16 { + range 1..1024; + } + units "seconds"; + description + "Interval at which the router sends the IGMP query message toward + the upstream neighbor."; + reference "RFC3376 8.2 Page 40"; + } +} |