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).
IPv6 Static Routes

IPv6 Static Routes

Data Model

The data model files matching IPv6 static routes are ietf-routing.yang and huawei-ipv6-static-route.yang.

Table 3-430 Static route data model

Object

Description

ietf-routing:routing

Indicates that the object of requesting an operation (configuration, deletion, or modification) is static route configuration. It is only used to contain sub-objects, but does not have any data meaning.

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route/destination-prefix

Indicates the destination IP address and mask length of an IPv6 static route. The value is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X/Y, where Y is an integer that ranges from 0 to 128.

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route/next-hop-options/outgoing-interface

Indicates the outbound interface that forwards packets.

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route/next-hop-options/next-hop

Indicates a next-hop IPv6 address. The value is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X/Y, where Y is an integer that ranges from 0 to 128.

ietf-routing:routing/routing-instance/name

Indicates the name of a VPN instance. The value is a string of 1 to 31 case-sensitive characters without spaces. If the string is enclosed in double quotation marks (" "), the string can contain spaces.If the name of a VPN instance is default-routing-instance, it is the public network route.

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route/next-hop-options/egress-interface-nexthop/outgoing-interface

Indicates the outbound interface that forwards packets.

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route/next-hop-options/egress-interface-nexthop/nexthop-option

Indicates whether DHCP is associated with the IPv6 static route. The value is an enumerated type and can be dhcpv6 or none. The value dhcpv6 indicates DHCP is associated with an IPv6 static route, whereas the value none indicates that DHCP is not associated with an IPv6 static route.

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route/next-hop-options/egress-interface-nexthop/preference

Indicates the priority of the static routing protocol. The value is an integer that ranges from 1 to 255. A smaller value indicates a higher priority.

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route/next-hop-options/ipv6-address-nexthop/next-hop-address

Indicates the next-hop IPv6 address of a route. The value is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X/Y, where Y is an integer that ranges from 0 to 128.

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route/next-hop-options/ipv6-address-nexthop/preference

Indicates the priority of the static routing protocol. The value is an integer that ranges from 1 to 255. A smaller value indicates a higher priority.

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route/next-hop-options/egress-interface-ipv6-nexthop/outgoing-interface

Indicates the outbound interface that forwards packets.

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route/next-hop-options/egress-interface-ipv6-nexthop/next-hop-address

Indicates the next-hop IPv6 address of a route. The value is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X/Y, where Y is an integer that ranges from 0 to 128.

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route/next-hop-options/egress-interface-ipv6-nexthop/preference

Indicates the priority of the static routing protocol. The value is an integer that ranges from 1 to 255. A smaller value indicates a higher priority.

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route/next-hop-options/egress-routing-instance-ipv6-nexthop/dest-routing-instance

Indicates the name of a VPN instance to which the next hop belongs. The value is a string of 1 to 31 case-sensitive characters without spaces. If the string is enclosed in double quotation marks (" "), the string can contain spaces.When the value is set to default-routing-instance, it is the next hop of a public network.

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route/next-hop-options/egress-routing-instance-ipv6-nexthop/next-hop-address

Indicates the next-hop IPv6 address of a route. The value is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X/Y, where Y is an integer that ranges from 0 to 128.

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route/next-hop-options/egress-routing-instance-ipv6-nexthop/preference

Indicates the priority of the static routing protocol. The value is an integer that ranges from 1 to 255. A smaller value indicates a higher priority.

Configuring an IPv6 Static Route with a Specified Outbound Interface

Creating an IPv6 Static Route with a Specified Outbound Interface

This section provides a sample of creating an IPv6 static route with a specified outbound interface.

Table 3-431 Creating an IPv6 static route with a specified outbound interface

Operation

XPATH

edit-config:merge

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route

ietf-routing:routing/routing-instance

Data Requirements
Table 3-432 Creating an IPv6 static route with the outbound interface GigabitEthernet0/0/6

Item

Data

Description

Destination IPv6 address and mask length

fc00:0:0:2001::1/128

Configure an IPv6 static route with the destination IPv6 address fc00:0:0:2001::1/128 and outbound interface Ethernet0/0/6, and using public network routes.

Interface name

Ethernet0/0/6

VPN instance name

