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

     1  syntax = "proto3";
     2  
     3  package ligato.linux.l3;
     4  
     5  option go_package = "go.ligato.io/vpp-agent/v3/proto/ligato/linux/l3;linux_l3";
     6  
     7  import "ligato/annotations.proto";
     8  
     9  message Route {
    10      // Outgoing interface logical name (mandatory).
    11      string outgoing_interface = 1;
    12  
    13      enum Scope {
    14          UNDEFINED = 0;
    15          GLOBAL = 1;
    16          SITE = 2;
    17          LINK = 3;
    18          HOST = 4;
    19      }
    20      // The scope of the area where the link is valid.
    21      Scope scope = 2;
    22  
    23      // Destination network address in the format <address>/<prefix> (mandatory)
    24      // Address can be also allocated via netalloc plugin and referenced here,
    25      // see: api/models/netalloc/netalloc.proto
    26      string dst_network = 3  [(ligato_options).type = IP_WITH_MASK];
    27  
    28      // Gateway IP address (without mask, optional).
    29      // Address can be also allocated via netalloc plugin and referenced here,
    30      // see: api/models/netalloc/netalloc.proto
    31      string gw_addr = 4  [(ligato_options).type = IP];
    32  
    33      // routing metric (weight)
    34      uint32 metric = 5;
    35  }