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.
24 // Protobuf definitions pertaining to the Forwarding Plane Manager component.
29 import "qpb/qpb.proto";
32 // A Nexthop for a route. It indicates how packets to a given prefix
33 // should be forwarded (for instance, send them out of a specified
34 // interface to a specified address).
37 optional qpb.IfIdentifier if_id = 2;
38 optional qpb.L3Address address = 3;
42 optional qpb.L3Prefix prefix = 1;
46 required uint32 vrf_id = 1;
47 required qpb.AddressFamily address_family = 2;
48 required qpb.SubAddressFamily sub_address_family = 3;
49 required RouteKey key = 4;
60 required uint32 vrf_id = 1;
61 required qpb.AddressFamily address_family = 2;
62 required qpb.SubAddressFamily sub_address_family = 3;
63 required RouteKey key = 4;
65 optional RouteType route_type = 5;
67 required qpb.Protocol protocol = 6;
69 required int32 metric = 8;
71 repeated Nexthop nexthops = 9;
75 // Any message from the FPM.
84 optional Type type = 1;
86 optional AddRoute add_route = 2;
87 optional DeleteRoute delete_route = 3;