Data Model
The configuration model file matching an IP routing table is huawei-route-management.yang.
Table 1 Configuration data model for an IP routing tableObject
|
Description
|
Value
|
Remarks
|
/huawei-route-management:route-entry-get/get-num
|
Indicates the maximum number of routing entries that can be queried at a time.
|
The value is an integer. A maximum of 1024 routing entries can be queried at a time even when the value is greater than 1024.
|
N/A
|
/huawei-route-management:route-entry-get/destination-address
|
Queries routing entries based on specified parameters.
- ip-address: Indicates an IP address.
- ip-mask: Indicates the mask of an IP address.
- vpn-instance: Indicates a VPN instance name.
- search-type: Indicates the query type.
|
The values of the sub-objects are as follows:
- ip-address: The value is in dotted decimal notation.
- ip-mask: The value is an integer in the range from 1 to 32.
- 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.
- search-type: The value is of the enumerated type. The value ip indicates that routing entries are queried based on the specified IP address. The value all indicates that all routing entries are queried.
|
N/A
|
/huawei-route-management:route-entry-get/last-route-details
|
Continues to query routing entries based on the routing entry information queried last time.
- last-ip-address: Indicates an IP address.
- last-ip-mask: Indicates the mask of an IP address.
- last-vpn-instance: Indicates a VPN instance name.
- last-nexthop: Indicates a next-hop IP address.
- last-interface: Indicates an outbound interface.
- last-search-type: Indicates the query type.
|
The values of the sub-objects are as follows:
- last-ip-address: The value is in dotted decimal notation.
- last-ip-mask: The value is an integer in the range from 1 to 32.
- last-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.
- last-nexthop: The value is in dotted decimal notation.
- last-interface: The value is a string of 1 to 64 characters. It consists of the interface type and interface number.
- last-search-type: The value is of the enumerated type. The value ip indicates that routing entries are queried based on the specified IP address. The value all indicates that all routing entries are queried.
|
- If the value of /huawei-arp:arp-entry-get/hash-more is true in the query result of the /huawei-route-management:route-entry-get/destination-address object, the system can continue to query routing entries by the /huawei-route-management:route-entry-get/last-route-details object.
- When a large number of routing entries are to be queried, you can use the /huawei-route-management:route-entry-get/get-num and /huawei-route-management:route-entry-get/last-route-details objects together to implement batch queries of routing entries.
|
/huawei-route-management:route-manage/load-balance/flow
|
Configures the ECMP load balancing mode.
|
The value is of the enumerated type:
- src-ip: Configures ECMP load balancing based on the source IP address.
- src-dst-ip: Configures ECMP load balancing based on the source and destination IP addresses.
By default, ECMP load balancing is performed on packets based on the source IP address, destination IP address, transport-layer source port number, and destination port number.
|
NA
|
Table 2 IP routing entry information returned or reported by the switchObject
|
Description
|
/huawei-route-management:route-entry-get/route-entry-details/ip-address
|
IP address.
|
/huawei-route-management:route-entry-get/route-entry-details/ip-mask
|
Mask of an IP address.
|
/huawei-route-management:route-entry-get/route-entry-details/vpn-instance
|
Name of a VPN instance.
|
/huawei-route-management:route-entry-get/route-entry-details/protocol
|
Routing protocol type.
|
/huawei-route-management:route-entry-get/route-entry-details/cost
|
Cost of a route.
|
/huawei-route-management:route-entry-get/route-entry-details/nexthop
|
Next-hop IP address.
|
/huawei-route-management:route-entry-get/route-entry-details/interface
|
Outbound interface.
|
/huawei-route-management:route-entry-get/route-entry-details/preference
|
Preference of a route.
|
/huawei-route-management:route-entry-get/route-entry-details/flags
|
Route flags.
|
/huawei-route-management:route-entry-get/summary
|
Total number of obtained routing entries.
|
/huawei-route-management:route-entry-get/has-more
|
Query status. The value is of the Boolean type:
|