4 // @copyright Copyright (C) 2016 Sproute Networks, Inc.
6 // @author Avneesh Sachdev <avneesh@sproute.com>
8 // Permission to use, copy, modify, and/or distribute this software
9 // for any purpose with or without fee is hereby granted, provided
10 // that the above copyright notice and this permission notice appear
13 // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
14 // WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
15 // WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
16 // AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
17 // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
18 // OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
19 // NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
20 // CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
26 // Protobuf definitions pertaining to the Forwarding Plane Manager component.
31 import "qpb/qpb.proto";
34 // A Nexthop for a route. It indicates how packets to a given prefix
35 // should be forwarded (for instance, send them out of a specified
36 // interface to a specified address).
39 optional qpb.IfIdentifier if_id = 2;
40 optional qpb.L3Address address = 3;
44 optional qpb.L3Prefix prefix = 1;
48 required uint32 vrf_id = 1;
49 required qpb.AddressFamily address_family = 2;
50 required qpb.SubAddressFamily sub_address_family = 3;
51 required RouteKey key = 4;
62 required uint32 vrf_id = 1;
63 required qpb.AddressFamily address_family = 2;
64 required qpb.SubAddressFamily sub_address_family = 3;
65 required RouteKey key = 4;
67 optional RouteType route_type = 5;
69 required qpb.Protocol protocol = 6;
71 required int32 metric = 8;
73 repeated Nexthop nexthops = 9;
77 // Any message from the FPM.
86 optional Type type = 1;
88 optional AddRoute add_route = 2;
89 optional DeleteRoute delete_route = 3;