Re: [vpp-dev] Build vpp on openwrt

2017-09-12 Thread yug...@telincn.com
Hi.
It's compiled for x86 target. Would you like to give a shot? 

Regards,
Ewan



yug...@telincn.com
 
From: Pierre Pfister (ppfister)
Date: 2017-09-11 15:24
To: yug...@telincn.com
CC: vpp-dev
Subject: Re: [vpp-dev] Build vpp on openwrt
Hello.

I didn't try it.
But the hardest is probably not to build VPP in an OpenWrt system.
I'd dare say it would be easy if OpenWrt is compiled for x86 target.

The real question is what platform do you want to compile OpenWrt for ?

- Pierre


Le 9 sept. 2017 à 03:18, yug...@telincn.com a écrit :

Hi all,
Is there anyone try to build vpp on openwrt?

Regards,
Ewan



yug...@telincn.com
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] vpp performance numbers with 10Gbps interface.

2017-09-12 Thread Dave Barach (dbarach)
+1. If you want to rx-and-drop packets, install a drop adjacency... Sending to 
an unrouteable address results in 100% icmp error replies...

Thanks... Dave

From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of Florin Coras
Sent: Tuesday, September 12, 2017 1:05 PM
To: Rahul Negi 
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] vpp performance numbers with 10Gbps interface.

Hi Rahul,

It looks like all your packets are going to ip4-imcp-error, ip4-local and 
ip4-udp-lookup. What is your test setup?

Florin

On Sep 12, 2017, at 5:10 AM, Rahul Negi 
> wrote:

Hi All,
I was trying to measure maximum PPS handled by vpp.I have installed ubuntu 
16.04 on my server.I have followed vpp recommended bios settings.

Hardware specs:
root@kujo:~# lscpu
Architecture:  x86_64
CPU op-mode(s):32-bit, 64-bit
Byte Order:Little Endian
CPU(s):8
On-line CPU(s) list:   0-7
Thread(s) per core:1
Core(s) per socket:8
Socket(s): 1
NUMA node(s):  1
Vendor ID: GenuineIntel
CPU family:6
Model: 45
Model name:Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz
Stepping:  7
CPU MHz:   1200.000
CPU max MHz:   2900.
CPU min MHz:   1200.
BogoMIPS:  5786.39
Virtualization:VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache:  256K
L3 cache:  20480K
NUMA node0 CPU(s): 0-7
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx 
pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology 
nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est 
tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt 
tsc_deadline_timer aes xsave avx lahf_lm epb tpr_shadow vnmi flexpriority ept 
vpid xsaveopt dtherm


Vpp version:

vpp# show version
vpp v17.10-rc0~301-gb2d2fc7 built by root on kujo at Mon Sep 11 16:39:34 IST 
2017

My vpp model has 1 main thread and 1 worker thread.I was not able to get more 
than 6Mpps .After 6 Mpps i can see the rx_miss counters in vpp stats.

vpp# show interface
  Name   Idx   State  Counter  Count
TenGigabitEtherneta/0/0   1down  rx-error   
2
TenGigabitEtherneta/0/1   2 up   rx packets  
52647168
 rx bytes  
3369416188
 tx packets  
52638150
 tx bytes  
4842700014
 drops  
 9024
 ip4 
52645519
 tx-error   
1
local00down
vpp# show interface
  Name   Idx   State  Counter  Count
TenGigabitEtherneta/0/0   1down  rx-error   
2
TenGigabitEtherneta/0/1   2 up   rx packets  
54696192
 rx bytes  
3500553704
 tx packets  
54687170
 tx bytes  
5031209822
 drops  
 9028
 ip4 
54694538
 tx-error   
1
local00down
vpp# show interface
  Name   Idx   State  Counter  Count
TenGigabitEtherneta/0/0   1down  rx-error   
2
TenGigabitEtherneta/0/1   2 up   rx packets  
56743168
 rx bytes  
3631560168
 tx packets  
56734146
 tx bytes  
5219531614
 drops  
 9028
 ip4 
56741514
 rx-miss 
23152160
 tx-error   
1
local00down
vpp# show interface
  Name

Re: [vpp-dev] vpp performance numbers with 10Gbps interface.

