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

Replace bool auto_neg with 4-option negotiation #134

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tmshlvck
Copy link

Replace bool auto_neg that always generates no negotiation lines when
undefined - causing errors on S4148 running OS10 ver 10.5.3.4 as
described in issue #133

Add negotiation parameter with "on", "off" or "auto" values that
translate to

sw01(conf-if-eth1/1/1)# negotiation ?
  auto  Automatic settings(default)
  on    Negotiation is on
  off   Negotiation is off

Undefined negotiation parameter should not generate any output to the
resulting config to avoid failing on virtual interfaces (vlans,
loopbackes, ...) that do not support negotiation

sw01(config)# interface vlan 100
sw01(conf-if-vl-100)# negotiation auto
% Error: Unrecognized command.
sw01(conf-if-vl-100)# no negotiation
% Error: Unrecognized command.
SUMMARY

Correct interface negotiation settings to be able to set all possible values or not setting any
value at all (for interfaces that do not support it).

Fixes #133.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

role os10_interface

ADDITIONAL INFORMATION

Replace bool auto_neg that always generates `no negotiation` lines when
undefined - causing errors on S4148 running OS10 ver 10.5.3.4 as
described in issue ansible-collections#133

Add negotiation parameter with "on", "off" or "auto" values that
translate to
```
sw01(conf-if-eth1/1/1)# negotiation ?
  auto  Automatic settings(default)
  on    Negotiation is on
  off   Negotiation is off
```

Undefined negotiation parameter should not generate any output to the
resulting config to avoid failing on virtual interfaces (vlans,
loopbackes, ...) that do not support negotiation

```
sw01(config)# interface vlan 100
sw01(conf-if-vl-100)# negotiation auto
% Error: Unrecognized command.
sw01(conf-if-vl-100)# no negotiation
% Error: Unrecognized command.
```
@ronnyaa
Copy link

ronnyaa commented Nov 10, 2022

thank you for this patch, applied it locally and it fixed 1.2.0 ;
port-channels does not support no negotiation either.

@tmshlvck
Copy link
Author

tmshlvck commented Apr 28, 2023

I am adding a new commit to "Add support for lag individual config" which is missing in the roles and it seems to be an important addition to the LAG role.

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.

os10_interface fails on vlan and loopback interfaces due to no negotiation
2 participants