Open ad-ko opened 2 years ago
Hi Andreas
what the configuration of the switch ?
Running configuration:
; J9776A Configuration Editor; Created on release #YA.16.11.0007
; Ver #14:41.44.00.04.19.02.13.98.82.34.61.18.28.f3.84.9c.63.ff.37.27:05
hostname "aosswitch_1"
aruba-central disable
dhcp-snooping
dhcp-snooping vlan 400 500 600 666
radius-server host 10.0.0.1 key "RADIUS!"
radius-server host 10.0.0.1 dyn-authorization
timesync ntp
no sntp
ntp server 192.53.103.103 iburst
ntp enable
no telnet-server
time daylight-time-rule western-europe
time timezone 60
no web-management
web-management ssl
ip ssh filetransfer
ip client-tracker probe-delay 15
interface 24
dhcp-snooping trust
name "UPLINK_INTERFACE"
exit
interface 25
dhcp-snooping trust
name "UPLINK_INTERFACE"
exit
interface 26
dhcp-snooping trust
name "UPLINK_INTERFACE"
exit
interface 27
dhcp-snooping trust
name "UPLINK_INTERFACE"
exit
interface 28
dhcp-snooping trust
name "UPLINK_INTERFACE"
exit
snmpv3 enable
snmpv3 group managerpriv user "SNMPpf" sec-model ver3
snmpv3 user "SNMPpf"
aaa server-group radius "PacketFence" host 10.0.0.1
aaa authentication port-access eap-radius server-group "PacketFence"
aaa port-access authenticator active
vlan 1
name "DEFAULT_VLAN"
no untagged 5-9
untagged 1-4,10-28
ip address dhcp-bootp
exit
vlan 400
name "Server"
tagged 24-28
no ip address
exit
vlan 500
name "Clients"
tagged 24-28
no ip address
exit
vlan 600
name "WLAN-Clients"
tagged 24-28
no ip address
exit
vlan 666
name "Dummy"
untagged 5-9
no ip address
exit
spanning-tree
spanning-tree 5 admin-edge-port
spanning-tree 5 bpdu-protection
spanning-tree 6 admin-edge-port
spanning-tree 6 bpdu-protection
spanning-tree 7 admin-edge-port
spanning-tree 7 bpdu-protection
spanning-tree 8 admin-edge-port
spanning-tree 8 bpdu-protection
spanning-tree 9 admin-edge-port
spanning-tree 9 bpdu-protection
no tftp client
no tftp server
no dhcp config-file-update
no dhcp image-file-update
no dhcp tr69-acs-url
password manager
password operator
After taking a closer look at this problem, I was able to figure out the cause.
I had to set some default values in the file "arubaoss_dot1x.py"
:
logoff_period=dict(type='int', required=False, default=300),
client_limit=dict(type='int', required=False, default=0),
quiet_period=dict(type='int', required=False, default=60),
tx_period=dict(type='int', required=False, default=30),
supplicant_timeout=dict(type='int', required=False, default=30),
server_timeout=dict(type='int', required=False, default=300),
max_requests=dict(type='int', required=False, default=2),
When the default values are set to 0, I get the error message described above.
{"port_id": "5", "is_authenticator_enabled": true, "control": "DAPC_AUTO", "unauthorized_vlan_id": 0,
"client_limit": 2, "quiet_period": 0, "tx_period": 10, "supplicant_timeout": 0, "server_timeout": 0,
"max_requests": 0, "reauth_period": 28800, "authorized_vlan_id": 0, "logoff_period": 0, "unauth_period": 0,
"cached_reauth_period": 0, "enforce_cache_reauth": false}HTTP/1.1 400 Bad Request
{"message":"Invalid input: 0"}
After taking a closer look at this problem, I was able to figure out the cause.
I had to set some default values in the file
"arubaoss_dot1x.py"
:logoff_period=dict(type='int', required=False, default=300), client_limit=dict(type='int', required=False, default=0), quiet_period=dict(type='int', required=False, default=60), tx_period=dict(type='int', required=False, default=30), supplicant_timeout=dict(type='int', required=False, default=30), server_timeout=dict(type='int', required=False, default=300), max_requests=dict(type='int', required=False, default=2),
When the default values are set to 0, I get the error message described above.
{"port_id": "5", "is_authenticator_enabled": true, "control": "DAPC_AUTO", "unauthorized_vlan_id": 0, "client_limit": 2, "quiet_period": 0, "tx_period": 10, "supplicant_timeout": 0, "server_timeout": 0, "max_requests": 0, "reauth_period": 28800, "authorized_vlan_id": 0, "logoff_period": 0, "unauth_period": 0, "cached_reauth_period": 0, "enforce_cache_reauth": false}HTTP/1.1 400 Bad Request {"message":"Invalid input: 0"}
Yes, good catch... there is a bug for this case @tchiapuziowong
thank you @alagoutte I'll bring this up with development!
Hi,
I'm trying to do a port configuration with the module arubaoss_dot1x but get the error message
"unable to load response from device"
.Playbook
This is the ansible error:
Ansible environment:
REST Debug information: debug_rest.log
Switch version:
All other used modules work as expected. Do you have any idea what could be wrong here?
Thank you and many greetings, Andreas