Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eos subnet overlap fix #43023

Merged
merged 2 commits into from
Jul 20, 2018
Merged

Eos subnet overlap fix #43023

merged 2 commits into from
Jul 20, 2018

Conversation

Qalthos
Copy link
Contributor

@Qalthos Qalthos commented Jul 19, 2018

SUMMARY

Fixes #40187

Plus an unrelated fix for the check mode check

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

eos

ANSIBLE VERSION
2.7

@ansibot
Copy link
Contributor

ansibot commented Jul 19, 2018

@ansibot ansibot added affects_2.7 This issue/PR affects Ansible v2.7 bug This issue/PR relates to a bug. needs_triage Needs a first human triage before being processed. networking Network category support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Jul 19, 2018
@samdoran samdoran removed the needs_triage Needs a first human triage before being processed. label Jul 19, 2018
@@ -341,7 +341,11 @@ def load_config(self, config, commit=False, replace=False):
commands = ['configure session %s' % session, 'abort']
self.send_request(commands)
err = response['error']
self._module.fail_json(msg=err['message'], code=err['code'])
error_text = []
for data in err['data']:
Copy link
Contributor

@justjais justjais Jul 19, 2018

Choose a reason for hiding this comment

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

Nate, here err['data'] will always return a List right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As far as I can tell, data has one entry per command, which should mean a minimum of two, as we start with configure session ....

@Qalthos Qalthos merged commit dba9754 into ansible:devel Jul 20, 2018
Qalthos added a commit to Qalthos/ansible that referenced this pull request Jul 20, 2018
* Detect overlapping subnet & provide better errors

(cherry picked from commit dba9754)
Qalthos added a commit to Qalthos/ansible that referenced this pull request Jul 20, 2018
* Detect overlapping subnet & provide better errors

(cherry picked from commit dba9754)
@Qalthos Qalthos deleted the eos-subnet-overlap branch July 20, 2018 15:11
nitzmahone pushed a commit that referenced this pull request Jul 23, 2018
* Detect overlapping subnet & provide better errors

(cherry picked from commit dba9754)
mattclay pushed a commit that referenced this pull request Jul 27, 2018
* Detect overlapping subnet & provide better errors

(cherry picked from commit dba9754)
@ansible ansible locked and limited conversation to collaborators Jul 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.7 This issue/PR affects Ansible v2.7 bug This issue/PR relates to a bug. networking Network category support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Task does not fail after the configuration error, using the EAPI connection in eos_config
5 participants