From f6b3291b452a4bbcd3e059364afdab4fa961f494 Mon Sep 17 00:00:00 2001 From: fseidl <fabian.seidl1@gmx.de> Date: Tue, 8 Feb 2022 12:01:28 +0100 Subject: [PATCH] Reverted change to enums in southbound.proto, see comment --- proto/gosdn/southbound/southbound.proto | 42 +++++++++++++------------ 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/proto/gosdn/southbound/southbound.proto b/proto/gosdn/southbound/southbound.proto index 2f737f9..3054bac 100644 --- a/proto/gosdn/southbound/southbound.proto +++ b/proto/gosdn/southbound/southbound.proto @@ -1,20 +1,22 @@ -syntax = "proto3"; - -package gosdn.southbound; - -import "google/protobuf/descriptor.proto"; - -option go_package = "code.fbi.h-da.de/danet/api/go/gosdn/southbound"; - - -message SouthboundInterface { - string id = 1; - Type type = 2; -} - -enum Type { - UNSPECIFIED = 0; - OPENCONFIG = 1; - CONTAINERISED = 2; - PLUGIN = 3; -} +syntax = "proto3"; + +package gosdn.southbound; + +import "google/protobuf/descriptor.proto"; + +option go_package = "code.fbi.h-da.de/danet/api/go/gosdn/southbound"; + + +message SouthboundInterface { + string id = 1; + Type type = 2; +} + +// Changed accoprding to style guide: +// https://docs.buf.build/best-practices/style-guide#enums +enum Type { + TYPE_UNSPECIFIED = 0; + TYPE_OPENCONFIG = 1; + TYPE_CONTAINERISED = 2; + TYPE_PLUGIN = 3; +} -- GitLab