The e-tree leaf command configures the leaf attribute for a PW.
The undo e-tree leaf command restores the default attribute for a PW.
By default, a PW has the root attribute.
Usage Scenario
In a VPLS domain, AC interfaces bound to the same VSI can communicate with each other. To enhance data security and minimize mutual influences between users, controlling communication between these AC interfaces is required.
VPLS E-Tree can meet this requirement by allowing you to configure the root or leaf attribute for AC interfaces. A root AC interface can communicate with leaf AC interfaces and other root AC interfaces, while a leaf AC interface can communicate only with root AC interfaces. To configure the leaf attribute for a PW run the e-tree leaf command. Configuring this command is recommended if a PW peer device does not support E-Tree but has the leaf attribute.Prerequisites
The following commands must have been configured:
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] mpls l2vpn [*HUAWEI-l2vpn] vsi company1 [*HUAWEI-vsi-company1] e-tree static [*HUAWEI-vsi-company1-etree] root-vlan 100 leaf-vlan 200 [*HUAWEI-vsi-company1-etree] quit [*HUAWEI-vsi-company1] pwsignal ldp [*HUAWEI-vsi-company1-ldp] vsi-id 1 [*HUAWEI-vsi-company1-ldp] peer 2.2.2.2 [*HUAWEI-vsi-company1-ldp] peer 2.2.2.2 pw 2 [*HUAWEI-vsi-company1-ldp-pw-2] e-tree mode c [*HUAWEI-vsi-company1-ldp-pw-2] e-tree mode compatible [*HUAWEI-vsi-company1-ldp-pw-2] e-tree leaf