You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to connect to a device using and IPv6 Address fails with the error: raise LoginError("Cookies were not set correctly. Login failed")
I did encase the IP Address in square brackets like [2001:db8:1::25], as it is customary for URLs. Without the brackets, I got even more parsing errors.
In the file session.py:159 in method open(...): )
self.connected = (
hasattr(cookies, "_cookies") and self.ip in cookies._cookies
)
the check for connected fails, as for some reason unknown to me the switch returns the cookie with the address [2001:db8:1::25].local. This extra .local at the end of the ip fails the test condition.
I tried to mitigate by also checking for .local, and that is a workaround for my development machine at the moment.
self.connected = hasattr(cookies, '_cookies') and (self.ip in cookies._cookies or "%s.local"% self.ip in cookies._cookies)
I would really appreciate a fix for this in the official pypi version (or in aos-cx, whatever is preferred), as plan to run this on ipv6-only networks, and newly deployed switches do not have dns entries yet.
If I need to push this via my SE or a support case, please tell me as that would be possible.
The text was updated successfully, but these errors were encountered:
Trying to connect to a device using and IPv6 Address fails with the error:
raise LoginError("Cookies were not set correctly. Login failed")
I did encase the IP Address in square brackets like [2001:db8:1::25], as it is customary for URLs. Without the brackets, I got even more parsing errors.
In the file session.py:159 in method open(...): )
the check for connected fails, as for some reason unknown to me the switch returns the cookie with the address
[2001:db8:1::25].local
. This extra .local at the end of the ip fails the test condition.I tried to mitigate by also checking for .local, and that is a workaround for my development machine at the moment.
I would really appreciate a fix for this in the official pypi version (or in aos-cx, whatever is preferred), as plan to run this on ipv6-only networks, and newly deployed switches do not have dns entries yet.
If I need to push this via my SE or a support case, please tell me as that would be possible.
The text was updated successfully, but these errors were encountered: