Re: [vpp-dev] Linux-cp Plugin Bird Routes Not Showing Up in VPP

2022-12-23 Thread Christopher Adigun
Reduced image dockerfile:






































































*FROM ubuntu:20.04 AS vpp-builderARG NEEDED_GIT_PROXYENV
DEBIAN_FRONTEND=noninteractiveRUN apt update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade --yes && \
DEBIAN_FRONTEND=noninteractive apt-get install --yes \git \
sudo \python3 \wget \make \build-essential
\libhyperscan-dev \libmnl-dev \  && rm -rf
/var/lib/apt/lists/*# Applying vpp patchesRUN mkdir -p /root/src && cd
/root/src && git clone https://github.com/pimvanpelt/lcpng.git
 && \git clone -b stable/2210
https://github.com/fdio/vpp.git  && \
ln -s /root/src/lcpng /root/src/vpp/src/plugins/lcpng && \cd
/root/src/vpp && \touch /etc/apt/apt.conf.d/90forceyes && \echo
 "APT::Get::Assume-Yes "true";" >> /etc/apt/apt.conf.d/90forceyes && \
echo  "APT::Get::force-yes "true";" >>
/etc/apt/apt.conf.d/90forceyesWORKDIR /root/src/# Build vpp with pimvanpelt
lcp pluginRUN make install-dep install-ext-deps build-release pkg-deb -C
vpp#-#
TARGET
IMAGE#-FROM
ubuntu:20.04 as vppENV DEBIAN_FRONTEND=noninteractiveENV
TZ=America/New_YorkRUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade --yes && \
DEBIAN_FRONTEND=noninteractive apt-get install --yes \net-tools \
  tshark \tzdata \git \openssl \
libhyperscan-dev \iproute2 \iputils-ping \vim \
python3 \libcurl4-openssl-dev \libssl-dev \
libnuma1 \libmnl-dev \make \sudo && \touch
/etc/apt/apt.conf.d/90forceyes && \echo  "APT::Get::Assume-Yes
"true";" >> /etc/apt/apt.conf.d/90forceyes && \echo
 "APT::Get::force-yes "true";" >> /etc/apt/apt.conf.d/90forceyes  WORKDIR
/root/packages/COPY --from=vpp-builder /root/src/vpp/build-root/*.deb ./RUN
git clone -b stable/2210 https://github.com/fdio/vpp.git
 && cd vpp && make install-dep && dpkg -i
/root/packages/*.deb && rm -rf /root/packages/ && rm -rf vpp && \
apt-get -y autoremove && apt-get clean autoclean && rm -fr
/var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*WORKDIR /CMD
["/usr/bin/vpp", "-c", "/etc/vpp/startup.conf"]*

On Thu, Dec 22, 2022 at 11:59 PM Christopher Adigun 
wrote:

> The repo I used for the lcp is https://github.com/pimvanpelt/lcpng.git
>
> I used the following dockerfile to build the image:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *FROM ubuntu:20.04ENV DEBIAN_FRONTEND noninteractiveRUN apt-get update &&
> apt-get install -y --no-install-recommends \
> apt-transport-https \ca-certificates \curl
> \gnupg \iproute2 \
> iputils-ping \git \libmnl-dev \
> make \libmnl-dev \gcc \
> build-essential \python3 \sudo \&&
> rm -rf /var/lib/apt/lists/*RUN set -eux; \mkdir ~/src;cd ~/src; \
>   git clone https://gerrit.fd.io/r/vpp ; \
>   cd vpp;git checkout remotes/origin/stable/2202; \cd ~/src;git
> clone https://github.com/pimvanpelt/lcpng.git;ln
>  -s ~/src/lcpng
> ~/src/vpp/src/plugins/lcpng;cd ~/src/vpp; \yes | make
> install-deps;yes | make install-ext-deps;yes | make build-release;yes |
> make pkg-deb; \dpkg -i build-root/*.deb; \dpkg-query -f
> '${Version}\n' -W vpp > /software-versions; \rm -rf
> build-root/*.deb; \rm -rf /var/lib/apt/lists/*; \cd ~; \
> rm -rf /vpp;RUN mkdir -p /var/log/vppCMD ["/usr/bin/vpp", "-c",
> "/etc/vpp/startup.conf"]*
>
> I used the sample startup.conf from your blog article
> https://ipng.ch/s/articles/2021/12/23/vpp-playground.html
>
> plugins {
>   plugin lcpng_nl_plugin.so { enable }
>   plugin lcpng_if_plugin.so { enable }
> }
>
> lcpng {
>   lcp-sync
>   lcp-auto-subint
> }
>
>
> On Thu, Dec 22, 2022 at 4:21 PM Pim van Pelt via lists.fd.io  ipng...@lists.fd.io> wrote:
>
>> Hoi,
>>
>> On Thu, Dec 22, 2022 at 10:16 PM Christopher Adigun 
>> wrote:
>>
>>> Interface is still down which I need for my use-case because that is
>>> where the BGP communication is taking place.
>>>
>>> I tried your git repo and built the container image, now both are
>>> working fine.
>>>
>> Can you clarify which git repo did you build ?
>>
>>
>>> This means the official release has an issue like you said.
>>>
>> There are several issues, yes. Understanding which ones and how you
>> addressed them, will help the community to address them :)
>>
>> groet,
>> Pim
>>
>> --
>> Pim van Pelt 
>> PBVP1-RIPE - http://www.ipng.nl/
>>
>> 
>>
>>


Re: [vpp-dev] Way to send api message from vpp to govpp

2022-12-23 Thread Alok Tiwari
Thank you. I have checked but not much clear on event register and
processing. I found the event used in plugins dhcp &  vrrp too but all the
places have different kinds of implementation. Will you help me to
understand by some example to understand the framework or any document/link
for reference which describes the framework and way to use. Thanks
in advance.

Regards,
Alok

On Thu, Dec 22, 2022 at 1:45 PM Benoit Ganne (bganne) via lists.fd.io
 wrote:

> > We want to push some monitoring information from vpp to govpp based on
> > some condition. Please help me to know if there is any procedure through
> > which we can meet this requirement as there is no request from agent in
> > this case.
>
> You can register for events, see src/vnet/ip-neighbor/ip_neighbor.api
> want_ip_neighbor_events_v2 for example.
>
> Best
> ben
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22378): https://lists.fd.io/g/vpp-dev/message/22378
Mute This Topic: https://lists.fd.io/mt/95821406/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-