Re: [vpp-dev] VPP router plugin

2017-07-18 Thread Ni, Hongjun
+ vpp-dev

Hi Bhanu,

Please see attached patch for router plugin in VPP 17.01 branch.

We used BIRD when using VPP 17.01 after only using attached router_1701.patch.

The patch https://gerrit.fd.io/r/#/c/5881/ is only used for VPP 17.04 branch.

Below are building commands:
cd /root/vpp
ln -sf /root/vpp/vppsb/netlink
ln -sf /root/vpp/vppsb/router
ln -sf /root/vpp/vppsb/netlink/netlink.mk build-data/packages/
ln -sf /root/vpp/vppsb/router/router.mk build-data/packages/

cd /root/vpp/build-root
make V=0 PLATFORM=vpp TAG=vpp netlink-install router-install

ln -sf /root/vpp/build-root/install-vpp-native/router/lib64/router.so.0.0.0 
/usr/lib/vpp_plugins/router.so

-Hongjun

From: Bhanu Chander Gaddoju [mailto:bhanu.gadd...@nxp.com]
Sent: Tuesday, July 18, 2017 11:02 PM
To: Ni, Hongjun 
Subject: VPP router plugin

Hi Hongjun,

  We are trying to build dynamic routing daemon with VPP 1701/1704 branch. 
As part of that we are going through building the netlink and router plugins.
  I see your post "[vpp-dev] Building router 
plugin" and also 
patch (https://gerrit.fd.io/r/#/c/5881/). You also said that you have another 
patch for VPP 1701 branch. Could you please send it?
 Were you able to run Quagga/BIRD using VPP 1701 after applying the above 
two patches?

 Please help me with the required patches and steps to build netlink and 
router plugins with VPP 1701 branch. Also I would like to compile these plugins 
with external DPDK source. Could you please help me on this?


Regards,
Bhanu,





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

[vpp-dev] thread handling tx

2017-07-18 Thread Yuliang Li
Hi,

How can I see the thread that handles the tx of each interface? I can use
the "show int rx" to see which thread is responsible for rx, but I want to
also see the tx.

Thanks,
-- 
Yuliang Li
PhD student
Department of Computer Science
Yale University
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] use a single interface for SNAT

2017-07-18 Thread Yuliang Li
Never mind. Solved.

On Tue, Jul 18, 2017 at 3:51 PM, Yuliang Li  wrote:

> Hi,
>
> I want to setup SNAT on a server with just one network interface. How
> shall I setup the interface address so that both inside-outside and
> outside-inside traffic can be forwarded to this server? I failed to assign
> two IP addresses to the interface.
>
> Thanks,
> --
> Yuliang Li
> PhD student
> Department of Computer Science
> Yale University
>



-- 
Yuliang Li
PhD student
Department of Computer Science
Yale University
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

[vpp-dev] use a single interface for SNAT

2017-07-18 Thread Yuliang Li
Hi,

I want to setup SNAT on a server with just one network interface. How shall
I setup the interface address so that both inside-outside and
outside-inside traffic can be forwarded to this server? I failed to assign
two IP addresses to the interface.

Thanks,
-- 
Yuliang Li
PhD student
Department of Computer Science
Yale University
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] TWS call scheduled for 7/18 8am PDT / 11am EDT / 5pm CEST

2017-07-18 Thread Dave Barach (dbarach)
Dear Chris,

Here’s the link from the VPP/meeting page on wiki.fd.io. The call seems to be 
working...

https://cisco.webex.com/ciscosales/j.php?MTID=m450226e15617be65aebcbab0b5155a94

Thanks… Dave

From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of Luke, Chris
Sent: Tuesday, July 18, 2017 10:35 AM
To: Jong Hahn (jonhahn) ; vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] TWS call scheduled for 7/18 8am PDT / 11am EDT / 5pm CEST

For clarity, which dial in will be used? The thread below references the 
details for both the VPP dev call and the TWS call. My best guess is it’s the 
VPP dev call details.

Chris.


From: vpp-dev-boun...@lists.fd.io 
[mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Jong Hahn (jonhahn)
Sent: Tuesday, July 18, 2017 3:12 AM
To: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] TWS call scheduled for 7/18 8am PDT / 11am EDT / 5pm CEST

FYI.  Just resending as a reminder.

