Bridge Group

This scenario shows how to prevents a user from creating a VIF on a port that belongs to a bridge.

Test validation bridge-group

Description

A VIF can be configured on an interface that is already associated to a bridge, which could lead to errors and unexpected behavior In this case, a commit validation has been added so now the user will not be able to confgure a port if it is already associated to a bridge-group

Scenario

Step 1: Set the following configuration in DUT0 and expect this output:

set interfaces bridge br0
set interfaces ethernet eth0 bridge-group bridge br0
set interfaces ethernet eth0 vif 100 address 1.1.1.1/32
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Show output
[ interfaces ethernet eth0 bridge-group ]
Interface "eth0" can not have a VIF configured in bridge mode
Commit validation failed
CLI Error: Command error