default-routing-instance

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <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" ns0:operation="merge">
     <name>Ethernet0/0/6</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
    <routing-instance>
     <name>default-routing-instance</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:ietf-routing">x:default-routing-instance</type>
     <enabled>true</enabled>
     <interfaces>
      <interface>Ethernet0/0/6</interface>
     </interfaces>
     <routing-protocols>
      <routing-protocol xc:operation="merge">
       <type>static</type>
       <name>default0</name>
       <static-routes>
        <ipv6 xmlns="urn:huawei:params:xml:ns:yang:hw-ipv6-static-route">
         <route>
          <destination-prefix>fc00:0:0:2001::1/128</destination-prefix>
          <outgoing-interface>Ethernet0/0/6</outgoing-interface>
         </route>
        </ipv6>
       </static-routes>
      </routing-protocol>
     </routing-protocols>
    </routing-instance>
   </routing>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <ok/>
</rpc-reply>
Changing an IPv6 Static Route with a Specified Outbound Interface

This section provides a sample of changing an IPv6 static route with a specified outbound interface.

Table 3-433 Changing an IPv6 static route with a specified outbound interface

Operation

XPATH

edit-config:replace

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route

ietf-routing:routing/routing-instance

Data Requirements
Table 3-434 Changing an IPv6 static route with a specified outbound interface

Item

Data

Description

Destination IPv6 address and mask length

fc00:0:0:2001::1/128

Change the outbound interface of the IPv6 static route with the destination IPv6 address fc00:0:0:2001::1/128 to Ethernet0/0/5.

Interface name

Ethernet0/0/5

VPN instance name

default-routing-instance

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <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" ns0:operation="replace">
     <name>Ethernet0/0/5</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
    <routing-instance>
     <name>default-routing-instance</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:ietf-routing">x:default-routing-instance</type>
     <enabled>true</enabled>
     <interfaces>
      <interface>Ethernet0/0/5</interface>
     </interfaces>
     <routing-protocols>
      <routing-protocol xc:operation="replace">
       <type>static</type>
       <name>default0</name>
       <static-routes>
        <ipv6 xmlns="urn:huawei:params:xml:ns:yang:hw-ipv6-static-route">
         <route>
          <destination-prefix>fc00:0:0:2001::1/128</destination-prefix>
          <outgoing-interface>Ethernet0/0/5</outgoing-interface>
         </route>
        </ipv6>
       </static-routes>
      </routing-protocol>
     </routing-protocols>
    </routing-instance>
   </routing>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <ok/> 
</rpc-reply> 
Deleting an IPv6 Static Route with a Specified Outbound Interface

This section provides a sample of deleting an IPv6 static route with a specified outbound interface.

Table 3-435 Deleting an IPv6 static route with a specified outbound interface

Operation

XPATH

edit-config:remove

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route

ietf-routing:routing/routing-instance

Data Requirements
Table 3-436 Deleting an IPv6 static route with a specified outbound interface

Item

Data

Description

Destination IPv6 address and mask length

fc00:0:0:2001::1/128

Delete the IPv6 static route with the destination IPv6 address fc00:0:0:2001::1/128 and outbound interface Ethernet0/0/5.

Interface name

Ethernet0/0/5

VPN instance name

default-routing-instance

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <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" ns0:operation="remove">
     <name>Ethernet0/0/5</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
    <routing-instance>
     <name>default-routing-instance</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:ietf-routing">x:default-routing-instance</type>
     <enabled>true</enabled>
     <interfaces>
      <interface>Ethernet0/0/5</interface>
     </interfaces>
     <routing-protocols>
      <routing-protocol xc:operation="remove">
       <type>static</type>
       <name>default0</name>
       <static-routes>
        <ipv6 xmlns="urn:huawei:params:xml:ns:yang:hw-ipv6-static-route">
         <route>
          <destination-prefix>fc00:0:0:2001::1/128</destination-prefix>
          <outgoing-interface>Ethernet0/0/5</outgoing-interface>
         </route>
        </ipv6>
       </static-routes>
      </routing-protocol>
     </routing-protocols>
    </routing-instance>
   </routing>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <ok/> 
</rpc-reply> 

Configuring an IPv6 Static Route with a Specified Next Hop

Creating an IPv6 Static Route with a Specified Next Hop

This section provides a sample of creating an IPv6 static route with a specified next hop.

Table 3-437 Creating an IPv6 static route with a specified next hop

Operation

XPATH

edit-config:merge

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route

ietf-routing:routing/routing-instance

Data Requirements
Table 3-438 Creating an IPv6 static route with a specified next hop

Item

Data

Description

Destination IPv6 address and mask length

fc00:0:0:2001::1/128

Create an IPv6 static route with the destination IPv6 address fc00:0:0:2001::1/128 and next-hop IPv6 address fc00:0:0:2002::2, and using public network routes.

Next-hop IPv6 address

fc00:0:0:2002::2

VPN instance name

default-routing-instance

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
    <routing-instance>
     <name>default-routing-instance</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:ietf-routing">x:default-routing-instance</type>
     <enabled>true</enabled>
     <routing-protocols>
      <routing-protocol xc:operation="merge">
       <type>static</type>
       <name>default0</name>
       <route-preference>90</route-preference>
       <static-routes>
        <ipv6 xmlns="urn:huawei:params:xml:ns:yang:hw-ipv6-static-route">
         <route>
          <destination-prefix>fc00:0:0:2001::1/128</destination-prefix>
          <next-hop>fc00:0:0:2002::2</next-hop>
         </route>
        </ipv6>
       </static-routes>
      </routing-protocol>
     </routing-protocols>
    </routing-instance>
   </routing>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4"> 
 <ok/> 
</rpc-reply> 
Changing an IPv6 Static Route with a Specified Next Hop

This section provides a sample of changing an IPv6 static route with a specified next hop.

Table 3-439 Changing an IPv6 static route with a specified next hop

Operation

XPATH

edit-config:replace

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route

ietf-routing:routing/routing-instance

Data Requirements
Table 3-440 Changing an IPv6 static route with a specified next hop

Item

Data

Description

Destination IPv6 address and mask length

fc00:0:0:2001::1/128

Change the next-hop IPv6 address of the IPv6 static route with the destination IPv6 address fc00:0:0:2001::1/128 from fc00:0:0:2002::2 to fc00:0:0:2002::5.

Next-hop IPv6 address

fc00:0:0:2002::5

VPN instance name

default-routing-instance

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
    <routing-instance>
     <name>default-routing-instance</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:ietf-routing">x:default-routing-instance</type>
     <enabled>true</enabled>
     <routing-protocols>
      <routing-protocol xc:operation="replace">
       <type>static</type>
       <name>default0</name>
       <route-preference>90</route-preference>
       <static-routes>
        <ipv6 xmlns="urn:huawei:params:xml:ns:yang:hw-ipv6-static-route">
         <route>
          <destination-prefix>fc00:0:0:2001::1/128</destination-prefix>
          <next-hop>fc00:0:0:2002::5</next-hop>
         </route>
        </ipv6>
       </static-routes>
      </routing-protocol>
     </routing-protocols>
    </routing-instance>
   </routing>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4"> 
 <ok/> 
</rpc-reply>

Deleting an IPv6 Static Route with a Specified Next Hop

This section provides a sample of deleting an IPv6 static route with a specified next hop.

Table 3-441 Deleting an IPv6 static route with a specified next hop

Operation

XPATH

edit-config:remove

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route

ietf-routing:routing/routing-instance

Data Requirements
Table 3-442 Deleting an IPv6 static route with a specified next hop

Item

Data

Description

Destination IPv6 address and mask length

fc00:0:0:2001::1/128

Delete the IPv6 static route with the destination IPv6 address fc00:0:0:2001::1/128 and next-hop IPv6 address fc00:0:0:2002::5.

Next-hop IPv6 address

fc00:0:0:2002::5

VPN instance name

default-routing-instance

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
    <routing-instance>
     <name>default-routing-instance</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:ietf-routing">x:default-routing-instance</type>
     <enabled>true</enabled>
     <routing-protocols>
      <routing-protocol xc:operation="remove">
       <type>static</type>
       <name>default0</name>
       <route-preference>90</route-preference>
       <static-routes>
        <ipv6 xmlns="urn:huawei:params:xml:ns:yang:hw-ipv6-static-route">
         <route>
          <destination-prefix>fc00:0:0:2001::1/128</destination-prefix>
          <next-hop>fc00:0:0:2002::5</next-hop>
         </route>
        </ipv6>
       </static-routes>
      </routing-protocol>
     </routing-protocols>
    </routing-instance>
   </routing>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4"> 
 <ok/> 
</rpc-reply> 

Associating an IPv6 Static Route with DHCP

Creating Association Between an IPv6 Static Route and DHCP

This section provides a sample of creating association between an IPv6 static route and DHCP.

Table 3-443 Creating association between an IPv6 static route and DHCP

Operation

XPATH

edit-config:replace

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route

ietf-routing:routing/routing-instance

Data Requirements
Table 3-444 Creating association between an IPv6 static route and DHCP

Item

Data

Description

Destination IPv6 address and mask length

fc00:0:0:2001::1/128

Create an IPv6 static route with the destination IPv6 address fc00:0:0:2001::1/128, next-hop outbound interface GigabitEthernet0/0/6, priority 80 and associated with DHCP, and using public network routes.

Interface name

GigabitEthernet0/0/6

Whether DHCP is associated with an IPv6 static route

dhcpv6

Route priority

80

VPN instance name

default-routing-instance

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <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" ns0:operation="merge">
     <name>GigabitEthernet0/0/6</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
    <routing-instance>
     <name>default-routing-instance</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:ietf-routing">x:default-routing-instance</type>
     <enabled>true</enabled>
     <interfaces>
      <interface>GigabitEthernet0/0/6</interface>
     </interfaces>
     <routing-protocols>
      <routing-protocol xc:operation="replace">
       <type>static</type>
       <name>default0</name>
       <static-routes>
        <ipv6 xmlns="urn:huawei:params:xml:ns:yang:hw-ipv6-static-route">
         <route>
          <destination-prefix>fc00:0:0:2001::1/128</destination-prefix>
          <egress-interface-nexthop>
           <outgoing-interface>GigabitEthernet0/0/6</outgoing-interface>
           <nexthop-option>dhcpv6</nexthop-option>
           <preference>80</preference>
          </egress-interface-nexthop>
         </route>
        </ipv6>
       </static-routes>
      </routing-protocol>
     </routing-protocols>
    </routing-instance>
   </routing>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4"> 
 <ok/> 
</rpc-reply> 
Changing an IPv6 Static Route Associated with DHCP

This section provides a sample of changing an IPv6 static route associated with DHCP.

Table 3-445 Changing an IPv6 static route associated with DHCP

Operation

XPATH

edit-config:replace

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route

ietf-routing:routing/routing-instance

Data Requirements
Table 3-446 Changing an IPv6 static route associated with DHCP

Item

Data

Description

Destination IPv6 address and mask length

fc00:0:0:2001::1/128

Change the next-hop outbound interface of the IPv6 static route with the destination IPv6 address fc00:0:0:2001::1/128, priority 80 and associated with DHCP from GigabitEthernet0/0/6 to GigabitEthernet0/0/5.

Interface name

GigabitEthernet0/0/5

Whether DHCP is associated with an IPv6 static route

dhcpv6

Route priority

80

VPN instance name

default-routing-instance

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <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" ns0:operation="replace">
     <name>GigabitEthernet0/0/5</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
    <routing-instance>
     <name>default-routing-instance</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:ietf-routing">x:default-routing-instance</type>
     <enabled>true</enabled>
     <interfaces>
      <interface>GigabitEthernet0/0/5</interface>
     </interfaces>
     <routing-protocols>
      <routing-protocol xc:operation="replace">
       <type>static</type>
       <name>default0</name>
       <static-routes>
        <ipv6 xmlns="urn:huawei:params:xml:ns:yang:hw-ipv6-static-route">
         <route>
          <destination-prefix>fc00:0:0:2001::1/128</destination-prefix>
          <egress-interface-nexthop>
           <outgoing-interface>GigabitEthernet0/0/5</outgoing-interface>
           <nexthop-option>dhcpv6</nexthop-option>
           <preference>80</preference>
          </egress-interface-nexthop>
         </route>
        </ipv6>
       </static-routes>
      </routing-protocol>
     </routing-protocols>
    </routing-instance>
   </routing>
  </config>
 </edit-config>
</rpc>
Response Example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <ok/> 
</rpc-reply> 
Deleting an IPv6 Static Route Associated with DHCP

This section provides a sample of deleting association between an IPv6 static route and DHCP.

Table 3-447 Deleting association between an IPv6 static route and DHCP

Operation

XPATH

edit-config:remove

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route

ietf-routing:routing/routing-instance

Data Requirements
Table 3-448 Deleting association between an IPv6 static route and DHCP

Item

Data

Description

Destination IPv6 address and mask length

fc00:0:0:2001::1/128

Delete the IPv6 static route with the destination IPv6 address fc00:0:0:2001::1/128, next-hop outbound interface GigabitEthernet0/0/5, priority 80 and associated with DHCP.

Interface name

GigabitEthernet0/0/5

Whether DHCP is associated with an IPv6 static route

dhcpv6

Route priority

80

VPN instance name

default-routing-instance

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <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" ns0:operation="remove">
     <name>GigabitEthernet0/0/5</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
    <routing-instance>
     <name>default-routing-instance</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:ietf-routing">x:default-routing-instance</type>
     <enabled>true</enabled>
     <interfaces>
      <interface>GigabitEthernet0/0/5</interface>
     </interfaces>
     <routing-protocols>
      <routing-protocol xc:operation="remove">
       <type>static</type>
       <name>default0</name>
       <static-routes>
        <ipv6 xmlns="urn:huawei:params:xml:ns:yang:hw-ipv6-static-route">
         <route>
          <destination-prefix>fc00:0:0:2001::1/128</destination-prefix>
          <egress-interface-nexthop>
           <outgoing-interface>GigabitEthernet0/0/5</outgoing-interface>
           <nexthop-option>dhcpv6</nexthop-option>
           <preference>80</preference>
          </egress-interface-nexthop>
         </route>
        </ipv6>
       </static-routes>
      </routing-protocol>
     </routing-protocols>
    </routing-instance>
   </routing>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4"> 
 <ok/>
