No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NETCONF YANG API Reference

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

NETCONF YANG API Reference
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
ATM

ATM

Data Model

The data model file matching ATM is huawei-atm.yang, which references the basic definition in ietf-interfaces.yang. The data model is defined by Huawei.

Table 3-156 ATM data model

Object

Description

/ietf-interfaces:interfaces/interface/huawei-atm:atm/pvc/vpi

Specifies vpi as the virtual path identifier (VPI) on the ATM network.

/ietf-interfaces:interfaces/interface/huawei-atm:atm/pvc/vci

Specifies vci as the virtual channel identifier (VCI) on the ATM network.

/ietf-interfaces:interfaces/interface/huawei-atm:atm/pvc/name

Specifies a PVC name.

The value of vpi/vci for each PVC must be unique on an ATM interface (including main interfaces and sub-interfaces).

/ietf-interfaces:interfaces/interface/huawei-atm:atm/pvc/connection-mode/pvc-map/ppp/interface-specific

Specifies the interface on which PPPoA mapping is configured.

/ietf-interfaces:interfaces/interface/huawei-atm:atm/pvc/connection-mode/pvc-map/ip/manual-ip

Specifies the peer IP address that IPoA is mapped to the PVC.

/ietf-interfaces:interfaces/interface/huawei-atm:atm/pvc/connection-mode/pvc-map/bridge/interface-specific

Specifies the interface of a PVC on which IPoEoA mapping or PPPoEoA mapping is configured.

Creating a PVC with Specified VPI/VCI and Entering the PVC View

This section provides a sample of creating a PVC with specified VPI/VCI and entering the PVC view.

Table 3-157 Creating a PVC with specified VPI/VCI and entering the PVC view

Operation

XPATH

edit-config:merge

/ietf-interfaces:interfaces/ietf-interfaces:interface/huawei-atm:atm/pvc/vpi

/ietf-interfaces:interfaces/ietf-interfaces:interface/huawei-atm:atm/pvc/vci

/ietf-interfaces:interfaces/ietf-interfaces:interface/huawei-atm:atm/pvc/name

Data Requirements
Table 3-158 Creating a PVC with specified VPI/VCI and entering the PVC view

Item

Data

Description

ATM interface

atm0/0/0

Create a PVC named pppoa1 with VPI/VCI set to 3/53 on ATM interface ATM0/0/0.

VPI

3

VCI

53

PVC name

pppoa1

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface>
     <name>atm0/0/0</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:atm</type>
     <enabled>true</enabled>
     <atm xmlns="urn:huawei:params:xml:ns:yang:huawei-atm" xc:operation="merge">
      <pvc>
       <vpi>3</vpi>
       <vci>53</vci>
       <name>pppoa1</name>
      </pvc>
     </atm>
    </interface>
   </interfaces>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <ok/>
</rpc-reply>  

Deleting a Specified PVC

This section provides a sample of deleting the specified PVC.

Table 3-159 Deleting a specified PVC

Operation

XPATH

edit-config:remove

/ietf-interfaces:interfaces/ietf-interfaces:interface/huawei-atm:atm/pvc

Data Requirements
Table 3-160 Deleting a specified PVC

Item

Data

Description

ATM interface

atm0/0/0

Delete the PVC named pppoa1 with VPI/VCI set to 3/53 on ATM interface ATM0/0/0.

VPI

3

VCI

53

PVC name

pppoa1

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface>
     <name>atm0/0/0</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:atm</type>
     <enabled>true</enabled>
     <atm xmlns="urn:huawei:params:xml:ns:yang:huawei-atm" xc:operation="remove">
      <pvc>
       <vpi>3</vpi>
       <vci>53</vci>
       <name>pppoa1</name>
      </pvc>
     </atm>
    </interface>
   </interfaces>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <ok/>
</rpc-reply>  

Configuring PPPoA Mapping

This section provides a sample of configuring PPPoA mapping.

Table 3-161 Configuring PPPoA mapping

Operation

XPATH

edit-config:merge

/ietf-interfaces:interfaces/interface/huawei-atm:atm/pvc/connection-mode/pvc-map/ppp/interface-specific

Data Requirements
Table 3-162 Configuring PPPoA mapping

Item

Data

Description

ATM interface

