Skip to content

Conversation

ChrisPortman
Copy link

This change does the following:

  • detects where the mode is access by default and reports it in the facts
  • it limits operations to interfaces which are configured as layer2 interfaces

By augmenting the facts with mode: access where it was not previously, the use of mode: access becomes idempotent.

BREAKING: If an input configuration is supplied that attempts to apply L2 configuration to an interface that is L3 (or doesn't exist), an exception will be raised telling the user that they should use nxos_interfaces to first configure the interface for L2.

Fixes: #988

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

nxos_l2_interfaces

This change does the following:

* detects where the mode is access by default and reports it in the facts
* it limits operations to interfaces which are configured as layer2 interfaces

By augmenting the facts with `mode: access` where it was not previously, the use of `mode: access`
becomes idempotent.

BREAKING:  If an input configuration is supplied that attempts to apply L2 configuration to an
interface that is L3 (or doesn't exist), an exception will be raised telling the user that they
should use `nxos_interfaces` to first configure the interface for L2.

Fixes: ansible-collections#988
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

Successfully merging this pull request may close these issues.

Make mode: access idempotent for l2_interface
1 participant