</rpc-reply> 

Configuring a Multi-Next-Hop IPv6 Static Route (Next-Hop IPv6 Address)

Creating a Multi-Next-Hop IPv6 Static Route (Next-Hop IPv6 Address)

This section provides a sample of creating a multi-next-hop IPv6 static route (next-hop IPv6 address).

Table 3-449 Creating a multi-next-hop IPv6 static route (next-hop IPv6 address)

Operation

XPATH

edit-config:merge

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route

ietf-routing:routing/routing-instance

Data Requirements
Table 3-450 Creating a multi-next-hop IPv6 static route (next-hop IPv6 address)

Item

Data

Description

Destination IPv6 address and mask length

fc00:0:0:2001::1/128

Create an IPv6 static route with the destination IPv6 address fc00:0:0:2001::1/128, next-hop IPv6 address fc00:0:0:2002::2 and priority 70, and using public network routes.

Next-hop IPv6 address

fc00:0:0:2002::2

Route priority

70

VPN instance name

default-routing-instance

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
    <routing-instance>
     <name>default-routing-instance</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:ietf-routing">x:default-routing-instance</type>
     <enabled>true</enabled>
     <routing-protocols>
      <routing-protocol xc:operation="merge">
       <type>static</type>
       <name>default0</name>
       <static-routes>
        <ipv6 xmlns="urn:huawei:params:xml:ns:yang:hw-ipv6-static-route">
         <route>
          <destination-prefix>fc00:0:0:2001::1/128</destination-prefix>
          <ipv6-address-nexthop>
           <next-hop-address>fc00:0:0:2002::2</next-hop-address>
           <preference>70</preference>
          </ipv6-address-nexthop>
         </route>
        </ipv6>
       </static-routes>
      </routing-protocol>
     </routing-protocols>
    </routing-instance>
   </routing>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <ok/>
</rpc-reply> 

Changing a Multi-Next-Hop IPv6 Static Route (Next-Hop IPv6 Address)

This section provides a sample of changing a multi-next-hop IPv6 static route (next-hop IPv6 address).

Table 3-451 Changing a multi-next-hop IPv6 static route (next-hop IPv6 address)

Operation

XPATH

edit-config:replace

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route

ietf-routing:routing/routing-instance

Data Requirements
Table 3-452 Changing a multi-next-hop IPv6 static route (next-hop IPv6 address)

Item

Data

Description

Destination IPv6 address and mask length

fc00:0:0:2001::1/128

Change the next-hop IPv6 address of the IPv6 static route with the destination IPv6 address fc00:0:0:2001::1/128 and priority 70 from fc00:0:0:2002::2 to aa00:0:0:2002::2.

Next-hop IPv6 address

aa00:0:0:2002::2

Route priority

70

VPN instance name

default-routing-instance

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
    <routing-instance>
     <name>default-routing-instance</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:ietf-routing">x:default-routing-instance</type>
     <enabled>true</enabled>
     <routing-protocols>
      <routing-protocol xc:operation="replace">
       <type>static</type>
       <name>default0</name>
       <static-routes>
        <ipv6 xmlns="urn:huawei:params:xml:ns:yang:hw-ipv6-static-route">
         <route>
          <destination-prefix>fc00:0:0:2001::1/128</destination-prefix>
          <ipv6-address-nexthop>
           <next-hop-address>aa00:0:0:2002::2</next-hop-address>
           <preference>70</preference>
          </ipv6-address-nexthop>
         </route>
        </ipv6>
       </static-routes>
      </routing-protocol>
     </routing-protocols>
    </routing-instance>
   </routing>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <ok/>
</rpc-reply> 

Deleting a Multi-Next-Hop IPv6 Static Route (Next-Hop IPv6 Address)

This section provides a sample of deleting a multi-next-hop IPv6 static route (next-hop IPv6 address).

Table 3-453 Deleting a multi-next-hop IPv6 static route (next-hop IPv6 address)

Operation

XPATH

edit-config:remove

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route

ietf-routing:routing/routing-instance

Data Requirements
Table 3-454 Deleting a multi-next-hop IPv6 static route (next-hop IPv6 address)

Item

Data

Description

Destination IPv6 address and mask length

fc00:0:0:2001::1/128

Delete the IPv6 static route with the destination IPv6 address fc00:0:0:2001::1/128, next-hop IPv6 address aa00:0:0:2002::2, and priority 70.

Next-hop IPv6 address

aa00:0:0:2002::2

Route priority

70

VPN instance name

default-routing-instance

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
    <routing-instance>
     <name>default-routing-instance</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:ietf-routing">x:default-routing-instance</type>
     <enabled>true</enabled>
     <routing-protocols>
      <routing-protocol xc:operation="remove">
       <type>static</type>
       <name>default0</name>
       <static-routes>
        <ipv6 xmlns="urn:huawei:params:xml:ns:yang:hw-ipv6-static-route">
         <route>
          <destination-prefix>fc00:0:0:2001::1/128</destination-prefix>
          <ipv6-address-nexthop>
           <next-hop-address>aa00:0:0:2002::2</next-hop-address>
           <preference>70</preference>
          </ipv6-address-nexthop>
         </route>
        </ipv6>
       </static-routes>
      </routing-protocol>
     </routing-protocols>
    </routing-instance>
   </routing>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4"> 
 <ok/>
</rpc-reply> 

Configuring a Multi-Next-Hop IPv6 Static Route (Outbound Interface + Next-Hop IPv6 Address)

Creating a Multi-Next-Hop IPv6 Static Route (Outbound Interface + Next-Hop IPv6 Address)

This section provides a sample of creating a multi-next-hop IPv6 static route (outbound interface + next-hop IPv6 address).

Table 3-455 Creating a multi-next-hop IPv6 static route (outbound interface + next-hop IPv6 address)

Operation

XPATH

edit-config:merge

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route

ietf-routing:routing/routing-instance

Data Requirements
Table 3-456 Creating a multi-next-hop IPv6 static route (outbound interface + next-hop IPv6 address)

Item

Data

Description

Destination IPv6 address and mask length

fc00:0:0:2001::1/128

Create an IPv6 static route with the destination IPv6 address fc00:0:0:2001::1/128, outbound interface GigabitEthernet0/0/5, next-hop IPv6 address fc00:0:0:2002::2, and priority 80, and using public network routes.

Interface name

GigabitEthernet0/0/5

Next-hop IPv6 address

fc00:0:0:2002::2

Route priority

80

VPN instance name

default-routing-instance

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <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" ns0:operation="merge">
     <name>GigabitEthernet0/0/5</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
    <routing-instance>
     <name>default-routing-instance</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:ietf-routing">x:default-routing-instance</type>
     <enabled>true</enabled>
     <interfaces>
      <interface>GigabitEthernet0/0/5</interface>
     </interfaces>
     <routing-protocols>
      <routing-protocol xc:operation="merge">
       <type>static</type>
       <name>default0</name>
       <static-routes>
        <ipv6 xmlns="urn:huawei:params:xml:ns:yang:hw-ipv6-static-route">
         <route>
          <destination-prefix>fc00:0:0:2001::1/128</destination-prefix>
          <egress-interface-ipv6-nexthop>
           <outgoing-interface>GigabitEthernet0/0/5</outgoing-interface>
           <next-hop-address>fc00:0:0:2002::2</next-hop-address>
           <preference>80</preference>
          </egress-interface-ipv6-nexthop>
         </route>
        </ipv6>
       </static-routes>
      </routing-protocol>
     </routing-protocols>
    </routing-instance>
   </routing>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <ok/>
</rpc-reply> 

Changing a Multi-Next-Hop IPv6 Static Route (Outbound Interface + Next-Hop IPv6 Address)

This section provides a sample of changing a multi-next-hop IPv6 static route (outbound interface + next-hop IPv6 address).

Table 3-457 Changing a multi-next-hop IPv6 static route (outbound interface + next-hop IPv6 address)

Operation

XPATH

edit-config:replace

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route

ietf-routing:routing/routing-instance

Data Requirements
Table 3-458 Changing a multi-next-hop IPv6 static route (outbound interface + next-hop IPv6 address)

Item

Data

Description

Destination IPv6 address and mask length

fc00:0:0:2001::1/128

Change the next-hop IPv6 address of the IPv6 static route with the destination IPv6 address fc00:0:0:2001::1/128, outbound interface GigabitEthernet0/0/5, and priority 80 from fc00:0:0:2002::2 to bb00:0:0:2002::2.

Interface name

GigabitEthernet0/0/5

Next-hop IPv6 address

bb00:0:0:2002::2

Route priority

80

VPN instance name

default-routing-instance

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <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" ns0:operation="replace">
     <name>GigabitEthernet0/0/5</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
    <routing-instance>
     <name>default-routing-instance</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:ietf-routing">x:default-routing-instance</type>
     <enabled>true</enabled>
     <interfaces>
      <interface>GigabitEthernet0/0/5</interface>
     </interfaces>
     <routing-protocols>
      <routing-protocol xc:operation="replace">
       <type>static</type>
       <name>default0</name>
       <static-routes>
        <ipv6 xmlns="urn:huawei:params:xml:ns:yang:hw-ipv6-static-route">
         <route>
          <destination-prefix>fc00:0:0:2001::1/128</destination-prefix>
          <egress-interface-ipv6-nexthop>
           <outgoing-interface>GigabitEthernet0/0/5</outgoing-interface>
           <next-hop-address>bb00:0:0:2002::2</next-hop-address>
           <preference>80</preference>
          </egress-interface-ipv6-nexthop>
         </route>
        </ipv6>
       </static-routes>
      </routing-protocol>
     </routing-protocols>
    </routing-instance>
   </routing>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4"> 
 <ok/>
</rpc-reply> 

Deleting a Multi-Next-Hop IPv6 Static Route (Outbound Interface + Next-Hop IPv6 Address)

This section provides a sample of deleting a multi-next-hop IPv6 static route (outbound interface + next-hop IPv6 address).

Table 3-459 Deleting a multi-next-hop IPv6 static route (outbound interface + next-hop IPv6 address)

Operation

XPATH

edit-config:remove

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route

ietf-routing:routing/routing-instance

Data Requirements
Table 3-460 Deleting a multi-next-hop IPv6 static route (outbound interface + next-hop IPv6 address)

Item

Data

Description

Destination IPv6 address and mask length

fc00:0:0:2001::1/128

Delete the IPv6 static route with the destination IPv6 address fc00:0:0:2001::1/128, outbound interface GigabitEthernet0/0/5, next-hop IPv6 address bb00:0:0:2002::2, and priority 80.

Interface name

GigabitEthernet0/0/5

Next-hop IPv6 address

bb00:0:0:2002::2

Route priority

80

VPN instance name

default-routing-instance

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <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" ns0:operation="remove">
     <name>GigabitEthernet0/0/5</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
    <routing-instance>
     <name>default-routing-instance</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:ietf-routing">x:default-routing-instance</type>
     <enabled>true</enabled>
     <interfaces>
      <interface>GigabitEthernet0/0/5</interface>
     </interfaces>
     <routing-protocols>
      <routing-protocol xc:operation="remove">
       <type>static</type>
       <name>default0</name>
       <static-routes>
        <ipv6 xmlns="urn:huawei:params:xml:ns:yang:hw-ipv6-static-route">
         <route>
          <destination-prefix>fc00:0:0:2001::1/128</destination-prefix>
          <egress-interface-ipv6-nexthop>
           <outgoing-interface>GigabitEthernet0/0/5</outgoing-interface>
           <next-hop-address>bb00:0:0:2002::2</next-hop-address>
           <preference>80</preference>
          </egress-interface-ipv6-nexthop>
         </route>
        </ipv6>
       </static-routes>
      </routing-protocol>
     </routing-protocols>
    </routing-instance>
   </routing>
  </config>
 </edit-config>
</rpc>

Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4"> 
 <ok/>
</rpc-reply> 

Configuring a Multi-Next-Hop IPv6 Static Route (Specified VPN Instance)

Creating a Multi-Next-Hop IPv6 Static Route (Specified VPN Instance)

This section provides a sample of creating a multi-next-hop IPv6 static route (specified VPN instance).

Table 3-461 Creating a multi-next-hop IPv6 static route (specified VPN instance)

Operation

XPATH

edit-config:merge

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route

ietf-routing:routing/routing-instance

Data Requirements
Table 3-462 Creating a multi-next-hop IPv6 static route (specified VPN instance)

Item

Data

Description

Destination IPv6 address and mask length

fc00:0:0:2001::1/128

Create an IPv6 static route with the destination IPv6 address fc00:0:0:2001::1/128, next-hop IPv6 address fc00:0:0:2002::2, and VPN instance name vpnaa, and using public network routes.

VPN instance name

vpnaa

Next-hop IPv6 address

fc00:0:0:2002::2

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
    <routing-instance>
     <name>default-routing-instance</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:ietf-routing">x:default-routing-instance</type>
     <enabled>true</enabled>
     <routing-protocols>
      <routing-protocol xc:operation="merge">
       <type>static</type>
       <name>default0</name>
       <static-routes>
        <ipv6 xmlns="urn:huawei:params:xml:ns:yang:hw-ipv6-static-route">
         <route>
          <destination-prefix>fc00:0:0:2001::1/128</destination-prefix>
          <egress-routing-instance-ipv6-nexthop>
           <dest-routing-instance>vpnaa</dest-routing-instance>
           <next-hop-address>fc00:0:0:2002::2</next-hop-address>
           <preference>80</preference>
          </egress-routing-instance-ipv6-nexthop>
         </route>
        </ipv6>
       </static-routes>
      </routing-protocol>
     </routing-protocols>
    </routing-instance>
   </routing>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <ok/>
</rpc-reply> 

Changing a Multi-Next-Hop IPv6 Static Route (Specified VPN Instance)

This section provides a sample of changing a multi-next-hop IPv6 static route (specified VPN instance).

Table 3-463 Changing a multi-next-hop IPv6 static route (specified VPN instance)

Operation

XPATH

edit-config:replace

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route

ietf-routing:routing/routing-instance

Data Requirements
Table 3-464 Changing a multi-next-hop IPv6 static route (specified VPN instance)

Item

Data

Description

Destination IPv6 address and mask length

fc00:0:0:2001::1/128

Change the VPN instance name of the IPv6 static route with the destination IPv6 address fc00:0:0:2001::1/128 and next-hop IPv6 address fc00:0:0:2002::2 from vpnaa to vpnbb.

VPN instance name

vpnbb

Next-hop IPv6 address

fc00:0:0:2002::2

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
    <routing-instance>
     <name>default-routing-instance</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:ietf-routing">x:default-routing-instance</type>
     <enabled>true</enabled>
     <routing-protocols>
      <routing-protocol xc:operation="replace">
       <type>static</type>
       <name>default0</name>
       <static-routes>
        <ipv6 xmlns="urn:huawei:params:xml:ns:yang:hw-ipv6-static-route">
         <route>
          <destination-prefix>fc00:0:0:2001::1/128</destination-prefix>
          <egress-routing-instance-ipv6-nexthop>
           <dest-routing-instance>vpnbb</dest-routing-instance>
           <next-hop-address>fc00:0:0:2002::2</next-hop-address>
           <preference>80</preference>
          </egress-routing-instance-ipv6-nexthop>
         </route>
        </ipv6>
       </static-routes>
      </routing-protocol>
     </routing-protocols>
    </routing-instance>
   </routing>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <ok/> 
</rpc-reply>

Deleting a Multi-Next-Hop IPv6 Static Route (Specified VPN Instance)

This section provides a sample of deleting a multi-next-hop IPv6 static route (specified VPN instance).

Table 3-465 Deleting a multi-next-hop IPv6 static route (specified VPN instance)

Operation

XPATH

edit-config:remove

ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/ietf-routing:static-routes/huawei-ipv6-static-route:ipv6/route

ietf-routing:routing/routing-instance

Data Requirements
Table 3-466 Deleting a multi-next-hop IPv6 static route (specified VPN instance)

Item

Data

Description

Destination IPv6 address and mask length

fc00:0:0:2001::1/128

Delete the IPv6 static route with the destination IPv6 address fc00:0:0:2001::1/128, VPN instance name vpnbb, and next-hop IPv6 address fc00:0:0:2002::2.

VPN instance name

vpnbb

Next-hop IPv6 address

fc00:0:0:2002::2

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
    <routing-instance>
     <name>default-routing-instance</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:ietf-routing">x:default-routing-instance</type>
     <enabled>true</enabled>
     <routing-protocols>
      <routing-protocol xc:operation="remove">
       <type>static</type>
       <name>default0</name>
       <static-routes>
        <ipv6 xmlns="urn:huawei:params:xml:ns:yang:hw-ipv6-static-route">
         <route>
          <destination-prefix>fc00:0:0:2001::1/128</destination-prefix>
          <egress-routing-instance-ipv6-nexthop>
           <dest-routing-instance>vpnbb</dest-routing-instance>
           <next-hop-address>fc00:0:0:2002::2</next-hop-address>
           <preference>80</preference>
          </egress-routing-instance-ipv6-nexthop>
         </route>
        </ipv6>
       </static-routes>
      </routing-protocol>
     </routing-protocols>
    </routing-instance>
   </routing>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5c58e95e243e4ed1b6a2dc7d7c5f23a4">
 <ok/>
</rpc-reply> 

Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 9649

Downloads: 69

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