I support adding this CLI.  Thanks, Ivan.

 

For hardware routers, Cisco already has Tcl/Python scripts to test CLI.  If 
testing VPP CLI is ever undertaken, automation is possible.

 

Since binary API and CLI use the same implementation guts, in my P4toVPP 
complier (proprietary), the compile generates both CLI and binary API for any 
plugin.

 

Hemant

 

From: [email protected] <[email protected]> On Behalf Of Ivan Shvedunov
Sent: Friday, February 19, 2021 3:35 PM
To: Neale Ranns <[email protected]>
Cc: vpp-dev <[email protected]>
Subject: Re: [vpp-dev] configuring ip-neighbor via the debug CLI

 

Hi,

 

here's the patch: https://gerrit.fd.io/r/c/vpp/+/31363

 

 

On Wed, Feb 17, 2021 at 11:11 AM Neale Ranns <[email protected] 
<mailto:[email protected]> > wrote:

Hi Ivan,

 

Providing config options via the CLI is not a priority, hence I’s not often 
done. There’s also no testing for it, so even if it does work once, it may not 
continue to do so.

However, if you wish to contribute such a CLI, then it would be welcome.

 

Regards,

Neale

 

 

From: [email protected] <mailto:[email protected]>  <[email protected] 
<mailto:[email protected]> > on behalf of Ivan Shvedunov via lists.fd.io 
<http://lists.fd.io>  <[email protected] 
<mailto:[email protected]> >
Date: Tuesday, 16 February 2021 at 12:02
To: vpp-dev <[email protected] <mailto:[email protected]> >
Subject: [vpp-dev] configuring ip-neighbor via the debug CLI

  Hello,




  please correct me if I'm wrong, but it looks like while there's "show ip 
neighbor-config" command [1] it appears that there's no way to configure ip 
neighbor table except for using binary API. While this may be a design choice, 
it's at times handy to be able to set limit/age/recycle (especially age in my 
case) through the debug cli. I'd suggest we add a new command, e.g.

 

set ip neighbor-config [limit NN] [age NN] [recycle NN]

 

If this works for you, I can make a CR to add this functionality.

Or please let me know if I missed something and this is supposed to be done in 
some other way.

Thanks!

 

[1] 
https://github.com/FDio/vpp/blob/b2c31b6/src/vnet/ip-neighbor/ip_neighbor.c#L1701-L1726

 

-- 

Ivan Shvedunov <[email protected] <mailto:[email protected]> >
;; My GPG fingerprint is: 2E61 0748 8E12 BB1A 5AB9  F7D0 613E C0F8 0BC5 2807




 

-- 

Ivan Shvedunov <[email protected] <mailto:[email protected]> >
;; My GPG fingerprint is: 2E61 0748 8E12 BB1A 5AB9  F7D0 613E C0F8 0BC5 2807

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18774): https://lists.fd.io/g/vpp-dev/message/18774
Mute This Topic: https://lists.fd.io/mt/80675556/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to