[PATCH v4 02/14] app/graph: add telnet connectivity framework
Jerin Jacob
jerinjacobk at gmail.com
Wed Sep 20 06:34:55 CEST 2023
On Tue, Sep 19, 2023 at 9:35 PM <skori at marvell.com> wrote:
>
> From: Sunil Kumar Kori <skori at marvell.com>
>
> It adds framework to initate a telnet session with application.
>
> Some configurations and debug commands are exposed as runtime APIs.
> Those commands can be invoked using telnet session.
>
> Application initiates a telnet server with host address 0.0.0.0
> and port number 8086 by default.
>
> To make it configurable, "-h" and "-p" options are provided.
> Using them user can pass host address and port number on which
> application will start telnet server.
>
> Using same host address and port number, telnet client can connect
> to application.
>
> Syntax to connect with application:
> # telnet <host> <port>
>
> Once session is connected, "graph> " prompt will be available.
> Example:
> # telnet 10.28.35.207 50000
> Trying 10.28.35.207...
> Connected to 10.28.35.207.
> Escape character is '^]'.
>
> Welcome!
>
> graph>
Some improvements
1) Please squash 14/14 patch to 1/14.
2) Ctrl - C doesn't work which is a serious issue. We have to kill it
via kill -9 <pid> from a separate window. This is probably because of
command line library.
3). In case app launch fails due to error, it will leave terminal into
a bad state until "reset" command is executed. This might also be
because of command line library.
4). Just a wishlist: If on terminal console I could do a tab and get
commands help, just like testpmd console.
More information about the dev
mailing list