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
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
..
aireos Update bare exceptions to specify Exception. 6 years ago
aruba Update bare exceptions to specify Exception. 6 years ago
asa ASA network/service object-group module (#52925) 6 years ago
basics code clean of old code from network modules updates (#21469) 8 years ago
checkpoint Add checkpoint_session module (#50930) 6 years ago
cli Add backup parameter to cli_config (#50206) 6 years ago
cloudvision Ensure that current uses of BaseException are required 6 years ago
cnos The module fails on switchport. Check added to fix. (#54970) 6 years ago
cumulus Remove wildcard import in test_nclu 7 years ago
dellos6 Update bare exceptions to specify Exception. 6 years ago
dellos9 Update bare exceptions to specify Exception. 6 years ago
dellos10 Update bare exceptions to specify Exception. 6 years ago
edgeos Update bare exceptions to specify Exception. 6 years ago
edgeswitch new network module: edgeswitch_vlan (#48041) 6 years ago
enos Update bare exceptions to specify Exception. 6 years ago
eos New module for BGP configuration management in Arista EOS (#52722) 6 years ago
exos Exos httpapi (#54405) 6 years ago
f5 adds initial_hotfix parameter to vcmp guest (#58180) 5 years ago
fortimanager FortiManager Plugin Module Conversion: fmgr_ha (#52768) 6 years ago
frr frr: New module for BGP configuration management (#51281) 6 years ago
ftd FTD configuration module: fix a bug with response parsing (#57480) 6 years ago
ingate modules: network: ingate: Add module ig_store_edit (#47675) 6 years ago
ios Revert nxos, ios, iosxr return_timestamps (#56206) 6 years ago
iosxr Revert nxos, ios, iosxr return_timestamps (#56206) 6 years ago
ironware Update slxos_vlan for new SLX-OS versions, linting fixes (#52956) 6 years ago
itential itential iap_start_workflow module (#51238) 6 years ago
junos Add platform facts in network facts modules (#51434) 6 years ago
netact Move unit test compat code out of `lib/ansible/`. (#46996) 6 years ago
netscaler Move unit test compat code out of `lib/ansible/`. (#46996) 6 years ago
netvisor Pluribus Networks ipv6security raguard module with UT (#57031) 5 years ago
nos Update slxos_vlan for new SLX-OS versions, linting fixes (#52956) 6 years ago
nso NSO - added validate_certs parameter to allow for ignoring of SSL certificates (#51981) 6 years ago
nuage Replace nose with pytest 6 years ago
nxos nxos_vpc: pkl_vrf fixes for #57069 (#57370) 5 years ago
onyx Adding New Model onyx_qos for Configuring QoS on Onyx Switches (#55127) 6 years ago
opx opx_cps_changes (#51952) 6 years ago
ovs Fix ovsdb module not being idempotent (#57735) 5 years ago
radware Changing the license to Apache 2 6 years ago
routeros Update bare exceptions to specify Exception. 6 years ago
slxos Update slxos_vlan for new SLX-OS versions, linting fixes (#52956) 6 years ago
voss Update slxos_vlan for new SLX-OS versions, linting fixes (#52956) 6 years ago
vyos Add platform facts in network facts modules (#51434) 6 years ago
__init__.py