Open alexanderdeca opened 2 years ago
Hey Guys,
Anything I can do to help ?
cheers
Hi,
I can confirm the behaviour. No chance to configure "route-target both auto"
@alexanderdeca I am not able to reproduce this issue with the following task:
- name: CONFIGURE TENANT VRFs (cont'd)
cisco.nxos.nxos_vrf_af:
vrf: "{{ item.vrf }}"
afi: ipv4
route_targets:
- rt: auto
direction: both
state: present
loop: "{{ vrfs }}"
vars:
vrfs:
- {'vrf': 'voice', 'vni_id': 12004, 'afi': 'ipv4', 'safi': 'unicast'}
changed: [nxos1] => (item={'vrf': 'voice', 'vni_id': 12004, 'afi': 'ipv4', 'safi': 'unicast'}) => changed=true
ansible_loop_var: item
commands:
- vrf context voice
- address-family ipv4 unicast
- route-target both auto
invocation:
module_args:
afi: ipv4
provider: null
route_target_both_auto_evpn: null
route_targets:
- direction: both
rt: auto
state: present
state: present
vrf: voice
item:
afi: ipv4
safi: unicast
vni_id: 12004
vrf: voice
In fact, we have tests defined for the same here https://github.com/ansible-collections/cisco.nxos/blob/main/tests/unit/modules/network/nxos/test_nxos_vrf_af.py#L1101-L1122
I tried it with a virtual N9K that's running NX-OS 9.3.6. With N7K, the command set should be:
- vrf context voice
- address-family ipv4 unicast
- route-target import auto
- route-target export auto
Could you please share the output for show version | grep "NXOS:"
and show inventory
?
hi @NilashishC :
switch# show version | grep "NXOS:"
NXOS: version 9.3(8)
switch# show inventory
NAME: "Chassis", DESCR: "Nexus9000 C93180YC-EX chassis"
PID: N9K-C93180YC-EX , VID: V04 , SN:
NAME: "Slot 1", DESCR: "48x10/25G + 6x40/100G Ethernet Module"
PID: N9K-C93180YC-EX , VID: V04 , SN:
NAME: "Power Supply 1", DESCR: "Nexus9000 C93180YC-EX chassis Power Supply"
PID: NXA-PAC-650W-PE , VID: V04 , SN:
NAME: "Power Supply 2", DESCR: "Nexus9000 C93180YC-EX chassis Power Supply"
PID: NXA-PAC-650W-PE , VID: V04 , SN:
NAME: "Fan 1", DESCR: "Nexus9000 C93180YC-EX chassis Fan Module" PID: NXA-FAN-30CFM-F , VID: V01 , SN: N/A
NAME: "Fan 2", DESCR: "Nexus9000 C93180YC-EX chassis Fan Module" PID: NXA-FAN-30CFM-F , VID: V01 , SN: N/A
NAME: "Fan 3", DESCR: "Nexus9000 C93180YC-EX chassis Fan Module" PID: NXA-FAN-30CFM-F , VID: V01 , SN: N/A
NAME: "Fan 4", DESCR: "Nexus9000 C93180YC-EX chassis Fan Module" PID: NXA-FAN-30CFM-F , VID: V01 , SN: N/A
@alexanderdeca We still haven't been able to reproduce this problem on multiple chassis x NX-OS versions. Hence, we would require the existing running config from the appliance where the task you share above fails. Would you be able to provide that so that we can debug this further?
Hi @NilashishC
can you send me an email alexander@deca-consulting.be so I can transfer the file to you.
thanks
Alexander
SUMMARY
When configuring vrf address family ipv4 rout-targets both, "auto" is not pushed towards the nxos device, however specifying a community in format xxxx:xxx is accepted.
ISSUE TYPE
COMPONENT NAME
cisco.nxos.nxos_vrf_af
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Software BIOS: version 07.69 NXOS: version 9.3(8)
STEPS TO REPRODUCE
Configuration is not adapted accordingly on nxos device with statement - rt: auto with no visible error when executing playbook and with -rt: 65000:1000 config is pushed.
EXPECTED RESULTS
vrf context voice vni 12004 rd auto address-family ipv4 unicast route-target both auto route-target both auto evpn
ACTUAL RESULTS
vrf context voice vni 12004 rd auto address-family ipv4 unicast ---> missing statement route-target both auto evpn