Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bgp_global] module fails if bmp server vrf configured #825

Open
Egor-Ozhmegoff opened this issue Mar 4, 2024 · 0 comments
Open

[bgp_global] module fails if bmp server vrf configured #825

Egor-Ozhmegoff opened this issue Mar 4, 2024 · 0 comments
Assignees

Comments

@Egor-Ozhmegoff
Copy link

SUMMARY

I were trying to use bgp_global module but i got an error.

"fatal: [leaf01-z504.net.bozon.tech]: FAILED! => {"changed": false, "msg": "VRF management has address-family configurations. Please use the nxos_bgp_af module to remove those first."}"

I dont have vrf management under bgp config but i have bmp server config with vrf selection. When i deleted the bmp section error was gone.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

bgp_global

ANSIBLE VERSION
ansible [core 2.16.2]
  config file = /home/eozhmegov/nautobot-device-config/ansible.cfg
  configured module search path = ['/home/eozhmegov/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/eozhmegov/.local/lib/python3.10/site-packages/ansible
  ansible collection location = /home/eozhmegov/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/eozhmegov/.local/bin/ansible
  python version = 3.10.6 (main, Aug  2 2022, 15:11:03) [GCC 7.5.0] (/usr/bin/python3)
  jinja version = 3.1.2
  libyaml = True
COLLECTION VERSION
cisco.nxos                    5.3.0
CONFIGURATION
CALLBACKS_ENABLED(/home/eozhmegov/nautobot-device-config/ansible.cfg) = ['profile_tasks']
CONFIG_FILE() = /home/eozhmegov/nautobot-device-config/ansible.cfg
DEFAULT_HOST_LIST(/home/eozhmegov/nautobot-device-config/ansible.cfg) = ['/home/eozhmegov/nautobot-device-config/inventory.yaml']
DEFAULT_JINJA2_EXTENSIONS(/home/eozhmegov/nautobot-device-config/ansible.cfg) = jinja2.ext.do
DEPRECATION_WARNINGS(/home/eozhmegov/nautobot-device-config/ansible.cfg) = False
HOST_KEY_CHECKING(/home/eozhmegov/nautobot-device-config/ansible.cfg) = False
PERSISTENT_COMMAND_TIMEOUT(/home/eozhmegov/nautobot-device-config/ansible.cfg) = 60
OS / ENVIRONMENT

ubuntu 18.04

STEPS TO REPRODUCE

Setup bmp server

router bgp 65000
  bmp-server 1
    description bmp-server
    address x.x.x.x port 5000
    initial-refresh delay 100
    initial-delay 120
    stats-reporting-period 50
    vrf management

role:

---
- name: Bgp global
  cisco.nxos.nxos_bgp_global:
    config:
      enforce_first_as: "{{ enforce_first_as | default(false)}}"
      as_number: "{{ as }}"
      neighbors: >-
        [
        {% for item in default_vrf_neighbors %}
          {
             "neighbor_address": "{{ item.neighbor }}",
             "remote_as": "{{ item.remote_as | default(omit) }}",
             "update_source": "{{ item.interface | default(omit) }}",
             "inherit": { "peer": "{{ item.template | default(omit) }}" },
             "bfd": { "set": "{{ item.bfd | default(omit) }}" },
             "peer_type": "{{ item.peer_type | default(omit) }}",
          },
        {% endfor %}
        ]
      vrfs: >-
        [
          {% for vrf in vrf_neighbors %}
          {% if vrf.neighbors is defined %}
          { 
            "vrf": "{{ vrf.vrf }}",
            "neighbors": [
            {% for neighbor in vrf.neighbors %}
              { 
                "neighbor_address": "{{ neighbor.neighbor }}",
                "remote_as": "{{ neighbor.remote_as | default(omit) }}",
                "update_source": "{{ neighbor.interface | default(omit) }}",
                "inherit": { "peer": "{{ neighbor.template | default(omit) }}" },
              },
            {% endfor %}
            ],
          },
          {% else %}
          { "vrf": "{{ vrf.vrf }}" },
          {% endif %}
          {% endfor %} 
        ]
    state: replaced
  register: output
  notify: debug

- meta: flush_handlers

role vars:

vrf_neighbors: >-
  [
    {% if vrfs is defined %}
      {% for l3_vni in vrfs %}
        {% if l3_vni.vrf not in bgp_external_clients | string %}
          {% do bgp_external_clients.append(l3_vni) %}
        {% endif %}
      {% endfor %}
    {% endif %}
    {% for vrf1 in bgp_external_clients %}
      {% for vrf2 in bgp_external_clients_host | default([]) %}
        {% if vrf1.vrf == vrf2.vrf %}
          {% do vrf1.update({ "neighbors": vrf1.neighbors + vrf2.neighbors }) %}
        {% endif %}
      {% endfor %}
      {{ vrf1 }},
    {% endfor %}
  ]

vars:

bgp_external_clients:
- vrf: PROD
  neighbors:
  - interface: Vlan1
    neighbor: 192.168.1.0/26
    template: LEAF_BGP_CLIENTS
  - interface: Vlan1
    neighbor: 192.168.2.0/27
    template: LEAF_BGP_CLIENTS

- vrf: DMZ
  neighbors:
  - interface: Vlan2
    neighbor: 192.168.3.0/29
    template: LEAF_BGP_CLIENTS

- vrf: STG-DMZ
  neighbors:
  - interface: Vlan3
    neighbor: 192.168.4.0/28
    template: LEAF_BGP_CLIENTS

- vrf: STG
  neighbors:
  - interface: Vlan4
    neighbor: 192.168.5.0/26
    template: LEAF_BGP_CLIENTS
  - interface: Vlan4
    neighbor: 192.168.6.0/26
    template: LEAF_BGP_CLIENTS
  - interface: Vlan4
    neighbor: 192.168.7.0/27
    template: LEAF_BGP_CLIENTS

- vrf: PCI-INFRA
  neighbors:
  - interface: Vlan5
    neighbor: 192.168.8.0/26
    template: LEAF_BGP_CLIENTS

- vrf: PCI-DMZ
  neighbors:
  - interface: Vlan6
    neighbor: 192.168.9.0/24
    template: LEAF_BGP_CLIENTS

- vrf: STG-ANTIDDOS
  neighbors:
  - interface: Vlan7
    neighbor: 192.168.10.0/26
    template: LEAF_BGP_CLIENTS

- vrf: PROD-ANTIDDOS
  neighbors:
  - interface: Vlan8
    neighbor: 192.168.11.0/26
    template: LEAF_BGP_CLIENTS

- vrf: PCI-ANTIDDOS
  neighbors:
  - interface: Vlan9
    neighbor: 192.168.12.0/26
    template: LEAF_BGP_CLIENTS

- vrf: PCI-ANTIDDOS
  neighbors:
  - interface: Vlan10
    neighbor: 192.168.13.0/28
    template: LEAF_BGP_CLIENTS

- vrf: STG-PCI-INFRA
  neighbors:
  - interface: Vlan11
    neighbor: 192.168.14.0/26
    template: LEAF_BGP_CLIENTS

- vrf: STG-PCI-DMZ
  neighbors:
  - interface: Vlan12
    neighbor: 192.168.15.0/29
    template: LEAF_BGP_CLIENTS
EXPECTED RESULTS

Task ended correctly

ACTUAL RESULTS
task path: /home/eozhmegov/nautobot-device-config/Playbooks/roles/NXOS/Bgp_global/tasks/main.yaml:2
Monday 04 March 2024  15:27:27 +0000 (0:00:00.825)       0:00:00.892 **********
Loading collection ansible.utils from /home/eozhmegov/.local/lib/python3.10/site-packages/ansible_collections/ansible/utils
redirecting (type: action) cisco.nxos.nxos_bgp_global to cisco.nxos.nxos
redirecting (type: action) cisco.nxos.nxos_bgp_global to cisco.nxos.nxos
<leaf01> attempting to start connection
<leaf01> using connection plugin ansible.netcommon.network_cli
Found ansible-connection at path /home/eozhmegov/.local/bin/ansible-connection
<leaf01> found existing local domain socket, using it!
<leaf01> updating play_context for connection
<leaf01> Loading collection ansible.builtin from
<leaf01> local domain socket path is /home/eozhmegov/.ansible/pc/0479e52963
redirecting (type: action) cisco.nxos.nxos_bgp_global to cisco.nxos.nxos
<leaf01> ANSIBLE_NETWORK_IMPORT_MODULES: enabled
<leaf01> ANSIBLE_NETWORK_IMPORT_MODULES: found cisco.nxos.nxos_bgp_global  at /home/eozhmegov/.local/lib/python3.10/site-packages/ansible_collections/cisco/nxos/plugins/modules/nxos_bgp_global.py
<leaf01> ANSIBLE_NETWORK_IMPORT_MODULES: running cisco.nxos.nxos_bgp_global
<leaf01> ANSIBLE_NETWORK_IMPORT_MODULES: complete
fatal: [leaf01]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "config": {
                "affinity_group": null,
                "as_number": "65000",
                "bestpath": null,
                "cluster_id": null,
                "confederation": null,
                "disable_policy_batching": null,
                "dynamic_med_interval": null,
                "enforce_first_as": false,
                "enhanced_error": null,
                "fabric_soo": null,
                "fast_external_fallover": null,
                "flush_routes": null,
                "graceful_restart": null,
                "graceful_shutdown": null,
                "isolate": null,
                "log_neighbor_changes": null,
                "maxas_limit": null,
                "neighbor_down": null,
                "neighbors": [
                    {
                        "bfd": {
                            "multihop": null,
                            "set": null,
                            "singlehop": null
                        },
                        "bmp_activate_server": null,
                        "capability": null,
                        "description": null,
                        "disable_connected_check": null,
                        "dont_capability_negotiate": null,
                        "dscp": null,
                        "dynamic_capability": null,
                        "ebgp_multihop": null,
                        "graceful_shutdown": null,
                        "inherit": {
                            "peer": "SPINE",
                            "peer_session": null
                        },
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "low_memory": null,
                        "neighbor_address": "x.x.x.x",
                        "neighbor_affinity_group": null,
                        "password": null,
                        "path_attribute": null,
                        "peer_type": null,
                        "remote_as": null,
                        "remote_as_route_map": null,
                        "remove_private_as": null,
                        "shutdown": null,
                        "timers": null,
                        "transport": null,
                        "ttl_security": null,
                        "update_source": null
                    },
                    {
                        "bfd": {
                            "multihop": null,
                            "set": null,
                            "singlehop": null
                        },
                        "bmp_activate_server": null,
                        "capability": null,
                        "description": null,
                        "disable_connected_check": null,
                        "dont_capability_negotiate": null,
                        "dscp": null,
                        "dynamic_capability": null,
                        "ebgp_multihop": null,
                        "graceful_shutdown": null,
                        "inherit": {
                            "peer": "SPINE",
                            "peer_session": null
                        },
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "low_memory": null,
                        "neighbor_address": "x.x.x.x",
                        "neighbor_affinity_group": null,
                        "password": null,
                        "path_attribute": null,
                        "peer_type": null,
                        "remote_as": null,
                        "remote_as_route_map": null,
                        "remove_private_as": null,
                        "shutdown": null,
                        "timers": null,
                        "transport": null,
                        "ttl_security": null,
                        "update_source": null
                    }
                ],
                "nexthop": null,
                "rd": null,
                "reconnect_interval": null,
                "router_id": null,
                "shutdown": null,
                "suppress_fib_pending": null,
                "timers": null,
                "vrfs": [
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": [
                            {
                                "bfd": null,
                                "bmp_activate_server": null,
                                "capability": null,
                                "description": null,
                                "disable_connected_check": null,
                                "dont_capability_negotiate": null,
                                "dscp": null,
                                "dynamic_capability": null,
                                "ebgp_multihop": null,
                                "graceful_shutdown": null,
                                "inherit": {
                                    "peer": null,
                                    "peer_session": null
                                },
                                "local_as": null,
                                "log_neighbor_changes": null,
                                "low_memory": null,
                                "neighbor_address": "192.168.1.0/26",
                                "neighbor_affinity_group": null,
                                "password": null,
                                "path_attribute": null,
                                "peer_type": null,
                                "remote_as": null,
                                "remote_as_route_map": null,
                                "remove_private_as": null,
                                "shutdown": null,
                                "timers": null,
                                "transport": null,
                                "ttl_security": null,
                                "update_source": "Vlan1"
                            },
                            {
                                "bfd": null,
                                "bmp_activate_server": null,
                                "capability": null,
                                "description": null,
                                "disable_connected_check": null,
                                "dont_capability_negotiate": null,
                                "dscp": null,
                                "dynamic_capability": null,
                                "ebgp_multihop": null,
                                "graceful_shutdown": null,
                                "inherit": {
                                    "peer": null,
                                    "peer_session": null
                                },
                                "local_as": null,
                                "log_neighbor_changes": null,
                                "low_memory": null,
                                "neighbor_address": "192.168.2.0/27",
                                "neighbor_affinity_group": null,
                                "password": null,
                                "path_attribute": null,
                                "peer_type": null,
                                "remote_as": null,
                                "remote_as_route_map": null,
                                "remove_private_as": null,
                                "shutdown": null,
                                "timers": null,
                                "transport": null,
                                "ttl_security": null,
                                "update_source": "Vlan1"
                            }
                        ],
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "PROD"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": [
                            {
                                "bfd": null,
                                "bmp_activate_server": null,
                                "capability": null,
                                "description": null,
                                "disable_connected_check": null,
                                "dont_capability_negotiate": null,
                                "dscp": null,
                                "dynamic_capability": null,
                                "ebgp_multihop": null,
                                "graceful_shutdown": null,
                                "inherit": {
                                    "peer": null,
                                    "peer_session": null
                                },
                                "local_as": null,
                                "log_neighbor_changes": null,
                                "low_memory": null,
                                "neighbor_address": "192.168.3.0/29",
                                "neighbor_affinity_group": null,
                                "password": null,
                                "path_attribute": null,
                                "peer_type": null,
                                "remote_as": null,
                                "remote_as_route_map": null,
                                "remove_private_as": null,
                                "shutdown": null,
                                "timers": null,
                                "transport": null,
                                "ttl_security": null,
                                "update_source": "Vlan2"
                            }
                        ],
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "DMZ"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": [
                            {
                                "bfd": null,
                                "bmp_activate_server": null,
                                "capability": null,
                                "description": null,
                                "disable_connected_check": null,
                                "dont_capability_negotiate": null,
                                "dscp": null,
                                "dynamic_capability": null,
                                "ebgp_multihop": null,
                                "graceful_shutdown": null,
                                "inherit": {
                                    "peer": null,
                                    "peer_session": null
                                },
                                "local_as": null,
                                "log_neighbor_changes": null,
                                "low_memory": null,
                                "neighbor_address": "192.168.40/28",
                                "neighbor_affinity_group": null,
                                "password": null,
                                "path_attribute": null,
                                "peer_type": null,
                                "remote_as": null,
                                "remote_as_route_map": null,
                                "remove_private_as": null,
                                "shutdown": null,
                                "timers": null,
                                "transport": null,
                                "ttl_security": null,
                                "update_source": "Vlan3"
                            }
                        ],
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "STG-DMZ"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": [
                            {
                                "bfd": null,
                                "bmp_activate_server": null,
                                "capability": null,
                                "description": null,
                                "disable_connected_check": null,
                                "dont_capability_negotiate": null,
                                "dscp": null,
                                "dynamic_capability": null,
                                "ebgp_multihop": null,
                                "graceful_shutdown": null,
                                "inherit": {
                                    "peer": null,
                                    "peer_session": null
                                },
                                "local_as": null,
                                "log_neighbor_changes": null,
                                "low_memory": null,
                                "neighbor_address": "192.168.5.0/26",
                                "neighbor_affinity_group": null,
                                "password": null,
                                "path_attribute": null,
                                "peer_type": null,
                                "remote_as": null,
                                "remote_as_route_map": null,
                                "remove_private_as": null,
                                "shutdown": null,
                                "timers": null,
                                "transport": null,
                                "ttl_security": null,
                                "update_source": "Vlan4"
                            },
                            {
                                "bfd": null,
                                "bmp_activate_server": null,
                                "capability": null,
                                "description": null,
                                "disable_connected_check": null,
                                "dont_capability_negotiate": null,
                                "dscp": null,
                                "dynamic_capability": null,
                                "ebgp_multihop": null,
                                "graceful_shutdown": null,
                                "inherit": {
                                    "peer": null,
                                    "peer_session": null
                                },
                                "local_as": null,
                                "log_neighbor_changes": null,
                                "low_memory": null,
                                "neighbor_address": "192.168.6.0/26",
                                "neighbor_affinity_group": null,
                                "password": null,
                                "path_attribute": null,
                                "peer_type": null,
                                "remote_as": null,
                                "remote_as_route_map": null,
                                "remove_private_as": null,
                                "shutdown": null,
                                "timers": null,
                                "transport": null,
                                "ttl_security": null,
                                "update_source": "Vlan4"
                            },
                            {
                                "bfd": null,
                                "bmp_activate_server": null,
                                "capability": null,
                                "description": null,
                                "disable_connected_check": null,
                                "dont_capability_negotiate": null,
                                "dscp": null,
                                "dynamic_capability": null,
                                "ebgp_multihop": null,
                                "graceful_shutdown": null,
                                "inherit": {
                                    "peer": null,
                                    "peer_session": null
                                },
                                "local_as": null,
                                "log_neighbor_changes": null,
                                "low_memory": null,
                                "neighbor_address": "192.168.7.0",
                                "neighbor_affinity_group": null,
                                "password": null,
                                "path_attribute": null,
                                "peer_type": null,
                                "remote_as": null,
                                "remote_as_route_map": null,
                                "remove_private_as": null,
                                "shutdown": null,
                                "timers": null,
                                "transport": null,
                                "ttl_security": null,
                                "update_source": "Vlan4"
                            }
                        ],
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "STG"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": [
                            {
                                "bfd": null,
                                "bmp_activate_server": null,
                                "capability": null,
                                "description": null,
                                "disable_connected_check": null,
                                "dont_capability_negotiate": null,
                                "dscp": null,
                                "dynamic_capability": null,
                                "ebgp_multihop": null,
                                "graceful_shutdown": null,
                                "inherit": {
                                    "peer": null,
                                    "peer_session": null
                                },
                                "local_as": null,
                                "log_neighbor_changes": null,
                                "low_memory": null,
                                "neighbor_address": "192.168.8.0/26",
                                "neighbor_affinity_group": null,
                                "password": null,
                                "path_attribute": null,
                                "peer_type": null,
                                "remote_as": null,
                                "remote_as_route_map": null,
                                "remove_private_as": null,
                                "shutdown": null,
                                "timers": null,
                                "transport": null,
                                "ttl_security": null,
                                "update_source": "Vlan5"
                            }
                        ],
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "PCI-INFRA"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": [
                            {
                                "bfd": null,
                                "bmp_activate_server": null,
                                "capability": null,
                                "description": null,
                                "disable_connected_check": null,
                                "dont_capability_negotiate": null,
                                "dscp": null,
                                "dynamic_capability": null,
                                "ebgp_multihop": null,
                                "graceful_shutdown": null,
                                "inherit": {
                                    "peer": null,
                                    "peer_session": null
                                },
                                "local_as": null,
                                "log_neighbor_changes": null,
                                "low_memory": null,
                                "neighbor_address": "192.168.9.0/24",
                                "neighbor_affinity_group": null,
                                "password": null,
                                "path_attribute": null,
                                "peer_type": null,
                                "remote_as": null,
                                "remote_as_route_map": null,
                                "remove_private_as": null,
                                "shutdown": null,
                                "timers": null,
                                "transport": null,
                                "ttl_security": null,
                                "update_source": "Vlan6"
                            }
                        ],
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "PCI-DMZ"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": [
                            {
                                "bfd": null,
                                "bmp_activate_server": null,
                                "capability": null,
                                "description": null,
                                "disable_connected_check": null,
                                "dont_capability_negotiate": null,
                                "dscp": null,
                                "dynamic_capability": null,
                                "ebgp_multihop": null,
                                "graceful_shutdown": null,
                                "inherit": {
                                    "peer": null,
                                    "peer_session": null
                                },
                                "local_as": null,
                                "log_neighbor_changes": null,
                                "low_memory": null,
                                "neighbor_address": "192.168.10.0/26",
                                "neighbor_affinity_group": null,
                                "password": null,
                                "path_attribute": null,
                                "peer_type": null,
                                "remote_as": null,
                                "remote_as_route_map": null,
                                "remove_private_as": null,
                                "shutdown": null,
                                "timers": null,
                                "transport": null,
                                "ttl_security": null,
                                "update_source": "Vlan7"
                            }
                        ],
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "STG-ANTIDDOS"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": [
                            {
                                "bfd": null,
                                "bmp_activate_server": null,
                                "capability": null,
                                "description": null,
                                "disable_connected_check": null,
                                "dont_capability_negotiate": null,
                                "dscp": null,
                                "dynamic_capability": null,
                                "ebgp_multihop": null,
                                "graceful_shutdown": null,
                                "inherit": {
                                    "peer": null,
                                    "peer_session": null
                                },
                                "local_as": null,
                                "log_neighbor_changes": null,
                                "low_memory": null,
                                "neighbor_address": "192.168.11.0/26",
                                "neighbor_affinity_group": null,
                                "password": null,
                                "path_attribute": null,
                                "peer_type": null,
                                "remote_as": null,
                                "remote_as_route_map": null,
                                "remove_private_as": null,
                                "shutdown": null,
                                "timers": null,
                                "transport": null,
                                "ttl_security": null,
                                "update_source": "Vlan8"
                            }
                        ],
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "PROD-ANTIDDOS"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": [
                            {
                                "bfd": null,
                                "bmp_activate_server": null,
                                "capability": null,
                                "description": null,
                                "disable_connected_check": null,
                                "dont_capability_negotiate": null,
                                "dscp": null,
                                "dynamic_capability": null,
                                "ebgp_multihop": null,
                                "graceful_shutdown": null,
                                "inherit": {
                                    "peer": null,
                                    "peer_session": null
                                },
                                "local_as": null,
                                "log_neighbor_changes": null,
                                "low_memory": null,
                                "neighbor_address": "192.168.12.0/26",
                                "neighbor_affinity_group": null,
                                "password": null,
                                "path_attribute": null,
                                "peer_type": null,
                                "remote_as": null,
                                "remote_as_route_map": null,
                                "remove_private_as": null,
                                "shutdown": null,
                                "timers": null,
                                "transport": null,
                                "ttl_security": null,
                                "update_source": "Vlan9"
                            }
                        ],
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "PCI-ANTIDDOS"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": [
                            {
                                "bfd": null,
                                "bmp_activate_server": null,
                                "capability": null,
                                "description": null,
                                "disable_connected_check": null,
                                "dont_capability_negotiate": null,
                                "dscp": null,
                                "dynamic_capability": null,
                                "ebgp_multihop": null,
                                "graceful_shutdown": null,
                                "inherit": {
                                    "peer": null,
                                    "peer_session": null
                                },
                                "local_as": null,
                                "log_neighbor_changes": null,
                                "low_memory": null,
                                "neighbor_address": "192.168.13.0/28",
                                "neighbor_affinity_group": null,
                                "password": null,
                                "path_attribute": null,
                                "peer_type": null,
                                "remote_as": null,
                                "remote_as_route_map": null,
                                "remove_private_as": null,
                                "shutdown": null,
                                "timers": null,
                                "transport": null,
                                "ttl_security": null,
                                "update_source": "Vlan10"
                            }
                        ],
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "PCI-ANTIDDOS"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": [
                            {
                                "bfd": null,
                                "bmp_activate_server": null,
                                "capability": null,
                                "description": null,
                                "disable_connected_check": null,
                                "dont_capability_negotiate": null,
                                "dscp": null,
                                "dynamic_capability": null,
                                "ebgp_multihop": null,
                                "graceful_shutdown": null,
                                "inherit": {
                                    "peer": null,
                                    "peer_session": null
                                },
                                "local_as": null,
                                "log_neighbor_changes": null,
                                "low_memory": null,
                                "neighbor_address": "192.168.14.0/26",
                                "neighbor_affinity_group": null,
                                "password": null,
                                "path_attribute": null,
                                "peer_type": null,
                                "remote_as": null,
                                "remote_as_route_map": null,
                                "remove_private_as": null,
                                "shutdown": null,
                                "timers": null,
                                "transport": null,
                                "ttl_security": null,
                                "update_source": "Vlan11"
                            }
                        ],
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "STG-PCI-INFRA"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": [
                            {
                                "bfd": null,
                                "bmp_activate_server": null,
                                "capability": null,
                                "description": null,
                                "disable_connected_check": null,
                                "dont_capability_negotiate": null,
                                "dscp": null,
                                "dynamic_capability": null,
                                "ebgp_multihop": null,
                                "graceful_shutdown": null,
                                "inherit": {
                                    "peer": null,
                                    "peer_session": null
                                },
                                "local_as": null,
                                "log_neighbor_changes": null,
                                "low_memory": null,
                                "neighbor_address": "192.168.15.0/29",
                                "neighbor_affinity_group": null,
                                "password": null,
                                "path_attribute": null,
                                "peer_type": null,
                                "remote_as": null,
                                "remote_as_route_map": null,
                                "remove_private_as": null,
                                "shutdown": null,
                                "timers": null,
                                "transport": null,
                                "ttl_security": null,
                                "update_source": "Vlan12"
                            }
                        ],
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "STG-PCI-DMZ"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": null,
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "PCI-CDE"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": null,
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "PCI-MGMT"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": null,
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "PCI-CONTROL"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": null,
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "PROD-MGMT"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": null,
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "STG-MGMT"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": null,
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "PROD-CONTROL"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": null,
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "STG-PCI-ANTIDDOS"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": null,
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "STG-PCI-CDE"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": null,
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "STG-PCI-CONTROL"
                    },
                    {
                        "allocate_index": null,
                        "bestpath": null,
                        "cluster_id": null,
                        "confederation": null,
                        "graceful_restart": null,
                        "local_as": null,
                        "log_neighbor_changes": null,
                        "maxas_limit": null,
                        "neighbor_down": null,
                        "neighbors": null,
                        "reconnect_interval": null,
                        "router_id": null,
                        "timers": null,
                        "vrf": "STG-PCI-MGMT"
                    }
                ]
            },
            "running_config": null,
            "state": "replaced"
        }
    },
    "msg": "VRF management has address-family configurations. Please use the nxos_bgp_af module to remove those first."
}
@Egor-Ozhmegoff Egor-Ozhmegoff changed the title [bgp_globa] module fails if bmp server vrf configured [bgp_global] module fails if bmp server vrf configured Mar 5, 2024
@NilashishC NilashishC self-assigned this Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants