Hi,
java APIs are generated based on .api files, so even better question would be
what is binary API equivalent of mpls local-label add CLI command.
My guess it is the mpls_ip_bind_unbind from mpls.api:
/** \brief Bind/Unbind an MPLS local label to an IP prefix. i.e. create
a per-prefix label entry.
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request
@param mb_mpls_table_id - The MPLS table-id the MPLS entry will be added in
@param mb_label - The MPLS label value to bind
@param mb_ip_table_id - The IP table-id of the IP prefix to bind to.
@param mb_create_table_if_needed - Create either/both tables if required.
@param mb_is_bind - Bind or unbind
@param mb_is_ip4 - The prefix to bind to is IPv4
@param mb_address_length - Length of IP prefix
@param mb_address[16] - IP prefix/
*/
autoreply define mpls_ip_bind_unbind
But not sure if it captures all options available in the CLI
e.g eos/non-eos.
I found python examples in the vpp_ip_route.py test.
Java version should work in the same way.
Regards,
Marek
From: [email protected] [mailto:[email protected]] On
Behalf Of Jozef Gloncák
Sent: 11 września 2017 13:49
To: [email protected]
Subject: [vpp-dev] JVPP API for adding MPLS local label
Hello developers,
I would like substitude this VPP CLI command
mpls local-label add eos 101 ip4-lookup-in-table 1
with JVPP API call, but I am not able to find equivalent.
Is it possible?
Jozef Glončák
Pantheon Technologies, s. r. o.
_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev