< Home

Data Model

The configuration model file matching BGP-IPv4 unicast address family is huawei-bgp.yang.

Table 1 Configuring a BGP-IPv4 unicast address family

Object

Description

Value

Remarks

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-router/local-as-number

Enables BGP, enters the BGP view, and specifies an integral AS number.

The value is an integer that ranges from 1 to 4294967295.

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-router/router-id/ip-address

Specifies a Router ID.

It is in dotted decimal notation.

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-router/router-id/enable-auto-config

Configures automatic Router ID selection for all BGP-VPN instance IPv4 or IPv6 address families. If a Router ID is manually specified for a BGP-VPN instance IPv4 or IPv6 address family, the manually specified Router ID takes precedence over the automatically selected Router ID.

The value is of the Boolean type:
  • true: This function is enabled.
  • false: This function is disabled.

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-router/graceful-restart/enable

Configures the GR function.

The value is of the Boolean type:
  • true: This function is enabled.
  • false: This function is disabled.

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-router/af-configuration/ipv4/unicast/default-route-imported

Configures the function that imports the default routes in the local IP routing table to the BGP routing table.

The value is of the Boolean type:
  • true: This function is enabled.
  • false: This function is disabled.

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-router/af-configuration/ipv4/unicast/protocol/direct

Configures the function that imports direct routes.

The value is of the Boolean type:
  • true: This function is enabled.
  • false: This function is disabled.

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-router/af-configuration/ipv4/unicast/protocol/static

Configures the function that imports static routes.

The value is of the Boolean type:
  • true: This function is enabled.
  • false: This function is disabled.

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-router/af-configuration/ipv4/unicast/protocol/isis/isis-id

Imports IS-IS routes of IS-IS process 1 into BGP.

The value is an integer that ranges from 1 to 65535.

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-router/af-configuration/ipv4/unicast/protocol/ospf/ospf-id

Imports OSPF routes of OSPF process 1 into BGP.

The value is an integer that ranges from 1 to 65535.

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/peer-address

Specifies the IP address of a peer.

The value is in dotted decimal notation.

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/remote-as

Specify the AS number of a peer.

The value is an integer that ranges from 1 to 4294967295.

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/identifier-interface

Specifies the type and number of the source interface that sends BGP packets.

The value is a string of characters in the format of interface-typeinterface-number.
  • interface-type: indicates the type of an interface.
  • interface-number: indicates the number of an interface.
The interface must exist on the switch.

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/af-specific-config/ipv4/unicast/active

Configures the function that exchanges routing information with the specified peer.

The value is of the Boolean type:
  • true: This function is enabled.
  • false: This function is disabled.
The default value is true.

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/af-specific-config/ipv4/unicast/route-reflector-client

Configures the local device as a route reflector and the specified peer or peer group as the client of the route reflector.

The value is of the Boolean type:
  • true: This function is enabled.
  • false: This function is disabled.

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-router/af-configuration/ipv4/unicast/aggregate-prefix/aggregate-ip-prefix

Indicates the IP address and mask length of the summary route.

The format is ipv4-address/mask-length:
  • ipv4-address indicates an IP address in dotted decimal notation.
  • mask-length indicates the mask length, which is an integer in the range from 0 to 32.

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-router/af-configuration/ipv4/unicast/aggregate-prefix/detail-suppressed-flag

Indicates whether to advertise only the summary route.

The value is of the Boolean type:
  • true: Only the summary route is advertised.
  • false: Both the summary route and its specific routes are advertised.
The default value is false.

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-router/af-configuration/ipv4/unicast/networks/ip-prefix

Adds the route with the specified IP address and mask length statically to the BGP routing table and advertises the route to the peer.

The format is ipv4-address/mask-length:
  • ipv4-address indicates an IP address in dotted decimal notation.
  • mask-length indicates the mask length, which is an integer in the range from 0 to 32.

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/keepalive-time

Indicates the keepalive time of a BGP peer.

The value is an integer that ranges from 0 to 21845, in seconds. The default value of a Keepalive timer is 60s

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/hold-time

Indicates the hold time of a BGP peer.

The value is an integer that can be 0 or ranges from 3 to 65535, in seconds. The default value of a Hold timer is 180s.

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/cipher-password

Indicates that MD5 authentication is used during the establishment of a TCP connection and indicates a ciphertext password.

The value is a string of case-sensitive characters without spaces. When the value is displayed in plaintext, its length ranges from 1 to 255. When the value is displayed in ciphertext, its length ranges from 20 to 392.

  • This object cannot be configured together with the /ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/bgp-neighbor-keychain object.
  • If this object is configured together with the /ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/simple-password object, the latter overwrites the first (existing) configuration.

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/simple-password

Indicates that MD5 authentication is used during the establishment of a TCP connection and indicates a simple password.

The value is a string of 1 to 255 case-sensitive characters without spaces.

  • This object cannot be configured together with the /ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/bgp-neighbor-keychain object.
  • If this object is configured together with the /ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/cipher-password object, the latter overwrites the first (existing) configuration.

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/bgp-neighbor-keychain

Indicates that Keychain authentication is used during the establishment of a TCP connection.

The value is a string of 1 to 47 case-insensitive characters. Except the question mark (?) and space. However, when double quotation marks (") are used around the string, spaces are allowed in the string.

This object cannot be configured together with the /ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/cipher-password object and the /ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/simple-password object.

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/hw-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/fake-as/as-number

Specifies a fake AS number used by the peer to establish a connection with the local end.

The value is an integer in the range from 1 to 4294967295.

The value must be different from the value of the /ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-router/local-as-number object.

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/hw-bgp:bgp-routing/bgp-router/af-configuration/ipv4/unicast/load-balancing/max-number

Configures the maximum number of equal-cost routes for load balancing.

The value is an integer that ranges from 1 to 8 on the S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720S-SI, or S6720-SI. The value ranges from 1 to 16 on the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, or S6730S-S.

N/A

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/hw-bgp:bgp-routing/bgp-router/bgp-neighbors/bgp-neighbor/bfd/bfd-config/enable

Enables BFD for a peer or a peer group.

The value is of the Boolean type:

  • true: BFD is enabled.

  • false: BFD is disabled.

The default value is false.

Before configuring this object, configure the /ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/hw-bgp:bgp-routing/bgp-router/bgp-neighbors/bgp-neighbor/remote-as object first.

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/hw-bgp:bgp-routing/bgp-router/bgp-neighbors/bgp-neighbor/bfd/bfd-config/min-tx-interval

Specifies the interval at which BFD packets are sent.

The value is an integer in the range from 3 to 1000, in milliseconds. The default value is 1000.

Before configuring this object, configure the /ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/hw-bgp:bgp-routing/bgp-router/bgp-neighbors/bgp-neighbor/remote-as object first.

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/hw-bgp:bgp-routing/bgp-router/bgp-neighbors/bgp-neighbor/bfd/bfd-config/min-rx-interval

Specifies the interval at which BFD packets are received.

The value is an integer in the range from 3 to 1000, in milliseconds. The default value is 1000.

Before configuring this object, configure the /ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/hw-bgp:bgp-routing/bgp-router/bgp-neighbors/bgp-neighbor/remote-as object first.

/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/hw-bgp:bgp-routing/bgp-router/bgp-neighbors/bgp-neighbor/bfd/bfd-config/detect-multiplier

Specifies the local detection time multiplier.

The value is an integer in the range from 3 to 50. The default value is 3.

Before configuring this object, configure the /ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/hw-bgp:bgp-routing/bgp-router/bgp-neighbors/bgp-neighbor/remote-as object first.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >