syntax = "proto3";

package gosdn.topology;

import "google/api/annotations.proto";
import "google/protobuf/descriptor.proto";
import "protoc-gen-openapiv2/options/annotations.proto";

import "gosdn/conflict/conflict.proto";

option go_package = "code.fbi.h-da.de/danet/gosdn/api/go/gosdn/topology";

message Route {
    string id = 1;
    string targetIPRange = 2;
    string nextHopIP = 3;
    string portID = 4;
    string metric = 5;
}

message RoutingTable {
    string id = 1;
    string nodeID = 2;
    repeated Route routes = 3;
    conflict.Metadata metadata = 4;
}