atm0/0/0

Create a PVC named pppoa0 with VPI/VCI set to 3/53 on ATM interface ATM0/0/0.

VPI

3

VCI

53

PVC name

pppoa0

Dialer interface corresponding to PPPoA

Dialer1

Set the dialer interface corresponding to PPPoA to Dialer1.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface>
     <name>atm0/0/0</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:atm</type>
     <enabled>true</enabled>
     <atm xmlns="urn:huawei:params:xml:ns:yang:huawei-atm" xc:operation="merge">
      <pvc>
       <vpi>3</vpi>
       <vci>53</vci>
       <name>pppoa0</name>
       <connection-mode xc:operation="merge">
        <ppp>
         <interface-specific>Dialer1</interface-specific>
        </ppp>
       </connection-mode>
      </pvc>
     </atm>
    </interface>
   </interfaces>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <ok/>
</rpc-reply>  

Modifying PPPoA Mapping

This section provides a sample of modifying PPPoA mapping.

Table 3-163 Modifying PPPoA mapping

Operation

XPATH

edit-config:replace

/ietf-interfaces:interfaces/interface/huawei-atm:atm/pvc/connection-mode/pvc-map/ppp/interface-specific

Data Requirements
Table 3-164 Modifying PPPoA mapping

Item

Data

Description

ATM interface

atm0/0/0

The PVC named pppoa0 with VPI/VCI set to 3/53 has been created on ATM interface ATM0/0/0.

VPI

3

VCI

53

PVC name

pppoa0

Dialer interface corresponding to PPPoA

Dialer2

Modify the dialer interface corresponding to PPPoA to Dialer2.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface>
     <name>atm0/0/0</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:atm</type>
     <enabled>true</enabled>
     <atm xmlns="urn:huawei:params:xml:ns:yang:huawei-atm" xc:operation="merge">
      <pvc>
       <vpi>3</vpi>
       <vci>53</vci>
       <name>pppoa0</name>
       <connection-mode xc:operation="replace">
        <ppp>
         <interface-specific>Dialer2</interface-specific>
        </ppp>
       </connection-mode>
      </pvc>
     </atm>
    </interface>
   </interfaces>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <ok/>
</rpc-reply>  

Deleting PPPoA Mapping

This section provides a sample of deleting PPPoA mapping.

Table 3-165 Deleting PPPoA mapping

Operation

XPATH

edit-config:remove

/ietf-interfaces:interfaces/interface/huawei-atm:atm/pvc/connection-mode/pvc-map/ppp

Data Requirements
Table 3-166 Deleting PPPoA mapping

Item

Data

Description

ATM interface

atm0/0/0

The PVC named pppoa0 with VPI/VCI set to 3/53 has been created on ATM interface ATM0/0/0.

VPI

3

VCI

53

PVC name

pppoa0

Dialer interface corresponding to PPPoA

Dialer1

Delete PPPoA mapping of the interface Dialer1.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface>
     <name>atm0/0/0</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:atm</type>
     <enabled>true</enabled>
     <atm xmlns="urn:huawei:params:xml:ns:yang:huawei-atm" xc:operation="merge">
      <pvc>
       <vpi>3</vpi>
       <vci>53</vci>
       <name>pppoa0</name>
       <connection-mode xc:operation="remove">
        <ppp>
         <interface-specific>Dialer1</interface-specific>
        </ppp>
       </connection-mode>
      </pvc>
     </atm>
    </interface>
   </interfaces>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <ok/>
</rpc-reply>  

Configuring IPoA Mapping

This section provides a sample of configuring IPoA mapping.

Table 3-167 Configuring IPoA mapping

Operation

XPATH

edit-config:merge

/ietf-interfaces:interfaces/interface/huawei-atm:atm/pvc/connection-mode/pvc-map/ip/manual-ip

Data Requirements
Table 3-168 Configuring IPoA mapping

Item

Data

Description

ATM interface

atm0/0/0

Create a PVC named ipoa1 with VPI/VCI set to 3/53 on ATM interface ATM0/0/0.

VPI

3

VCI

53

PVC name

ipoa1

Peer IP address that is mapped to the PVC

10.1.1.2