2017-09-12 Thread Florin Coras
Hi Rahul, 

It looks like all your packets are going to ip4-imcp-error, ip4-local and 
ip4-udp-lookup. What is your test setup?

Florin
 
> On Sep 12, 2017, at 5:10 AM, Rahul Negi  wrote:
> 
> Hi All,
> I was trying to measure maximum PPS handled by vpp.I have installed ubuntu 
> 16.04 on my server.I have followed vpp recommended bios settings.
> 
> Hardware specs:
> root@kujo:~# lscpu
> Architecture:  x86_64
> CPU op-mode(s):32-bit, 64-bit
> Byte Order:Little Endian
> CPU(s):8
> On-line CPU(s) list:   0-7
> Thread(s) per core:1
> Core(s) per socket:8
> Socket(s): 1
> NUMA node(s):  1
> Vendor ID: GenuineIntel
> CPU family:6
> Model: 45
> Model name:Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz
> Stepping:  7
> CPU MHz:   1200.000
> CPU max MHz:   2900.
> CPU min MHz:   1200.
> BogoMIPS:  5786.39
> Virtualization:VT-x
> L1d cache: 32K
> L1i cache: 32K
> L2 cache:  256K
> L3 cache:  20480K
> NUMA node0 CPU(s): 0-7
> Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge 
> mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx 
> pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology 
> nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx 
> est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt 
> tsc_deadline_timer aes xsave avx lahf_lm epb tpr_shadow vnmi flexpriority ept 
> vpid xsaveopt dtherm  
> 
> 
> Vpp version:
> 
> vpp# show version
> vpp v17.10-rc0~301-gb2d2fc7 built by root on kujo at Mon Sep 11 16:39:34 IST 
> 2017
> 
> My vpp model has 1 main thread and 1 worker thread.I was not able to get more 
> than 6Mpps .After 6 Mpps i can see the rx_miss counters in vpp stats.
> 
> vpp# show interface
> 
>   Name   Idx   State  Counter  
> Count
> 
> TenGigabitEtherneta/0/0   1down  rx-error 
>   2
> 
> TenGigabitEtherneta/0/1   2 up   rx packets  
> 52647168
> 
>  rx bytes  
> 3369416188
> 
>  tx packets  
> 52638150
> 
>  tx bytes  
> 4842700014
> 
>  drops
>9024
> 
>  ip4 
> 52645519
> 
>  tx-error 
>   1
> 
> local00down 
> 
> vpp# show interface
> 
>   Name   Idx   State  Counter  
> Count
> 
> TenGigabitEtherneta/0/0   1down  rx-error 
>   2
> 
> TenGigabitEtherneta/0/1   2 up   rx packets  
> 54696192
> 
>  rx bytes  
> 3500553704
> 
>  tx packets  
> 54687170
> 
>  tx bytes  
> 5031209822
> 
>  drops
>9028
> 
>  ip4 
> 54694538
> 
>  tx-error 
>   1
> 
> local00down 
> 
> vpp# show interface
> 
>   Name   Idx   State  Counter  
> Count
> 
> TenGigabitEtherneta/0/0   1down  rx-error 
>   2
> 
> TenGigabitEtherneta/0/1   2 up   rx packets  
> 56743168
> 
>  rx bytes  
> 3631560168
> 
>  tx packets  
> 56734146
> 
>  tx bytes  
> 5219531614
> 
>  drops
>9028
> 
>  ip4 
> 56741514
> 
>  rx-miss 
> 23152160
> 
>  tx-error 
>   1
> 
> local00down 
> 
> vpp# show interface
> 
>   Name   Idx   State  Counter  
> Count
> 
> TenGigabitEtherneta/0/0   

Re: [vpp-dev] VPP 1704 and router plugin

2017-09-12 Thread Dave Barach (dbarach)
Set a breakpoint in format_fib_table_name, and see if e.g. fib_table->ft_desc 
is NULL.

Thanks... Dave

From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of Bhanu Chander Gaddoju
Sent: Tuesday, September 12, 2017 11:45 AM
To: vpp-dev@lists.fd.io; Ni, Hongjun 
Subject: [vpp-dev] VPP 1704 and router plugin

Hi All,

  We are building router plugin with VPP 1704 branch. We used VPP stable/1704 
branch and vppsb source code after (https://gerrit.fd.io/r/#/c/5881/ ) check in.

  Router plugin is loaded properly. We are able to see the router plugin when 
"vppctl  show plugin" command is issued.
  But, VPP daemon is getting crashed when we issue "vppctl show ip fib". Crash 
dump and the VPP configuration is given below.
  Please help me in resolving this issue.

Crash Dump:
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x in ?? ()
(gdb) bt
#0  0x in ?? ()
#1  0x96b00034 in do_percent (va=, fmt=, 
_s=) at 
/root/vpp-1704/build-data/../src/vppinfra/format.c:372
#2  va_format (s=0x57a9dfe8 "ipv4-VRF:0, fib_index 0, flow hash: ", 
s@entry=0x0, fmt=fmt@entry=0x96e72ca8 "%U, fib_index %d, flow hash: %U", 
va=0x568fd988, va@entry=0x568fd9a8)
at /root/vpp-1704/build-data/../src/vppinfra/format.c:403
#3  0x96ed3cb4 in vlib_cli_output (vm=vm@entry=0x96f28ed0 
, fmt=fmt@entry=0x96e72ca8 "%U, fib_index %d, flow hash: 
%U")
at /root/vpp-1704/build-data/../src/vlib/cli.c:584
#4  0x96dfa69c in ip4_show_fib (vm=0x96f28ed0 , 
input=, cmd=) at 
/root/vpp-1704/build-data/../src/vnet/fib/ip4_fib.c:497
#5  0x96ed3f58 in vlib_cli_dispatch_sub_commands 
(vm=vm@entry=0x96f28ed0 , cm=cm@entry=0x96f291a8 
, input=input@entry=0x568fde00,
parent_command_index=) at 
/root/vpp-1704/build-data/../src/vlib/cli.c:485
#6  0x96ed43cc in vlib_cli_dispatch_sub_commands 
(vm=vm@entry=0x96f28ed0 , cm=cm@entry=0x96f291a8 
, input=input@entry=0x568fde00,
parent_command_index=) at 
/root/vpp-1704/build-data/../src/vlib/cli.c:463
#7  0x96ed43cc in vlib_cli_dispatch_sub_commands (vm=0x96f28ed0 
, cm=0x96f291a8 , 
input=0x568fde00,
parent_command_index=) at 
/root/vpp-1704/build-data/../src/vlib/cli.c:463
#8  0x96ed4700 in vlib_cli_input (vm=0x96f28ed0 , 
input=0x568fde00, function=, function_arg=)
at /root/vpp-1704/build-data/../src/vlib/cli.c:559
#9  0x00414d04 in vl_api_cli_request_t_handler ()
#10 0x96f4b434 in vl_msg_api_handler_with_vm_node (am=0x568fde00, 
the_msg=0x49b000, vm=0x305e7dc0, node=0x96f28ed0 )
at /root/vpp-1704/build-data/../src/vlibapi/api_shared.c:502
#11 0x96f32a94 in memclnt_process (vm=, node=0x6d, 
f=) at 
/root/vpp-1704/build-data/../src/vlibmemory/memory_vlib.c:543
#12 0x96eda090 in vlib_process_bootstrap (_a=) at 
/root/vpp-1704/build-data/../src/vlib/main.c:1226
#13 0x96b07854 in clib_calljmp () at 
/root/vpp-1704/build-data/../src/vppinfra/longjmp.S:676
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)


VPP configuration:
# vpp -c /etc/vpp/startup.conf &
# vppctl create loopback interface
# vppctl set interface state loop0 up
# vppctl set interface state GigabitEthernet0/3/0 up
# vppctl set interface state GigabitEthernet0/4/0 up
# vppctl set interface ip address loop0 2.2.2.2/32
# vppctl set interface ip address GigabitEthernet0/3/0 10.0.10.2/24
# vppctl set interface ip address GigabitEthernet0/4/0 10.0.20.2/24
# vppctl enable tap-inject
# vppctl show tap-inject
# ip addr add 10.0.10.2/24 dev vpp0
# ip addr add 10.0.20.2/24 dev vpp1
# ip link set dev vpp0 up
# ip link set dev vpp1 up
# vppctl show ip fib


Regards,
Bhanu,
HSDC, NXP India.


___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

[vpp-dev] VPP 1704 and router plugin

2017-09-12 Thread Bhanu Chander Gaddoju
Hi All,

  We are building router plugin with VPP 1704 branch. We used VPP stable/1704 
branch and vppsb source code after (https://gerrit.fd.io/r/#/c/5881/ ) check in.

  Router plugin is loaded properly. We are able to see the router plugin when 
"vppctl  show plugin" command is issued.
  But, VPP daemon is getting crashed when we issue "vppctl show ip fib". Crash 
dump and the VPP configuration is given below.
  Please help me in resolving this issue.

Crash Dump:
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x in ?? ()
(gdb) bt
#0  0x in ?? ()
#1  0x96b00034 in do_percent (va=, fmt=, 
_s=) at 
/root/vpp-1704/build-data/../src/vppinfra/format.c:372
#2  va_format (s=0x57a9dfe8 "ipv4-VRF:0, fib_index 0, flow hash: ", 
s@entry=0x0, fmt=fmt@entry=0x96e72ca8 "%U, fib_index %d, flow hash: %U", 
va=0x568fd988, va@entry=0x568fd9a8)
at /root/vpp-1704/build-data/../src/vppinfra/format.c:403
#3  0x96ed3cb4 in vlib_cli_output (vm=vm@entry=0x96f28ed0 
, fmt=fmt@entry=0x96e72ca8 "%U, fib_index %d, flow hash: 
%U")
at /root/vpp-1704/build-data/../src/vlib/cli.c:584
#4  0x96dfa69c in ip4_show_fib (vm=0x96f28ed0 , 
input=, cmd=) at 
/root/vpp-1704/build-data/../src/vnet/fib/ip4_fib.c:497
#5  0x96ed3f58 in vlib_cli_dispatch_sub_commands 
(vm=vm@entry=0x96f28ed0 , cm=cm@entry=0x96f291a8 
, input=input@entry=0x568fde00,
parent_command_index=) at 
/root/vpp-1704/build-data/../src/vlib/cli.c:485
#6  0x96ed43cc in vlib_cli_dispatch_sub_commands 
(vm=vm@entry=0x96f28ed0 , cm=cm@entry=0x96f291a8 
, input=input@entry=0x568fde00,
parent_command_index=) at 
/root/vpp-1704/build-data/../src/vlib/cli.c:463
#7  0x96ed43cc in vlib_cli_dispatch_sub_commands (vm=0x96f28ed0 
, cm=0x96f291a8 , 
input=0x568fde00,
parent_command_index=) at 
/root/vpp-1704/build-data/../src/vlib/cli.c:463
#8  0x96ed4700 in vlib_cli_input (vm=0x96f28ed0 , 
input=0x568fde00, function=, function_arg=)
at /root/vpp-1704/build-data/../src/vlib/cli.c:559
#9  0x00414d04 in vl_api_cli_request_t_handler ()
#10 0x96f4b434 in vl_msg_api_handler_with_vm_node (am=0x568fde00, 
the_msg=0x49b000, vm=0x305e7dc0, node=0x96f28ed0 )
at /root/vpp-1704/build-data/../src/vlibapi/api_shared.c:502
#11 0x96f32a94 in memclnt_process (vm=, node=0x6d, 
f=) at 
/root/vpp-1704/build-data/../src/vlibmemory/memory_vlib.c:543
#12 0x96eda090 in vlib_process_bootstrap (_a=) at 
/root/vpp-1704/build-data/../src/vlib/main.c:1226
#13 0x96b07854 in clib_calljmp () at 
/root/vpp-1704/build-data/../src/vppinfra/longjmp.S:676
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)


VPP configuration:
# vpp -c /etc/vpp/startup.conf &
# vppctl create loopback interface
# vppctl set interface state loop0 up
# vppctl set interface state GigabitEthernet0/3/0 up
# vppctl set interface state GigabitEthernet0/4/0 up
# vppctl set interface ip address loop0 2.2.2.2/32
# vppctl set interface ip address GigabitEthernet0/3/0 10.0.10.2/24
# vppctl set interface ip address GigabitEthernet0/4/0 10.0.20.2/24
# vppctl enable tap-inject
# vppctl show tap-inject
# ip addr add 10.0.10.2/24 dev vpp0
# ip addr add 10.0.20.2/24 dev vpp1
# ip link set dev vpp0 up
# ip link set dev vpp1 up
# vppctl show ip fib


