This is a critical regression in commit 4b6ed760d4303744907feefd81e60f38ae3750ef.
It prevents all library usage of neutronclient without passing endpoint_url and token.
(Note that Horizon is not affected as Horizon passes endpoint_url and token when initializing neutronclient object)
IMHO we should revert the change first and then explore a better way to check max_uri_length again.
This is a critical regression in commit 4b6ed760d430374 4907feefd81e60f 38ae3750ef.
It prevents all library usage of neutronclient without passing endpoint_url and token.
(Note that Horizon is not affected as Horizon passes endpoint_url and token when initializing neutronclient object)
IMHO we should revert the change first and then explore a better way to check max_uri_length again.