Skip to content

Commit

Permalink
Merge pull request #276 from e-sonic/SNC-21200_hiding_roce_cli_commands
Browse files Browse the repository at this point in the history
SNC-21200: Hide Roce/buffer-init CLI commands in config session
  • Loading branch information
avinashj-dell authored and GitHub Enterprise committed Dec 5, 2022
2 parents e5634d0 + 04d8c04 commit 7caa70d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CLI/clitree/cli-xml/qos_buffer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ limitations under the License.
<!-- buffer init -->
<COMMAND
name="buffer init" access="netadmin"
test="-z ${__in_session}"
help="Initialize QoS buffer (create buffer pools, profiles and priority-group, queue with profile mapping) based on system defaults"
mode="subcommand"
ptype="SUBCOMMAND"
Expand Down Expand Up @@ -254,6 +255,7 @@ limitations under the License.
<!-- no buffer init -->
<COMMAND
name="no buffer init" access="netadmin"
test="-z ${__in_session}"
help="Clear QoS buffer configuration"
mode="subcommand"
ptype="SUBCOMMAND"
Expand All @@ -278,18 +280,21 @@ limitations under the License.
<!-- RoCE buffers -->
<COMMAND
name="roce" access="netadmin"
test="-z ${__in_session}"
help="Enable RoCEv2 default buffer configuration"
>
</COMMAND>
<COMMAND
name="no roce" access="netadmin"
test="-z ${__in_session}"
help="Disable RoCEv2 default buffer configuration"
>
</COMMAND>

<!-- RoCE enable -->
<COMMAND
name="roce enable" access="netadmin"
test="-z ${__in_session}"
help="Initialize RoCEv2 default buffer configuration"
mode="subcommand"
ptype="SUBCOMMAND"
Expand Down Expand Up @@ -317,6 +322,7 @@ limitations under the License.
<!-- RoCE enable force-deafults-->
<COMMAND
name="roce enable force-defaults" access="netadmin"
test="-z ${__in_session}"
help="Clear any previous applied QOS buffer and force Initialize RoCEv2 default buffer configuration"
mode="subcommand"
ptype="SUBCOMMAND"
Expand All @@ -342,6 +348,7 @@ limitations under the License.
<!-- RoCE disable -->
<COMMAND
name="no roce enable" access="netadmin"
test="-z ${__in_session}"
help="Clear RoCEv2 default lossless buffer configuration"
mode="subcommand"
ptype="SUBCOMMAND"
Expand Down

0 comments on commit 7caa70d

Please sign in to comment.