< Home

Configuring Kompella VPLS

This section provides a sample of configuring Kompella VPLS using the edit-config method.

Table 1 Configuring Kompella VPLS

Operation

XPATH

Config

  • huawei-l2vpn:l2vpn/l2vpncommon/l2vpnGlobal/l2vpnEnable
  • huawei-l2vpn:l2vpn/l2vpnvpls/vplsInstances/vplsInstance/instanceName
  • huawei-l2vpn:l2vpn/l2vpnvpls/vplsInstances/vplsInstance/description
  • huawei-l2vpn:l2vpn/l2vpnvpls/vplsInstances/vplsInstance/memberDiscoveryMode
  • huawei-l2vpn:l2vpn/l2vpnvpls/vplsInstances/vplsInstance/encapsulateType
  • huawei-l2vpn:l2vpn/l2vpnvpls/vplsInstances/vplsInstance/vplsBgpInsts/vplsBgpInst/vplsPwBgpSignal
  • huawei-l2vpn:l2vpn/l2vpnvpls/vplsInstances/vplsInstance/vplsBgpInsts/vplsBgpInst/bgpRD
  • huawei-l2vpn:l2vpn/l2vpnvpls/vplsInstances/vplsInstance/vplsBgpInsts/vplsBgpInst/mtuNegotiateDisable
  • huawei-l2vpn:l2vpn/l2vpnvpls/vplsInstances/vplsInstance/vplsBgpInsts/vplsBgpInst/bgpSites/bgpSite/siteId
  • huawei-l2vpn:l2vpn/l2vpnvpls/vplsInstances/vplsInstance/vplsBgpInsts/vplsBgpInst/bgpSites/bgpSite/siteIdRange
  • huawei-l2vpn:l2vpn/l2vpnvpls/vplsInstances/vplsInstance/vplsBgpInsts/vplsBgpInst/bgpSites/bgpSite/defaultOffset
  • huawei-l2vpn:l2vpn/l2vpnvpls/vplsInstances/vplsInstance/vplsBgpInsts/vplsBgpInst/vpnTargets/vpnTarget/vpnRTValue
  • huawei-l2vpn:l2vpn/l2vpnvpls/vplsInstances/vplsInstance/vplsBgpInsts/vplsBgpInst/vpnTargets/vpnTarget/vpnRTType
  • huawei-l2vpn:tnlm:tnlm/tnlm:tunnelPolicys/tnlm:tunnelPolicy/tnlm:tnlPolicyName

Data Requirements

Table 2 Configuring Kompella VPLS

Item

Data

Description

Whether MPLS L2VPN is enabled

true

MPLS L2VPN is enabled.

VPN instance name

jkauto

Set the VPN instance name.

Description of a VSI

huawei

Set the description of a VSI.

Member discovery mode used by a VSI

auto

Set the member discovery mode used by the VSI to auto.

Encapsulation type of an interface

ethernet

Set the encapsulation type of the interface to Ethernet.

Signaling mode for a VSI

pwBgpSignal

Configure the VSI to use the BGP signaling mode.

RD of a VSI

1:1

Set the RD of a VSI.

Whether the function of ignoring the MTU value during a match check and re-encapsulating the sent VPLS packets is enabled

true

Enable the function of ignoring the MTU value during a match check and re-encapsulating the sent VPLS packets.

Site ID of a VSI

4

Set the site ID of a VSI.

Range of the number of sites in a VSI

3

Set the range of the number of sites in the VSI. If the range is specified, the system automatically reserves the required labels for the VSI.

Offset of the initial site ID

1

Adopt the default offset of the initial site ID.

VPN target extended community attribute

1:1

Add the VPN target extended community attribute to the VSI.

Community attributes carried in routing information

export_extcommunity

Define the community attributes carried in outbound routing information.

Community attributes carried in routing information

import_extcommunity

Define the community attributes carried in inbound routing information.

Tunnel policy name

jk

Set the tunnel policy name.

Request Example

<?xml version="1.0" encoding="utf-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="">
  <edit-config>
    <target>
      <running/>
    </target>
    <config xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
      <l2vpn xmlns="http://www.huawei.com/netconf/vrp/huawei-l2vpn" nc:operation="merge">
        <l2vpncommon>
          <l2vpnGlobal>
            <l2vpnEnable>true</l2vpnEnable>
          </l2vpnGlobal>
        </l2vpncommon>
        <l2vpnvpls nc:operation="merge">
          <vplsInstances>
            <vplsInstance>
              <instanceName>jkauto</instanceName>
              <description>huawei</description>
              <memberDiscoveryMode>auto</memberDiscoveryMode>
              <encapsulateType>ethernet</encapsulateType>
              <vplsBgpInsts>
                <vplsBgpInst>
                  <vplsPwBgpSignal>pwBgpSignal</vplsPwBgpSignal>
                  <bgpRD>1:1</bgpRD>
                  <mtuNegotiateDisable>true</mtuNegotiateDisable>
                  <bgpSites>
                    <bgpSite>
                      <siteId>4</siteId>
                      <siteIdRange>3</siteIdRange>
                      <defaultOffset>1</defaultOffset>
                    </bgpSite>
                  </bgpSites>
                  <vpnTargets>
                    <vpnTarget>
                      <vpnRTValue>1:1</vpnRTValue>
                      <vpnRTType>export_extcommunity</vpnRTType>
                    </vpnTarget>
                    <vpnTarget>
                      <vpnRTValue>1:1</vpnRTValue>
                      <vpnRTType>import_extcommunity</vpnRTType>
                    </vpnTarget>
                  </vpnTargets>
                </vplsBgpInst>
              </vplsBgpInsts>
            </vplsInstance>
          </vplsInstances>
        </l2vpnvpls>
      </l2vpn>
      <tnlm:tnlm xmlns:tnlm="http://www.huawei.com/netconf/vrp/huawei-tnlm">
        <tnlm:tunnelPolicys>
          <tnlm:tunnelPolicy>
            <tnlm:tnlPolicyName>jk</tnlm:tnlPolicyName>
          </tnlm:tunnelPolicy>
        </tnlm:tunnelPolicys>
      </tnlm:tnlm>
    </config>
  </edit-config>
</rpc>

Deletion Example

<?xml version="1.0" encoding="utf-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="">
  <edit-config>
    <target>
      <running/>
    </target>
    <config xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
      <l2vpn xmlns="http://www.huawei.com/netconf/vrp/huawei-l2vpn" nc:operation="remove">
        <l2vpncommon>
          <l2vpnGlobal>
            <l2vpnEnable>true</l2vpnEnable>
          </l2vpnGlobal>
        </l2vpncommon>
        <l2vpnvpls nc:operation="remove">
          <vplsInstances>
            <vplsInstance>
              <instanceName>jkauto</instanceName>
              <description>huawei</description>
              <memberDiscoveryMode>auto</memberDiscoveryMode>
              <encapsulateType>ethernet</encapsulateType>
              <vplsBgpInsts>
                <vplsBgpInst>
                  <vplsPwBgpSignal>pwBgpSignal</vplsPwBgpSignal>
                  <bgpRD>1:1</bgpRD>
                  <mtuNegotiateDisable>true</mtuNegotiateDisable>
                  <bgpSites>
                    <bgpSite>
                      <siteId>4</siteId>
                      <siteIdRange>3</siteIdRange>
                      <defaultOffset>1</defaultOffset>
                    </bgpSite>
                  </bgpSites>
                  <vpnTargets>
                    <vpnTarget>
                      <vpnRTValue>1:1</vpnRTValue>
                      <vpnRTType>export_extcommunity</vpnRTType>
                    </vpnTarget>
                    <vpnTarget>
                      <vpnRTValue>1:1</vpnRTValue>
                      <vpnRTType>import_extcommunity</vpnRTType>
                    </vpnTarget>
                  </vpnTargets>
                </vplsBgpInst>
              </vplsBgpInsts>
            </vplsInstance>
          </vplsInstances>
        </l2vpnvpls>
      </l2vpn>
      <tnlm:tnlm xmlns:tnlm="http://www.huawei.com/netconf/vrp/huawei-tnlm">
        <tnlm:tunnelPolicys>
          <tnlm:tunnelPolicy nc:operation="remove">
            <tnlm:tnlPolicyName>jk</tnlm:tnlPolicyName>
          </tnlm:tunnelPolicy>
        </tnlm:tunnelPolicys>
      </tnlm:tnlm>
    </config>
  </edit-config>
</rpc>

Response Example

Sample of successful response
<?xml version="1.0" encoding="utf-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="46">
  <ok/>
</rpc-reply>

Sample of failed response

<?xml version="1.0" encoding="utf-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="27">
  <rpc-error>
    <error-app-tag>-1</error-app-tag>
    <error-message>Need to delete all vsi configure first.</error-message>
    <error-info>Error on node /huawei-l2vpn:l2vpn/l2vpncommon/l2vpnGlobal/l2vpnEnable</error-info>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic