You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/units/modules/network/nxos/fixtures
Chris Van Heuveln 0868fec8bd nxos_vpc: pkl_vrf fixes for #57069 (#57370)
* nxos_vpc: pkl_vrf fixes for #57069

Fixes #57069

- Symptom: When playbooks specify `pkl_vrf: default`, the result is that the cli does not set the `vrf` state.

- Analysis:
 - First issue: 'default' is a reserved word when used with the `peer-keepalive` `vrf` keyword. It refers to the default rib.
   - This is confusing in several ways because `peer-keepalive`'s *default* vrf is the `management` vrf.

 - Second issue: When changing only one optional value (`pkl_vrf`) while other optional values are idempotent (`pkl_src`), the result is that the idempotent values are ignored; unfortunately the device cli *replaces* the entire command, in which case the idempotent values are removed.
   - e.g. playbook specifies this:
     ```
     { pkl_dest: 10.1.1.1, pkl_src: 10.2.2.2, pkl_vrf: my_vrf }
     ```

     ```
     peer-keepalive dest 10.1.1.1 src 10.2.2.2             # original

     peer-keepalive dest 10.1.1.1 src 10.2.2.2 vrf my_vrf  # intended result

     peer-keepalive dest 10.1.1.1 vrf my_vrf               # actual result
     ```

 - Third issue: the `pkl` getter was relying on positional data. This broke when the `udp` keyword nvgen'd where `vrf` used to appear (shifting all keywords to the right).

- Tested on regression platforms: `N3K,N6k,N7K,N9K,N3K-F,N9K-F`

* PEP fixes

* PEP fix 2

* pkl should merge by default, not override

* rmv debugs

* add mike's tests

* fix comments
5 years ago
..
_nxos_switchport Deprecate nxos_switchport and Add nxos_l2_interface DI module (#33813) 7 years ago
nxos_acl nxos_acl fixes (#23915) 8 years ago
nxos_acl_interface Replace bogus (but routeable) ip addresses with RFC 5737 example addresses (#40554) 6 years ago
nxos_bfd_global nxos_bfd_global / NxosCmdRef initial commit (#56317) 5 years ago
nxos_bgp nxos_bgp_neighbor: Add bfd support (#56932) 5 years ago
nxos_command adds unit test cases for nxos_command (#21959) 8 years ago
nxos_config adds nxos_config unit test cases (#21960) 8 years ago
nxos_evpn_global roll up of bug fixs for nxos_evpn_global (#21961) 8 years ago
nxos_feature nxos_feature fix and unit test (#25200) 7 years ago
nxos_interface Fix nxos_interface multiple issues (#36827) 7 years ago
nxos_interface_ospf nxos_interface_ospf: Add bfd support (#56807) 5 years ago
nxos_l3_interface Add support for multiple IPv6 addresses in nxos_l3_interface module (#50892) 6 years ago
nxos_nxapi Refactor/fix nxos_nxapi to use show run (#28675) 7 years ago
nxos_pim nxos_pim: Add bfd support (#56908) 5 years ago
nxos_pim_interface Rel240/fix nxos pim interface (#29885) 7 years ago
nxos_pim_rp_address nxos_pim_rp_address fixes (#26119) 7 years ago
nxos_vlan nxos_vlan: fix broken purge behavior (issue #57101) (#57229) 5 years ago
nxos_vpc nxos_vpc: pkl_vrf fixes for #57069 (#57370) 5 years ago
nxos_vpc_interface Fixes nxos_vpc_interface (#25907) 7 years ago
nxos_vrf Convert nxos_vrf to DI module (#34274) 7 years ago
nxos_vxlan_vtep nxos_vxlan_vtep (#25971) 7 years ago
nxos_vxlan_vtep_vni nxos_vxlan_vtep_vni fixes (#25913) 7 years ago
_nxos_ip_interface.cfg Replace bogus (but routeable) ip addresses with RFC 5737 example addresses (#40554) 6 years ago
nxos_evpn_vni_config.cfg add more testcases for nxos_evpn_vni (#24996) 7 years ago
nxos_overlay_global_config.cfg fix nxos_overlay_global idempotence (#28150) 7 years ago
nxos_static_route.cfg nxos_static_route updates (#24992) 7 years ago
nxos_system_config.cfg adds system_mtu argument to nxos_system (#21970) 8 years ago