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 20fb77c49b nxos_interfaces_ospf: fix passive-interface states & check_mode (#54260)
* nxos_interfaces_ospf: fix passive-interface states & check_mode

This fix addresses issues #41704 and #45343.

The crux of the problem is that `passive-interface` should have been treated as a tri-state value instead of a boolean.

The `no` form of the command disables the passive state on an interface (allows it to form adjacencies and send routing updates).  It's essentially an override for `passive-interface default` which enables passive state on all OSPF interfaces.\*
This `no` config will be present in `running-config`.

   \**See `router ospf` configuration.*

Since both enable and disable states are explicit configs, the proper way to remove either of these is with the `default` syntax.

Passive-interface config syntax:
```
  ip ospf passive-interface              # enable  (nvgens)
  no ip ospf passive-interface           # disable (nvgens)
  default ip ospf passive-interface      # default (removes config, does not nvgen)
```

Code changes:

* `passive_interface` param changed from boolean to string, restricted to `true`,`false`,`default`.

* Several passive-interface specific checks were added because the existing module logic tends to test for true or false and doesn't handle the None case.

* Fixed `check_mode`.

Sanity verified on: N9K,N7K,N3K,N6K

* Fix doc header

* Unit tests for passive-interface

* doc fix #2

* Fix indent for SA

* Remove 'default' keyword, restore bool behavior

* remove changes to sanity
6 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) 7 years ago
nxos_bgp nxos: 32 bits AS in as-dot format not recognized by regexp asn_regex (#30569) 7 years ago
nxos_command adds unit test cases for nxos_command (#21959) 8 years ago
nxos_config
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) 8 years ago
nxos_interface Fix nxos_interface multiple issues (#36827) 7 years ago
nxos_interface_ospf nxos_interfaces_ospf: fix passive-interface states & check_mode (#54260) 6 years ago
nxos_nxapi Refactor/fix nxos_nxapi to use show run (#28675) 7 years ago
nxos_pim nxos_pim updates (#26145) 8 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 refactor to support non structured output (#43805) 6 years ago
nxos_vpc nxos_vpc updates (#25452) 8 years ago
nxos_vpc_interface Fixes nxos_vpc_interface (#25907) 8 years ago
nxos_vrf Convert nxos_vrf to DI module (#34274) 7 years ago
nxos_vxlan_vtep nxos_vxlan_vtep (#25971) 8 years ago
nxos_vxlan_vtep_vni nxos_vxlan_vtep_vni fixes (#25913) 8 years ago
_nxos_ip_interface.cfg Replace bogus (but routeable) ip addresses with RFC 5737 example addresses (#40554) 7 years ago
nxos_evpn_vni_config.cfg add more testcases for nxos_evpn_vni (#24996) 8 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) 8 years ago
nxos_system_config.cfg adds system_mtu argument to nxos_system (#21970) 8 years ago