go.ligato.io/vpp-agent/v3@v3.5.0/proto/ligato/vpp/interfaces/state.proto (about)

     1  syntax = "proto3";
     2  
     3  package ligato.vpp.interfaces;
     4  
     5  option go_package = "go.ligato.io/vpp-agent/v3/proto/ligato/vpp/interfaces;vpp_interfaces";
     6  
     7  import "ligato/vpp/interfaces/interface.proto";
     8  import "ligato/annotations.proto";
     9  
    10  message InterfaceStats {
    11      string name = 1;
    12  
    13      message CombinedCounter {
    14          uint64 packets = 1;
    15          uint64 bytes = 2;
    16      }
    17      CombinedCounter rx = 2;
    18      CombinedCounter tx = 3;
    19  
    20      CombinedCounter rx_unicast = 4;
    21      CombinedCounter rx_multicast = 5;
    22      CombinedCounter rx_broadcast = 6;
    23      CombinedCounter tx_unicast = 7;
    24      CombinedCounter tx_multicast = 8;
    25      CombinedCounter tx_broadcast = 9;
    26  
    27      uint64 rx_error = 12;
    28      uint64 tx_error = 13;
    29  
    30      uint64 rx_no_buf = 10;
    31      uint64 rx_miss = 11;
    32      uint64 drops = 14;
    33      uint64 punts = 15;
    34      uint64 ip4 = 16;
    35      uint64 ip6 = 17;
    36      uint64 mpls = 18;
    37  }
    38  
    39  message InterfaceState {
    40      string name = 1;
    41      string internal_name = 2;
    42      vpp.interfaces.Interface.Type type = 3;
    43      uint32 if_index = 4;
    44  
    45      enum Status {
    46          UNKNOWN_STATUS = 0;
    47          UP = 1;
    48          DOWN = 2;
    49          DELETED = 3;
    50      };
    51      Status admin_status = 5;
    52      Status oper_status = 6;
    53  
    54      int64 last_change = 7;
    55      string phys_address = 8;
    56      uint64 speed = 9;
    57      uint32 mtu = 10  [(ligato_options).int_range = {minimum: 0 maximum: 9216}];
    58  
    59      enum Duplex {
    60          UNKNOWN_DUPLEX = 0;
    61          HALF = 1;
    62          FULL = 2;
    63      };
    64      Duplex duplex = 11;
    65  
    66      message Statistics {
    67          uint64 in_packets = 1;
    68          uint64 in_bytes = 2;
    69          uint64 out_packets = 3;
    70          uint64 out_bytes = 4;
    71          uint64 drop_packets = 5;
    72          uint64 punt_packets = 6;
    73          uint64 ipv4_packets = 7;
    74          uint64 ipv6_packets = 8;
    75          uint64 in_nobuf_packets = 9;
    76          uint64 in_miss_packets = 10;
    77          uint64 in_error_packets = 11;
    78          uint64 out_error_packets = 12;
    79      }
    80      Statistics statistics = 100;
    81  }
    82  
    83  message InterfaceNotification {
    84      enum NotifType {
    85          UNKNOWN = 0;
    86          UPDOWN = 1;
    87          COUNTERS = 2;
    88      }
    89      NotifType type = 1;
    90      InterfaceState state = 2;
    91  }