]> git.proxmox.com Git - mirror_frr.git/commit
zebra: optionally use protobuf with FPM
authorAvneesh Sachdev <avneesh@sproute.com>
Mon, 4 Apr 2016 17:54:58 +0000 (10:54 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 23 Sep 2016 16:12:16 +0000 (12:12 -0400)
commitfb0aa88623f72b7e4d0f35e8df3f96aa090fc5c8
tree4958c96776674bd17f7bcd16a9272e4ac3c4b3df
parent4087409cdba71b5f95662e202cc33cf92ed055cd
zebra: optionally use protobuf with FPM

Change zebra so that it can optionally use protobuf serialization when
communicating with a Forwarding Plane Manager component.

  * zebra/main.c

    Add the --fpm-format/-F command line option. This allows the user
    to control the format (protbuf|netlink) that is used to
    communicate with the FPM.

  * zebra/zebra_fpm.c

    - zebra_init_msg_format(),

      This new function is invoked on process startup to determine the
      FPM format that should be used.

    - zfpm_init()

      Change to accept any 'FPM message format' specified by the user
      (via the new command line flag).

    - zebra_encode_route()

      Tweak to use the selected FPM format.

  * zebra_fpm_protobuf.c

    New code to build protobuf messages to be sent to the FPM.

  * zebra/Makefile.am

    - Include common.am

    - Build new file zebra_fpm_protobuf.c when protobuf is available.

    - Link with the fpm_pb library.

Signed-off-by: Avneesh Sachdev <avneesh@sproute.com>
zebra/Makefile.am
zebra/main.c
zebra/zebra_fpm.c
zebra/zebra_fpm.h
zebra/zebra_fpm_private.h
zebra/zebra_fpm_protobuf.c [new file with mode: 0644]