From: vpp-dev-boun...@lists.fd.io 
[mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Ed Warnicke
Sent: Wednesday, July 5, 2017 12:49 PM
To: Dave Barach (dbarach) >
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] TWS call scheduled for 7/18 8am PDT / 11am EDT / 5pm CEST

TWS updated here: https://wiki.fd.io/view/TWS and also on the 
fd.io calendar:

https://calendar.google.com/calendar/embed?src=qpen2df76a954fieqdnc3avg0k%40group.calendar.google.com

Ed

On Wed, Jul 5, 2017 at 12:08 PM, Dave Barach (dbarach) 
> wrote:
Eric Ernst and Manohar Castelino will present their vpp integration with 
ClearContainer.

Dial-in info will be added to https://wiki.fd.io/view/VPP/Meeting shortly...

Thanks... Dave

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

Re: [vpp-dev] TWS call scheduled for 7/18 8am PDT / 11am EDT / 5pm CEST

2017-07-18 Thread Luke, Chris
For clarity, which dial in will be used? The thread below references the 
details for both the VPP dev call and the TWS call. My best guess is it’s the 
VPP dev call details.

Chris.


From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of Jong Hahn (jonhahn)
Sent: Tuesday, July 18, 2017 3:12 AM
To: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] TWS call scheduled for 7/18 8am PDT / 11am EDT / 5pm CEST

FYI.  Just resending as a reminder.

From: vpp-dev-boun...@lists.fd.io 
[mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Ed Warnicke
Sent: Wednesday, July 5, 2017 12:49 PM
To: Dave Barach (dbarach) >
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] TWS call scheduled for 7/18 8am PDT / 11am EDT / 5pm CEST

TWS updated here: https://wiki.fd.io/view/TWS and also on the 
fd.io calendar:

https://calendar.google.com/calendar/embed?src=qpen2df76a954fieqdnc3avg0k%40group.calendar.google.com

Ed

On Wed, Jul 5, 2017 at 12:08 PM, Dave Barach (dbarach) 
> wrote:
Eric Ernst and Manohar Castelino will present their vpp integration with 
ClearContainer.

Dial-in info will be added to https://wiki.fd.io/view/VPP/Meeting shortly...

Thanks... Dave

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

Re: [vpp-dev] VPP classifier node plugin not invoked.

2017-07-18 Thread Dave Barach (dbarach)
Glad to hear it... Thanks for letting everyone know... Dave

From: Dharmaray Kundargi [mailto:dharmaray.kunda...@mavenir.com]
Sent: Monday, July 17, 2017 10:25 PM
To: Dave Barach (dbarach) ; vpp-dev@lists.fd.io
Subject: RE: [vpp-dev] VPP classifier node plugin not invoked.

Thanks Dave,
That solves the problem.

Regards
Dharmaray

From: Dave Barach (dbarach) [mailto:dbar...@cisco.com]
Sent: Friday, July 14, 2017 7:41 PM
To: Dharmaray Kundargi 
>; 
vpp-dev@lists.fd.io
Subject: RE: [vpp-dev] VPP classifier node plugin not invoked.

Ip4-inacl != ip4-classify. If you want packets to visit ip4-classify, you need 
to install a classify adjacency in the FIB. See .../ip/lookup.c / “ip route 
1.2.3.4/8 via classify ” debug CLI command.

I understand that not having things work the way you expect them to is 
frustrating. I would love to be able to drop everything and answer questions 
immediately, but that’s not practicable.

Thanks… Dave

From: vpp-dev-boun...@lists.fd.io 
[mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Dharmaray Kundargi
Sent: Friday, July 14, 2017 8:12 AM
To: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] VPP classifier node plugin not invoked.

I don’t see ip4-classify in the next nodes for ip4-inacl.
I am using 16.04  .

Any suggestions please?

From: Dharmaray Kundargi
Sent: Friday, July 14, 2017 10:29 AM
To: 'vpp-dev@lists.fd.io' >
Subject: RE: [vpp-dev] VPP classifier node plugin not invoked.

Thanks Shwetha

I tried with setting for acl. There is some change in the output of packet 
tracer as below. I see the node ip4-inacl in the flow. But still ip4-classifier 
not seen and my node is also not hit.


15:32:15:849439: dpdk-input
  GigabitEthernet1b/0/0 rx queue 0
  buffer 0x1a2a6: current data 14, length 856, free-list 0, totlen-nifb 0, 
trace 0x2e
  PKT MBUF: port 1, nb_segs 1, pkt_len 870
buf_len 2176, data_len 870, ol_flags 0x0,
packet_type 0x10
Packet Types
  RTE_PTYPE_L3_IPV4 (0x0010) IPv4 packet without extension headers
  IP4: 00:0c:29:7a:a6:81 -> 00:50:56:92:fe:49
  UDP: 10.10.122.117 -> 10.10.121.179
tos 0x00, ttl 64, length 856, checksum 0x2f59
fragment id 0x, flags DONT_FRAGMENT
  UDP: 36410 -> 4096
length 836, checksum 0xd9b9
15:32:15:849442: ip4-input-no-checksum
  UDP: 10.10.122.117 -> 10.10.121.179
tos 0x00, ttl 64, length 856, checksum 0x2f59
fragment id 0x, flags DONT_FRAGMENT
  UDP: 36410 -> 4096
length 836, checksum 0xd9b9
15:32:15:849446: ip4-inacl
  INACL: sw_if_index 6, next_index 1, table 0, offset 192
15:32:15:849448: ip4-lookup
  fib 0 adj-idx 3 : arp GigabitEthernet13/0/0 10.10.121.220/24 flow hash: 
0x
  UDP: 10.10.122.117 -> 10.10.121.179
tos 0x00, ttl 64, length 856, checksum 0x2f59
fragment id 0x, flags DONT_FRAGMENT
  UDP: 36410 -> 4096
length 836, checksum 0xd9b9
15:32:15:849449: ip4-arp
UDP: 10.10.122.117 -> 10.10.121.179
  tos 0x00, ttl 64, length 856, checksum 0x2f59
  fragment id 0x, flags DONT_FRAGMENT
UDP: 36410 -> 4096
  length 836, checksum 0xd9b9
15:32:15:849454: error-drop
  ip4-arp: address overflow drops

Packet 48


Regards
Dharmaray.


From: Shwetha Bhandari (shwethab) [mailto:shwet...@cisco.com]
Sent: Friday, July 14, 2017 7:39 AM
To: Dharmaray Kundargi 
>
Subject: Re: [vpp-dev] VPP classifier node plugin not invoked.

Have you enabled the classifier on GigabitEthernet1b where you are receiving 
the packets?

set int input acl intfc GigabitEthernet1b… ip4-table 0

set int input acl ?
  set interface input acl  set interface input acl intfc  
[ip4-table ]
  [ip6-table ] [l2-table ] [del]

From: > on 
behalf of Dharmaray Kundargi 
>
Date: Friday, July 14, 2017 at 5:19 AM
To: "vpp-dev@lists.fd.io" 
>
Subject: Re: [vpp-dev] VPP classifier node plugin not invoked.

Dave, your inputs please.
Thanks

Get Outlook for Android


From: Dharmaray Kundargi
Sent: Thursday, July 13, 2017 10:17:47 PM
To: vpp-dev@lists.fd.io
Subject: VPP classifier node plugin not invoked.

Hi,
Possibly a repeat question on classifier. But could not get much help from 
other threads on this regards.
I am trying to send UDP traffic from 10.10.122.117 to 10.10.121.179 and expect 
those to hit to my plugin "my4-dl-input"
Don't even see the ip4-classifier in the packet tracer.

Below is what I set and see the classifier table and session using CLI.

#vppctl classify table mask hex <24 bit 

Re: [vpp-dev] Dump/Details API Error

2017-07-18 Thread Ole Troan
Hi Isabelle,

> On 18 Jul 2017, at 08:43, Isabella g  wrote:
> 
> I call Dump/Details API from Python app and it return me an error
> ERROR:vpp_call:[Errno 2] Reply message undefined 
> What does this mean?
> How can i solve this error?

It means that in the message stream in response to the dump call you got an 
unexpected message type. That could be caused by an error in api definition or 
something else. 

Could you give me steps to reproduce, which api calls etc. 

Cheers 
Ole

> ___
> 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


[vpp-dev] Dump/Details API Error

2017-07-18 Thread Isabella g
I call Dump/Details API from Python app and it return me an error
ERROR:vpp_call:[Errno 2] Reply message undefined
What does this mean?
How can i solve this error?
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev