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).
SPR

SPR

Data Model

The data model file matching SPR is huawei-spr.yang and huawei-site.yang.

Table 3-878 SPR

Object

Description

huawei-spr:smart-policy-route

Indicates that the operation request (creating, deleting, and modifying) object is the SPR-related configurations. It is only used to contain sub-objects, but does not have any data meaning.

huawei-spr:smart-policy-route/period

Indicates the SPR switchover period that ranges from 1 to 65535, in seconds. The default value is 60s.

huawei-spr:smart-policy-route/link-pathes/link-path-name

Indicates the link path name. The value is a string of 1 to 31 case-sensitive characters without spaces.

huawei-spr:smart-policy-route/link-pathes/local-interface

Indicates the local interface name of the link path. The value depends on the interface type and slot ID.

huawei-spr:smart-policy-route/link-pathes/remote-ip-address

Indicates the remote IP address of the link path. The value is in dotted decimal notation.

huawei-spr:smart-policy-route/prober-link/prober-interfaces/interface

Configures a detection link in the SPR. The interface name of a detection link is specified. The value is a string of 1 to 31 case-sensitive characters without spaces.

huawei-spr:smart-policy-route/prober-link/prober-interfaces/nqa/admin-name

Indicates the administrator name of an NQA test instance. The value is a string of 1 to 32 case-sensitive characters without spaces.

huawei-spr:smart-policy-route/prober-link/prober-interfaces/nqa/test-name

Indicates the name of an NQA test instance. The value is a string of 1 to 32 case-sensitive characters without spaces.

huawei-spr:smart-policy-route/prober-link/prober-pathes/path

Configures a detection link in the SPR. Indicates that the detection link is the link path.

huawei-spr:smart-policy-route/prober-link/prober-pathes/nqa/admin-name

Indicates the administrator name of an NQA test instance. The value is a string of 1 to 32 case-sensitive characters without spaces.

huawei-spr:smart-policy-route/prober-link/prober-pathes/nqa/test-name

Indicates the name of an NQA test instance. The value is a string of 1 to 32 case-sensitive characters without spaces.

huawei-spr:smart-policy-route/nqa-state-share/nqa-clients-pathes/link-path-name

Indicates that the detection link is the link path. The value is a string of 1 to 31 case-sensitive characters without spaces.

huawei-spr:smart-policy-route/nqa-state-share/nqa-clients-pathes/port

Indicates the port ID of an NQA client. The value is an integer that ranges from 1 to 65535.

huawei-spr:smart-policy-route/nqa-state-share/nqa-server-port

Indicates the port ID of an NQA server. The value is an integer that ranges from 1 to 65535.

huawei-spr:smart-policy-route/nqa-state-share/nqa-servers-pathes/link-path-name

Indicates that the nqa-server link is the link path.

huawei-spr:smart-policy-route/redirect-link/nqa-relay-groups/name

Indicates that an nqa-relay group is created in the SPR. The value is a string of 1 to 31 case-sensitive characters without spaces.

huawei-spr:smart-policy-route/redirect-link/nqa-relay-groups/relay-members

huawei-spr:smart-policy-route/redirect-link/nqa-relay-groups/relay-members/interface

huawei-spr:smart-policy-route/redirect-link/nqa-relay-groups/relay-members/destination-address

huawei-spr:smart-policy-route/redirect-link/nqa-relay-groups/relay-members/destination-port

Indicates that the interface type and number of a detection link, and the destination IP address and destination port number sent by NQA detection result are added to the nqa-relay group. The value is an integer that ranges from 1025 to 49151.

huawei-spr:smart-policy-route/redirect-link/nqa-relay-links-interfaces

huawei-spr:smart-policy-route/redirect-link/nqa-relay-links-interfaces/interface

huawei-spr:smart-policy-route/redirect-link/nqa-relay-links-interfaces/group-name

Indicates that the NQA detection result of a link path is sent to all members of the nqa-relay-group. It includes the interface type and number of the detection link and the nqa-relay group name.

huawei-spr:smart-policy-route/redirect-link/nqa-relay-links-pathes/path

huawei-spr:smart-policy-route/redirect-link/nqa-relay-links-pathes/group-name

Indicates that the NQA detection result of a link path is sent to all members of the nqa-relay-group. It includes detection link path and nqa-relay group name.

huawei-spr:smart-policy-route/redirect-link/redirect-interfaces/interface

huawei-spr:smart-policy-route/redirect-link/redirect-interfaces/next-hop-address

Indicates the interface type and number of a detection link path, and the IP address of the next hop to which traffic is redirected. Configures a forced redirect link.

huawei-spr:smart-policy-route/redirect-link/redirect-pathes/path

huawei-spr:smart-policy-route/redirect-link/redirect-pathes/next-hop-address

Indicates the detection link path, and the IP address of the next hop to which traffic is redirected. Configures a forced redirect link.

huawei-spr:smart-policy-route/link-groups/name

Indicates that a link group is created and the link group view is displayed. The value is a string of 1 to 31 case-sensitive characters without spaces.

huawei-spr:smart-policy-route/link-groups/link-members-interfaces/interface

Indicates that a detection link path is configured. The value is a string of 1 to 31 case-sensitive characters without spaces.

huawei-spr:smart-policy-route/link-groups/link-members-pathes/path

Indicates that a detection link path is configured. The value is a string of 1 to 31 case-sensitive characters without spaces.

huawei-spr:smart-policy-route/service-map/name

Indicates that a service profile of SPR is created and the service profile view is displayed. The value is a string of 1 to 31 case-sensitive characters without spaces.

huawei-spr:smart-policy-route/service-map/match-rule/simple-acl/acl

Indicates that the SPR service profile is bound to an IPv4 ACL. The value is an integer ranging from 2000 to 3999. The number of a basic ACL ranges from 2000 to 2999, and the number of an advanced ACL ranges from 3000 to 3999.

huawei-spr:smart-policy-route/service-map/match-rule/simple-app/app

Indicates that the service profile of SPR is bound to a SA application protocol. The value is a character string without spaces. The value depends on the applications supported in the signature database.

huawei-spr:smart-policy-route/service-map/match-rule/app-based-acl/acl

huawei-spr:smart-policy-route/service-map/match-rule/app-based-acl/app

Indicates that the service profile of SPR is bound to an IPv4 ACL and a SA application protocol. The value ranges from 2000 to 3999. The number of a basic ACL ranges from 2000 to 2999, and the number of an advanced ACL ranges from 3000 to 3999. The SA application protocol is a character string without spaces. The value depends on the applications supported in the signature database.

huawei-spr:smart-policy-route/service-map/quality-threshold/delay-threshold

Configures the service delay threshold in SPR. The value is an integer that ranges from 0 to 5000. The default value is 5000.

huawei-spr:smart-policy-route/service-map/quality-threshold/jitter-threshold

Indicates that the service jitter threshold of SPR is configured. The value is an integer that ranges from 0 to 3000. The default value is 3000.

huawei-spr:smart-policy-route/service-map/quality-threshold/loss-threshold

Indicates that the service packet loss rate threshold of SPR is configured. The value is an integer that ranges from 0 to 1000. The default value is 1000.

huawei-spr:smart-policy-route/service-map/quality-threshold/cmi-threshold

Indicates that the service Composite Measure Indicator (CMI) threshold of SPR is configured. The minimum CMI threshold is the value calculated in the CMI calculation formula using the thresholds of the delay, jitter, and packet loss rate. The maximum CMI threshold is 9000. The default value is 0.

huawei-spr:smart-policy-route/service-map/master-link-grou

Indicates that the master link group of SPR service is configured. The value is a string of 1 to 31 case-sensitive characters without spaces.

huawei-spr:smart-policy-route/service-map/backup-link-group

Indicates that the backup link group of SPR service is configured. The value is a string of 1 to 31 case-sensitive characters without spaces.

huawei-spr:smart-policy-route/service-map/name

Indicates the SPR service profile name. The value is a string of 1 to 31 case-sensitive characters without spaces.

huawei-spr:smart-policy-route/service-map/priority

Indicates the SPR service profile priority. The value is an integer that ranges from 1 to 4096. A larger value indicates a higher priority.

NOTE:
  • The SPR service profile has the lowest priority when the SPR service profile priority is not configured.
  • SPR service profiles of the same priority take effect in the sequence in which they were configured.

huawei-spr:smart-policy-route/flapping-suppression-period

Indicates the flapping suppression period in SPR. The value is an integer, in seconds. The maximum value is 131070, and the minimum value is twice the link switchover period. If the link switchover period is less than 60, the minimum flapping suppression period is 120.

huawei-spr:smart-policy-route/enhance-flag

Indicates that redirection enhancement is enabled for a redirect-link in SPR. The value is of Boolean type and can be true or false. The value true indicates that redirection enhancement is enabled for a redirect-link, and the value false indicates that redirection enhancement is disabled for a redirect-link.

huawei-site:site/local-site/index

Indicates the index of a local site. The value is an integer that ranges from 1 to 65535.

huawei-site:site/local-site/management-address

Indicates the management interface IP address of the local site. The value is in dotted decimal notation.

huawei-site:site/local-site/synchronization/peer-address

Indicates the synchronized peer IP addresses. The value is in dotted decimal notation.

huawei-site:site/local-site/synchronization/local-port

Indicates the synchronized local port number. The value is an integer that ranges from 1 to 65535.

huawei-site:site/local-site/synchronization/peer-port

Indicates the synchronized peer port number. The value is an integer that ranges from 1 to 65535.

huawei-site:site/local-site/synchronization/attributes/sac-flag

Indicates whether to enable the SAC function. The value is of the Boolean type and can be true or false. The value true indicates that the SAC function is enabled, and the value false indicates that the SAC function is disabled.

huawei-site:site/local-site/site-attributes/site-type

Indicates the type of the local site. The value is of the enumerated type and can be spoke, hub or agg.

huawei-site:site/local-site/site-attributes/auto-send-packet

Indicates whether to enable the function of sending packets automatically. The value is of the Boolean type and can be true or false. The value true indicates that the function is enabled, and the value false indicates that the function is disabled.

huawei-site:site/local-site/vpn-instances/vpn-instance/index

Indicates the VPN instance index of the local site. The value is an integer that ranges from 0 to 65535.

huawei-site:site/local-site/vpn-instances/vpn-instance/name

Indicates the VPN instance name of the local site. 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.

huawei-site:site/local-site/interfaces/interface/index

Indicates the interface index of the local site. The value is an integer that ranges from 0 to 65535.

huawei-site:site/local-site/interfaces/interface/type

Indicates the interface type of the local site. The value is of the enumerated type. The value 1 indicates LAN interfaces, the value 2 indicates WAN interfaces, and the value 3 indicates interlink interfaces.

huawei-site:site/local-site/interfaces/interface/name

Indicates the interface name of the local site.

huawei-site:site/local-site/dual-gateways/dual-gateway/vpn-index

Indicates the VPN instance index of the dual-gateway site. The value is an integer that ranges from 0 to 65535.

huawei-site:site/local-site/dual-gateways/dual-gateway/peer-address

Indicates the peer IP address of the dual-gateway site. The value is in dotted decimal notation.

huawei-site:site/dest-sites/dest-site/index

Indicates the index of a destination site. The value is an integer that ranges from 0 to 65535.

huawei-site:site/dest-sites/dest-site/vpn-index

Indicates the destination VPN instance index. The value is an integer that ranges from 0 to 65535.

huawei-site:site/dest-sites/dest-site/management-ip

Indicates the management interface IP address of the destination site. The value is in dotted decimal notation.

huawei-site:site/dest-sites/dest-site/instance-id

Indicates an IP FPM instance ID. The value is an integer that ranges from 1 to 8355838.

huawei-site:site/dest-sites/dest-site/interface-index

Indicates the interface index of the destination site. The value is an integer that ranges from 0 to 65535.

huawei-site:site/dest-sites/dest-site/dest-address

Indicates the destination IP address of the destination site. The value is in dotted decimal notation.

huawei-site:site/dest-sites/dest-site/link-index

Indicates the link index of the destination site. The value is an integer that ranges from 0 to 255.

huawei-site:site/dest-sites/dest-site/src-link-id

Indicates the source ID of the ipfpm. The value is an integer that ranges from 0 to 4294967295.

huawei-site:site/dest-sites/dest-site/dest-link-id

Indicates the destination ID of the ipfpm. The value is an integer that ranges from 0 to 4294967295.

huawei-site:site/dest-sites/dest-site/sla-type

Indicates the link quality detection mode. The value is of the enumerated type and can be 1, 2, or 3. The value 1 indicates the IP FPM type; the value 2 indicates the NQA type; the value 3 indicates the SPR type.

huawei-site:site/dest-sites/dest-site/attributes/site-type

Indicates the type of the destination site. The value is of the enumerated type and can be spoke, hub or agg.

huawei-site:site/dest-sites/dest-site/attributes/dual-gateway-flag

Indicates whether the dual-gateway function is enabled. The value is of the Boolean type and can be true or false. The value true indicates that the dual-gateway function is enabled, and the value false indicates that the dual-gateway function is disabled.

huawei-site:site/dest-sites/dest-site/dest-networks/network/address

Indicates the network segment address of the interface in the destination site. The value is in dotted decimal notation.

huawei-site:site/dest-sites/dest-site/dest-networks/network/mask

Indicates the mask length of the interface address of the destination site. The value is an integer that ranges from 0 to 32.

huawei-spr:smart-policy-route/application-policys/application-policy/index

Indicates the index of an application policy. The value is an integer that ranges from 0 to 1024.

huawei-spr:smart-policy-route/application-policys/application-policy/description

Indicates the description of the application policy. The value is a string of 0 to 32 characters.

huawei-spr:smart-policy-route/application-policys/application-policy/vpn-index

Indicates the index of a VPN instance. The value is an integer that ranges from 0 to 65535.

huawei-spr:smart-policy-route/application-policys/application-policy/time-range

Indicates the name of the time range during which the SPR application policy takes effect. If this parameter is not specified, the SPR application policy is always valid. The value is a string of 1 to 32 case-sensitive characters without spaces, starting with an upper-case or a lower-case letter. In addition, the word all cannot be specified as a time range name.

huawei-spr:smart-policy-route/application-policys/application-policy/priority

Indicates the priority of the application policy. The value is an integer that ranges from 1 to 4096. A larger value indicates a higher priority.

NOTE:

If application policies have the same priority, these policies take effect according to the configuration sequence. If no priority is configured for an application policy, the priority of the application policy is 0 by default.

huawei-spr:smart-policy-route/application-policys/application-policy/rule-set/simple-acls/simple-acl/acl

Indicates the number of an ACL. The value is an integer that ranges from 2000 to 3999. A basic ACL number ranges from 2000 to 2999, and an advanced ACL number ranges from 3000 to 3999.

huawei-spr:smart-policy-route/application-policys/application-policy/rule-set/simple-app-groups/simple-app-group/app-group-name

Indicates the name of a user-defined application group. The value is a string of 1 to 32 case-sensitive characters without spaces.

huawei-spr:smart-policy-route/application-policys/application-policy/rule-set/app-group-based-acls/app-group-based-acl/acl

Indicates the number of an ACL. The value is an integer that ranges from 2000 to 3999. A basic ACL number ranges from 2000 to 2999, and an advanced ACL number ranges from 3000 to 3999.

huawei-spr:smart-policy-route/application-policys/application-policy/rule-set/app-group-based-acls/app-group-based-acl/app-group-name

Indicates the name of a user-defined application group. The value is a string of 1 to 32 case-sensitive characters without spaces.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-link/link-index

Indicates the index of the primary link. The value is an integer that ranges from 0 to 65535.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-interface/interface-index

Indicates the interface index of the primary link. The value is an integer that ranges from 0 to 65535.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-link/link-index

Indicates the index of the backup link. The value is an integer that ranges from 0 to 65535.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-interface/interface-index

Indicates the interface index of the backup link. The value is an integer that ranges from 0 to 65535.

huawei-spr:smart-policy-route/application-policys/application-policy/quality-threshold/delay-threshold

Indicates the delay threshold of SPR services. The value is an integer that ranges from 0 to 5000, in milliseconds.

huawei-spr:smart-policy-route/application-policys/application-policy/quality-threshold/jitter-threshold

Indicates the jitter threshold of SPR services. The value is an integer that ranges from 0 to 3000, in milliseconds.

huawei-spr:smart-policy-route/application-policys/application-policy/quality-threshold/loss-threshold

Indicates the packet loss rate threshold of SPR services. The value is an integer that ranges from 0 to 1000, in ‰.

huawei-spr:smart-policy-route/application-policys/application-policy/quality-threshold/cmi-threshold

Indicates the service composite measure indicator (CMI) threshold in SPR. The value is an integer, and the value range varies according to the CMI calculation formula, and thresholds of the delay, jitter, and packet loss rate. The minimum CMI threshold is the value calculated in the CMI calculation formula using the thresholds of the delay, jitter, and packet loss rate. The maximum CMI threshold is 9000. If NQA detection is used, the CMI calculation formula is CMI = 9000 (D + J + L). If IP FPMdetection is used, the CMI calculation formula is CMI = D + J + L.

NOTE:

If the default CMI calculation formula and the default thresholds of the delay, jitter, and packet loss rate are used, the CMI threshold ranges from 0 to 9000.

NOTE:

V300R003C10 and later versions support the objects listed below.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-transport-network/master-tn-id

Indicates the transport network ID of the primary link. The value is an integer that ranges from 0 to 65535.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-transport-network/master-tn-name

Indicates the transport network name of the primary link. The value is a string of 1 to 31 case-sensitive characters without spaces.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-transport-network/priority

Indicates the transport network priority of the primary link. The value is an integer that ranges from 1 to 8 and defaults to 1.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-transport-network/backup-tn-id

Indicates the transport network ID of the backup link. The value is an integer that ranges from 0 to 65535.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-transport-network/backup-tn-name

Indicates the transport network name of the backup link. The value is a string of 1 to 31 case-sensitive characters without spaces.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-transport-network/priority

Indicates the transport network priority of the backup link. The value is an integer that ranges from 1 to 8 and defaults to 1.

huawei-spr:smart-policy-route/application-policys/application-policy/app-priority

Indicates the application priority. The value is an integer that ranges from 1 to 8 and defaults to 1.

huawei-spr:smart-policy-route/application-policys/application-policy/schedule-mode

Indicates the scheduling mode:

  • load-balance
  • path-prefer

huawei-spr:smart-policy-route/application-policys/application-policy/switch-over

Indicates the switchover function. The value is of the Boolean type and can be true or false. The default value is true.

huawei-spr:smart-policy-route/application-policys/application-policy/default-action

Indicates the default action:

  • discard
  • forward

huawei-spr:smart-policy-route/application-policys/application-policy/quality-threshold/bandwidth-threshold

Indicates the upper bandwidth threshold of an application policy. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-spr:smart-policy-route/application-policys/application-policy/quality-threshold/bandwidth-lower-threshold

Indicates the lower bandwidth threshold of an application policy. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-interface/priority

Indicates the primary link priority. The value is an integer that ranges from 1 to 8 and defaults to 1.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-interface/upper-limit-percentage

Indicates the upper bandwidth usage threshold of an interface on the primary link. The value is an integer that ranges from 0 to 100.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-interface/upper-limit-numerical

Indicates the upper bandwidth threshold of an interface on the primary link. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-interface/lower-limit-percentage

Indicates the lower bandwidth usage threshold of an interface on the primary link. The value is an integer that ranges from 0 to 100.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-interface/lower-limit-numerical

Indicates the lower bandwidth threshold of an interface on the primary link. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-interface/app-upper-limit-percentage

Indicates the application upper bandwidth usage threshold of an interface on the primary link. The value is an integer that ranges from 0 to 100.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-interface/app-upper-limit-numerical

Indicates the application upper bandwidth threshold of an interface on the primary link. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-interface/app-lower-limit-percentage

Indicates the application lower bandwidth usage threshold of an interface on the primary link. The value is an integer that ranges from 0 to 100.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-interface/app-lower-limit-numerical

Indicates the application lower bandwidth threshold of an interface on the primary link. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-transport-network/upper-limit-percentage

Indicates the upper bandwidth usage threshold of the transport network for the primary link. The value is an integer that ranges from 0 to 100.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-transport-network/upper-limit-numerical

Indicates the upper bandwidth threshold of the transport network for the primary link. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-transport-network/lower-limit-percentage

Indicates the lower bandwidth usage threshold of the transport network for the primary link. The value is an integer that ranges from 0 to 100.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-transport-network/lower-limit-numerical

Indicates the lower bandwidth threshold of the transport network for the primary link. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-transport-network/app-upper-limit-percentage

Indicates the application upper bandwidth usage threshold of the transport network for the primary link. The value is an integer that ranges from 0 to 100.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-transport-network/app-upper-limit-numerical

Indicates the application upper bandwidth threshold of the transport network for the primary link. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-transport-network/app-lower-limit-percentage

Indicates the application lower bandwidth usage threshold of the transport network for the primary link. The value is an integer that ranges from 0 to 100.

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-transport-network/app-lower-limit-numerical

Indicates the application lower bandwidth threshold of the transport network for the primary link. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-interface/priority

Indicates the backup link priority. The value is an integer that ranges from 1 to 8 and defaults to 1.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-interface/upper-limit-percentage

Indicates the upper bandwidth usage threshold of an interface on the backup link. The value is an integer that ranges from 0 to 100.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-interface/upper-limit-numerical

Indicates the upper bandwidth threshold of an interface on the backup link. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-interface/lower-limit-percentage

Indicates the lower bandwidth usage threshold of an interface on the backup link. The value is an integer that ranges from 0 to 100.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-interface/lower-limit-numerical

Indicates the lower bandwidth threshold of an interface on the backup link. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-interface/app-upper-limit-percentage

Indicates the application upper bandwidth usage threshold of an interface on the backup link. The value is an integer that ranges from 0 to 100.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-interface/app-upper-limit-numerical

Indicates the application upper bandwidth threshold of an interface on the backup link. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-interface/app-lower-limit-percentage

Indicates the application lower bandwidth usage threshold of an interface on the backup link. The value is an integer that ranges from 0 to 100.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-interface/app-lower-limit-numerical

Indicates the application lower bandwidth threshold of an interface on the backup link. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-transport-network/upper-limit-percentage

Indicates the upper bandwidth usage threshold of the transport network for the backup link. The value is an integer that ranges from 0 to 100.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-transport-network/upper-limit-numerical

Indicates the upper bandwidth threshold of the transport network for the backup link. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-transport-network/lower-limit-percentage

Indicates the lower bandwidth usage threshold of the transport network for the backup link. The value is an integer that ranges from 0 to 100.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-transport-network/lower-limit-numerical

Indicates the lower bandwidth threshold of the transport network for the backup link. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-transport-network/app-upper-limit-percentage

Indicates the application upper bandwidth usage threshold of the transport network for the backup link. The value is an integer that ranges from 0 to 100.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-transport-network/app-upper-limit-numerical

Indicates the application upper bandwidth threshold of the transport network for the backup link. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-transport-network/app-lower-limit-percentage

Indicates the application lower bandwidth usage threshold of the transport network for the backup link. The value is an integer that ranges from 0 to 100.

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-transport-network/app-lower-limit-numerical

Indicates the application lower bandwidth threshold of the transport network for the backup link. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-site:site/local-site/interfaces/interface/input-bandwidth

Indicates the inbound bandwidth of an interface. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-site:site/local-site/interfaces/interface/output-bandwidth

Indicates the outbound bandwidth of an interface. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

huawei-spr:smart-policy-route/path-selection

Indicates the path selection mode:

  • symmetric
  • unidirectional

Creating the SPR Configuration

This section provides a sample of creating the SPR configuration.

Table 3-879 Creating the SPR configuration

Operation

XPATH

edit-config:default

huawei-spr:smart-policy-route

NOTE:

Before configuring SPR, complete the following tasks:

•Configuring link layer parameters and IP addresses for interfaces so that the link layer protocol of the interfaces is Up and the route is reachable.

•Configuring ACLs to classify service flows.

•Configuring NQA test instances to detect link quality.

Data Requirements
Table 3-880 Creating the SPR configuration

Item

Data

Description

SPR switchover period

70

Configure the SPR.

Link path name

linkpath

Local interface name of the link path

GigabitEthernet0/0/1

Remote IP address of the link path

18.8.3.1

Interface name of a detection link

GigabitEthernet0/0/1

Administrator name of an NQA test instance for an interface detection link

AdminName

Name of an NQA test instance for an interface detection link

TestName

Link path name

linkpath

Administrator name of an NQA test instance for the detection link of the link path

AdminName

Name of the NQA test instance for the detection link of the link path

TestName

Port number of an NQA client

20000

Port number of the NQA server

20000

NQA server link name

linkpath

NQA relay group name

abc

Interface type and number of a detection link

GigabitEthernet0/0/1

Destination IP address sent by the NQA detection result

4.5.8.7

Destination port number sent by the NQA detection result

1080

NQA detection result of a link path that is sent to all members of the NQA relay group, including the interface type and number of the detection link and the NQA relay group name

GigabitEthernet0/0/1

abc

NQA detection result of a link path that is sent to all members of the NQA relay group, including the detection link path and the NQA relay group name

linkpath

abc

Interface type and number of a detection link, and the IP address of the next hop to which traffic is redirected

GigabitEthernet0/0/1

4.5.8.8

Detection link path, and the IP address of the next hop to which traffic is redirected

linkpath

4.5.8.8

Link group name

group1

Interface on which a detection link is configured

GigabitEthernet0/0/3

Link path that defines a detection link

linkpath

Service profile of SPR

spr1

Simple ACL bound to the service profile of SPR

ControlListName

Simple app bound to the service profile of SPR

ftp

IPv4 ACL and SA application protocols bound to the service profile of SPR

ControlListName

ftp

Service delay threshold of SPR

2000

Service jitter threshold of SPR

2000

Service packet loss rate threshold of SPR

500

Service CMI threshold of SPR

7000

Master link group of SPR service

group1

Backup link group of SPR service

group2

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062">
 <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>GigabitEthernet0/0/1</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:ethernetCsmacd</type>
     <enabled>true</enabled>
     <description>GigabitEthernet0/0/1 config for spr</description>
    </interface>
   </interfaces>
   <testcase-config xmlns="urn:huawei:params:xml:ns:yang:huawei-nqa">
    <cases>
     <case-input>
      <jitter-case>
       <jitter-packetnum>20</jitter-packetnum>
       <source-address>35.2.3.2</source-address>
       <destination-port>10000</destination-port>
       <count>3</count>
       <frequency>1</frequency>
       <source-port>10001</source-port>
       <interval>20</interval>
       <timeout>3</timeout>
       <tos>0</tos>
       <destination-address>35.2.3.1</destination-address>
       <ttl>30</ttl>
       <hardware-based-enable>false</hardware-based-enable>
      </jitter-case>
     </case-input>
     <admin-name>AdminName</admin-name>
     <type>jitter</type>
     <test-name>TestName</test-name>
    </cases>
    <nqa-server>
     <auto-address>true</auto-address>
     <server-port>10000</server-port>
    </nqa-server>
   </testcase-config>
   <access-lists xmlns="urn:ietf:params:xml:ns:yang:ietf-acl">
    <access-list>
     <access-list-entries>
      <access-list-entry>
       <rule-name>13</rule-name>
       <matches>
        <protocol>1</protocol>
       </matches>
       <actions>
        <permit/>
       </actions>
      </access-list-entry>
     </access-list-entries>
     <access-control-list-name>ControlListName</access-control-list-name>
    </access-list>
   </access-lists>
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <period>70</period>
    <link-pathes>
     <link-path-name>linkpath</link-path-name>
     <local-interface>GigabitEthernet0/0/1</local-interface>
     <remote-ip-address>18.8.3.1</remote-ip-address>
    </link-pathes>
    <prober-link>
     <prober-interfaces>
      <interface>GigabitEthernet0/0/1</interface>
      <nqa>
       <admin-name>AdminName</admin-name>
       <test-name>TestName</test-name>
      </nqa>
     </prober-interfaces>
     <prober-pathes>
      <path>linkpath</path>
      <nqa>
       <admin-name>AdminName </admin-name>
       <test-name>TestName</test-name>
      </nqa>
     </prober-pathes>
    </prober-link>
    <nqa-state-share>
     <nqa-clients-pathes>
      <link-path-name>linkpath</link-path-name>
      <port>20000</port>
     </nqa-clients-pathes>
     <nqa-server-port>20000</nqa-server-port>
     <nqa-servers-pathes>
      <link-path-name>linkpath</link-path-name>
     </nqa-servers-pathes>
    </nqa-state-share>
    <redirect-link>
     <nqa-relay-groups>
      <name>abc</name>
      <relay-members>
       <interface>GigabitEthernet0/0/1</interface>
       <destination-address>4.5.8.7</destination-address>
       <destination-port>1080</destination-port>
      </relay-members>
     </nqa-relay-groups>
     <nqa-relay-links-interfaces>
      <interface>GigabitEthernet0/0/1</interface>
      <group-name>abc</group-name>
     </nqa-relay-links-interfaces>
     <nqa-relay-links-pathes>
      <path>linkpath</path>
      <group-name>abc</group-name>
     </nqa-relay-links-pathes>
     <redirect-interfaces>
      <interface>GigabitEthernet0/0/1</interface>
      <next-hop-address>4.5.8.8</next-hop-address>
     </redirect-interfaces>
     <redirect-pathes>
      <path>linkpath</path>
      <next-hop-address>4.5.8.8</next-hop-address>
     </redirect-pathes>
    </redirect-link>
    <link-groups>
     <name>group1</name>
     <link-members-interfaces>
      <interface>GigabitEthernet0/0/1</interface>
     </link-members-interfaces>
     <link-members-pathes>
      <path>linkpath</path>
     </link-members-pathes>
    </link-groups>
    <link-groups>
     <name>group2</name>
     <link-members-interfaces>
      <interface>GigabitEthernet0/0/1</interface>
     </link-members-interfaces>
     <link-members-pathes>
      <path>linkpath</path>
     </link-members-pathes>
    </link-groups>
    <service-map>
     <name>spr1</name>
     <match-rule>
      <simple-acl>
       <acl>ControlListName</acl>
      </simple-acl>
      <simple-app>
       <app>ftp</app>
      </simple-app>
      <app-based-acl>
       <acl>ControlListName</acl>
       <app>ftp</app>
      </app-based-acl>
     </match-rule>
     <quality-threshold>
      <delay-threshold>2000</delay-threshold>
      <jitter-threshold>2000</jitter-threshold>
      <loss-threshold>500</loss-threshold>
     </quality-threshold>
     <master-link-group>group1</master-link-group>
     <backup-link-group>group2</backup-link-group>
    </service-map>
   </smart-policy-route>
  </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_8fb25b618918407291333da8074b0d22"> 
 <ok/>
</rpc-reply>

Modifying the SPR Configuration

This section provides a sample of modifying the SPR configuration.

Table 3-881 Modifying the SPR configuration

Operation

XPATH

edit-config:replace

huawei-spr:smart-policy-route

Data Requirements
Table 3-882 Modifying the SPR configuration

Item

Data

Description

SPR switchover period

71

Modify the SPR configuration.

Link path name

linkpath1

Local interface name of the link path

GigabitEthernet0/0/3

Remote IP address of the link path

18.8.3.2

Service delay threshold of SPR

2100

Service jitter threshold of SPR

2100

Service packet loss rate threshold of SPR

500

Service CMI threshold of SPR

7500

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_8fb25b618918407291333da8074b0d22">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr"xc:operation="replace">
    <period>71</period>
    <link-pathes>
     <link-path-name>linkpath1</link-path-name>
     <local-interface>GigabitEthernet0/0/3</local-interface>
     <remote-ip-address>18.8.3.2</remote-ip-address>
    </link-pathes>
    <service-map>
     <name>spr1</name>
     <quality-threshold>
      <delay-threshold>2100</delay-threshold>
      <jitter-threshold>2100</jitter-threshold>
      <loss-threshold>500</loss-threshold>
     </quality-threshold>
    </service-map>
   </smart-policy-route>
  </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_8fb25b618918407291333da8074b0d22"> 
 <ok/>
</rpc-reply> 

Deleting the SPR Configuration

This section provides a sample of deleting the SPR configuration.

Table 3-883 Deleting the SPR configuration

Operation

XPATH

edit-config:create

huawei-spr:smart-policy-route

Data Requirements
Table 3-884 Deleting the SPR configuration

Item

Data

Description

SPR switchover period

71

Delete the SPR configuration.

NOTE:

To delete the SRP-related configuration, add xc:operation="remove" in the corresponding yang object.

Link path name

linkpath1

Local interface name of the link path

GigabitEthernet0/0/3

Remote IP address of the link path

18.8.3.2

Interface name of a detection link

GigabitEthernet0/0/1

Administrator name of an NQA test instance for an interface detection link

AdminName

Name of an NQA test instance for an interface detection link

TestName

Link path name

linkpath

Administrator name of an NQA test instance for the detection link of the link path

AdminName

Name of the NQA test instance for the detection link of the link path

TestName

Port number of an NQA client

20000

Port number of the NQA server

20000

NQA server link name

linkpath

NQA relay group name

abc

Interface type and number of a detection link

GigabitEthernet0/0/1

Destination IP address sent by the NQA detection result

4.5.8.7

Destination port number sent by the NQA detection result

1080

NQA detection result of a link path that is sent to all members of the NQA relay group, including the interface type and number of the detection link and the NQA relay group name

GigabitEthernet0/0/1

abc

NQA detection result of a link path that is sent to all members of the NQA relay group, including the detection link path and the NQA relay group name

linkpath

abc

Interface type and number of a detection link, and the IP address of the next hop to which traffic is redirected

GigabitEthernet0/0/1

4.5.8.8

Detection link path, and the IP address of the next hop to which traffic is redirected

linkpath

4.5.8.8

Link group name

group1

Interface on which a detection link is configured

GigabitEthernet0/0/1

Link path that defines a detection link

linkpath

Service profile of SPR

spr1

Simple ACL bound to the service profile of SPR

ControlListName

Simple app bound to the service profile of SPR

ftp

IPv4 ACL and SA application protocols bound to the service profile of SPR

ControlListName

ftp

Service delay threshold of SPR

2100

Service jitter threshold of SPR

2100

Service packet loss rate threshold of SPR

500

Service CMI threshold of SPR

7500

Master link group of SPR service

group1

Backup link group of SPR service

group2

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_165fd075f68e4ac88d4ce53df6f8f9bc">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr" xc:operation="remove"/>
  </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_8fb25b618918407291333da8074b0d22">
 <ok/>
</rpc-reply>  

Configuring the Priority for an SPR Service Profile

NOTE:
  • The SPR service profile has the lowest priority when the SPR service profile priority is not configured.
  • SPR service profiles of the same priority take effect in the sequence in which they were configured.
Setting the Priority for an SPR Service Profile

This section provides a sample of setting the priority for an SPR service profile.

Table 3-885 Setting the priority for an SPR service profile

Operation

XPATH

edit-config:default

/huawei-spr:smart-policy-route/service-map/priority

Data Requirements
Table 3-886 Setting the priority for an SPR service profile

Item

Data

Description

SPR service profile name

spr1

Set the priority 100 for the SPR service profile spr1.

SPR service profile priority

100

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr" >     
    <service-map>
     <name>spr1</name>
     <priority>100</priority>
    </service-map>
   </smart-policy-route> 
  </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_dc9bf91389364b8cada05b7d95f3e062"> 
 <ok/> 
</rpc-reply> 
Modifying the Priority for an SPR Service Profile

This section provides a sample of modifying the priority for an SPR service profile.

Table 3-887 Modifying the priority for an SPR service profile

Operation

XPATH

edit-config:replace

/huawei-spr:smart-policy-route/service-map/priority

Data Requirements
Table 3-888 Modifying the priority for an SPR service profile

Item

Data

Description

SPR service profile name

spr1

Modify the priority 300 for the SPR service profile spr1.

SPR service profile priority

300

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr" >     
    <service-map>
     <name>spr1</name>
     <priority xc:operation="replace">300</priority>
    </service-map>
   </smart-policy-route> 
  </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_dc9bf91389364b8cada05b7d95f3e062"> 
 <ok/> 
</rpc-reply> 

Restoring the Default Priority of an SPR Service Profile

This section provides a sample of restoring the default priority of an SPR service profile.

Table 3-889 Restoring the default priority of an SPR service profile

Operation

XPATH

edit-config:remove

/huawei-spr:smart-policy-route/service-map/priority

Data Requirements
Table 3-890 Restoring the default priority of an SPR service profile

Item

Data

Description

SPR service profile name

spr1

Restore the default priority of an SPR service profile.

SPR service profile priority

100

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr" >     
    <service-map>
     <name>spr1</name>
     <priority xc:operation="remove">100</priority>
    </service-map>
   </smart-policy-route> 
  </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_dc9bf91389364b8cada05b7d95f3e062"> 
 <ok/> 
</rpc-reply> 

Configuring the Flapping Suppression Period in SPR

Configuring the Flapping Suppression Period in SPR

This section provides a sample of configuring the flapping suppression period in SPR.

Table 3-891 Configuring the flapping suppression period in SPR

Operation

XPATH

edit-config:merge

huawei-spr:smart-policy-route/flapping-suppression-period

Data Requirements
Table 3-892 Configuring the flapping suppression period in SPR

Item

Data

Description

Flapping suppression period

360

Configure the flapping suppression period in SPR to 360s.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_08a6ff32d57a4684b7054a53b32042de">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <flapping-suppression-period xc:operation="merge">360</flapping-suppression-period>
   </smart-policy-route>
  </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_dc9bf91389364b8cada05b7d95f3e062"> 
 <ok/> 
</rpc-reply> 
Changing the Flapping Suppression Period in SPR

This section provides a sample of changing the flapping suppression period in SPR.

Table 3-893 Changing the flapping suppression period in SPR

Operation

XPATH

edit-config:replace

huawei-spr:smart-policy-route/flapping-suppression-period

Data Requirements
Table 3-894 Changing the flapping suppression period in SPR

Item

Data

Description

Flapping suppression period

400

Change the flapping suppression period in SPR to 400s.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_08a6ff32d57a4684b7054a53b32042de">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <flapping-suppression-period xc:operation="replace">400</flapping-suppression-period>
   </smart-policy-route>
  </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_dc9bf91389364b8cada05b7d95f3e062"> 
 <ok/> 
</rpc-reply> 
Deleting the Flapping Suppression Period in SPR

This section provides a sample of deleting the flapping suppression period in SPR.

Table 3-895 Deleting the flapping suppression period in SPR

Operation

XPATH

edit-config:remove

huawei-spr:smart-policy-route/flapping-suppression-period

Data Requirements
Table 3-896 Deleting the flapping suppression period in SPR

Item

Data

Description

Flapping suppression period

400

Delete the flapping suppression period in SPR.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_08a6ff32d57a4684b7054a53b32042de">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <flapping-suppression-period xc:operation="remove">400</flapping-suppression-period>
   </smart-policy-route>
  </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_dc9bf91389364b8cada05b7d95f3e062"> 
 <ok/> 
</rpc-reply> 

Configuring Redirection Enhancement for a Redirect-Link in SPR

Enabling Redirection Enhancement for a Redirect-Link in SPR

This section provides a sample of enabling redirection enhancement for a redirect-link in SPR.

Table 3-897 Enabling redirection enhancement for a redirect-link in SPR

Operation

XPATH

edit-config:default

huawei-spr:smart-policy-route/enhance-flag

Data Requirements
Table 3-898 Enabling redirection enhancement for a redirect-link in SPR

Item

Data

Description

Enabling redirection enhancement for a redirect-link

true

Enable redirection enhancement for a redirect-link in SPR.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_08a6ff32d57a4684b7054a53b32042de">
 <edit-config>      
  <target>       
   <running/> 
  </target>      
  <error-option>rollback-on-error</error-option>                   
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">  
   <enhance-flag>true</enhance-flag>
   </smart-policy-route> 
  </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_08a6ff32d57a4684b7054a53b32042de"> 
 <ok/> 
</rpc-reply> 
Disabling Redirection Enhancement for a Redirect-Link in SPR

This section provides a sample of disabling redirection enhancement for a redirect-link in SPR.

Table 3-899 Disabling redirection enhancement for a redirect-link in SPR

Operation

XPATH

edit-config:default

huawei-spr:smart-policy-route/enhance-flag

Data Requirements
Table 3-900 Disabling redirection enhancement for a redirect-link in SPR

Item

Data

Description

Enabling redirection enhancement for a redirect-link

false

Disable redirection enhancement for a redirect-link in SPR.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_08a6ff32d57a4684b7054a53b32042de">
 <edit-config>      
  <target>       
   <running/> 
  </target>      
  <error-option>rollback-on-error</error-option>                   
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">  
   <enhance-flag>false</enhance-flag>
   </smart-policy-route> 
  </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_08a6ff32d57a4684b7054a53b32042de"> 
 <ok/> 
</rpc-reply> 

Configuring SRP to Select a Link for Services based on IP FPM Detection Results

Configuring a Site Adjacency Table

This section provides a sample of configuring a site adjacency table.

Table 3-901 Configuring a site adjacency table

Operation

XPATH

edit-config:merge

huawei-site:site

Data Requirements
Table 3-902 Configuring a site adjacency table

Item

Data

Description

Index of a local site

11

Configure information about a site adjacency table.

Management interface IP address of the local site

10.10.10.10

Synchronized peer IP address

10.12.13.14

Synchronized local port number

2000

Synchronized peer port number

2001

Whether to enable the SAC function

true

VPN instance index of the local site

15

VPN instance name of the local site

ntptest

VPN instance index of the local site

16

VPN instance name of the local site

ntptest1

Interface index of the local site

20

Interface name of the local site

GigabitEthernet0/0/3

Interface index of the local site

21

Interface name of the local site

GigabitEthernet0/0/4

VPN instance index of the dual-gateway site

50

Peer IP address of the dual-gateway site

10.12.13.15

VPN instance index of the dual-gateway site

51

Peer IP address of the dual-gateway site

10.12.14.15

Type of the local site

hub

Whether to send packets automatically

true

Index of a destination site

11

Index of a destination VPN instance

50

Management interface IP address of the destination site

10.10.10.12

Interface index of the destination site

18

Destination IP address of the destination site

11.12.13.16

Link index of the destination site

14

Link type of the destination site

2

Type of the destination site

hub

Whether the dual-gateway function is enabled

true

Network segment address of the interface in the destination site

11.12.13.14

Mask length of the interface address of the destination site

24

Network segment address of the interface in the destination site

12.12.13.14

Mask length of the interface address of the destination site

24

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <vpn-instances xmlns="urn:huawei:params:xml:ns:yang:huawei-l3vpn">
    <vpn-instance>
     <vpn-instance-name>ntptest</vpn-instance-name>
     <ipv4-family>
      <route-distinguisher>304:2</route-distinguisher>
     </ipv4-family>
    </vpn-instance>
    <vpn-instance>
     <vpn-instance-name>ntptest1</vpn-instance-name>
     <ipv4-family>
      <route-distinguisher>303:2</route-distinguisher>
     </ipv4-family>
    </vpn-instance>
   </vpn-instances> 
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces" >
    <interface>
     <name>GigabitEthernet0/0/3</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:ethernetCsmacd</type>
     <enabled>true</enabled>
     <description>aa</description>
    </interface>
    <interface>
     <name>GigabitEthernet0/0/4</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:ethernetCsmacd</type>
     <enabled>true</enabled>
     <description>aa</description>
    </interface>
   </interfaces>
   <site xmlns="urn:huawei:yang:huawei-site">
    <local-site xc:operation="merge">
     <index>11</index>
     <management-address>10.10.10.10</management-address>
     <synchronization>
      <peer-address>10.12.13.14</peer-address>
      <local-port>2000</local-port>
      <peer-port>2001</peer-port>
      <attributes>
       <sac-flag>true</sac-flag>
      </attributes>
     </synchronization>
     <vpn-instances>
      <vpn-instance>
       <index>15</index>
       <name>ntptest</name>
      </vpn-instance>
      <vpn-instance>
       <index>16</index>
       <name>ntptest1</name>
      </vpn-instance>
     </vpn-instances>
     <interfaces>
      <interface>
       <index>20</index>
       <name>GigabitEthernet0/0/3</name>
      </interface>
      <interface>
       <index>21</index>
       <name>GigabitEthernet0/0/4</name>
      </interface>
     </interfaces>
     <dual-gateways>
      <dual-gateway>
       <vpn-index>50</vpn-index>
       <peer-address>10.12.13.15</peer-address>
      </dual-gateway>
      <dual-gateway>
       <vpn-index>51</vpn-index>
       <peer-address>10.12.14.15</peer-address>
      </dual-gateway>
     </dual-gateways>
     <site-attributes>
      <site-type>hub</site-type>
      <auto-send-packet>true</auto-send-packet>
     </site-attributes>
    </local-site>
    <dest-sites>
     <dest-site xc:operation="merge">
      <index>11</index>
      <vpn-index>50</vpn-index>
      <management-ip>10.10.10.12</management-ip>
      <interface-index>18</interface-index>
      <dest-address>11.12.13.16</dest-address>
      <link-index>14</link-index>
      <sla-type>2</sla-type>
      <attributes>
       <site-type>hub</site-type>
       <dual-gateway-flag>true</dual-gateway-flag>
      </attributes>
      <dest-networks>
       <network>
        <address>11.12.13.14</address>
        <mask>24</mask>
       </network>
       <network>
        <address>12.12.13.14</address>
        <mask>24</mask>
       </network>
      </dest-networks>
     </dest-site>
    </dest-sites>
   </site> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">  
 <ok/>  
</rpc-reply> 
Configuring a Site Application Policy

This section provides a sample of configuring a site application policy.

Table 3-903 Configuring a site application policy

Operation

XPATH

edit-config:merge

huawei-spr:smart-policy-route/application-policys/application-policy

Data Requirements
Table 3-904 Configuring a site application policy

Item

Data

Description

Index of an application policy

11

Configure a site application policy.

VPN instance index

11

Name of the time range during which the SPR application policy takes effect

spr_public_vpn0_3

Priority of the application policy

19

Number of an ACL

3123

Name of a user-defined application group

group1

Number of an ACL

3123

Name of a user-defined application group

group1

Interface index of the primary link

20

Interface index of the backup link

21

Delay threshold of SPR services

3000

Jitter threshold of SPR services

2300

Packet loss rate threshold of SPR services

500

CMI of SPR services

6000

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <application-groups xmlns="urn:huawei:params:xml:ns:yang:huawei-application-group" xc:operation="merge">
    <vsys>
     <name>name</name>
     <application-group>
      <name>group1</name>
     </application-group>
    </vsys>
   </application-groups>
   <time-ranges xmlns="urn:huawei:params:xml:ns:yang:huawei-time-range">
    <time-range>
     <name>spr_public_vpn0_3</name>
     <vsys>public</vsys>
     <period-time>
      <start>07:00:00</start>
      <end>20:30:00</end>
      <weekday>tuesday</weekday>
      <weekday>friday</weekday>
     </period-time>
    </time-range>
   </time-ranges>
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy xc:operation="merge">
      <index>11</index>
      <vpn-index>11</vpn-index>
      <time-range>spr_public_vpn0_3</time-range>
      <priority>19</priority>
      <rule-set>
       <simple-acls>
        <simple-acl>
         <acl>3123</acl>
        </simple-acl>
       </simple-acls>
       <simple-app-groups>
        <simple-app-group>
         <app-group-name>group1</app-group-name>
        </simple-app-group>
       </simple-app-groups>
       <app-group-based-acls>
        <app-group-based-acl>
         <acl>3123</acl>
         <app-group-name>group1</app-group-name>
        </app-group-based-acl>
       </app-group-based-acls>
      </rule-set>
      <master-links>
       <master-link>
        <link-index>20</link-index>
       </master-link>
      </master-links>
      <backup-links>
       <backup-link>
        <link-index>21</link-index>
       </backup-link>
      </backup-links>
      <quality-threshold>
       <delay-threshold>3000</delay-threshold>
       <jitter-threshold>2300</jitter-threshold>
       <loss-threshold>500</loss-threshold>
       <cmi-threshold>6000</cmi-threshold>
      </quality-threshold>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">  
 <ok/>  
</rpc-reply> 
Modifing a Site Adjacency Table

This section provides a sample of modifing a site adjacency table.

Table 3-905 Modifing a site adjacency table

Operation

XPATH

edit-config:replace

huawei-site:site

Data Requirements
Table 3-906 Modifing a site adjacency table

Item

Data

Description

Index of a local site

10

Modify information about a site adjacency table.

Management interface IP address of the local site

10.10.10.11

Synchronized peer IP address

10.12.13.24

Synchronized local port number

3000

Synchronized peer port number

3001

Whether to enable the SAC function

true

VPN instance index of the local site

12

VPN instance name of the local site

vpn1

VPN instance index of the local site

13

VPN instance name of the local site

vpn2

Interface index of the local site

34

Interface name of the local site

GigabitEthernet1/0/0

Interface index of the local site

35

Interface name of the local site

GigabitEthernet1/0/1

VPN instance index of the dual-gateway site

101

Peer IP address of the dual-gateway site

10.12.13.20

VPN instance index of the dual-gateway site

102

Peer IP address of the dual-gateway site

10.12.14.22

Type of the local site

hub

Whether to send packets automatically

true

Index of a destination site

20

Index of a destination VPN instance

6

Management interface IP address of the destination site

10.10.10.22

Interface index of the destination site

17

Destination IP address of the destination site

11.12.13.26

Link index of the destination site

16

Link type of the destination site

1

Type of the destination site

hub

Whether the dual-gateway function is enabled

true

Network segment address of the interface in the destination site

11.12.13.25

Mask length of the interface address of the destination site

24

Network segment address of the interface in the destination site

12.12.13.24

Mask length of the interface address of the destination site

24

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <vpn-instances xmlns="urn:huawei:params:xml:ns:yang:huawei-l3vpn"> 
    <vpn-instance> 
     <vpn-instance-name>vpn1</vpn-instance-name> 
     <ipv4-family> 
      <route-distinguisher>304:2</route-distinguisher> 
     </ipv4-family> 
    </vpn-instance> 
    <vpn-instance> 
     <vpn-instance-name>vpn2</vpn-instance-name> 
     <ipv4-family> 
      <route-distinguisher>303:2</route-distinguisher> 
     </ipv4-family> 
    </vpn-instance> 
   </vpn-instances>  
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces" > 
    <interface> 
     <name>GigabitEthernet1/0/0</name> 
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:ethernetCsmacd</type> 
     <enabled>true</enabled> 
     <description>aa</description> 
    </interface> 
    <interface> 
     <name>GigabitEthernet1/0/1</name> 
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:ethernetCsmacd</type> 
     <enabled>true</enabled> 
     <description>aa</description> 
    </interface> 
   </interfaces> 
   <site xmlns="urn:huawei:yang:huawei-site"> 
    <local-site xc:operation="replace"> 
     <index>10</index> 
     <management-address>10.10.10.11</management-address> 
     <synchronization> 
      <peer-address>10.12.13.24</peer-address> 
      <local-port>3000</local-port> 
      <peer-port>3001</peer-port> 
      <attributes> 
       <sac-flag>true</sac-flag> 
      </attributes> 
     </synchronization> 
     <vpn-instances> 
      <vpn-instance> 
       <index>12</index> 
       <name>vpn1</name> 
      </vpn-instance> 
      <vpn-instance> 
       <index>13</index> 
       <name>vpn2</name> 
      </vpn-instance> 
     </vpn-instances> 
     <interfaces> 
      <interface> 
       <index>34</index> 
       <name>GigabitEthernet1/0/0</name> 
      </interface> 
      <interface> 
       <index>35</index> 
       <name>GigabitEthernet1/0/1</name> 
      </interface> 
     </interfaces> 
     <dual-gateways> 
      <dual-gateway> 
       <vpn-index>101</vpn-index> 
       <peer-address>10.12.13.20</peer-address> 
      </dual-gateway> 
      <dual-gateway> 
       <vpn-index>102</vpn-index> 
       <peer-address>10.12.14.22</peer-address> 
      </dual-gateway> 
     </dual-gateways> 
     <site-attributes> 
      <site-type>hub</site-type> 
      <auto-send-packet>true</auto-send-packet> 
     </site-attributes> 
    </local-site> 
    <dest-sites> 
     <dest-site xc:operation="replace"> 
      <index>20</index> 
      <vpn-index>6</vpn-index> 
      <management-ip>10.10.10.22</management-ip> 
      <interface-index>17</interface-index> 
      <dest-address>11.12.13.26</dest-address> 
      <link-index>16</link-index> 
      <sla-type>1</sla-type> 
      <attributes> 
       <site-type>hub</site-type> 
       <dual-gateway-flag>true</dual-gateway-flag> 
      </attributes> 
      <dest-networks> 
       <network> 
        <address>11.12.13.25</address> 
        <mask>24</mask> 
       </network> 
       <network> 
        <address>12.12.13.24</address> 
        <mask>24</mask> 
       </network> 
      </dest-networks> 
     </dest-site> 
    </dest-sites> 
   </site>  
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">  
 <ok/>  
</rpc-reply> 
Modifing a Site Application Policy

This section provides a sample of modifing a site application policy.

Table 3-907 Configuring a site application policy

Operation

XPATH

edit-config:replace

huawei-spr:smart-policy-route/application-policys/application-policy

Data Requirements
Table 3-908 Modify a site application policy

Item

Data

Description

Index of an application policy

20

Modify a site application policy.

VPN instance index

10

Name of the time range during which the SPR application policy takes effect

spr_public_vpn0_2

Priority of the application policy

10

Number of an ACL

3500

Name of a user-defined application group

app-group1

Number of an ACL

3500

Name of a user-defined application group

app-group1

Interface index of the primary link

15

Interface index of the backup link

16

Delay threshold of SPR services

2000

Jitter threshold of SPR services

1500

Packet loss rate threshold of SPR services

300

CMI of SPR services

5000

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <application-groups xmlns="urn:huawei:params:xml:ns:yang:huawei-application-group" xc:operation="merge"> 
    <vsys> 
     <name>name</name> 
     <application-group> 
      <name>app-group1</name> 
     </application-group> 
    </vsys> 
   </application-groups> 
   <time-ranges xmlns="urn:huawei:params:xml:ns:yang:huawei-time-range"> 
    <time-range> 
     <name>spr_public_vpn0_2</name> 
     <vsys>public</vsys> 
     <period-time> 
      <start>07:00:00</start> 
      <end>20:30:00</end> 
      <weekday>tuesday</weekday> 
      <weekday>friday</weekday> 
     </period-time> 
    </time-range> 
   </time-ranges> 
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr"> 
    <application-policys> 
     <application-policy xc:operation="replace"> 
      <index>20</index> 
      <vpn-index>10</vpn-index> 
      <time-range>spr_public_vpn0_2</time-range> 
      <priority>10</priority> 
      <rule-set> 
       <simple-acls> 
        <simple-acl> 
         <acl>3500</acl> 
        </simple-acl> 
       </simple-acls> 
       <simple-app-groups> 
        <simple-app-group> 
         <app-group-name>app-group1</app-group-name> 
        </simple-app-group> 
       </simple-app-groups> 
       <app-group-based-acls> 
        <app-group-based-acl> 
         <acl>3500</acl> 
         <app-group-name>app-group1</app-group-name> 
        </app-group-based-acl> 
       </app-group-based-acls> 
      </rule-set> 
      <master-links> 
       <master-link> 
        <link-index>15</link-index> 
       </master-link> 
      </master-links> 
      <backup-links> 
       <backup-link> 
        <link-index>16</link-index> 
       </backup-link> 
      </backup-links> 
      <quality-threshold> 
       <delay-threshold>2000</delay-threshold> 
       <jitter-threshold>1500</jitter-threshold> 
       <loss-threshold>300</loss-threshold> 
       <cmi-threshold>5000</cmi-threshold> 
      </quality-threshold> 
     </application-policy> 
    </application-policys> 
   </smart-policy-route>  
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">  
 <ok/>  
</rpc-reply>
Deleting a Site Application Policy

This section provides a sample of deleting a site application policy.

Table 3-909 Deleting a site application policy

Operation

XPATH

edit-config:remove

huawei-spr:smart-policy-route/application-policys/application-policy

Data Requirements
Table 3-910 Deleting a site application policy

Item

Data

Description

Application policy

-

Delete a site application policy.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <edit-config> 
  <target> 
 <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr"> 
    <application-policys> 
     <application-policy xc:operation="remove"> 
     </application-policy> 
    </application-policys> 
   </smart-policy-route> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">  
 <ok/>  
</rpc-reply> 
Deleting a Site Adjacency Table

This section provides a sample of deleting a site adjacency table.

Table 3-911 Deleting a site adjacency table

Operation

XPATH

edit-config:remove

huawei-spr:smart-policy-route/application-policys/application-policy

Data Requirements
Table 3-912 Deleting a site adjacency table

Item

Data

Description

Site information

-

Delete a site adjacency table.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <edit-config> 
  <target> 
 <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
 <site xmlns="urn:huawei:yang:huawei-site" xc:operation="remove"> 
 </site> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

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

Configuring a Transport Network for the Primary and Backup Links

Configuring a Transport Network for the Primary and Backup Links

This section provides a sample of configuring a transport network for the primary and backup links.

Table 3-913 Configuring a transport network for the primary and backup links

Operation

XPATH

edit-config:merge

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-transport-network

Data Requirements
Table 3-914 Configuring a transport network for the primary and backup links

Item

Data

Description

Index of an application policy

1

In the application policy with the index 1, set the transport network ID, name, and priority of the primary link to 1, master_tn1, and 1, and set the transport network ID, name, and priority of the primary link to 1, backup_tn1, and 1.

Transport network ID of the primary link

1

Transport network name of the primary link

master_tn1

Transport network priority of the primary link

1

Transport network ID of the backup link

1

Transport network name of the backup link

backup_tn1

Transport network priority of the backup link

1

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
    <edit-config>
        <target>
            <running/>
        </target>
        <error-option>rollback-on-error</error-option>
        <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
            <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
                <application-policys>
                    <application-policy>
                        <index>1</index>
                        <master-links xc:operation="merge">
                            <master-transport-network xc:operation="merge">
                                <master-tn-id>1</master-tn-id>
                                <master-tn-name>master_tn1</master-tn-name>
                                <priority>1</priority>
                            </master-transport-network>
                        </master-links>
                        <backup-links xc:operation="merge">
                            <backup-transport-network xc:operation="merge">
                                <backup-tn-id>1</backup-tn-id>
                                <backup-tn-name>backup_tn1</backup-tn-name>
                                <priority>1</priority>
                            </backup-transport-network>
                        </backup-links>
                    </application-policy>
                </application-policys>
            </smart-policy-route> 
        </config>
    </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <ok/> 
</rpc-reply>
Changing the Transport Network of the Primary and Backup Links

This section provides a sample of changing the transport network of the primary and backup links.

Table 3-915 Changing the transport network of the primary and backup links

Operation

XPATH

edit-config:replace

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-transport-network

Data Requirements
Table 3-916 Changing the transport network of the primary and backup links

Item

Data

Description

Index of an application policy

1

In the application policy with the index 1, change the name and priority of the primary link transport network with the ID of 1 to master_tn2 and 2 respectively, and change the name and priority of the backup link transport network with the ID of 1 to backup_tn2 and 2 respectively.

Transport network ID of the primary link

1

Transport network name of the primary link

master_tn2

Transport network priority of the primary link

2

Transport network ID of the backup link

1

Transport network name of the backup link

backup_tn2

Transport network priority of the backup link

2

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
    <edit-config>
        <target>
            <running/>
        </target>
        <error-option>rollback-on-error</error-option>
        <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
            <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
                <application-policys>
                    <application-policy>
                        <index>1</index>
                        <master-links xc:operation="merge">
                            <master-transport-network xc:operation="replace">
                                <master-tn-id>1</master-tn-id>
                                <master-tn-name>master_tn2</master-tn-name>
                                <priority>2</priority>
                            </master-transport-network>
                        </master-links>
                        <backup-links xc:operation="merge">
                            <backup-transport-network xc:operation="replace">
                                <backup-tn-id>1</backup-tn-id>
                                <backup-tn-name>backup_tn2</backup-tn-name>
                                <priority>2</priority>
                            </backup-transport-network>
                        </backup-links>
                    </application-policy>
                </application-policys>
            </smart-policy-route> 
        </config>
    </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <ok/> 
</rpc-reply>
Deleting the Transport Network of the Primary and Backup Links

This section provides a sample of deleting the transport network of the primary and backup links.

Table 3-917 Deleting the transport network of the primary and backup links

Operation

XPATH

edit-config:remove

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-transport-network

Data Requirements
Table 3-918 Deleting the transport network of the primary and backup links

Item

Data

Description

Index of an application policy

1

Delete the transport network of the primary and backup links in the application policy with the index 1.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
    <edit-config>
        <target>
            <running/>
        </target>
        <error-option>rollback-on-error</error-option>
        <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
            <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
                <application-policys>
                    <application-policy>
                        <index>1</index>
                        <master-links xc:operation="remove"/>
                        <backup-links xc:operation="remove"/>
                    </application-policy>
                </application-policys>
            </smart-policy-route> 
        </config>
    </edit-config>
</rpc>
Response Example

Sample of successful response

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

Configuring the Application Priority

Configuring the Application Priority

This section provides a sample of configuring the application priority.

Table 3-919 Configuring the application priority

Operation

XPATH

edit-config:merge

huawei-spr:smart-policy-route/application-policys/application-policy/app-priority

Data Requirements
Table 3-920 Configuring the application priority

Item

Data

Description

Application priority

4

Set the application priority to 4.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <app-priority xc:operation="merge">4</app-priority>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <ok/> 
</rpc-reply>
Deleting the Application Priority

This section provides a sample of deleting the application priority.

Table 3-921 Deleting the application priority

Operation

XPATH

edit-config:remove

huawei-spr:smart-policy-route/application-policys/application-policy/app-priority

Data Requirements
Table 3-922 Deleting the application priority

Item

Data

Description

Application priority

4

Delete the application priority.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <app-priority xc:operation="remove">4</app-priority>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Configuring the Scheduling Mode

Configuring the Scheduling Mode

This section provides a sample of configuring the scheduling mode.

Table 3-923 Configuring the scheduling mode

Operation

XPATH

edit-config:merge

huawei-spr:smart-policy-route/application-policys/application-policy/schedule-mode

Data Requirements
Table 3-924 Configuring the scheduling mode

Item

Data

Description

Scheduling mode

load-balance

Set the scheduling mode to load-balance.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <schedule-mode xc:operation="merge">load-balance</schedule-mode>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <ok/> 
</rpc-reply>
Deleting the Scheduling Mode

This section provides a sample of deleting the scheduling mode.

Table 3-925 Deleting the scheduling mode

Operation

XPATH

edit-config:remove

huawei-spr:smart-policy-route/application-policys/application-policy/schedule-mode

Data Requirements
Table 3-926 Deleting the scheduling mode

Item

Data

Description

Scheduling mode

load-balance

Delete the scheduling mode.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <schedule-mode xc:operation="remove">load-balance</schedule-mode>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Configuring the Switchover Function

Configuring the Switchover Function

This section provides a sample of configuring the switchover function.

Table 3-927 Configuring the switchover function

Operation

XPATH

edit-config:merge

huawei-spr:smart-policy-route/application-policys/application-policy/switch-over

Data Requirements
Table 3-928 Configuring the switchover function

Item

Data

Description

Switchover function

false

Disable the switchover function.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <switch-over xc:operation="merge">false</switch-over>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <ok/> 
</rpc-reply>
Deleting the Switchover Function Configuration

This section provides a sample of deleting the switchover function configuration.

Table 3-929 Deleting the switchover function configuration

Operation

XPATH

edit-config:remove

huawei-spr:smart-policy-route/application-policys/application-policy/switch-over

Data Requirements
Table 3-930 Deleting the switchover function configuration

Item

Data

Description

Switchover function

false

Delete the switchover function configuration.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <switch-over xc:operation="remove">false</switch-over>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Configuring the Default Forwarding Mode

Configuring the Default Forwarding Mode

This section provides a sample of configuring the default forwarding mode.

Table 3-931 Configuring the default forwarding mode

Operation

XPATH

edit-config:merge

huawei-spr:smart-policy-route/application-policys/application-policy/default-action

Data Requirements
Table 3-932 Configuring the default forwarding mode

Item

Data

Description

Default forwarding mode

discard

Set the default forwarding mode to discard.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <default-action xc:operation="merge">discard</default-action>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <ok/> 
</rpc-reply>
Deleting the Default Forwarding Mode

This section provides a sample of deleting the default forwarding mode.

Table 3-933 Deleting the default forwarding mode

Operation

XPATH

edit-config:remove

huawei-spr:smart-policy-route/application-policys/application-policy/default-action

Data Requirements
Table 3-934 Deleting the default forwarding mode

Item

Data

Description

Default forwarding mode

discard

Delete the default forwarding mode.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <default-action xc:operation="remove">discard</default-action>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Configuring the Global Bandwidth Threshold

Configuring the Global Bandwidth Threshold

This section provides a sample of configuring the global bandwidth threshold.

Table 3-935 Configuring the global bandwidth threshold

Operation

XPATH

edit-config:merge

huawei-spr:smart-policy-route/application-policys/application-policy/quality-threshold/bandwidth-threshold

huawei-spr:smart-policy-route/application-policys/application-policy/quality-threshold/bandwidth-lower-threshold

Data Requirements
Table 3-936 Configuring the global bandwidth threshold

Item

Data

Description

Upper bandwidth threshold

50kbit/s

Set the global upper bandwidth threshold to 50 kbit/s, and lower bandwidth threshold to 40 kbit/s.

Lower bandwidth threshold

40kbit/s

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <quality-threshold xc:operation="merge">
       <bandwidth-threshold>50</bandwidth-threshold>
       <bandwidth-lower-threshold>40</bandwidth-lower-threshold>
      </quality-threshold>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <ok/> 
</rpc-reply>
Deleting the Global Bandwidth Threshold

This section provides a sample of deleting the global bandwidth threshold.

Table 3-937 Deleting the global bandwidth threshold

Operation

XPATH

edit-config:remove

huawei-spr:smart-policy-route/application-policys/application-policy/quality-threshold/bandwidth-threshold

huawei-spr:smart-policy-route/application-policys/application-policy/quality-threshold/bandwidth-lower-threshold

Data Requirements
Table 3-938 Deleting the global bandwidth threshold

Item

Data

Description

Bandwidth threshold

-

Delete the global bandwidth threshold.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <quality-threshold xc:operation="remove">
      </quality-threshold>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Configuring the Primary Link Priority

Configuring the Primary Link Priority

This section provides a sample of configuring the primary link priority.

Table 3-939 Configuring the primary link priority

Operation

XPATH

edit-config:merge

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-interface/priority

Data Requirements
Table 3-940 Configuring the primary link priority

Item

Data

Description

Primary link priority

6

Set the primary link priority to 6.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <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" xc:operation="replace">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Tunnel0/0/2</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <site xmlns="urn:huawei:yang:huawei-site">
    <local-site xc:operation="replace">
     <index>1000</index>
     <interfaces>
      <interface>
       <index>11</index>
       <name>Tunnel0/0/2</name>
      </interface>
     </interfaces>
    </local-site>
   </site> 
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <master-links xc:operation="merge">
       <master-interface>
        <interface-index>11</interface-index>
        <priority>6</priority>
       </master-interface>
      </master-links>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <ok/> 
</rpc-reply>
Deleting the Primary Link Priority

This section provides a sample of deleting the primary link priority.

Table 3-941 Deleting the primary link priority

Operation

XPATH

edit-config:remove

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-interface/priority

Data Requirements
Table 3-942 Deleting the primary link priority

Item

Data

Description

Primary link priority

6

Delete the primary link priority.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <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" xc:operation="replace">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Tunnel0/0/2</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <site xmlns="urn:huawei:yang:huawei-site">
    <local-site xc:operation="replace">
     <index>1000</index>
     <interfaces>
      <interface>
       <index>11</index>
       <name>Tunnel0/0/2</name>
      </interface>
     </interfaces>
    </local-site>
   </site> 
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <master-links xc:operation="remove">
       <master-interface>
        <interface-index>11</interface-index>
        <priority>6</priority>
       </master-interface>
      </master-links>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Configuring the Primary Link Bandwidth and Bandwidth Usage

Configuring the Primary Link Bandwidth and Bandwidth Usage

This section provides a sample of configuring the primary link bandwidth and bandwidth usage.

Table 3-943 Configuring the primary link bandwidth and bandwidth usage

Operation

XPATH

edit-config:merge

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-interface

Data Requirements
Table 3-944 Configuring the primary link bandwidth and bandwidth usage

Item

Data

Description

Upper bandwidth threshold of an interface on the primary link

4000kbit/s

Configure the primary link bandwidth and bandwidth usage.

Lower bandwidth threshold of an interface on the primary link

2000kbit/s

Application upper bandwidth threshold of an interface on the primary link

3000kbit/s

Application lower bandwidth threshold of an interface on the primary link

2000kbit/s

Upper bandwidth usage threshold of an interface on the primary link

40

Lower bandwidth usage threshold of an interface on the primary link

20

Application upper bandwidth usage threshold of an interface on the primary link

30

Application lower bandwidth usage threshold of an interface on the primary link

20

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <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" xc:operation="replace">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Tunnel0/0/2</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Tunnel0/0/3</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <site xmlns="urn:huawei:yang:huawei-site">
    <local-site xc:operation="replace">
     <index>1000</index>
     <interfaces>
      <interface>
       <index>11</index>
       <name>Tunnel0/0/2</name>
      </interface>
      <interface>
       <index>12</index>
       <name>Tunnel0/0/3</name>
      </interface>
     </interfaces>
    </local-site>
   </site> 
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <master-links xc:operation="merge">
       <master-interface>
        <interface-index>11</interface-index>
        <priority>6</priority>
        <upper-limit-numerical>4000</upper-limit-numerical>
        <lower-limit-numerical>2000</lower-limit-numerical>
        <app-upper-limit-numerical>3000</app-upper-limit-numerical>
        <app-lower-limit-numerical>2000</app-lower-limit-numerical>
       </master-interface>
       <master-interface>
        <interface-index>12</interface-index>
        <priority>5</priority>
        <upper-limit-percentage>40</upper-limit-percentage>
        <lower-limit-percentage>20</lower-limit-percentage>
        <app-upper-limit-percentage>30</app-upper-limit-percentage>
        <app-lower-limit-percentage>20</app-lower-limit-percentage>
       </master-interface>
      </master-links>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <ok/> 
</rpc-reply>
Deleting the Primary Link Bandwidth and Bandwidth Usage

This section provides a sample of deleting the primary link bandwidth and bandwidth usage.

Table 3-945 Deleting the primary link bandwidth and bandwidth usage

Operation

XPATH

edit-config:remove

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-interface

Data Requirements
Table 3-946 Deleting the primary link bandwidth and bandwidth usage

Item

Data

Description

Upper bandwidth threshold of an interface on the primary link

4000kbit/s

Delete the primary link bandwidth and bandwidth usage.

Lower bandwidth threshold of an interface on the primary link

2000kbit/s

Application upper bandwidth threshold of an interface on the primary link

3000kbit/s

Application lower bandwidth threshold of an interface on the primary link

2000kbit/s

Upper bandwidth usage threshold of an interface on the primary link

40

Lower bandwidth usage threshold of an interface on the primary link

20

Application upper bandwidth usage threshold of an interface on the primary link

30

Application lower bandwidth usage threshold of an interface on the primary link

20

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <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" xc:operation="replace">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Tunnel0/0/2</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Tunnel0/0/3</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <site xmlns="urn:huawei:yang:huawei-site">
    <local-site xc:operation="replace">
     <index>1000</index>
     <interfaces>
      <interface>
       <index>11</index>
       <name>Tunnel0/0/2</name>
      </interface>
      <interface>
       <index>12</index>
       <name>Tunnel0/0/3</name>
      </interface>
     </interfaces>
    </local-site>
   </site> 
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <master-links xc:operation="remove">
       <master-interface>
        <interface-index>11</interface-index>
        <priority>6</priority>
        <upper-limit-numerical>4000</upper-limit-numerical>
        <lower-limit-numerical>2000</lower-limit-numerical>
        <app-upper-limit-numerical>3000</app-upper-limit-numerical>
        <app-lower-limit-numerical>2000</app-lower-limit-numerical>
       </master-interface>
       <master-interface>
        <interface-index>12</interface-index>
        <priority>5</priority>
        <upper-limit-percentage>40</upper-limit-percentage>
        <lower-limit-percentage>20</lower-limit-percentage>
        <app-upper-limit-percentage>30</app-upper-limit-percentage>
        <app-lower-limit-percentage>20</app-lower-limit-percentage>
       </master-interface>
      </master-links>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Configuring the Transport Network Bandwidth and Bandwidth Usage for the Primary Link

Configuring the Transport Network Bandwidth and Bandwidth Usage for the Primary Link

This section provides a sample of configuring the transport network bandwidth and bandwidth usage for the primary link.

Table 3-947 Configuringthe transport network bandwidth and bandwidth usage for the primary link

Operation

XPATH

edit-config:merge

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-transport-network

Data Requirements
Table 3-948 Configuringthe transport network bandwidth and bandwidth usage for the primary link

Item

Data

Description

Upper bandwidth threshold of the transport network for the primary link

4000kbit/s

Configure the transport network bandwidth and bandwidth usage for the primary link.

Lower bandwidth threshold of the transport network for the primary link

2000kbit/s

Application upper bandwidth threshold of the transport network for the primary link

3000kbit/s

Application lower bandwidth threshold of the transport network for the primary link

2000kbit/s

Upper bandwidth usage threshold of the transport network for the primary link

40

Lower bandwidth usage threshold of the transport network for the primary link

20

Application upper bandwidth usage threshold of the transport network for the primary link

30

Application lower bandwidth usage threshold of the transport network for the primary link

20

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <master-links xc:operation="merge">
       <master-transport-network>
        <master-tn-id>1</master-tn-id>
        <master-tn-name>master_tn1</master-tn-name>
        <priority>6</priority>
        <upper-limit-numerical>4000</upper-limit-numerical>
        <lower-limit-numerical>2000</lower-limit-numerical>
        <app-upper-limit-numerical>3000</app-upper-limit-numerical>
        <app-lower-limit-numerical>2000</app-lower-limit-numerical>
       </master-transport-network>
       <master-transport-network>
        <master-tn-id>2</master-tn-id>
        <master-tn-name>master_tn2</master-tn-name>
        <priority>5</priority>
        <upper-limit-percentage>40</upper-limit-percentage>
        <lower-limit-percentage>20</lower-limit-percentage>
        <app-upper-limit-percentage>30</app-upper-limit-percentage>
        <app-lower-limit-percentage>20</app-lower-limit-percentage>
       </master-transport-network>
      </master-links>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <ok/> 
</rpc-reply>
Deleting the Transport Network Bandwidth and Bandwidth Usage of the Primary Link

This section provides a sample of deleting the transport network bandwidth and bandwidth usage of the primary link.

Table 3-949 Deleting the transport network bandwidth and bandwidth usage of the primary link

Operation

XPATH

edit-config:remove

huawei-spr:smart-policy-route/application-policys/application-policy/master-links/master-transport-network

Data Requirements
Table 3-950 Deleting the transport network bandwidth and bandwidth usage of the primary link

Item

Data

Description

Upper bandwidth threshold of the transport network for the primary link

4000kbit/s

Delete the transport network bandwidth and bandwidth usage of the primary link.

Lower bandwidth threshold of the transport network for the primary link

2000kbit/s

Application upper bandwidth threshold of the transport network for the primary link

3000kbit/s

Application lower bandwidth threshold of the transport network for the primary link

2000kbit/s

Upper bandwidth usage threshold of the transport network for the primary link

40

Lower bandwidth usage threshold of the transport network for the primary link

20

Application upper bandwidth usage threshold of the transport network for the primary link

30

Application lower bandwidth usage threshold of the transport network for the primary link

20

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <master-links xc:operation="remove">
       <master-transport-network>
        <master-tn-id>1</master-tn-id>
        <master-tn-name>master_tn1</master-tn-name>
        <priority>6</priority>
        <upper-limit-numerical>4000</upper-limit-numerical>
        <lower-limit-numerical>2000</lower-limit-numerical>
        <app-upper-limit-numerical>3000</app-upper-limit-numerical>
        <app-lower-limit-numerical>2000</app-lower-limit-numerical>
       </master-transport-network>
       <master-transport-network>
        <master-tn-id>2</master-tn-id>
        <master-tn-name>master_tn2</master-tn-name>
        <priority>5</priority>
        <upper-limit-percentage>40</upper-limit-percentage>
        <lower-limit-percentage>20</lower-limit-percentage>
        <app-upper-limit-percentage>30</app-upper-limit-percentage>
        <app-lower-limit-percentage>20</app-lower-limit-percentage>
       </master-transport-network>
      </master-links>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Configuring the Backup Link Priority

Configuring the Backup Link Priority

This section provides a sample of configuring the backup link priority.

Table 3-951 Configuring the backup link priority

Operation

XPATH

edit-config:merge

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-interface/priority

Data Requirements
Table 3-952 Configuring the backup link priority

Item

Data

Description

Backup link priority

6

Set the backup link priority to 6.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <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" xc:operation="replace">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Tunnel0/0/2</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <site xmlns="urn:huawei:yang:huawei-site">
    <local-site xc:operation="replace">
     <index>1000</index>
     <interfaces>
      <interface>
       <index>11</index>
       <name>Tunnel0/0/2</name>
      </interface>
     </interfaces>
    </local-site>
   </site> 
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <backup-links xc:operation="merge">
       <backup-interface>
        <interface-index>11</interface-index>
        <priority>6</priority>
       </backup-interface>
      </backup-links>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <ok/> 
</rpc-reply>
Deleting the Backup Link Priority

This section provides a sample of deleting the backup link priority.

Table 3-953 Deleting the backup link priority

Operation

XPATH

edit-config:remove

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-interface/priority

Data Requirements
Table 3-954 Deleting the backup link priority

Item

Data

Description

Backup link priority

6

Delete the backup link priority.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <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" xc:operation="replace">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Tunnel0/0/2</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <site xmlns="urn:huawei:yang:huawei-site">
    <local-site xc:operation="replace">
     <index>1000</index>
     <interfaces>
      <interface>
       <index>11</index>
       <name>Tunnel0/0/2</name>
      </interface>
     </interfaces>
    </local-site>
   </site> 
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <backup-links xc:operation="remove">
       <backup-interface>
        <interface-index>11</interface-index>
        <priority>6</priority>
       </backup-interface>
      </backup-links>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Configuring the Backup Link Bandwidth and Bandwidth Usage

Configuring the Backup Link Bandwidth and Bandwidth Usage

This section provides a sample of configuring the backup link bandwidth and bandwidth usage.

Table 3-955 Configuring the backup link bandwidth and bandwidth usage

Operation

XPATH

edit-config:merge

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-interface

Data Requirements
Table 3-956 Configuring the backup link bandwidth and bandwidth usage

Item

Data

Description

Upper bandwidth threshold of an interface on the backup link

4000kbit/s

Configure the backup link bandwidth and bandwidth usage.

Lower bandwidth threshold of an interface on the backup link

2000kbit/s

Application upper bandwidth threshold of an interface on the backup link

3000kbit/s

Application lower bandwidth threshold of an interface on the backup link

2000kbit/s

Upper bandwidth usage threshold of an interface on the backup link

40

Lower bandwidth usage threshold of an interface on the backup link

20

Application upper bandwidth usage threshold of an interface on the backup link

30

Application lower bandwidth usage threshold of an interface on the backup link

20

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <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" xc:operation="replace">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Tunnel0/0/2</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Tunnel0/0/3</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <site xmlns="urn:huawei:yang:huawei-site">
    <local-site xc:operation="replace">
     <index>1000</index>
     <interfaces>
      <interface>
       <index>11</index>
       <name>Tunnel0/0/2</name>
      </interface>
      <interface>
       <index>12</index>
       <name>Tunnel0/0/3</name>
      </interface>
     </interfaces>
    </local-site>
   </site> 
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <backup-links xc:operation="merge">
       <backup-interface>
        <interface-index>11</interface-index>
        <priority>6</priority>
        <upper-limit-numerical>4000</upper-limit-numerical>
        <lower-limit-numerical>2000</lower-limit-numerical>
        <app-upper-limit-numerical>3000</app-upper-limit-numerical>
        <app-lower-limit-numerical>2000</app-lower-limit-numerical>
       </backup-interface>
       <backup-interface>
        <interface-index>12</interface-index>
        <priority>5</priority>
        <upper-limit-percentage>40</upper-limit-percentage>
        <lower-limit-percentage>20</lower-limit-percentage>
        <app-upper-limit-percentage>30</app-upper-limit-percentage>
        <app-lower-limit-percentage>20</app-lower-limit-percentage>
       </backup-interface>
      </backup-links>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <ok/> 
</rpc-reply>
Deleting the Backup Link Bandwidth and Bandwidth Usage

This section provides a sample of deleting the backup link bandwidth and bandwidth usage.

Table 3-957 Deleting the backup link bandwidth and bandwidth usage

Operation

XPATH

edit-config:remove

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-interface

Data Requirements
Table 3-958 Deleting the backup link bandwidth and bandwidth usage

Item

Data

Description

Upper bandwidth threshold of an interface on the backup link

4000kbit/s

Delete the backup link bandwidth and bandwidth usage.

Lower bandwidth threshold of an interface on the backup link

2000kbit/s

Application upper bandwidth threshold of an interface on the backup link

3000kbit/s

Application lower bandwidth threshold of an interface on the backup link

2000kbit/s

Upper bandwidth usage threshold of an interface on the backup link

40

Lower bandwidth usage threshold of an interface on the backup link

20

Application upper bandwidth usage threshold of an interface on the backup link

30

Application lower bandwidth usage threshold of an interface on the backup link

20

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <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" xc:operation="replace">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Tunnel0/0/2</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Tunnel0/0/3</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <site xmlns="urn:huawei:yang:huawei-site">
    <local-site xc:operation="replace">
     <index>1000</index>
     <interfaces>
      <interface>
       <index>11</index>
       <name>Tunnel0/0/2</name>
      </interface>
      <interface>
       <index>12</index>
       <name>Tunnel0/0/3</name>
      </interface>
     </interfaces>
    </local-site>
   </site> 
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <backup-links xc:operation="remove">
       <backup-interface>
        <interface-index>11</interface-index>
        <priority>6</priority>
        <upper-limit-numerical>4000</upper-limit-numerical>
        <lower-limit-numerical>2000</lower-limit-numerical>
        <app-upper-limit-numerical>3000</app-upper-limit-numerical>
        <app-lower-limit-numerical>2000</app-lower-limit-numerical>
       </backup-interface>
       <backup-interface>
        <interface-index>12</interface-index>
        <priority>5</priority>
        <upper-limit-percentage>40</upper-limit-percentage>
        <lower-limit-percentage>20</lower-limit-percentage>
        <app-upper-limit-percentage>30</app-upper-limit-percentage>
        <app-lower-limit-percentage>20</app-lower-limit-percentage>
       </backup-interface>
      </backup-links>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Configuring the Transport Network Bandwidth and Bandwidth Usage for the Backup Link

Configuring the Transport Network Bandwidth and Bandwidth Usage for the Backup Link

This section provides a sample of configuring the transport network bandwidth and bandwidth usage for the backup link.

Table 3-959 Configuring the transport network bandwidth and bandwidth usage for the backup link

Operation

XPATH

edit-config:merge

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-transport-network

Data Requirements
Table 3-960 Configuring the transport network bandwidth and bandwidth usage for the backup link

Item

Data

Description

Upper bandwidth threshold of the transport network for the backup link

4000kbit/s

Configure the transport network bandwidth and bandwidth usage for the backup link.

Lower bandwidth threshold of the transport network for the backup link

2000kbit/s

Application upper bandwidth threshold of the transport network for the backup link

3000kbit/s

Application lower bandwidth threshold of the transport network for the backup link

2000kbit/s

Upper bandwidth usage threshold of the transport network for the backup link

40

Lower bandwidth usage threshold of the transport network for the backup link

20

Application upper bandwidth usage threshold of the transport network for the backup link

30

Application lower bandwidth usage threshold of the transport network for the backup link

20

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <backup-links xc:operation="merge">
       <backup-transport-network>
        <backup-tn-id>1</backup-tn-id>
        <backup-tn-name>backup_tn1</backup-tn-name>
        <priority>6</priority>
        <upper-limit-numerical>4000</upper-limit-numerical>
        <lower-limit-numerical>2000</lower-limit-numerical>
        <app-upper-limit-numerical>3000</app-upper-limit-numerical>
        <app-lower-limit-numerical>2000</app-lower-limit-numerical>
       </backup-transport-network>
       <backup-transport-network>
        <backup-tn-id>2</backup-tn-id>
        <backup-tn-name>backup_tn2</backup-tn-name>
        <priority>5</priority>
        <upper-limit-percentage>40</upper-limit-percentage>
        <lower-limit-percentage>20</lower-limit-percentage>
        <app-upper-limit-percentage>30</app-upper-limit-percentage>
        <app-lower-limit-percentage>20</app-lower-limit-percentage>
       </backup-transport-network>
      </backup-links>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <ok/> 
</rpc-reply>
Deleting the Transport Network Bandwidth and Bandwidth Usage of the Backup Link

This section provides a sample of deleting the transport network bandwidth and bandwidth usage of the backup link.

Table 3-961 Deleting the transport network bandwidth and bandwidth usage of the backup link

Operation

XPATH

edit-config:remove

huawei-spr:smart-policy-route/application-policys/application-policy/backup-links/backup-transport-network

Data Requirements
Table 3-962 Deleting the transport network bandwidth and bandwidth usage of the backup link

Item

Data

Description

Upper bandwidth threshold of the transport network for the backup link

4000kbit/s

Delete the transport network bandwidth and bandwidth usage of the backup link.

Lower bandwidth threshold of the transport network for the backup link

2000kbit/s

Application upper bandwidth threshold of the transport network for the backup link

3000kbit/s

Application lower bandwidth threshold of the transport network for the backup link

2000kbit/s

Upper bandwidth usage threshold of the transport network for the backup link

40

Lower bandwidth usage threshold of the transport network for the backup link

20

Application upper bandwidth usage threshold of the transport network for the backup link

30

Application lower bandwidth usage threshold of the transport network for the backup link

20

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <application-policys>
     <application-policy>
      <index>200</index>
      <backup-links xc:operation="remove">
       <backup-transport-network>
        <backup-tn-id>1</backup-tn-id>
        <backup-tn-name>backup_tn1</backup-tn-name>
        <priority>6</priority>
        <upper-limit-numerical>4000</upper-limit-numerical>
        <lower-limit-numerical>2000</lower-limit-numerical>
        <app-upper-limit-numerical>3000</app-upper-limit-numerical>
        <app-lower-limit-numerical>2000</app-lower-limit-numerical>
       </backup-transport-network>
       <backup-transport-network>
        <backup-tn-id>2</backup-tn-id>
        <backup-tn-name>backup_tn2</backup-tn-name>
        <priority>5</priority>
        <upper-limit-percentage>40</upper-limit-percentage>
        <lower-limit-percentage>20</lower-limit-percentage>
        <app-upper-limit-percentage>30</app-upper-limit-percentage>
        <app-lower-limit-percentage>20</app-lower-limit-percentage>
       </backup-transport-network>
      </backup-links>
     </application-policy>
    </application-policys>
   </smart-policy-route> 
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Configuring the Inbound Bandwidth of an Interface1

Configuring the Inbound Bandwidth of an Interface

This section provides a sample of configuring the inbound bandwidth of an interface.

Table 3-963 Configuring the inbound bandwidth of an interface

Operation

XPATH

edit-config:merge

huawei-site:site/local-site/interfaces/interface/input-bandwidth

Data Requirements
Table 3-964 Configuring the inbound bandwidth of an interface

Item

Data

Description

Inbound bandwidth of an interface

10000kbit/s

Set the inbound bandwidth of an interface to 10000 kbit/s.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <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" xc:operation="replace">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Gigabitethernet0/0/0</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <site xmlns="urn:huawei:yang:huawei-site" xc:operation="replace">
    <local-site>
     <index>1000</index>
     <management-address>1.1.1.1</management-address>
     <interfaces>
      <interface>
       <index>11</index>
       <name>Gigabitethernet0/0/0</name>
       <input-bandwidth xc:operation="merge">10000</input-bandwidth>
      </interface>
     </interfaces>
    </local-site>
   </site>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <ok/> 
</rpc-reply>
Deleting the Inbound Bandwidth of an Interface

This section provides a sample of deleting the inbound bandwidth of an interface.

Table 3-965 Deleting the inbound bandwidth of an interface

Operation

XPATH

edit-config:remove

huawei-site:site/local-site/interfaces/interface/input-bandwidth

Data Requirements
Table 3-966 Deleting the inbound bandwidth of an interface

Item

Data

Description

Inbound bandwidth of an interface

10000kbit/s

Delete the inbound bandwidth of an interface.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <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" xc:operation="replace">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Gigabitethernet0/0/0</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <site xmlns="urn:huawei:yang:huawei-site" xc:operation="replace">
    <local-site>
     <index>1000</index>
     <management-address>1.1.1.1</management-address>
     <interfaces>
      <interface>
       <index>11</index>
       <name>Gigabitethernet0/0/0</name>
       <input-bandwidth xc:operation="remove">10000</input-bandwidth>
      </interface>
     </interfaces>
    </local-site>
   </site>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Configuring the Outbound Bandwidth of an Interface

Configuring the Outbound Bandwidth of an Interface

This section provides a sample of configuring the outbound bandwidth of an interface.

Table 3-967 Configuring the outbound bandwidth of an interface

Operation

XPATH

edit-config:merge

huawei-site:site/local-site/interfaces/interface/output-bandwidth

Data Requirements
Table 3-968 Configuring the outbound bandwidth of an interface

Item

Data

Description

Outbound bandwidth of an interface

10000kbit/s

Set the outbound bandwidth of an interface to 10000 kbit/s.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <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" xc:operation="replace">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Gigabitethernet0/0/0</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <site xmlns="urn:huawei:yang:huawei-site" xc:operation="replace">
    <local-site>
     <index>1000</index>
     <management-address>1.1.1.1</management-address>
     <interfaces>
      <interface>
       <index>11</index>
       <name>Gigabitethernet0/0/0</name>
       <output-bandwidth xc:operation="merge">10000</output-bandwidth>
      </interface>
     </interfaces>
    </local-site>
   </site>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <ok/> 
</rpc-reply>
Deleting the Outbound Bandwidth of an Interface

This section provides a sample of deleting the outbound bandwidth of an interface.

Table 3-969 Deleting the outbound bandwidth of an interface

Operation

XPATH

edit-config:remove

huawei-site:site/local-site/interfaces/interface/output-bandwidth

Data Requirements
Table 3-970 Deleting the outbound bandwidth of an interface

Item

Data

Description

Outbound bandwidth of an interface

10000kbit/s

Delete the outbound bandwidth of an interface.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <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" xc:operation="replace">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Gigabitethernet0/0/0</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <site xmlns="urn:huawei:yang:huawei-site" xc:operation="replace">
    <local-site>
     <index>1000</index>
     <management-address>1.1.1.1</management-address>
     <interfaces>
      <interface>
       <index>11</index>
       <name>Gigabitethernet0/0/0</name>
       <output-bandwidth xc:operation="remove">10000</output-bandwidth>
      </interface>
     </interfaces>
    </local-site>
   </site>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Configuring the Path Selection Mode

Configuring the Path Selection Mode

This section provides a sample of configuring the path selection mode.

Table 3-971 Configuring the path selection mode

Operation

XPATH

edit-config:default

huawei-spr:smart-policy-route/path-selection

Data Requirements
Table 3-972 Configuring the path selection mode

Item

Data

Description

Path selection mode

unidirectional

Set the path selection mode to unidirectional.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <path-selection>unidirectional</path-selection>
   </smart-policy-route> 
  </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_dc9bf91389364b8cada05b7d95f3e062"> 
 <ok/> 
</rpc-reply>
Deleting the Path Selection Mode

This section provides a sample of deleting the path selection mode.

Table 3-973 Deleting the path selection mode

Operation

XPATH

edit-config:remove

huawei-spr:smart-policy-route/path-selection

Data Requirements
Table 3-974 Deleting the path selection mode

Item

Data

Description

Path selection mode

unidirectional

Delete the path selection mode.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <smart-policy-route xmlns="urn:huawei:params:xml:ns:yang:huawei-spr">
    <path-selection xc:operation="remove">unidirectional</path-selection>
   </smart-policy-route> 
  </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_dc9bf91389364b8cada05b7d95f3e062"> 
 <ok/> 
</rpc-reply>
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 8533

Downloads: 69

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