A show interface via this API fails due to call to stty command:
curl -k -X POST -F data='{"op":"show", "path": ["interfaces", "ethernet"] }' -F key=vyos https://172.16.0.1:8443/show
with this error message:
/usr/libexec/vyos/op_mode/show_interfaces.py line 303[...] PermissionError: [Errno 1] failed to run command: stty size\n
A quick hack is to wrap the call in a try/except, but probably the call must be done only for interactive sessions.
def split_text(text, used=0): try: returned = cmd('stty size') rows, columns = [int(_) for _ in returned] except: rows, columns = (40, 80)