From 6669fee728ced1184a5dbf0d70c3d5bfa5ca1d37 Mon Sep 17 00:00:00 2001 From: Jon-Olov Vatn Date: Wed, 22 Nov 2023 08:41:35 +0100 Subject: [PATCH] Draft infix deviations for ieee802-ethernet-interfaces - Add deviations for non-supported statistics - Limit config, currently we only have ro support - Add deviations for non-supported configs and status leafs [skip ci] --- .../infix-ethernet-interface@2023-11-22.yang | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 src/confd/yang/infix-ethernet-interface@2023-11-22.yang diff --git a/src/confd/yang/infix-ethernet-interface@2023-11-22.yang b/src/confd/yang/infix-ethernet-interface@2023-11-22.yang new file mode 100644 index 00000000..7f97f931 --- /dev/null +++ b/src/confd/yang/infix-ethernet-interface@2023-11-22.yang @@ -0,0 +1,62 @@ +module infix-ethernet-interface { + yang-version 1.1; + namespace "urn:infix:ethernet-interface:ns:yang:1.0"; + prefix infix-eth; + + import ieee802-ethernet-interface { + prefix eth; + } + import ietf-interfaces { + prefix if; + } + + organization "KernelKit"; + contact "kernelkit@googlegroups.com"; + description "Extensions and deviations to ieee802-ethernet-interface.yang"; + + revision 2023-11-22 { + description "Initial revision."; + reference "internal"; + } + + /* + * Data Nodes + */ + + + /* Deviations for config and status */ + deviation "/if:interfaces/if:interface/eth:ethernet" { + deviate replace { + config false; + } + } + deviation "/if:interfaces/if:interface/eth:ethernet/eth:flow-control" { + deviate not-supported; + } + deviation "/if:interfaces/if:interface/eth:ethernet/eth:max-frame-length" { + deviate not-supported; + } + deviation "/if:interfaces/if:interface/eth:ethernet/eth:mac-control-extension-control" { + deviate not-supported; + } + deviation "/if:interfaces/if:interface/eth:ethernet/eth:frame-limit-slow-protocol" { + deviate not-supported; + } + deviation "/if:interfaces/if:interface/eth:ethernet/eth:capabilities" { + deviate not-supported; + } + + /* Deviations for statistics */ + deviation "/if:interfaces/if:interface/eth:ethernet/eth:statistics/eth:frame/eth:in-total-frames" { + deviate not-supported; + } + deviation "/if:interfaces/if:interface/eth:ethernet/eth:statistics/eth:frame/eth:out-error-mac-internal-frames" { + deviate not-supported; + } + deviation "/if:interfaces/if:interface/eth:ethernet/eth:statistics/eth:phy" { + deviate not-supported; + } + deviation "/if:interfaces/if:interface/eth:ethernet/eth:statistics/eth:mac-control" { + deviate not-supported; + } +}