Regards,
Bhanu,
HSDC, NXP India.


___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

[vpp-dev] cicn option missing for vppctl command

2017-09-12 Thread Vikrant Talponkar
Hi,

I am fairly new to Cicn. I am trying to create a scenario and mentioned in the 
https://wiki.fd.io/view/Simple-vms setup.

I have VPP installed on my relay machine, version v17.04.2-release. I also have 
cicn-plugin installed using apt-get.

I have dpdk setup and I see all the network interfaces with:
Vppctl show interface

When I try the following the following command though:
vppctl cicn enable

I see `cicn` is not an option available for the vppctl command, can anyone 
please help me out I'm missing out here?

Regards,
Vikrant Talponkar
Sr. Software Engineer

P  : +91 20 6604 6000 (Extn: 6080)

www.xoriant.com

[cid:image001.jpg@01D2514A.32631630]  
[cid:image002.jpg@01D2514A.32631630]    
[cid:image004.jpg@01D2514A.32631630]   
 [cid:image005.jpg@01D2514A.32631630] 

[cid:image006.jpg@01D2514A.32631630]

___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

[vpp-dev] vpp performance numbers with 10Gbps interface.

2017-09-12 Thread Rahul Negi
Hi All,
I was trying to measure maximum PPS handled by vpp.I have installed ubuntu
16.04 on my server.I have followed vpp recommended bios settings.

Hardware specs:
root@kujo:~# lscpu
Architecture:  x86_64
CPU op-mode(s):32-bit, 64-bit
Byte Order:Little Endian
CPU(s):8
On-line CPU(s) list:   0-7
Thread(s) per core:1
Core(s) per socket:8
Socket(s): 1
NUMA node(s):  1
Vendor ID: GenuineIntel
CPU family:6
Model: 45
Model name:Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz
Stepping:  7
CPU MHz:   1200.000
CPU max MHz:   2900.
CPU min MHz:   1200.
BogoMIPS:  5786.39
Virtualization:VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache:  256K
L3 cache:  20480K
NUMA node0 CPU(s): 0-7
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall
nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl
xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor
ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic
popcnt tsc_deadline_timer aes xsave avx lahf_lm epb tpr_shadow vnmi
flexpriority ept vpid xsaveopt dtherm


Vpp version:

vpp# show version
vpp v17.10-rc0~301-gb2d2fc7 built by root on kujo at Mon Sep 11 16:39:34
IST 2017

My vpp model has 1 main thread and 1 worker thread.I was not able to get
more than 6Mpps .After 6 Mpps i can see the rx_miss counters in vpp stats.

vpp# show interface

  Name   Idx   State  Counter
Count

TenGigabitEtherneta/0/0   1down
rx-error   2

TenGigabitEtherneta/0/1   2 up   rx
packets  52647168

 rx bytes
3369416188

 tx
packets  52638150

 tx bytes
4842700014


 drops   9024


ip4 52645519


tx-error   1

local00down

vpp# show interface

  Name   Idx   State  Counter
Count

TenGigabitEtherneta/0/0   1down
rx-error   2

TenGigabitEtherneta/0/1   2 up   rx
packets  54696192

 rx bytes
3500553704

 tx
packets  54687170

 tx bytes
5031209822


drops   9028


ip4 54694538


tx-error   1

local00down

vpp# show interface

  Name   Idx   State  Counter
Count

TenGigabitEtherneta/0/0   1down
rx-error   2

TenGigabitEtherneta/0/1   2 up   rx
packets  56743168

 rx bytes
3631560168

 tx
packets  56734146

 tx bytes
5219531614


drops   9028


 ip4
56741514

 rx-miss
23152160


tx-error   1

local00down

vpp# show interface

  Name   Idx   State  Counter
Count

TenGigabitEtherneta/0/0   1down
rx-error   2

TenGigabitEtherneta/0/1   2 up   rx
packets  58714624

 rx bytes
3757733348

 tx
packets  58705601

 tx bytes
5400905474


drops   9029


ip4 58712969

 rx-miss
23152160


tx-error   1



Also output for show run is given below:


vpp# show run

Thread 0 vpp_main (lcore 0)

Time 1049.7, average vectors/node 1.00, last 128 main loops 0.00 per node
0.00

  vector rates in 0.e0, out 0.e0, drop 9.5264e-4, punt 0.e0

 Name State Calls
VectorsSuspends Clocks   Vectors/Call

TenGigabitEtherneta/0/1-output   active  1
1   0  9.04e31.00

acl-plugin-fa-cleaner-process  event wait0
0   1  1.07e40.00

admin-up-down-process

Re: [vpp-dev] JVPP API for adding MPLS local label

2017-09-12 Thread Neale Ranns (nranns)
CLI: sh mpls fib
API: mpls_fib_dump

/neale

From: Jozef Glončák 
Date: Tuesday, 12 September 2017 at 11:16
To: "Neale Ranns (nranns)" , "vpp-dev@lists.fd.io" 

Subject: Re: [vpp-dev] JVPP API for adding MPLS local label


Thank you for response.



And is there any >>show<< command in VPP through which I can see that  local 
label was configured?



Jozef Glončák

Pantheon Technologies, s. r. o.


From: Neale Ranns (nranns) 
Sent: Monday, September 11, 2017 19:21
To: Jozef Glončák; vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] JVPP API for adding MPLS local label


Hi Jozef,



It’s mpls_route_add_del



Regards,

neale



From:  on behalf of Jozef Glončák 

Date: Monday, 11 September 2017 at 13:48
To: "vpp-dev@lists.fd.io" 
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
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] VPP contribute

2017-09-12 Thread Luke, Chris
Gerrit definitely has a valid SSL cert. Are you at a site that intercepts HTTPS 
traffic?

Chris.

From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of Shachar Beiser
Sent: Tuesday, September 12, 2017 1:25
To: Dave Barach (dbarach) ; vpp-dev@lists.fd.io
Cc: Shahaf Shuler ; Damjan Marion (damarion) 

Subject: Re: [vpp-dev] VPP contribute

Hi Dave,

   Is there a simple solution to the “hooks/commit-msg” I have ?
 -Shachar Beiser.

[shacharbe@pegasus08 vpp]$ git review
Using global/system git-review config files (/etc/git-review/git-review.conf) 
is deprecated
/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: 
InsecureRequestWarning: Unverified HTTPS request is being made. Adding 
certificate verification is strongly advised. See: 
https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
Problems encountered installing commit-msg hook
The following command failed with exit code 104
"GET https://shacha...@gerrit.fd.io/tools/hooks/commit-msg;
---



Error 404 


HTTP ERROR: 404
Problem accessing /tools/hooks/commit-msg. Reason:
Not Found
Powered by Jetty://



From: Dave Barach (dbarach) [mailto:dbar...@cisco.com]
Sent: Monday, September 11, 2017 2:57 PM
To: Shachar Beiser >; 
vpp-dev@lists.fd.io
Cc: Damjan Marion (damarion) >
Subject: RE: VPP contribute

That’s right, no need to send patches to a mailing list. In fact, please don’t 
send patches to this list. ()...

Thanks… Dave

From: vpp-dev-boun...@lists.fd.io 
[mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Shachar Beiser
Sent: Monday, September 11, 2017 7:48 AM
To: vpp-dev@lists.fd.io
Cc: Damjan Marion (damarion) >
Subject: [vpp-dev] VPP contribute

Hi ,

   I contribute to the VPP for the first time.
   I am following the instructions in your web-site : 
https://wiki.fd.io/view/VPP/Pulling,_Building,_Running,_Hacking_and_Pushing_VPP_Code#Setting_up_Gerrit
   Is that it ? don’t I need to send my patches to the mailing-list ?

   -Shachar Beiser.

___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] JVPP API for adding MPLS local label

2017-09-12 Thread Marek Gradzki -X (mgradzki - PANTHEON TECHNOLOGIES at Cisco)
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: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of Jozef Gloncák
Sent: 11 września 2017 13:49
To: vpp-dev@lists.fd.io
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
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev