Added in version 1.8
Manage address family configs such as ipv4 ipv6 .
parameter | required | default | choices | comments |
---|---|---|---|---|
autonomous_system | yes | Autonomous system number <1-4294967295> | ||
bgp_instance | no | Specify a BGP instance by its name | ||
address_familys_ipv4uni | no | false |
|
Specify the address-family ipv4 unicast |
address_familys_ipv6uni | no | false |
|
Specify the address-family ipv6 unicast |
address_familys_vpnv4 | no | false |
|
Specify the VPNv4 address family |
address_familys_vpnv6 | no | false |
|
Specify the VPNv6 address family |
default_ipv4_local_pref | no | Set the ipv4 default local preference value | ||
default_ipv6_local_pref | no | Set the ipv6 default local preference value | ||
fast_reroute_frr_policy | no | false |
|
Configure fast reroute policy |
policy_vpn4_target | no | true |
|
Filter VPN4 routes with VPN-Target attribute |
policy_vpn6_target | no | true |
|
Filter VPN6 routes with VPN-Target attribute |
ipv4_route_select_delay | no | Set the delay time for optimal route selection of ipv4 | ||
ipv6_route_select_delay | no | Set the delay time for optimal route selection of ipv6 | ||
vpnv4_route_select_delay | no | Set the delay time for optimal route selection of vpnv4 | ||
vpnv6_route_select_delay | no | Set the delay time for optimal route selection of vpnv6 | ||
allow_invalid_as | no | Apply the origin AS validation state to optimal route selection | ||
state | no | present |
|
Desired state for the interface configuration |
hostname | yes | IP Address or hostname of the Comware v7 device that has NETCONF enabled | ||
username | yes | Username used to login to the switch | ||
password | yes | Password used to login to the switch | ||
port | no | 830 | The Comware port used to connect to the switch | |
look_for_keys | no | False | Whether searching for discoverable private key files in ~/.ssh/ |
# Basic bgp address-family config - comware_bgp_af: autonomous_system=10 bgp_instance=test address_familys_ipv4uni=true ipv4_route_select_delay=20 allow_invalid_as=true username={{ username }} password={{ password }} hostname={{ inventory_hostname }} - comware_bgp_af: autonomous_system=10 bgp_instance=test address_familys_vpnv4=true policy_vpn4_target=true username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
Note
address family setting include ipv4 ipv6 etc. some of the configsneed address family ipv4 view , some need others , so ensure theview you provided meets the config requirestate default and absent are the same , if you want delete the setting configs ,the comware will undo the autonomous_system and instance .