go.ligato.io/vpp-agent/v3@v3.5.0/proto/ligato/vpp/l3/route.proto (about)

     1  syntax = "proto3";
     2  
     3  package ligato.vpp.l3;
     4  
     5  option go_package = "go.ligato.io/vpp-agent/v3/proto/ligato/vpp/l3;vpp_l3";
     6  
     7  import "ligato/annotations.proto";
     8  
     9  message Route {
    10      enum RouteType {
    11          // Forwarding is being done in the specified vrf_id only, or according to
    12          // the specified outgoing interface.
    13          INTRA_VRF = 0;
    14          // Forwarding is being done by lookup into a different VRF,
    15          // specified as via_vrf_id field. In case of these routes, the outgoing
    16          // interface should not be specified. The next hop IP address
    17          // does not have to be specified either, in that case VPP does full
    18          // recursive lookup in the via_vrf_id VRF.
    19          INTER_VRF = 1;
    20          // Drops the network communication designated for specific IP address.
    21          DROP = 2;
    22      }
    23      RouteType type = 10;
    24  
    25      // VRF identifier, field required for remote client. This value should be
    26      // consistent with VRF ID in static route key. If it is not, value from
    27      // key will be preffered and this field will be overriden.
    28      // Non-zero VRF has to be explicitly created (see api/models/vpp/l3/vrf.proto)
    29      uint32 vrf_id = 1;
    30  
    31      // Destination network defined by IP address and prefix (format: <address>/<prefix>).
    32      string dst_network = 3  [(ligato_options).type = IP_WITH_MASK];
    33  
    34      // Next hop address.
    35      string next_hop_addr = 4  [(ligato_options).type = IP];
    36  
    37      // Interface name of the outgoing interface.
    38      string outgoing_interface = 5;
    39  
    40      // Weight is used for unequal cost load balancing.
    41      uint32 weight = 6;
    42  
    43      // Preference defines path preference. Lower preference is preferred.
    44      // Only paths with the best preference contribute to forwarding (a poor man's primary and backup).
    45      uint32 preference = 7;
    46  
    47      // Specifies VRF ID for the next hop lookup / recursive lookup
    48      uint32 via_vrf_id = 8;
    49  }