01-17-2019 01:30 AM
Hi all,
Is it possible to set a description on a PPPoE interface with Radius on an IOS-XR ?
I can not find information.
On IOS-XE, I do like this in my radius, but it does not work with IOS-XR :
"lcp:interface-config=description <MY BEAUTIFUL DESCRIPTION>"
Thanks in advance.
BR.
Nick
01-17-2019 02:00 AM
If it's not listed here, we very likely don't support it:
Could you please explain the use case for this? Maybe there's an alternative method to achieve the same functionality.
/Aleksandar
01-17-2019 02:08 AM
01-17-2019 03:45 AM
hi Nick,
that's a very neat approach, but we don't support it unfortunately on XR BNG. The full list of supported radius attributes is always included in the BNG config guide (e.g. https://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/asr9k-r6-4/bng/configuration/guide/b-bng-cg-asr9000-64x/b-bng-cg-asr9000-64x_appendix_01011.html).
You would have to use a script on XR that parses the output of "sh subscriber session all detail". On 64-bit XR this can be done easily using Python. Python is supported in the linux shell, you can invoke it using the "run" command, e.g.
"run harrdisk:/my_script.py"
From within Python you can use this kind of sequence to execute the XR CLI command and capture the output into an array:
command = '/pkg/bin/xr_cli \"show subscriber session all\"'
output = subprocess.check_output(command, shell=True)
out_array = output.split('\n')
Hope this helps,
/Aleksandar
01-17-2019 04:28 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide