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