-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
9905269
commit b7c0d8d
Showing
9 changed files
with
1,364 additions
and
1,651 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
module openconfig-interfaces-annot { | ||
|
||
yang-version "1"; | ||
|
||
namespace "http://openconfig.net/yang/annotation/openconfig-interfaces-annot"; | ||
prefix "oc-interfaces-annot"; | ||
|
||
import sonic-extensions { prefix sonic-ext; } | ||
import openconfig-interfaces { prefix oc-intf; } | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface { | ||
deviate add { | ||
sonic-ext:key-transformer "intf_tbl_key_xfmr"; | ||
sonic-ext:table-transformer "intf_table_xfmr"; | ||
} | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-eth:ethernet/oc-eth:config { | ||
deviate add { | ||
sonic-ext:subtree-transformer "intf_eth_port_config_xfmr"; | ||
sonic-ext:path-transformer "intf_eth_port_config_path_xfmr"; | ||
} | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-intf:state { | ||
deviate add { | ||
sonic-ext:db-name "APPL_DB"; | ||
} | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-eth:ethernet/oc-eth:state { | ||
deviate add { | ||
sonic-ext:db-name "APPL_DB"; | ||
} | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-eth:ethernet/oc-eth:state/oc-eth:auto-negotiate { | ||
deviate add { | ||
sonic-ext:field-transformer "intf_eth_auto_neg_xfmr"; | ||
sonic-ext:field-name "autoneg"; | ||
} | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-intf:config/oc-intf:mtu { | ||
deviate add { | ||
sonic-ext:field-transformer "intf_mtu_xfmr"; | ||
} | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-eth:ethernet/oc-eth:state/oc-eth:port-speed { | ||
deviate add { | ||
sonic-ext:field-transformer "intf_eth_port_speed_xfmr"; | ||
sonic-ext:field-name "speed"; | ||
} | ||
} | ||
|
||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-intf:state/oc-intf:admin-status { | ||
deviate add { | ||
sonic-ext:field-transformer "intf_admin_status_xfmr"; | ||
sonic-ext:field-name "admin_status"; | ||
} | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-intf:config/oc-intf:enabled { | ||
deviate add { | ||
sonic-ext:field-transformer "intf_enabled_xfmr"; | ||
sonic-ext:field-name "admin_status"; | ||
} | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-intf:state/oc-intf:enabled { | ||
deviate add { | ||
sonic-ext:field-transformer "intf_enabled_xfmr"; | ||
sonic-ext:field-name "admin_status"; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
module openconfig-interfaces-ext { | ||
|
||
yang-version "1.1"; | ||
|
||
// namespace | ||
namespace "http://openconfig.net/yang/interfaces/extension"; | ||
|
||
prefix "oc-intf-ext"; | ||
|
||
import openconfig-extensions { prefix oc-ext; } | ||
import openconfig-interfaces { prefix oc-intf; } | ||
import openconfig-vlan { prefix oc-vlan; } | ||
import openconfig-if-ethernet {prefix oc-eth; } | ||
import openconfig-if-aggregate {prefix oc-lag; } | ||
import openconfig-if-tunnel {prefix oc-tun; } | ||
|
||
|
||
organization "SONiC"; | ||
|
||
contact | ||
"SONiC"; | ||
|
||
description | ||
"This module contains collection of yang definitions for extensions to | ||
openconfig-interfaces yang"; | ||
|
||
oc-ext:openconfig-version "0.1.0"; | ||
|
||
revision 2024-01-18 { | ||
description | ||
"Initial version."; | ||
reference "0.1.0"; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-intf:config/oc-intf:loopback-mode { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-intf:config/oc-vlan:tpid { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-intf:config/oc-intf:type { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-intf:state/oc-intf:loopback-mode { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-intf:state/oc-intf:oper-status { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-intf:state/oc-intf:last-change { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-intf:state/oc-intf:counters { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-intf:state/oc-intf:type { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-intf:state/oc-intf:ifindex { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-intf:state/oc-intf:logical { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-intf:state/oc-vlan:tpid { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-intf:hold-time { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-eth:ethernet/oc-eth:config/oc-eth:mac-address { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-eth:ethernet/oc-eth:config/oc-eth:duplex-mode { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-eth:ethernet/oc-eth:config/oc-eth:enable-flow-control { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-eth:ethernet/oc-eth:config/oc-lag:aggregate-id { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-eth:ethernet/oc-eth:state/oc-eth:mac-address { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-eth:ethernet/oc-eth:state/oc-eth:duplex-mode { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-eth:ethernet/oc-eth:state/oc-eth:enable-flow-control { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-eth:ethernet/oc-eth:state/oc-eth:counters { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-eth:ethernet/oc-eth:state/oc-lag:aggregate-id { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-eth:ethernet/oc-eth:state/oc-eth:hw-mac-address { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-eth:ethernet/oc-eth:state/oc-eth:negotiated-duplex-mode { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-eth:ethernet/oc-eth:state/oc-eth:negotiated-port-speed { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-eth:ethernet/oc-vlan:switched-vlan { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-tun:tunnel { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-lag:aggregation { | ||
deviate not-supported; | ||
} | ||
|
||
deviation /oc-intf:interfaces/oc-intf:interface/oc-vlan:routed-vlan { | ||
deviate not-supported; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.