Set the peer IP address that IPoA is mapped to the PVC to 10.1.1.2.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface>
     <name>atm0/0/0</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:atm</type>
     <enabled>true</enabled>
     <atm xmlns="urn:huawei:params:xml:ns:yang:huawei-atm" xc:operation="merge">
      <pvc>
       <vpi>3</vpi>
       <vci>53</vci>
       <name>pppoeoa1</name>
       <connection-mode xc:operation="merge">
        <ip>
         <manual-ip>10.1.1.2</manual-ip>
        </ip>
       </connection-mode>
      </pvc>
     </atm>
    </interface>
   </interfaces>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <ok/>
</rpc-reply>  

Modifying IPoA Mapping

This section provides a sample of modifying IPoA mapping.

Table 3-169 Modifying IPoA mapping

Operation

XPATH

edit-config:replace

/ietf-interfaces:interfaces/interface/huawei-atm:atm/pvc/connection-mode/pvc-map/ip/manual-ip

Data Requirements
Table 3-170 Modifying IPoA mapping

Item

Data

Description

ATM interface

atm0/0/0

The PVC named ipoa1 with VPI/VCI set to 3/53 has been created on ATM interface ATM0/0/0.

VPI

3

VCI

53

PVC name

ipoa1

Peer IP address that is mapped to the PVC

10.1.1.10

Modify the peer IP address that IPoA is mapped to the PVC to 10.1.1.10.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface>
     <name>atm0/0/0</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:atm</type>
     <enabled>true</enabled>
     <atm xmlns="urn:huawei:params:xml:ns:yang:huawei-atm" xc:operation="merge">
      <pvc>
       <vpi>3</vpi>
       <vci>53</vci>
       <name>pppoeoa1</name>
       <connection-mode xc:operation="replace">
        <ip>
         <manual-ip>10.1.1.10</manual-ip>
        </ip>
       </connection-mode>
      </pvc>
     </atm>
    </interface>
   </interfaces>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <ok/>
</rpc-reply>  

Deleting IPoA Mapping

This section provides a sample of deleting IPoA mapping.

Table 3-171 Deleting IPoA mapping

Operation

XPATH

edit-config:remove

/ietf-interfaces:interfaces/interface/huawei-atm:atm/pvc/connection-mode/pvc-map/ip

Data Requirements
Table 3-172 Deleting IPoA mapping

Item

Data

Description

ATM interface

atm0/0/0

The PVC named ipoa1 with VPI/VCI set to 3/53 has been created on ATM interface ATM0/0/0.

VPI

3

VCI

53

PVC name

ipoa1

Peer IP address that is mapped to the PVC

10.1.1.2

Delete peer IP address 10.1.1.2 that IPoA is mapped to the PVC.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface>
     <name>atm0/0/0</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:atm</type>
     <enabled>true</enabled>
     <atm xmlns="urn:huawei:params:xml:ns:yang:huawei-atm" xc:operation="merge">
      <pvc>
       <vpi>3</vpi>
       <vci>53</vci>
       <name>pppoeoa1</name>
       <connection-mode xc:operation="remove">
        <ip>
         <manual-ip>10.1.1.2</manual-ip>
        </ip>
       </connection-mode>
      </pvc>
     </atm>
    </interface>
   </interfaces>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <ok/>
</rpc-reply>  

Configuring IPoEoA Mapping or PPPoEoA Mapping on a PVC

This section provides a sample of configuring IPoEoA mapping or PPPoEoA mapping on a PVC.

Table 3-173 Configuring IPoEoA mapping or PPPoEoA mapping on a PVC

Operation

XPATH

edit-config:merge

/ietf-interfaces:interfaces/interface/huawei-atm:atm/pvc/connection-mode/pvc-map/bridge/interface-specific

Data Requirements
Table 3-174 Configuring IPoEoA mapping or PPPoEoA mapping on a PVC

Item

Data

Description

VPI

3, 4

Create a PVC named pppoeoa1 with VPI/VCI set to 3/53 for IPoEoA mapping and a PVC named ipoeoa1 with VPI/VCI set to 4/54 for PPPoEoA mapping.

The PVCs for IPoEoA mapping and PPPoEoA mapping must be different.

VCI

53, 54

PVC name

pppoeoa1, ipoeoa1

ATM interface

atm0/0/0

Set physical interfaces for multiple PVCs to ATM0/0/0.

