Skip to content

Commit

Permalink
Merge pull request sonic-net#28 from e-sonic/default_lossless_leaf_re…
Browse files Browse the repository at this point in the history
…moval

[SNC-16197] Remove default-lossless-buffer-profile leaf
  • Loading branch information
bhavini-gada authored and GitHub Enterprise committed Jan 31, 2022
2 parents 07c27d5 + 9dc39b0 commit 30a4e24
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 93 deletions.
13 changes: 0 additions & 13 deletions cvl/custom_validation/sonic_qos_buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,16 +407,3 @@ func (t *CustomValidation) ValidateGetOper(
}
return CVLErrorInfo{ErrCode: CVL_SUCCESS}
}

func (t *CustomValidation) ValidateGetOperLeaf(
vc *CustValidationCtxt) CVLErrorInfo {

if (vc.CurCfg.VOp == OP_CREATE) || (vc.CurCfg.VOp == OP_UPDATE) || (vc.CurCfg.VOp == OP_DELETE) {
return CVLErrorInfo{
ErrCode: CVL_ERROR,
ConstraintErrMsg: "Only Get operation allowed for default_lossless_buffer_profile!",
ErrAppTag: "invalid-operation",
}
}
return CVLErrorInfo{ErrCode: CVL_SUCCESS}
}
16 changes: 0 additions & 16 deletions models/yang/annotations/openconfig-qos-annot.yang
Original file line number Diff line number Diff line change
Expand Up @@ -1025,20 +1025,4 @@ module openconfig-qos-annot {
sonic-ext:field-name "qindex";
}
}

deviation /oc-qos:qos/oc-qos:interfaces/oc-qos:interface/oc-qos-dev:buffer/oc-qos-dev:config/oc-qos-dev:default-lossless-buffer-profile {
deviate add {
sonic-ext:table-name "PORT";
sonic-ext:field-name "default_lossless_buffer_profile";
}
}

deviation /oc-qos:qos/oc-qos:interfaces/oc-qos:interface/oc-qos-dev:buffer/oc-qos-dev:state/oc-qos-dev:default-lossless-buffer-profile {
deviate add {
sonic-ext:db-name "APPL_DB";
sonic-ext:table-name "PORT_TABLE";
sonic-ext:field-name "default_lossless_buffer_profile";
}
}

}
47 changes: 0 additions & 47 deletions models/yang/extensions/openconfig-qos-deviation.yang
Original file line number Diff line number Diff line change
Expand Up @@ -124,51 +124,4 @@ module openconfig-qos-deviation {
deviation /oc-qos:qos/oc-qos:classifiers {
deviate not-supported;
}

grouping qos-interface-buffer-top {
description
"Qos Buffer for interface.";

container buffer {
description
"Qos data for interface";

container config {
description
"Configuration data for Qos";

leaf default-lossless-buffer-profile {
type boolean;
default false;
description
"Enable/disable the creation and use of the system's pre-defined
default lossless buffer-profiles during QoS-buffer initialization.
When disabled (false) the default lossless buffer-profiles
(e.g. pg_lossless_40000_300m_profile) will not be created
automatically and the user can define their customized lossless
buffer-profiles.";
}
}

container state {
config false;
description
"Operational data for Qos";

leaf default-lossless-buffer-profile {
type boolean;
description
"Use of system's pre-defined default lossless buffer-profiles is enabled/disabled.";
}
}
}
}

augment /oc-qos:qos/oc-qos:interfaces/oc-qos:interface {
description
"Configuration and operational specific data for Qos-Buffer on interfaces.";
uses qos-interface-buffer-top;
}


}
17 changes: 0 additions & 17 deletions models/yang/sonic/sonic-port.yang
Original file line number Diff line number Diff line change
Expand Up @@ -189,18 +189,6 @@ module sonic-port {
}
uses errdisable_link_flap_config;

leaf default_lossless_buffer_profile {
type boolean;
default false;
sonic-ext:custom-validation ValidateGetOperLeaf;
description
"Enable/disable the creation and use of the system's pre-defined
default lossless buffer-profiles during QoS-buffer initialization.
When disabled (false) the default lossless buffer-profiles
(e.g. pg_lossless_40000_300m_profile) will not be created
automatically and the user can define their customized lossless
buffer-profiles.";
}
}
}
container PORT_TABLE {
Expand Down Expand Up @@ -288,11 +276,6 @@ module sonic-port {
type string;
}

leaf default_lossless_buffer_profile {
type boolean;
description
"Use of system's pre-defined default lossless buffer-profiles is enabled/disabled.";
}
}
}
}
Expand Down

0 comments on commit 30a4e24

Please sign in to comment.