5f235a9638
* [yang_models]: Update extension yang and types yang with new yang extensions and types respectively. * [YANG] Added CVL specific type and moved sonic-types to j2 template.
56 lines
1.5 KiB
YANG
56 lines
1.5 KiB
YANG
module sonic-breakout_cfg {
|
|
|
|
yang-version 1.1;
|
|
|
|
namespace "http://github.com/Azure/sonic-breakout_cfg";
|
|
prefix breakout_cfg;
|
|
|
|
import sonic-extension {
|
|
prefix ext;
|
|
}
|
|
|
|
description "BREAKOUT_CFG YANG Module for SONiC OS";
|
|
|
|
revision 2020-04-10 {
|
|
description "First Revision";
|
|
}
|
|
|
|
container sonic-breakout_cfg {
|
|
|
|
container BREAKOUT_CFG {
|
|
|
|
description "BREAKOUT_CFG part of config_db.json";
|
|
|
|
list BREAKOUT_CFG_LIST {
|
|
|
|
key "port";
|
|
|
|
|
|
/*
|
|
* This is leaf instead of a leafref towards port, because this
|
|
* table will contains Parent ports and their current breakout-mode,
|
|
* irrespective of port is present in PORT table or not. Specially
|
|
* during Dynamic Port Breakout, Parent Port may not be present in
|
|
* PORT table.
|
|
*/
|
|
leaf port {
|
|
type string {
|
|
length 1..255;
|
|
}
|
|
}
|
|
|
|
leaf brkout_mode {
|
|
description "break_mode for port, it is verifed using platform.json";
|
|
type string {
|
|
length 1..64;
|
|
}
|
|
}
|
|
}
|
|
/* end of list BREAKOUT_CFG_LIST */
|
|
}
|
|
/* end of container BREAKOUT_CFG */
|
|
}
|
|
/* end of top level container */
|
|
}
|
|
/* end of module sonic-breakout_cfg */
|