You can configure either the same ATM interface or different ATM interfaces for IPoEoA mapping and PPPoEoA mapping.

Interface on which IPoEoA mapping or PPPoEoA mapping is configured

virtual-ethernet0/0/0

virtual-ethernet0/0/1

Set the interface of a PVC on which PPPoEoA mapping or IPoEoA mapping is configured to VE0/0/0 and VE0/0/1 respectively.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>virtual-ethernet0/0/0</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:ethernetCsmacd</type>
     <enabled>true</enabled>
    </interface>
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>virtual-ethernet0/0/1</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:ethernetCsmacd</type>
     <enabled>true</enabled>
    </interface>
    <interface>
     <name>atm0/0/0</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:atm</type>
     <enabled>true</enabled>
     <atm xmlns="urn:huawei:params:xml:ns:yang:huawei-atm" xc:operation="merge">
      <pvc>
       <vpi>3</vpi>
       <vci>53</vci>
       <name>pppoeoa1</name>
       <connection-mode xc:operation="merge">
        <bridge>
         <interface-specific>virtual-ethernet0/0/0</interface-specific>
        </bridge>
       </connection-mode>
      </pvc>
      <pvc>
       <vpi>4</vpi>
       <vci>54</vci>
       <name>ipoeoa1</name>
       <connection-mode xc:operation="merge">
        <bridge>
         <interface-specific>virtual-ethernet0/0/1</interface-specific>
        </bridge>
       </connection-mode>
      </pvc>
     </atm>
    </interface>
   </interfaces>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <ok/>
</rpc-reply>  

Modifying IPoEoA Mapping or PPPoEoA Mapping on a PVC

This section provides a sample of modifying IPoEoA mapping or PPPoEoA mapping on a PVC.

Table 3-175 Modifying IPoEoA mapping or PPPoEoA mapping on a PVC

Operation

XPATH

edit-config:replace

/ietf-interfaces:interfaces/interface/huawei-atm:atm/pvc/connection-mode/pvc-map/bridge/interface-specific

Data Requirements
Table 3-176 Modifying IPoEoA mapping or PPPoEoA mapping on a PVC

Item

Data

Description

VPI

3, 4

The PVC named pppoeoa1 with VPI/VCI set to 3/53 for IPoEoA mapping and PVC named ipoeoa1 with VPI/VCI set to 4/54 for PPPoEoA mapping have been created.

The PVCs for IPoEoA mapping and PPPoEoA mapping must be different.

VCI

53, 54

PVC name

pppoeoa1, ipoeoa1

ATM interface

atm0/0/0

Set physical interfaces for multiple PVCs to ATM0/0/0.

You can configure either the same ATM interface or different ATM interfaces for IPoEoA mapping and PPPoEoA mapping.

Interface on which IPoEoA mapping or PPPoEoA mapping is configured

virtual-ethernet0/0/2

virtual-ethernet0/0/3

Modify the interface of a PVC on which PPPoEoA mapping or IPoEoA mapping is configured to VE0/0/2 and VE0/0/3 respectively.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>virtual-ethernet0/0/2</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:ethernetCsmacd</type>
     <enabled>true</enabled>
    </interface>
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>virtual-ethernet0/0/3</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:ethernetCsmacd</type>
     <enabled>true</enabled>
    </interface>
    <interface>
     <name>atm0/0/0</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:atm</type>
     <enabled>true</enabled>
     <atm xmlns="urn:huawei:params:xml:ns:yang:huawei-atm" xc:operation="merge">
      <pvc>
       <vpi>3</vpi>
       <vci>53</vci>
       <name>pppoeoa1</name>
       <connection-mode xc:operation="replace">
        <bridge>
         <interface-specific>virtual-ethernet0/0/2</interface-specific>
        </bridge>
       </connection-mode>
      </pvc>
      <pvc>
       <vpi>4</vpi>
       <vci>54</vci>
       <name>ipoeoa1</name>
       <connection-mode xc:operation="replace">
        <bridge>
         <interface-specific>virtual-ethernet0/0/3</interface-specific>
        </bridge>
       </connection-mode>
      </pvc>
     </atm>
    </interface>
   </interfaces>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <ok/>
</rpc-reply>  

Deleting IPoEoA Mapping or PPPoEoA Mapping on a PVC

This section provides a sample of deleting IPoEoA mapping or PPPoEoA mapping on a PVC.

Table 3-177 Deleting IPoEoA mapping or PPPoEoA mapping on a PVC

Operation

XPATH

edit-config:remove

/ietf-interfaces:interfaces/interface/huawei-atm:atm/pvc/connection-mode/bridge

Data Requirements
Table 3-178 Deleting IPoEoA mapping or PPPoEoA mapping on a PVC

Item

Data

Description

VPI

3, 4

The PVC named pppoeoa1 with VPI/VCI set to 3/53 for IPoEoA mapping and PVC named ipoeoa1 with VPI/VCI set to 4/54 for PPPoEoA mapping have been created.

The PVCs for IPoEoA mapping and PPPoEoA mapping must be different.

VCI

53, 54

PVC name

pppoeoa1, ipoeoa1

ATM interface

atm0/0/0

Set physical interfaces for multiple PVCs to ATM0/0/0.

You can configure either the same ATM interface or different ATM interfaces for IPoEoA mapping and PPPoEoA mapping.

Interface on which IPoEoA mapping or PPPoEoA mapping is configured

virtual-ethernet0/0/0

virtual-ethernet0/0/1

Delete IPoEoA mapping or PPPoEoA mapping on the PVC.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>virtual-ethernet0/0/0</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:ethernetCsmacd</type>
     <enabled>true</enabled>
    </interface>
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>virtual-ethernet0/0/1</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:ethernetCsmacd</type>
     <enabled>true</enabled>
    </interface>
    <interface>
     <name>atm0/0/0</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:atm</type>
     <enabled>true</enabled>
     <atm xmlns="urn:huawei:params:xml:ns:yang:huawei-atm" xc:operation="merge">
      <pvc>
       <vpi>3</vpi>
       <vci>53</vci>
       <name>pppoeoa1</name>
       <connection-mode xc:operation="remove">
        <bridge>
         <interface-specific>virtual-ethernet0/0/0</interface-specific>
        </bridge>
       </connection-mode>
      </pvc>
      <pvc>
       <vpi>4</vpi>
       <vci>54</vci>
       <name>ipoeoa1</name>
       <connection-mode xc:operation="remove">
        <bridge>
         <interface-specific>virtual-ethernet0/0/1</interface-specific>
        </bridge>
       </connection-mode>
      </pvc>
     </atm>
    </interface>
   </interfaces>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <ok/>
</rpc-reply>  

Querying the Interface on Which PPPoEoA or IPoEoA Mapping Is Configured

This section provides a sample of querying the interface on which PPPoEoA or IPoEoA mapping is configured.

Table 3-179 Querying the interface on which PPPoEoA or IPoEoA mapping is configured

Operation

XPATH

edit-config:default

/ietf-interfaces:interfaces/interface-mapping/source-interfaces/interface-mapping

Data Requirements
Table 3-180 Querying the interface on which PPPoEoA or IPoEoA mapping is configured

Item

Data

Description

Name

xDSL0/0/0

Query the interface on which PPPoEoA or IPoEoA mapping is configured on xDSL0/0/0.

Type

atm-mapping-type

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <interface-mapping xmlns="urn:huawei:params:xml:ns:yang:huawei-interfaces">
  <source-interfaces>
   <interface-mapping>
    <name>xDSL0/0/0</name>
    <type>atm-mapping-type</type>
   </interface-mapping>
  </source-interfaces>
 </interface-mapping>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="bf5ce43c-f224-48d3-a066-ae5d3f21f1cf">
 <destination-interfaces xmlns="urn:huawei:params:xml:ns:yang:huawei-interfaces">
  <source-interface>
   <name>xDSL0/0/0</name>
   <interface-mapping>
    <name>Atm0/0/0</name>
    <type>ipoeoa-mapping-type</type>
    <user-defined>PVC 0/35</user-defined>
   </interface-mapping>
   <interface-mapping>
    <name>Dialer1</name>
    <type>pppoeoa-mapping-type</type>
    <user-defined>PVC 2/40</user-defined>
   </interface-mapping>
  </source-interface>
 </destination-interfaces>
</rpc-reply>
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 9644

Downloads: 69

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next