0% found this document useful (0 votes)
21 views2 pages

48

This document summarizes the output of running a Python script that tests RADIUS calls. It ran into errors when trying to initialize the RadiusClient and generate a QoS profile hex code due to issues with the bitstring library not supporting unsigned integers of the size needed. The script was unable to start a tcpdump capture or execute the simple call setup and teardown test case due to these initialization errors.

Uploaded by

adityabhalsod99
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views2 pages

48

This document summarizes the output of running a Python script that tests RADIUS calls. It ran into errors when trying to initialize the RadiusClient and generate a QoS profile hex code due to issues with the bitstring library not supporting unsigned integers of the size needed. The script was unable to start a tcpdump capture or execute the simple call setup and teardown test case due to these initialization errors.

Uploaded by

adityabhalsod99
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

[hou.stg.

galaxy1 root@scb python-radius-call-tester]$


[hou.stg.galaxy1 root@scb python-radius-call-tester]$ cd /opt/python-radius-call-
tester && ./bin/runner.py simple_callsetup_cleardown.py -p -i /opt/python-radius-
call-tester/data/48.xlsx -c
/opt/python-radius-call-tester/conf/radius_call_tester.json
/opt/python-radius-call-tester/env/lib/python3.6/site-packages/paramiko/
transport.py:32: CryptographyDeprecationWarning: Python 3.6 is no longer supported
by the Python core team. Therefore, support for it is deprecated in cryptography.
The next release of cryptography will remove support for Python 3.6.
from cryptography.hazmat.backends import default_backend
Your arguments are:
soak_test_id -> None
number_of_calls -> None
number_of_iterations -> None
delay_between_iterations -> None
delay_between_access_request -> None
delay_between_acct_stop -> None
static_percentage -> None
dynamic_percentage -> None
maximum_runtime -> None
i -> /opt/python-radius-call-tester/data/48.xlsx
persistence -> True
clear-presistence-file -> False

==================> Starting execution of simple_callsetup_cleardown.py .


<==================
[ PERISTENCE ] Data successfully clear to the JSON file.
[ CAPTURE ] $ Running command : tcpdump -i any -f "udp port 1812 or udp port 1813"
-s 0 -w "/opt/Captures/BGAN-CH-QoS-Pri_12_01.pcap" -c 100000
Traceback (most recent call last):
File
"/opt/python-radius-call-tester/env/lib/python3.6/site-packages/bitstring.py", line
1274, in _init_with_token
b = cls(**{_tokenname_to_initialiser[name]: value})
KeyError: 'uint'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):


File
"/opt/python-radius-call-tester/env/lib/python3.6/site-packages/bitstring.py", line
865, in _initialise
init_without_length_or_offset[k](self, v)
KeyError: 'uint'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):


File "./bin/runner.py", line 183, in <module>
execute_script(script)
File "./bin/runner.py", line 33, in execute_script
__import__(test_module_name)
File "/opt/python-radius-call-tester/scripts/simple_callsetup_cleardown.py", line
85, in <module>
call = CallManager("BGAN", data)
File
"/opt/python-radius-call-tester/python-call-tester-core/python_call_tester_core/
CallManager.py", line 18, in __init__
self.update_default(default)
File
"/opt/python-radius-call-tester/python-call-tester-core/python_call_tester_core/
CallManager.py", line 110, in update_default
self.rad_obj = RadiusClient(self.req_avps, **self.radius_default)
File
"/opt/python-radius-call-tester/python-call-tester-core/python_call_tester_core/
RadiusClient.py", line 74, in __init__
self.kwargs
File
"/opt/python-radius-call-tester/python-call-tester-core/python_call_tester_core/
QoSUtils.py", line 35, in get_qos_profile_hexcode
value = bitstring.pack(kwargs.get(fmt_key), **qos_fileds)
File
"/opt/python-radius-call-tester/env/lib/python3.6/site-packages/bitstring.py", line
4291, in pack
s._append(BitStream._init_with_token(name, length, value))
File
"/opt/python-radius-call-tester/env/lib/python3.6/site-packages/bitstring.py", line
1279, in _init_with_token
b = cls(**{name: int(value), 'length': token_length})
File
"/opt/python-radius-call-tester/env/lib/python3.6/site-packages/bitstring.py", line
4197, in __new__
y = ConstBitStream.__new__(BitStream, auto, length, offset, **kwargs)
File
"/opt/python-radius-call-tester/env/lib/python3.6/site-packages/bitstring.py", line
3857, in __new__
x._initialise(auto, length, offset, **kwargs)
File
"/opt/python-radius-call-tester/env/lib/python3.6/site-packages/bitstring.py", line
870, in _initialise
init_with_length_only[k](self, v, length)
File
"/opt/python-radius-call-tester/env/lib/python3.6/site-packages/bitstring.py", line
1439, in _setuint
raise CreationError(msg, uint, length, (1 << length) - 1)
bitstring.CreationError: 256 is too large an unsigned integer for a bitstring of
length 8. The allowed range is [0, 255].
[hou.stg.galaxy1 root@scb python-radius-call-tester]$

You might also like