CiscoDevNet/terraform-provider-iosxe

BGP neighbor fall-over bfd without any extra options

Closed this issue · 2 comments

Description

The option to set BGP neighbor fall-over bfd without any extra options seems to be missing.

The help during a configure terminal shows 5 scenarios: The default (<CR>) + 4 optional parameters:

awesome_router(config-router)#neighbor 192.168.1.4 fall-over bfd ?                           
  check-control-plane-failure  Retreive control plane dependent failure (c-bit) information from BFD for BGP GR/NSF operation
  multi-hop                    Force BFD multi-hop to detect failure
  single-hop                   Force BFD single-hop to detect failure
  strict-mode                  Enable BFD strict-mode
  <cr>                         <cr>

The provider documention specifies the 4 optional parameters:

  • fall_over_bfd_check_control_plane_failure
  • fall_over_bfd_multi_hop
  • fall_over_bfd_single_hop
  • fall_over_bfd_strict_mode

However, it does not seem possible to configure without the optional parameters.

Can you please tell us how to configure or implement this feature?

show running-config | section router
This is part of an example running config. It has all variations off the possible configuration.

router bgp 65000
 bgp log-neighbor-changes
 neighbor 192.168.1.2 remote-as 65001
 neighbor 192.168.1.2 fall-over bfd
 neighbor 192.168.1.3 remote-as 65002
 neighbor 192.168.1.3 fall-over bfd check-control-plane-failure
 neighbor 192.168.1.4 remote-as 65003
 neighbor 192.168.1.4 fall-over bfd multi-hop
 neighbor 192.168.1.5 remote-as 65004
 neighbor 192.168.1.5 fall-over bfd single-hop
 neighbor 192.168.1.6 remote-as 65005
 neighbor 192.168.1.6 fall-over bfd strict-mode
 !
 address-family ipv4
  neighbor 192.168.1.2 activate
  neighbor 192.168.1.2 soft-reconfiguration inbound
  neighbor 192.168.1.2 route-map TEST-OUT out
  neighbor 192.168.1.3 activate
  neighbor 192.168.1.4 activate
  neighbor 192.168.1.5 activate
  neighbor 192.168.1.6 activate
 exit-address-family

json path: .data["Cisco-IOS-XE-native:native"].router
This is the restconf-json formatted running config:

{
  "Cisco-IOS-XE-bgp:bgp": [
    {
      "id": 65000,
      "bgp": {
        "log-neighbor-changes": true
      },
      "neighbor": [
        {
          "id": "192.168.1.2",
          "remote-as": 65001,
          "fall-over": {
            "bfd": {}
          }
        },
        {
          "id": "192.168.1.3",
          "remote-as": 65002,
          "fall-over": {
            "bfd": {
              "check-control-plane-failure": [
                null
              ]
            }
          }
        },
        {
          "id": "192.168.1.4",
          "remote-as": 65003,
          "fall-over": {
            "bfd": {
              "multi-hop": [
                null
              ]
            }
          }
        },
        {
          "id": "192.168.1.5",
          "remote-as": 65004,
          "fall-over": {
            "bfd": {
              "single-hop": [
                null
              ]
            }
          }
        },
        {
          "id": "192.168.1.6",
          "remote-as": 65005,
          "fall-over": {
            "bfd": {
              "strict-mode": [
                null
              ]
            }
          }
        }
      ],
      "address-family": {
        "no-vrf": {
          "ipv4": [
            {
              "af-name": "unicast",
              "ipv4-unicast": {
                "neighbor": [
                  {
                    "id": "192.168.1.2",
                    "activate": [
                      null
                    ],
                    "route-map": [
                      {
                        "inout": "out",
                        "route-map-name": "TEST-OUT"
                      }
                    ],
                    "soft-reconfiguration": "inbound"
                  },
                  {
                    "id": "192.168.1.3",
                    "activate": [
                      null
                    ]
                  },
                  {
                    "id": "192.168.1.4",
                    "activate": [
                      null
                    ]
                  },
                  {
                    "id": "192.168.1.5",
                    "activate": [
                      null
                    ]
                  },
                  {
                    "id": "192.168.1.6",
                    "activate": [
                      null
                    ]
                  }
                ]
              }
            }
          ]
        }
      }
    }
  ]
}

Added in 0.5.2 release.