Skip to content

Ignore reserved VLANs 1002-1005 for state overridden#1224

Open
jiholland wants to merge 32 commits intoansible-collections:mainfrom
jiholland:fix
Open

Ignore reserved VLANs 1002-1005 for state overridden#1224
jiholland wants to merge 32 commits intoansible-collections:mainfrom
jiholland:fix

Conversation

@jiholland
Copy link
Copy Markdown

@jiholland jiholland commented Aug 13, 2025

SUMMARY

Ignore VLAN 1002-1005 for state overridden

ISSUE TYPE
  • Bugfix Pull Request

#1182

excluded_vlans = {k: v for k, v in iteritems(haved) if k not in wantd or not wantd}
haved = {k: v for k, v in iteritems(haved) if k in wantd or not wantd}
for k, have in iteritems(excluded_vlans):
# Skip reserved VLANs 1002–1005
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we skipping these?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because they can’t be deleted, which breaks idempotency for state overridden.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok can we add some tests for this?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What type of test?

This is the issue I’m trying to solve: #1182

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

integration/unit tests maybe

Copy link
Copy Markdown
Author

@jiholland jiholland Oct 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the unit/integration tests and documentation to reflect the changes. Would be nice if you, @Ruchip16 , could take a look at it again. Thanks.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anyone looking into this?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @jiholland I am taking a look at this.
Will update shortly

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @KB-perByte . Idempotency with state overridden is still an issue, and it would be great if it could be resolved. It does not have to be this exact fix, but some solution to the problem would be nice.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any updates?

@Ruchip16
Copy link
Copy Markdown
Contributor

CI is failing

@Ruchip16 Ruchip16 marked this pull request as draft August 14, 2025 09:51
AAYUSH2091 and others added 15 commits October 7, 2025 17:11
* minor_changes

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update commit_conf.yaml

* Update commit_conf.yaml

* Update commit_conf.yaml

* Update tests/integration/targets/ios_cliconf/tests/common/commit_conf.yaml

* added_pexpect

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update cli_test.yml

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sagar Paul <[email protected]>
…state (ansible-collections#1227)

* minor_fix

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update static_routes.yml

* Update test_ios_static_routes.py

* fixes_integration_test

* reverting_tests_changes

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* minor_changes

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update vrf_global.py

* fixes_lint_errors

* fixes_lint_errors

* Update .ansible-lint

* Update .ansible-lint

* fix_lint_errors

* fixing_lint_erros

* reverting_the_changes_of_lint_file

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…#1229)

* Added in chassis_id to net neighbours

* added test for chassis_id in lldp neighbours.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* added changelog fragment

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sagar Paul <[email protected]>
* fix_ios_bgp_address_family

* minor_fix

* minor_fix

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update commit_conf.yaml

* added_integration_tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update bgp_address_family.yml

* Update bgp_address_family.py

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…-collections#1232)

* Added prompt and answer funtinalities to ios config module

* added robustness to code

* added description about line , prompt and answer

* added robustness to code

* removed traceback

* added unit tests

* added integration tests

* added changelog

* addressed review comments

* fixed sanity

* fixed sanity

* fixed sanity

* fixed sanity

* fixed sanity

* fixed test

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update prompt.yaml

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sagar Paul <[email protected]>
…tions#1240)

* ipv6 handling issues with ios_hsrp_interface

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix state and defaults

* update defaults and tasks

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* only apply version if standby is present

* Update fixes

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix tests

* fix sanity

* Update pre-commit

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@jiholland jiholland marked this pull request as ready for review October 7, 2025 15:31
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.

6 participants