Open diego-lopez8 opened 3 months ago
I can see the issue. It tries to configure
interface Ethernet5/1
speed 100g-2None
This None is coming here:
There are more combinations of speed that the template does not follow ( lanes )
ceos1(config)#interface eth5/1
! Interface does not exist. The configuration will not take effect until the module is inserted.
ceos1(config-if-Et5/1)#speed ?
100full Disable autoneg and force 100 Mbps/full duplex operation
100g Disable autoneg and force 100 Gbps/full duplex operation over 4 or 10 lanes
100g-1 Disable autoneg and force 100 Gbps/full duplex operation over 1 lane
100g-2 Disable autoneg and force 100 Gbps/full duplex operation over 2 lanes
100g-4 Disable autoneg and force 100 Gbps/full duplex operation over 4 lanes
100half Disable autoneg and force 100 Mbps/half duplex operation
10full Disable autoneg and force 10 Mbps/full duplex operation
10g Disable autoneg and force 10 Gbps/full duplex operation over 1 lane
10half Disable autoneg and force 10 Mbps/half duplex operation
1g Disable autoneg and force 1 Gbps/full duplex operation over 1 lane
200g Disable autoneg and force 200 Gbps/full duplex operation over 4 lanes
200g-2 Disable autoneg and force 200 Gbps/full duplex operation over 2 lanes
200g-4 Disable autoneg and force 200 Gbps/full duplex operation over 4 lanes
25g Disable autoneg and force 25 Gbps/full duplex operation over 1 lane
400g Disable autoneg and force 400 Gbps/full duplex operation over 8 lanes
400g-4 Disable autoneg and force 400 Gbps/full duplex operation over 4 lanes
400g-8 Disable autoneg and force 400 Gbps/full duplex operation over 8 lanes
40g Disable autoneg and force 40 Gbps/full duplex operation over 4 lanes
50g Disable autoneg and force 50 Gbps/full duplex operation over 2 lanes
50g-1 Disable autoneg and force 50 Gbps/full duplex operation over 1 lane
50g-2 Disable autoneg and force 50 Gbps/full duplex operation over 2 lane
800g-8 Disable autoneg and force 800 Gbps/full duplex operation over 8 lanes
auto Enable autoneg for speed, duplex, and flowcontrol
forced Disable autoneg and force speed/duplex/flowcontrol
sfp-1000baset Configure autoneg and speed/duplex on 1000BASE-T SFP
ceos1(config-if-Et5/1)#speed forced ?
10000full Disable autoneg and force 10 Gbps/full duplex operation
1000full Disable autoneg and force 1 Gbps/full duplex operation
1000half Disable autoneg and force 1 Gbps/half duplex operation
100full Disable autoneg and force 100 Mbps/full duplex operation
100gfull Disable autoneg and force 100 Gbps/full duplex operation
100half Disable autoneg and force 100 Mbps/half duplex operation
10full Disable autoneg and force 10 Mbps/full duplex operation
10half Disable autoneg and force 10 Mbps/half duplex operation
25gfull Disable autoneg and force 25 Gbps/full duplex operation
40gfull Disable autoneg and force 40 Gbps/full duplex operation
50gfull Disable autoneg and force 50 Gbps/full duplex operation
SUMMARY
eos_interfaces.config.speed and eos_interfaces.config.duplex are not parsing correctly when using a breakout configuration on a interface. When trying to gather interface information from a device, the speed and duplex is not parsed correctly, and the module is unable to apply a breakout via the
speed
command which is possible on the device itself.ISSUE TYPE
COMPONENT NAME
eos_interfaces.config.speed and eos_interfaces.config.duplex
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Arista DCS-7050DX4-32S-F Software image version: 4.32.1F
STEPS TO REPRODUCE
Run a play with "Gather" state to fetch configuration of an interface which has a breakout already applied via
speed 100g-2
:Switch has the following configuration
Run the following play
EXPECTED RESULTS
I expect
ACTUAL RESULTS
The actual results of the gather play is
The parser believes that the speed is
10
and the duplex is0g-2
.Output of
show interfaces ethernet 1/1 hardware
:Another example for
state: merged
:Run the play:
EXPECTED RESULTS
I expect the
speed 100g-2
to be applied to the switch, and for the breakout to be created.ACTUAL RESULTS
Results of the play: