home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

Error: "Policies are not permitted under both interface and switch-group CLI tree"

Cause

You tried to attach QoS polices to interfaces both in the router mode and the switch mode configuration trees.

Some of our hardware platforms can operate in two different modes:

  • Router mode — where the system performs as a level 3 router
  • Switch mode — where the system performs as a level 2 switch

You will trigger this error if you combine commands like these:

set interfaces dataplane <interface-name> switch-group port-parameters policy qos <policy-name>
set interfaces dataplane <interface-name> policy qos <policy-name>

Remedy

  1. Enter operational mode.
  2. Find out what mode your system is running in.
    user@system:~$ show configuration commands | match "system platform type
  3. Apply one of these solutions:
    • If your system is running in router mode, delete the switch-group command.
    • If your system is running in switch mode, delete the set interfaces dataplane <if-name> policy qos <policy-name> command.