From 1b4ee272e26f9bf6428d06edd42cd75280c81913 Mon Sep 17 00:00:00 2001 From: Ondrej Fabry Date: Fri, 14 Aug 2020 17:30:25 +0200 Subject: [PATCH] build: Switch to new proto v2 (#1691) * Update proto tools to v2 Signed-off-by: Ondrej Fabry * Regenerate proto with v2 Signed-off-by: Ondrej Fabry * Fix model compatibility with new proto Signed-off-by: Ondrej Fabry * Show config class by default Signed-off-by: Ondrej Fabry * Update go deps Signed-off-by: Ondrej Fabry * Fix integration tests for srv6 Signed-off-by: Ondrej Fabry * Merge remote-tracking branch 'upstream/master' into new-protobuf2 Signed-off-by: Ondrej Fabry # Conflicts: # proto/ligato/vpp/ipsec/ipsec.pb.go # proto/ligato/vpp/vpp.pb.go --- cmd/agentctl/commands/model.go | 6 +- go.mod | 11 +- go.sum | 36 +- pkg/models/model.go | 20 +- pkg/models/registry.go | 13 +- plugins/configurator/configurator.go | 30 +- plugins/configurator/dump.go | 11 +- plugins/orchestrator/meta_service.go | 3 + plugins/telemetry/stats_poller.go | 2 + proto/ligato/configurator/configurator.pb.go | 1403 ++++--- .../configurator/configurator_grpc.pb.go | 272 ++ proto/ligato/configurator/statspoller.pb.go | 503 +-- .../configurator/statspoller_grpc.pb.go | 119 + proto/ligato/generic/manager.pb.go | 2033 ++++++---- proto/ligato/generic/manager_grpc.pb.go | 236 ++ proto/ligato/generic/meta.pb.go | 362 +- proto/ligato/generic/meta_grpc.pb.go | 94 + proto/ligato/generic/model.pb.go | 395 +- proto/ligato/generic/options.pb.go | 127 +- proto/ligato/govppmux/metrics.pb.go | 241 +- proto/ligato/kvscheduler/value_status.pb.go | 484 ++- proto/ligato/linux/interfaces/interface.pb.go | 639 +-- proto/ligato/linux/iptables/iptables.pb.go | 530 ++- proto/ligato/linux/l3/arp.pb.go | 198 +- proto/ligato/linux/l3/route.pb.go | 284 +- proto/ligato/linux/linux.pb.go | 286 +- proto/ligato/linux/namespace/namespace.pb.go | 270 +- proto/ligato/linux/punt/punt.pb.go | 577 ++- proto/ligato/netalloc/netalloc.pb.go | 411 +- proto/ligato/vpp/abf/abf.pb.go | 451 ++- proto/ligato/vpp/acl/acl.pb.go | 1349 ++++--- proto/ligato/vpp/interfaces/dhcp.pb.go | 243 +- proto/ligato/vpp/interfaces/interface.pb.go | 3561 ++++++++++------- proto/ligato/vpp/interfaces/span.pb.go | 278 +- proto/ligato/vpp/interfaces/state.pb.go | 1210 ++++-- proto/ligato/vpp/ipfix/flowprobe.pb.go | 338 +- proto/ligato/vpp/ipfix/ipfix.pb.go | 321 +- proto/ligato/vpp/ipsec/ipsec.pb.go | 1541 ++++--- proto/ligato/vpp/l2/bridge_domain.pb.go | 477 ++- proto/ligato/vpp/l2/fib.pb.go | 297 +- proto/ligato/vpp/l2/xconnect.pb.go | 190 +- proto/ligato/vpp/l3/arp.pb.go | 208 +- proto/ligato/vpp/l3/l3.pb.go | 805 ++-- proto/ligato/vpp/l3/l3xc.pb.go | 367 +- proto/ligato/vpp/l3/route.pb.go | 300 +- proto/ligato/vpp/l3/teib.pb.go | 203 +- proto/ligato/vpp/l3/vrf.pb.go | 410 +- proto/ligato/vpp/nat/nat.pb.go | 1521 ++++--- proto/ligato/vpp/punt/punt.pb.go | 592 ++- proto/ligato/vpp/srv6/srv6.pb.go | 1951 +++++---- proto/ligato/vpp/stn/stn.pb.go | 187 +- proto/ligato/vpp/vpp.pb.go | 843 ++-- scripts/make/buf.make | 33 +- scripts/protoc_gen_go.sh | 3 +- tests/integration/vpp/110_srv6_test.go | 7 +- 55 files changed, 17437 insertions(+), 9845 deletions(-) create mode 100644 proto/ligato/configurator/configurator_grpc.pb.go create mode 100644 proto/ligato/configurator/statspoller_grpc.pb.go create mode 100644 proto/ligato/generic/manager_grpc.pb.go create mode 100644 proto/ligato/generic/meta_grpc.pb.go diff --git a/cmd/agentctl/commands/model.go b/cmd/agentctl/commands/model.go index 9ed37dd338..5d0f24b9ba 100644 --- a/cmd/agentctl/commands/model.go +++ b/cmd/agentctl/commands/model.go @@ -55,7 +55,7 @@ func newModelListCommand(cli agentcli.Cli) *cobra.Command { }, } flags := cmd.Flags() - flags.StringVar(&opts.Class, "class", "", "Filter by model class") + flags.StringVar(&opts.Class, "class", "config", "Filter by model class") flags.StringVarP(&opts.Format, "format", "f", "", "Format output") return cmd } @@ -70,6 +70,10 @@ func runModelList(cli agentcli.Cli, opts ModelListOptions) error { ctx, cancel := context.WithCancel(context.Background()) defer cancel() + if strings.ToLower(opts.Class) == "all" { + opts.Class = "" + } + allModels, err := cli.Client().ModelList(ctx, types.ModelListOptions{ Class: opts.Class, }) diff --git a/go.mod b/go.mod index 1df6306d57..afd2d3cad2 100644 --- a/go.mod +++ b/go.mod @@ -53,11 +53,12 @@ require ( go.ligato.io/cn-infra/v2 v2.5.0-alpha.0.20200313154441-b0d4c1b11c73 go.uber.org/multierr v1.2.0 // indirect golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413 // indirect - golang.org/x/net v0.0.0-20190620200207-3b0461eec859 - golang.org/x/sys v0.0.0-20200501145240-bc7a7d42d5c3 + golang.org/x/net v0.0.0-20200528225125-3c3fba18258b + golang.org/x/sys v0.0.0-20200523222454-059865788121 + golang.org/x/text v0.3.2 // indirect golang.org/x/time v0.0.0-20190921001708-c4c64cad1fd0 // indirect - google.golang.org/genproto v0.0.0-20200707001353-8e8330bf89df // indirect - google.golang.org/grpc v1.27.1 - google.golang.org/protobuf v1.25.0 // indirect + google.golang.org/genproto v0.0.0-20200601130524-0f60399e6634 // indirect + google.golang.org/grpc v1.29.1 + google.golang.org/protobuf v1.24.0 gotest.tools v2.2.0+incompatible // indirect ) diff --git a/go.sum b/go.sum index 42d824acaa..10176575ef 100644 --- a/go.sum +++ b/go.sum @@ -53,6 +53,7 @@ github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMn github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/containerd/continuity v0.0.0-20171215195539-b2b946a77f59 h1:PP8ffsrKAQ6u4Yq63J+g5HJTeka1tgsmaGMZuHzXm1g= github.com/containerd/continuity v0.0.0-20171215195539-b2b946a77f59/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y= github.com/coreos/bbolt v1.3.1-etcd.8/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= @@ -101,7 +102,9 @@ github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385 h1:clC1lXBpe2kTj2VHdaIu9ajZQe4kcEY9j0NsnDDBZ3o= github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385/go.mod h1:0vRUJqYpeSZifjYj7uP3BG/gKcuzL9xWVV/Y+cK33KM= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/evalphobia/logrus_fluent v0.4.0 h1:uYIgSLezcopy6V7Epr5yIvsnzGqH+bE/62b32xIEe+A= github.com/evalphobia/logrus_fluent v0.4.0/go.mod h1:hasyj+CXm3BDP1YhFk/rnTcjlegyqvkokV9A25cQsaA= @@ -143,12 +146,12 @@ github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5y github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2 h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1 h1:ZFgWrT+bLgsYPirOnRfKLYJLvssAegOj/hgyMFdJZe0= github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= github.com/golang/protobuf v1.4.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0= github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= @@ -165,9 +168,8 @@ github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5a github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/gorilla/context v1.1.1 h1:AWwleXJkX/nhcU9bZSnZoi3h/qGYqQAGhq6zZe/aQW8= github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= github.com/gorilla/mux v1.6.2 h1:Pgr17XVTNXAk3q/r4CpKzC5xBM/qW1uVLV+IhRZpIIk= @@ -291,8 +293,6 @@ github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= -github.com/pkg/profile v1.3.0 h1:OQIvuDgm00gWVWGTf4m4mCt6W1/0YqU7Ntg0mySWgaI= -github.com/pkg/profile v1.3.0/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= github.com/pkg/profile v1.5.0 h1:042Buzk+NhDI+DeSAA62RwJL8VAuZUMQZUjCsRz1Mug= github.com/pkg/profile v1.5.0/go.mod h1:qBsxPvzyUincmltOk6iyRVxHYg4adc0OFOv72ZdLa18= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= @@ -416,8 +416,8 @@ golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190522155817-f3200d17e092 h1:4QSRKanuywn15aTZvI/mIDEgPQpswuFndXpOj3rKEco= golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859 h1:R/3boaszxrf1GEUWTVDzSKVwLmSJpwZ1yqXm8j0v2QI= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200528225125-3c3fba18258b h1:IYiJPiJfzktmDAO1HQiwjMjwjlYKHAL7KzeD544RJPs= +golang.org/x/net v0.0.0-20200528225125-3c3fba18258b/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be h1:vEDujvNQGv4jgYKudGeI/+DAX4Jffq6hpD55MmoEvKs= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -443,16 +443,20 @@ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200501145240-bc7a7d42d5c3 h1:5B6i6EAiSYyejWfvc5Rc9BbI3rzIsrrXfAQBWnYfn+w= -golang.org/x/sys v0.0.0-20200501145240-bc7a7d42d5c3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121 h1:rITEj+UZHYC927n8GT97eC3zrpzXdb/voyeOuVKS46o= +golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190921001708-c4c64cad1fd0 h1:xQwXv67TxFo9nC1GJFyab5eq/5B590r6RlnL/G8Sz7w= golang.org/x/time v0.0.0-20190921001708-c4c64cad1fd0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= @@ -470,30 +474,30 @@ google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoA google.golang.org/genproto v0.0.0-20181101192439-c830210a61df/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55 h1:gSJIx1SDwno+2ElGhA4+qG2zF97qiUzTM+rQ0klBOcE= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200707001353-8e8330bf89df h1:HWF6nM8ruGdu1K8IXFR+i2oT3YP+iBfZzCbC9zUfcWo= -google.golang.org/genproto v0.0.0-20200707001353-8e8330bf89df/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200601130524-0f60399e6634 h1:yUEnIJPm1I2GGauN1xOkwj6gXw/3t1R+HA1r/cdnkHE= +google.golang.org/genproto v0.0.0-20200601130524-0f60399e6634/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= google.golang.org/grpc v1.8.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.16.0/go.mod h1:0JHn/cJsOMiMfNA9+DeHDlAU7KAAB5GDlYFpa9MZMio= google.golang.org/grpc v1.19.0 h1:cfg4PD8YEdSFnm7qLV4++93WcmhH2nIUhMjhdCvl3j8= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.1 h1:zvIju4sqAGvwKspUQOhwnpcqSbzi7/H6QomNNjTL4sk= -google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.29.1 h1:EC2SB8S04d2r73uptxphDSUG+kTKVgjRPF+N3xpxRB4= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0 h1:4MY060fB1DLGMB/7MBTLnwQUY6+F09GEiz6SsrNqyzM= google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0 h1:UhZDfRO8JRQru4/+LlLE0BRKGF8L+PICnvYZmx/fEGA= google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= -google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= diff --git a/pkg/models/model.go b/pkg/models/model.go index a6928ccb7b..0048adcb13 100644 --- a/pkg/models/model.go +++ b/pkg/models/model.go @@ -18,8 +18,8 @@ import ( "reflect" "strings" - "github.com/golang/protobuf/descriptor" "github.com/golang/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" "go.ligato.io/vpp-agent/v3/proto/ligato/generic" ) @@ -29,7 +29,8 @@ type KnownModel struct { spec Spec modelOptions - goType reflect.Type + goType reflect.Type + proto protoreflect.ProtoMessage protoName string // cache @@ -64,17 +65,16 @@ func (m *KnownModel) NewInstance() proto.Message { // ProtoName returns proto message name registered with the model. func (m *KnownModel) ProtoName() string { - if m.protoName == "" { - m.protoName = proto.MessageName(m.nilProto()) + if m.proto != nil { + return string(m.proto.ProtoReflect().Descriptor().FullName()) } - return m.protoName + return "" } // ProtoFile returns proto file name for the model. func (m *KnownModel) ProtoFile() string { - if msg, ok := m.nilProto().(descriptor.Message); ok { - fd, _ := descriptor.ForMessage(msg) - return *fd.Name + if m.proto != nil { + return m.proto.ProtoReflect().Descriptor().ParentFile().Path() } return "" } @@ -156,7 +156,3 @@ func (m *KnownModel) instanceName(x interface{}) (string, error) { } return m.nameFunc(x) } - -func (m *KnownModel) nilProto() proto.Message { - return reflect.Zero(m.goType).Interface().(proto.Message) -} diff --git a/pkg/models/registry.go b/pkg/models/registry.go index 2600cb741e..bb67b42a9b 100644 --- a/pkg/models/registry.go +++ b/pkg/models/registry.go @@ -21,6 +21,7 @@ import ( "strings" "github.com/golang/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" ) var ( @@ -34,6 +35,7 @@ var ( type Registry struct { registeredTypes map[reflect.Type]*KnownModel modelNames map[string]*KnownModel + ordered []reflect.Type } // NewRegistry returns initialized Registry. @@ -79,8 +81,8 @@ func (r *Registry) GetModelForKey(key string) (KnownModel, error) { // RegisteredModels returns all registered modules. func (r *Registry) RegisteredModels() []KnownModel { var models []KnownModel - for _, model := range r.registeredTypes { - models = append(models, *model) + for _, typ := range r.ordered { + models = append(models, *r.registeredTypes[typ]) } return models } @@ -118,8 +120,10 @@ func (r *Registry) Register(x interface{}, spec Spec, opts ...ModelOption) (*Kno goType: goType, } - if pb, ok := x.(proto.Message); ok { - model.protoName = proto.MessageName(pb) + if pb, ok := x.(protoreflect.ProtoMessage); ok { + model.proto = pb + }else if v1, ok := x.(proto.Message); ok { + model.proto = proto.MessageV2(v1) } // Use GetName as fallback for generating name @@ -137,6 +141,7 @@ func (r *Registry) Register(x interface{}, spec Spec, opts ...ModelOption) (*Kno r.registeredTypes[goType] = model r.modelNames[model.Name()] = model + r.ordered = append(r.ordered, goType) if debugRegister { fmt.Printf("- model %s registered: %+v\n", model.Name(), model) diff --git a/plugins/configurator/configurator.go b/plugins/configurator/configurator.go index 8dfb4470fc..ea80f00a9b 100644 --- a/plugins/configurator/configurator.go +++ b/plugins/configurator/configurator.go @@ -15,10 +15,10 @@ package configurator import ( + "context" "runtime/trace" "go.ligato.io/cn-infra/v2/logging" - "golang.org/x/net/context" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -26,7 +26,7 @@ import ( "go.ligato.io/vpp-agent/v3/pkg/util" kvs "go.ligato.io/vpp-agent/v3/plugins/kvscheduler/api" "go.ligato.io/vpp-agent/v3/plugins/orchestrator" - rpc "go.ligato.io/vpp-agent/v3/proto/ligato/configurator" + pb "go.ligato.io/vpp-agent/v3/proto/ligato/configurator" "go.ligato.io/vpp-agent/v3/proto/ligato/linux" "go.ligato.io/vpp-agent/v3/proto/ligato/netalloc" "go.ligato.io/vpp-agent/v3/proto/ligato/vpp" @@ -34,6 +34,8 @@ import ( // configuratorServer implements DataSyncer service. type configuratorServer struct { + pb.UnimplementedConfiguratorServiceServer + dumpService notifyService @@ -41,8 +43,16 @@ type configuratorServer struct { dispatch orchestrator.Dispatcher } +func (svc *configuratorServer) Dump(ctx context.Context, req *pb.DumpRequest) (*pb.DumpResponse, error) { + return svc.dumpService.Dump(ctx, req, ) +} + +func (svc *configuratorServer)Notify(from *pb.NotifyRequest, server pb.ConfiguratorService_NotifyServer) error { + return svc.notifyService.Notify(from, server, ) +} + // Get retrieves actual configuration data. -func (svc *configuratorServer) Get(context.Context, *rpc.GetRequest) (*rpc.GetResponse, error) { +func (svc *configuratorServer) Get(context.Context, *pb.GetRequest) (*pb.GetResponse, error) { defer trackOperation("Get")() config := newConfig() @@ -53,11 +63,11 @@ func (svc *configuratorServer) Get(context.Context, *rpc.GetRequest) (*rpc.GetRe config.NetallocConfig, ) - return &rpc.GetResponse{Config: config}, nil + return &pb.GetResponse{Config: config}, nil } // Update adds configuration data present in data request to the VPP/Linux -func (svc *configuratorServer) Update(ctx context.Context, req *rpc.UpdateRequest) (*rpc.UpdateResponse, error) { +func (svc *configuratorServer) Update(ctx context.Context, req *pb.UpdateRequest) (*pb.UpdateResponse, error) { ctx, task := trace.NewTask(ctx, "grpc.Update") defer task.End() trace.Logf(ctx, "updateData", "%+v", req) @@ -93,11 +103,11 @@ func (svc *configuratorServer) Update(ctx context.Context, req *rpc.UpdateReques return nil, st.Err() } - return &rpc.UpdateResponse{}, nil + return &pb.UpdateResponse{}, nil } // Delete removes configuration data present in data request from the VPP/linux -func (svc *configuratorServer) Delete(ctx context.Context, req *rpc.DeleteRequest) (*rpc.DeleteResponse, error) { +func (svc *configuratorServer) Delete(ctx context.Context, req *pb.DeleteRequest) (*pb.DeleteResponse, error) { defer trackOperation("Delete")() protos := util.ExtractProtos( @@ -125,11 +135,11 @@ func (svc *configuratorServer) Delete(ctx context.Context, req *rpc.DeleteReques return nil, st.Err() } - return &rpc.DeleteResponse{}, nil + return &pb.DeleteResponse{}, nil } -func newConfig() *rpc.Config { - return &rpc.Config{ +func newConfig() *pb.Config { + return &pb.Config{ LinuxConfig: &linux.ConfigData{}, VppConfig: &vpp.ConfigData{}, NetallocConfig: &netalloc.ConfigData{}, diff --git a/plugins/configurator/dump.go b/plugins/configurator/dump.go index 3d1b1e0182..85b0900a78 100644 --- a/plugins/configurator/dump.go +++ b/plugins/configurator/dump.go @@ -47,8 +47,6 @@ type dumpService struct { log logging.Logger // VPP Handlers - - // core ifHandler ifvppcalls.InterfaceVppRead l2Handler l2vppcalls.L2VppAPI l3Handler l3vppcalls.L3VppAPI @@ -74,7 +72,9 @@ func (svc *dumpService) Dump(ctx context.Context, req *rpc.DumpRequest) (*rpc.Du var err error - // core + // ----- + // VPP + // ----- dump.VppConfig.Interfaces, err = svc.DumpInterfaces(ctx) if err != nil { svc.log.Errorf("DumpInterfaces failed: %v", err) @@ -120,8 +120,6 @@ func (svc *dumpService) Dump(ctx context.Context, req *rpc.DumpRequest) (*rpc.Du svc.log.Errorf("DumpIPSecSAs failed: %v", err) return nil, err } - - // plugins dump.VppConfig.Acls, err = svc.DumpACLs() if err != nil { svc.log.Errorf("DumpACLs failed: %v", err) @@ -163,6 +161,9 @@ func (svc *dumpService) Dump(ctx context.Context, req *rpc.DumpRequest) (*rpc.Du return nil, err } + // ----- + // Linux + // ----- dump.LinuxConfig.Interfaces, err = svc.DumpLinuxInterfaces() if err != nil { svc.log.Errorf("DumpLinuxInterfaces failed: %v", err) diff --git a/plugins/orchestrator/meta_service.go b/plugins/orchestrator/meta_service.go index 4f50e26468..5b986d4d4a 100644 --- a/plugins/orchestrator/meta_service.go +++ b/plugins/orchestrator/meta_service.go @@ -30,6 +30,9 @@ import ( ) type genericService struct { + generic.UnimplementedMetaServiceServer + generic.UnimplementedManagerServiceServer + log logging.Logger dispatch Dispatcher } diff --git a/plugins/telemetry/stats_poller.go b/plugins/telemetry/stats_poller.go index 4a15c8b67d..806c0f8f1b 100644 --- a/plugins/telemetry/stats_poller.go +++ b/plugins/telemetry/stats_poller.go @@ -19,6 +19,8 @@ import ( ) type statsPollerServer struct { + configurator.UnimplementedStatsPollerServiceServer + handler vppcalls.TelemetryVppAPI ifIndex ifaceidx.IfaceMetadataIndex diff --git a/proto/ligato/configurator/configurator.pb.go b/proto/ligato/configurator/configurator.pb.go index ca2257d329..ac87c1c5b5 100644 --- a/proto/ligato/configurator/configurator.pb.go +++ b/proto/ligato/configurator/configurator.pb.go @@ -1,140 +1,141 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/configurator/configurator.proto package configurator import ( - context "context" - fmt "fmt" proto "github.com/golang/protobuf/proto" linux "go.ligato.io/vpp-agent/v3/proto/ligato/linux" netalloc "go.ligato.io/vpp-agent/v3/proto/ligato/netalloc" vpp "go.ligato.io/vpp-agent/v3/proto/ligato/vpp" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 // Config groups all supported config data into single message. type Config struct { - VppConfig *vpp.ConfigData `protobuf:"bytes,1,opt,name=vpp_config,json=vppConfig,proto3" json:"vpp_config,omitempty"` - LinuxConfig *linux.ConfigData `protobuf:"bytes,2,opt,name=linux_config,json=linuxConfig,proto3" json:"linux_config,omitempty"` - NetallocConfig *netalloc.ConfigData `protobuf:"bytes,3,opt,name=netalloc_config,json=netallocConfig,proto3" json:"netalloc_config,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Config) Reset() { *m = Config{} } -func (m *Config) String() string { return proto.CompactTextString(m) } -func (*Config) ProtoMessage() {} -func (*Config) Descriptor() ([]byte, []int) { - return fileDescriptor_11e3b38d9e240f4e, []int{0} + VppConfig *vpp.ConfigData `protobuf:"bytes,1,opt,name=vpp_config,json=vppConfig,proto3" json:"vpp_config,omitempty"` + LinuxConfig *linux.ConfigData `protobuf:"bytes,2,opt,name=linux_config,json=linuxConfig,proto3" json:"linux_config,omitempty"` + NetallocConfig *netalloc.ConfigData `protobuf:"bytes,3,opt,name=netalloc_config,json=netallocConfig,proto3" json:"netalloc_config,omitempty"` } -func (m *Config) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Config.Unmarshal(m, b) -} -func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Config.Marshal(b, m, deterministic) -} -func (m *Config) XXX_Merge(src proto.Message) { - xxx_messageInfo_Config.Merge(m, src) +func (x *Config) Reset() { + *x = Config{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_configurator_configurator_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Config) XXX_Size() int { - return xxx_messageInfo_Config.Size(m) + +func (x *Config) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Config) XXX_DiscardUnknown() { - xxx_messageInfo_Config.DiscardUnknown(m) + +func (*Config) ProtoMessage() {} + +func (x *Config) ProtoReflect() protoreflect.Message { + mi := &file_ligato_configurator_configurator_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Config proto.InternalMessageInfo +// Deprecated: Use Config.ProtoReflect.Descriptor instead. +func (*Config) Descriptor() ([]byte, []int) { + return file_ligato_configurator_configurator_proto_rawDescGZIP(), []int{0} +} -func (m *Config) GetVppConfig() *vpp.ConfigData { - if m != nil { - return m.VppConfig +func (x *Config) GetVppConfig() *vpp.ConfigData { + if x != nil { + return x.VppConfig } return nil } -func (m *Config) GetLinuxConfig() *linux.ConfigData { - if m != nil { - return m.LinuxConfig +func (x *Config) GetLinuxConfig() *linux.ConfigData { + if x != nil { + return x.LinuxConfig } return nil } -func (m *Config) GetNetallocConfig() *netalloc.ConfigData { - if m != nil { - return m.NetallocConfig +func (x *Config) GetNetallocConfig() *netalloc.ConfigData { + if x != nil { + return x.NetallocConfig } return nil } // Notification groups all notification data into single message. type Notification struct { - // Types that are valid to be assigned to Notification: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Notification: // *Notification_VppNotification // *Notification_LinuxNotification - Notification isNotification_Notification `protobuf_oneof:"notification"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Notification isNotification_Notification `protobuf_oneof:"notification"` } -func (m *Notification) Reset() { *m = Notification{} } -func (m *Notification) String() string { return proto.CompactTextString(m) } -func (*Notification) ProtoMessage() {} -func (*Notification) Descriptor() ([]byte, []int) { - return fileDescriptor_11e3b38d9e240f4e, []int{1} +func (x *Notification) Reset() { + *x = Notification{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_configurator_configurator_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Notification) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Notification.Unmarshal(m, b) -} -func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Notification.Marshal(b, m, deterministic) -} -func (m *Notification) XXX_Merge(src proto.Message) { - xxx_messageInfo_Notification.Merge(m, src) -} -func (m *Notification) XXX_Size() int { - return xxx_messageInfo_Notification.Size(m) -} -func (m *Notification) XXX_DiscardUnknown() { - xxx_messageInfo_Notification.DiscardUnknown(m) +func (x *Notification) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Notification proto.InternalMessageInfo +func (*Notification) ProtoMessage() {} -type isNotification_Notification interface { - isNotification_Notification() -} - -type Notification_VppNotification struct { - VppNotification *vpp.Notification `protobuf:"bytes,1,opt,name=vpp_notification,json=vppNotification,proto3,oneof"` +func (x *Notification) ProtoReflect() protoreflect.Message { + mi := &file_ligato_configurator_configurator_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type Notification_LinuxNotification struct { - LinuxNotification *linux.Notification `protobuf:"bytes,2,opt,name=linux_notification,json=linuxNotification,proto3,oneof"` +// Deprecated: Use Notification.ProtoReflect.Descriptor instead. +func (*Notification) Descriptor() ([]byte, []int) { + return file_ligato_configurator_configurator_proto_rawDescGZIP(), []int{1} } -func (*Notification_VppNotification) isNotification_Notification() {} - -func (*Notification_LinuxNotification) isNotification_Notification() {} - func (m *Notification) GetNotification() isNotification_Notification { if m != nil { return m.Notification @@ -142,727 +143,827 @@ func (m *Notification) GetNotification() isNotification_Notification { return nil } -func (m *Notification) GetVppNotification() *vpp.Notification { - if x, ok := m.GetNotification().(*Notification_VppNotification); ok { +func (x *Notification) GetVppNotification() *vpp.Notification { + if x, ok := x.GetNotification().(*Notification_VppNotification); ok { return x.VppNotification } return nil } -func (m *Notification) GetLinuxNotification() *linux.Notification { - if x, ok := m.GetNotification().(*Notification_LinuxNotification); ok { +func (x *Notification) GetLinuxNotification() *linux.Notification { + if x, ok := x.GetNotification().(*Notification_LinuxNotification); ok { return x.LinuxNotification } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Notification) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Notification_VppNotification)(nil), - (*Notification_LinuxNotification)(nil), - } +type isNotification_Notification interface { + isNotification_Notification() +} + +type Notification_VppNotification struct { + VppNotification *vpp.Notification `protobuf:"bytes,1,opt,name=vpp_notification,json=vppNotification,proto3,oneof"` } +type Notification_LinuxNotification struct { + LinuxNotification *linux.Notification `protobuf:"bytes,2,opt,name=linux_notification,json=linuxNotification,proto3,oneof"` +} + +func (*Notification_VppNotification) isNotification_Notification() {} + +func (*Notification_LinuxNotification) isNotification_Notification() {} + type UpdateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Update describes config data to be updated. Update *Config `protobuf:"bytes,1,opt,name=update,proto3" json:"update,omitempty"` // The full_resync option can be used // to overwrite all existing data. - FullResync bool `protobuf:"varint,2,opt,name=full_resync,json=fullResync,proto3" json:"full_resync,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + FullResync bool `protobuf:"varint,2,opt,name=full_resync,json=fullResync,proto3" json:"full_resync,omitempty"` } -func (m *UpdateRequest) Reset() { *m = UpdateRequest{} } -func (m *UpdateRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateRequest) ProtoMessage() {} -func (*UpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_11e3b38d9e240f4e, []int{2} +func (x *UpdateRequest) Reset() { + *x = UpdateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_configurator_configurator_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UpdateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateRequest.Unmarshal(m, b) -} -func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateRequest.Marshal(b, m, deterministic) +func (x *UpdateRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateRequest.Merge(m, src) -} -func (m *UpdateRequest) XXX_Size() int { - return xxx_messageInfo_UpdateRequest.Size(m) -} -func (m *UpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateRequest.DiscardUnknown(m) + +func (*UpdateRequest) ProtoMessage() {} + +func (x *UpdateRequest) ProtoReflect() protoreflect.Message { + mi := &file_ligato_configurator_configurator_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UpdateRequest proto.InternalMessageInfo +// Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead. +func (*UpdateRequest) Descriptor() ([]byte, []int) { + return file_ligato_configurator_configurator_proto_rawDescGZIP(), []int{2} +} -func (m *UpdateRequest) GetUpdate() *Config { - if m != nil { - return m.Update +func (x *UpdateRequest) GetUpdate() *Config { + if x != nil { + return x.Update } return nil } -func (m *UpdateRequest) GetFullResync() bool { - if m != nil { - return m.FullResync +func (x *UpdateRequest) GetFullResync() bool { + if x != nil { + return x.FullResync } return false } type UpdateResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *UpdateResponse) Reset() { *m = UpdateResponse{} } -func (m *UpdateResponse) String() string { return proto.CompactTextString(m) } -func (*UpdateResponse) ProtoMessage() {} -func (*UpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_11e3b38d9e240f4e, []int{3} +func (x *UpdateResponse) Reset() { + *x = UpdateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_configurator_configurator_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UpdateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateResponse.Unmarshal(m, b) -} -func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateResponse.Marshal(b, m, deterministic) -} -func (m *UpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateResponse.Merge(m, src) -} -func (m *UpdateResponse) XXX_Size() int { - return xxx_messageInfo_UpdateResponse.Size(m) +func (x *UpdateResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateResponse.DiscardUnknown(m) + +func (*UpdateResponse) ProtoMessage() {} + +func (x *UpdateResponse) ProtoReflect() protoreflect.Message { + mi := &file_ligato_configurator_configurator_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UpdateResponse proto.InternalMessageInfo +// Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead. +func (*UpdateResponse) Descriptor() ([]byte, []int) { + return file_ligato_configurator_configurator_proto_rawDescGZIP(), []int{3} +} type DeleteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Delete describes config data to be deleted. - Delete *Config `protobuf:"bytes,1,opt,name=delete,proto3" json:"delete,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Delete *Config `protobuf:"bytes,1,opt,name=delete,proto3" json:"delete,omitempty"` } -func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } -func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteRequest) ProtoMessage() {} -func (*DeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_11e3b38d9e240f4e, []int{4} +func (x *DeleteRequest) Reset() { + *x = DeleteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_configurator_configurator_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteRequest.Unmarshal(m, b) -} -func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic) -} -func (m *DeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteRequest.Merge(m, src) -} -func (m *DeleteRequest) XXX_Size() int { - return xxx_messageInfo_DeleteRequest.Size(m) -} -func (m *DeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteRequest.DiscardUnknown(m) +func (x *DeleteRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo +func (*DeleteRequest) ProtoMessage() {} -func (m *DeleteRequest) GetDelete() *Config { - if m != nil { - return m.Delete +func (x *DeleteRequest) ProtoReflect() protoreflect.Message { + mi := &file_ligato_configurator_configurator_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type DeleteResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } -func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteResponse) ProtoMessage() {} -func (*DeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_11e3b38d9e240f4e, []int{5} +// Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead. +func (*DeleteRequest) Descriptor() ([]byte, []int) { + return file_ligato_configurator_configurator_proto_rawDescGZIP(), []int{4} } -func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteResponse.Unmarshal(m, b) -} -func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic) -} -func (m *DeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteResponse.Merge(m, src) -} -func (m *DeleteResponse) XXX_Size() int { - return xxx_messageInfo_DeleteResponse.Size(m) -} -func (m *DeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteResponse.DiscardUnknown(m) +func (x *DeleteRequest) GetDelete() *Config { + if x != nil { + return x.Delete + } + return nil } -var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo - -type GetRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type DeleteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *GetRequest) Reset() { *m = GetRequest{} } -func (m *GetRequest) String() string { return proto.CompactTextString(m) } -func (*GetRequest) ProtoMessage() {} -func (*GetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_11e3b38d9e240f4e, []int{6} +func (x *DeleteResponse) Reset() { + *x = DeleteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_configurator_configurator_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetRequest.Unmarshal(m, b) -} -func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic) -} -func (m *GetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRequest.Merge(m, src) -} -func (m *GetRequest) XXX_Size() int { - return xxx_messageInfo_GetRequest.Size(m) -} -func (m *GetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetRequest.DiscardUnknown(m) +func (x *DeleteResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_GetRequest proto.InternalMessageInfo +func (*DeleteResponse) ProtoMessage() {} -type GetResponse struct { - // Config describes desired config retrieved from agent. - Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *DeleteResponse) ProtoReflect() protoreflect.Message { + mi := &file_ligato_configurator_configurator_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *GetResponse) Reset() { *m = GetResponse{} } -func (m *GetResponse) String() string { return proto.CompactTextString(m) } -func (*GetResponse) ProtoMessage() {} -func (*GetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_11e3b38d9e240f4e, []int{7} +// Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead. +func (*DeleteResponse) Descriptor() ([]byte, []int) { + return file_ligato_configurator_configurator_proto_rawDescGZIP(), []int{5} } -func (m *GetResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetResponse.Unmarshal(m, b) -} -func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic) -} -func (m *GetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetResponse.Merge(m, src) -} -func (m *GetResponse) XXX_Size() int { - return xxx_messageInfo_GetResponse.Size(m) -} -func (m *GetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetResponse.DiscardUnknown(m) +type GetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -var xxx_messageInfo_GetResponse proto.InternalMessageInfo - -func (m *GetResponse) GetConfig() *Config { - if m != nil { - return m.Config +func (x *GetRequest) Reset() { + *x = GetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_configurator_configurator_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type DumpRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *GetRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DumpRequest) Reset() { *m = DumpRequest{} } -func (m *DumpRequest) String() string { return proto.CompactTextString(m) } -func (*DumpRequest) ProtoMessage() {} -func (*DumpRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_11e3b38d9e240f4e, []int{8} -} +func (*GetRequest) ProtoMessage() {} -func (m *DumpRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DumpRequest.Unmarshal(m, b) -} -func (m *DumpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DumpRequest.Marshal(b, m, deterministic) -} -func (m *DumpRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DumpRequest.Merge(m, src) -} -func (m *DumpRequest) XXX_Size() int { - return xxx_messageInfo_DumpRequest.Size(m) +func (x *GetRequest) ProtoReflect() protoreflect.Message { + mi := &file_ligato_configurator_configurator_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *DumpRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DumpRequest.DiscardUnknown(m) + +// Deprecated: Use GetRequest.ProtoReflect.Descriptor instead. +func (*GetRequest) Descriptor() ([]byte, []int) { + return file_ligato_configurator_configurator_proto_rawDescGZIP(), []int{6} } -var xxx_messageInfo_DumpRequest proto.InternalMessageInfo +type GetResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type DumpResponse struct { - // Dump describes running config dumped from southbound. - Dump *Config `protobuf:"bytes,1,opt,name=dump,proto3" json:"dump,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // Config describes desired config retrieved from agent. + Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` } -func (m *DumpResponse) Reset() { *m = DumpResponse{} } -func (m *DumpResponse) String() string { return proto.CompactTextString(m) } -func (*DumpResponse) ProtoMessage() {} -func (*DumpResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_11e3b38d9e240f4e, []int{9} +func (x *GetResponse) Reset() { + *x = GetResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_configurator_configurator_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DumpResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DumpResponse.Unmarshal(m, b) -} -func (m *DumpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DumpResponse.Marshal(b, m, deterministic) -} -func (m *DumpResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DumpResponse.Merge(m, src) -} -func (m *DumpResponse) XXX_Size() int { - return xxx_messageInfo_DumpResponse.Size(m) -} -func (m *DumpResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DumpResponse.DiscardUnknown(m) +func (x *GetResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_DumpResponse proto.InternalMessageInfo +func (*GetResponse) ProtoMessage() {} -func (m *DumpResponse) GetDump() *Config { - if m != nil { - return m.Dump +func (x *GetResponse) ProtoReflect() protoreflect.Message { + mi := &file_ligato_configurator_configurator_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type NotifyRequest struct { - Idx uint32 `protobuf:"varint,1,opt,name=idx,proto3" json:"idx,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use GetResponse.ProtoReflect.Descriptor instead. +func (*GetResponse) Descriptor() ([]byte, []int) { + return file_ligato_configurator_configurator_proto_rawDescGZIP(), []int{7} } -func (m *NotifyRequest) Reset() { *m = NotifyRequest{} } -func (m *NotifyRequest) String() string { return proto.CompactTextString(m) } -func (*NotifyRequest) ProtoMessage() {} -func (*NotifyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_11e3b38d9e240f4e, []int{10} +func (x *GetResponse) GetConfig() *Config { + if x != nil { + return x.Config + } + return nil } -func (m *NotifyRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NotifyRequest.Unmarshal(m, b) -} -func (m *NotifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NotifyRequest.Marshal(b, m, deterministic) -} -func (m *NotifyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_NotifyRequest.Merge(m, src) -} -func (m *NotifyRequest) XXX_Size() int { - return xxx_messageInfo_NotifyRequest.Size(m) -} -func (m *NotifyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_NotifyRequest.DiscardUnknown(m) +type DumpRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -var xxx_messageInfo_NotifyRequest proto.InternalMessageInfo - -func (m *NotifyRequest) GetIdx() uint32 { - if m != nil { - return m.Idx +func (x *DumpRequest) Reset() { + *x = DumpRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_configurator_configurator_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -type NotifyResponse struct { - // Index of following notification - NextIdx uint32 `protobuf:"varint,1,opt,name=next_idx,json=nextIdx,proto3" json:"next_idx,omitempty"` - // Notification data - Notification *Notification `protobuf:"bytes,2,opt,name=notification,proto3" json:"notification,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *DumpRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NotifyResponse) Reset() { *m = NotifyResponse{} } -func (m *NotifyResponse) String() string { return proto.CompactTextString(m) } -func (*NotifyResponse) ProtoMessage() {} -func (*NotifyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_11e3b38d9e240f4e, []int{11} -} +func (*DumpRequest) ProtoMessage() {} -func (m *NotifyResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NotifyResponse.Unmarshal(m, b) -} -func (m *NotifyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NotifyResponse.Marshal(b, m, deterministic) -} -func (m *NotifyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_NotifyResponse.Merge(m, src) -} -func (m *NotifyResponse) XXX_Size() int { - return xxx_messageInfo_NotifyResponse.Size(m) +func (x *DumpRequest) ProtoReflect() protoreflect.Message { + mi := &file_ligato_configurator_configurator_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *NotifyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_NotifyResponse.DiscardUnknown(m) + +// Deprecated: Use DumpRequest.ProtoReflect.Descriptor instead. +func (*DumpRequest) Descriptor() ([]byte, []int) { + return file_ligato_configurator_configurator_proto_rawDescGZIP(), []int{8} } -var xxx_messageInfo_NotifyResponse proto.InternalMessageInfo +type DumpResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *NotifyResponse) GetNextIdx() uint32 { - if m != nil { - return m.NextIdx - } - return 0 + // Dump describes running config dumped from southbound. + Dump *Config `protobuf:"bytes,1,opt,name=dump,proto3" json:"dump,omitempty"` } -func (m *NotifyResponse) GetNotification() *Notification { - if m != nil { - return m.Notification +func (x *DumpResponse) Reset() { + *x = DumpResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_configurator_configurator_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil -} - -func init() { - proto.RegisterType((*Config)(nil), "ligato.configurator.Config") - proto.RegisterType((*Notification)(nil), "ligato.configurator.Notification") - proto.RegisterType((*UpdateRequest)(nil), "ligato.configurator.UpdateRequest") - proto.RegisterType((*UpdateResponse)(nil), "ligato.configurator.UpdateResponse") - proto.RegisterType((*DeleteRequest)(nil), "ligato.configurator.DeleteRequest") - proto.RegisterType((*DeleteResponse)(nil), "ligato.configurator.DeleteResponse") - proto.RegisterType((*GetRequest)(nil), "ligato.configurator.GetRequest") - proto.RegisterType((*GetResponse)(nil), "ligato.configurator.GetResponse") - proto.RegisterType((*DumpRequest)(nil), "ligato.configurator.DumpRequest") - proto.RegisterType((*DumpResponse)(nil), "ligato.configurator.DumpResponse") - proto.RegisterType((*NotifyRequest)(nil), "ligato.configurator.NotifyRequest") - proto.RegisterType((*NotifyResponse)(nil), "ligato.configurator.NotifyResponse") -} - -func init() { - proto.RegisterFile("ligato/configurator/configurator.proto", fileDescriptor_11e3b38d9e240f4e) -} - -var fileDescriptor_11e3b38d9e240f4e = []byte{ - // 563 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0x4d, 0x6f, 0xd3, 0x40, - 0x10, 0x25, 0xa4, 0x0a, 0x65, 0x6c, 0xa7, 0x61, 0x8b, 0x50, 0x30, 0x12, 0x6d, 0x16, 0x09, 0x71, - 0x21, 0x46, 0x8d, 0x38, 0xf5, 0x00, 0x4a, 0x5d, 0xb5, 0xa8, 0x12, 0x12, 0xae, 0xb8, 0x70, 0x89, - 0x8c, 0xbd, 0x89, 0x2c, 0xb9, 0xde, 0xc5, 0x59, 0x5b, 0xe9, 0x2f, 0xe2, 0xce, 0x4f, 0xe0, 0x97, - 0x21, 0xef, 0x47, 0xb2, 0x8b, 0xec, 0xa8, 0x87, 0x44, 0xde, 0xb7, 0xef, 0xbd, 0x99, 0xf1, 0x3c, - 0x19, 0xde, 0xe6, 0xd9, 0x2a, 0xe6, 0x34, 0x48, 0x68, 0xb1, 0xcc, 0x56, 0x55, 0x19, 0x73, 0x5a, - 0x5a, 0x87, 0x29, 0x2b, 0x29, 0xa7, 0xe8, 0x58, 0xf2, 0xa6, 0xe6, 0x95, 0xff, 0x5c, 0x89, 0x6b, - 0xc6, 0x9a, 0x9f, 0xa4, 0xfa, 0x63, 0x85, 0xe6, 0x59, 0x51, 0x6d, 0xe4, 0xbf, 0xba, 0x79, 0xad, - 0x6e, 0x0a, 0xc2, 0xe3, 0x3c, 0xa7, 0xc9, 0xf6, 0x41, 0xde, 0xe3, 0xbf, 0x3d, 0x18, 0x5c, 0x88, - 0x02, 0xe8, 0x23, 0x40, 0xcd, 0xd8, 0x42, 0x96, 0x1b, 0xf7, 0x4e, 0x7b, 0xef, 0x9c, 0xb3, 0x17, - 0x53, 0xd5, 0x44, 0x53, 0x4b, 0xf2, 0xc2, 0x98, 0xc7, 0xd1, 0xd3, 0x9a, 0x31, 0x25, 0x3b, 0x07, - 0x57, 0x14, 0xd4, 0xc2, 0xc7, 0x42, 0x38, 0xd6, 0x42, 0xd9, 0x8c, 0x21, 0x75, 0x04, 0xa2, 0xc4, - 0x21, 0x1c, 0xe9, 0x86, 0xb4, 0xbe, 0x2f, 0xf4, 0xaf, 0xb4, 0x7e, 0xdb, 0xaf, 0x61, 0x31, 0xd4, - 0xa0, 0xc4, 0xf0, 0x9f, 0x1e, 0xb8, 0x5f, 0x29, 0xcf, 0x96, 0x59, 0x12, 0xf3, 0x8c, 0x16, 0xe8, - 0x12, 0x46, 0xcd, 0x28, 0x85, 0x81, 0xa9, 0x81, 0xc6, 0xe6, 0x40, 0xa6, 0xe6, 0xfa, 0x51, 0x74, - 0x54, 0x33, 0x66, 0xd9, 0xdc, 0x00, 0x92, 0xa3, 0x59, 0x46, 0x72, 0x40, 0xdf, 0x1e, 0xf0, 0x3f, - 0xab, 0x67, 0x02, 0x35, 0xc1, 0xf9, 0x10, 0x5c, 0xd3, 0x06, 0x13, 0xf0, 0xbe, 0xb3, 0x34, 0xe6, - 0x24, 0x22, 0xbf, 0x2a, 0xb2, 0xe6, 0x68, 0x06, 0x83, 0x4a, 0x00, 0xaa, 0xd5, 0xed, 0x2b, 0xb0, - 0xb2, 0x21, 0x47, 0x8e, 0x14, 0x15, 0x9d, 0x80, 0xb3, 0xac, 0xf2, 0x7c, 0x51, 0x92, 0xf5, 0x7d, - 0x91, 0x88, 0xde, 0x0e, 0x23, 0x68, 0xa0, 0x48, 0x20, 0x78, 0x04, 0x43, 0x5d, 0x66, 0xcd, 0x68, - 0xb1, 0x26, 0x38, 0x04, 0x2f, 0x24, 0x39, 0xb1, 0x0a, 0xa7, 0x02, 0x78, 0x50, 0x61, 0x49, 0x6d, - 0x7c, 0xb5, 0x8b, 0xf2, 0x75, 0x01, 0xae, 0x08, 0x57, 0xa6, 0x78, 0x0e, 0x8e, 0x38, 0xc9, 0xcb, - 0xa6, 0x86, 0x15, 0xac, 0xfd, 0x35, 0x24, 0x88, 0x3d, 0x70, 0xc2, 0xea, 0x8e, 0x69, 0xcb, 0x4f, - 0xe0, 0xca, 0xa3, 0xf2, 0x0c, 0xe0, 0x20, 0xad, 0xee, 0xd8, 0x43, 0x1c, 0x05, 0x11, 0x4f, 0xc0, - 0x13, 0x2b, 0xb9, 0xd7, 0x93, 0x8f, 0xa0, 0x9f, 0xa5, 0x1b, 0x61, 0xe0, 0x45, 0xcd, 0x23, 0x2e, - 0x61, 0xa8, 0x29, 0xaa, 0xca, 0x4b, 0x38, 0x2c, 0xc8, 0x86, 0x2f, 0x76, 0xc4, 0x27, 0xcd, 0xf9, - 0x4b, 0xba, 0x41, 0x97, 0xf6, 0x4a, 0x55, 0x32, 0x26, 0xad, 0x8d, 0x98, 0x59, 0x88, 0x2c, 0xd9, - 0xd9, 0xef, 0x3e, 0x1c, 0x5f, 0x18, 0xdc, 0x5b, 0x52, 0xd6, 0x59, 0x42, 0xd0, 0x35, 0xf4, 0xaf, - 0x08, 0x47, 0x27, 0xad, 0x7e, 0xbb, 0x57, 0xed, 0x9f, 0x76, 0x13, 0xd4, 0x0c, 0xdf, 0x60, 0x20, - 0x43, 0x80, 0x70, 0x2b, 0xd7, 0x0a, 0xa2, 0xff, 0x66, 0x2f, 0x67, 0x67, 0x29, 0xf7, 0xdf, 0x61, - 0x69, 0x45, 0xac, 0xc3, 0xd2, 0x0e, 0x10, 0xba, 0x81, 0x83, 0x66, 0xbf, 0xa8, 0x7d, 0x1e, 0x23, - 0x09, 0xfe, 0x64, 0x0f, 0x43, 0x99, 0xdd, 0xc2, 0x40, 0x2e, 0xb2, 0xa3, 0x3f, 0x2b, 0x08, 0x1d, - 0xfd, 0xd9, 0x49, 0xf8, 0xd0, 0x9b, 0xcf, 0x7f, 0x7c, 0x5e, 0x51, 0x4d, 0xcd, 0xc4, 0x57, 0xf8, - 0x7d, 0xbc, 0x22, 0x05, 0x0f, 0xea, 0x59, 0x20, 0x3e, 0xa8, 0x41, 0xcb, 0xc7, 0xfd, 0xdc, 0x3c, - 0xfc, 0x1c, 0x08, 0xde, 0xec, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6c, 0xa4, 0x9f, 0x81, 0x07, - 0x06, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// ConfiguratorServiceClient is the client API for ConfiguratorService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ConfiguratorServiceClient interface { - // Get is used for listing desired config. - Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) - // Update is used for updating desired config. - Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) - // Delete is used for deleting desired config. - Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) - // Dump is used for dumping running config. - Dump(ctx context.Context, in *DumpRequest, opts ...grpc.CallOption) (*DumpResponse, error) - // Notify is used for subscribing to notifications. - Notify(ctx context.Context, in *NotifyRequest, opts ...grpc.CallOption) (ConfiguratorService_NotifyClient, error) } -type configuratorServiceClient struct { - cc grpc.ClientConnInterface +func (x *DumpResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func NewConfiguratorServiceClient(cc grpc.ClientConnInterface) ConfiguratorServiceClient { - return &configuratorServiceClient{cc} -} +func (*DumpResponse) ProtoMessage() {} -func (c *configuratorServiceClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { - out := new(GetResponse) - err := c.cc.Invoke(ctx, "/ligato.configurator.ConfiguratorService/Get", in, out, opts...) - if err != nil { - return nil, err +func (x *DumpResponse) ProtoReflect() protoreflect.Message { + mi := &file_ligato_configurator_configurator_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil + return mi.MessageOf(x) } -func (c *configuratorServiceClient) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) { - out := new(UpdateResponse) - err := c.cc.Invoke(ctx, "/ligato.configurator.ConfiguratorService/Update", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// Deprecated: Use DumpResponse.ProtoReflect.Descriptor instead. +func (*DumpResponse) Descriptor() ([]byte, []int) { + return file_ligato_configurator_configurator_proto_rawDescGZIP(), []int{9} } -func (c *configuratorServiceClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { - out := new(DeleteResponse) - err := c.cc.Invoke(ctx, "/ligato.configurator.ConfiguratorService/Delete", in, out, opts...) - if err != nil { - return nil, err +func (x *DumpResponse) GetDump() *Config { + if x != nil { + return x.Dump } - return out, nil + return nil } -func (c *configuratorServiceClient) Dump(ctx context.Context, in *DumpRequest, opts ...grpc.CallOption) (*DumpResponse, error) { - out := new(DumpResponse) - err := c.cc.Invoke(ctx, "/ligato.configurator.ConfiguratorService/Dump", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type NotifyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Idx uint32 `protobuf:"varint,1,opt,name=idx,proto3" json:"idx,omitempty"` } -func (c *configuratorServiceClient) Notify(ctx context.Context, in *NotifyRequest, opts ...grpc.CallOption) (ConfiguratorService_NotifyClient, error) { - stream, err := c.cc.NewStream(ctx, &_ConfiguratorService_serviceDesc.Streams[0], "/ligato.configurator.ConfiguratorService/Notify", opts...) - if err != nil { - return nil, err +func (x *NotifyRequest) Reset() { + *x = NotifyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_configurator_configurator_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - x := &configuratorServiceNotifyClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil } -type ConfiguratorService_NotifyClient interface { - Recv() (*NotifyResponse, error) - grpc.ClientStream +func (x *NotifyRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type configuratorServiceNotifyClient struct { - grpc.ClientStream -} +func (*NotifyRequest) ProtoMessage() {} -func (x *configuratorServiceNotifyClient) Recv() (*NotifyResponse, error) { - m := new(NotifyResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *NotifyRequest) ProtoReflect() protoreflect.Message { + mi := &file_ligato_configurator_configurator_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return m, nil + return mi.MessageOf(x) } -// ConfiguratorServiceServer is the server API for ConfiguratorService service. -type ConfiguratorServiceServer interface { - // Get is used for listing desired config. - Get(context.Context, *GetRequest) (*GetResponse, error) - // Update is used for updating desired config. - Update(context.Context, *UpdateRequest) (*UpdateResponse, error) - // Delete is used for deleting desired config. - Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) - // Dump is used for dumping running config. - Dump(context.Context, *DumpRequest) (*DumpResponse, error) - // Notify is used for subscribing to notifications. - Notify(*NotifyRequest, ConfiguratorService_NotifyServer) error +// Deprecated: Use NotifyRequest.ProtoReflect.Descriptor instead. +func (*NotifyRequest) Descriptor() ([]byte, []int) { + return file_ligato_configurator_configurator_proto_rawDescGZIP(), []int{10} } -// UnimplementedConfiguratorServiceServer can be embedded to have forward compatible implementations. -type UnimplementedConfiguratorServiceServer struct { +func (x *NotifyRequest) GetIdx() uint32 { + if x != nil { + return x.Idx + } + return 0 } -func (*UnimplementedConfiguratorServiceServer) Get(ctx context.Context, req *GetRequest) (*GetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") -} -func (*UnimplementedConfiguratorServiceServer) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") -} -func (*UnimplementedConfiguratorServiceServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") -} -func (*UnimplementedConfiguratorServiceServer) Dump(ctx context.Context, req *DumpRequest) (*DumpResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Dump not implemented") -} -func (*UnimplementedConfiguratorServiceServer) Notify(req *NotifyRequest, srv ConfiguratorService_NotifyServer) error { - return status.Errorf(codes.Unimplemented, "method Notify not implemented") -} +type NotifyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func RegisterConfiguratorServiceServer(s *grpc.Server, srv ConfiguratorServiceServer) { - s.RegisterService(&_ConfiguratorService_serviceDesc, srv) + // Index of following notification + NextIdx uint32 `protobuf:"varint,1,opt,name=next_idx,json=nextIdx,proto3" json:"next_idx,omitempty"` + // Notification data + Notification *Notification `protobuf:"bytes,2,opt,name=notification,proto3" json:"notification,omitempty"` } -func _ConfiguratorService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ConfiguratorServiceServer).Get(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ligato.configurator.ConfiguratorService/Get", +func (x *NotifyResponse) Reset() { + *x = NotifyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_configurator_configurator_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ConfiguratorServiceServer).Get(ctx, req.(*GetRequest)) - } - return interceptor(ctx, in, info, handler) } -func _ConfiguratorService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ConfiguratorServiceServer).Update(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ligato.configurator.ConfiguratorService/Update", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ConfiguratorServiceServer).Update(ctx, req.(*UpdateRequest)) - } - return interceptor(ctx, in, info, handler) +func (x *NotifyResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func _ConfiguratorService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ConfiguratorServiceServer).Delete(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ligato.configurator.ConfiguratorService/Delete", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ConfiguratorServiceServer).Delete(ctx, req.(*DeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} +func (*NotifyResponse) ProtoMessage() {} -func _ConfiguratorService_Dump_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DumpRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ConfiguratorServiceServer).Dump(ctx, in) +func (x *NotifyResponse) ProtoReflect() protoreflect.Message { + mi := &file_ligato_configurator_configurator_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ligato.configurator.ConfiguratorService/Dump", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ConfiguratorServiceServer).Dump(ctx, req.(*DumpRequest)) - } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _ConfiguratorService_Notify_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(NotifyRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ConfiguratorServiceServer).Notify(m, &configuratorServiceNotifyServer{stream}) +// Deprecated: Use NotifyResponse.ProtoReflect.Descriptor instead. +func (*NotifyResponse) Descriptor() ([]byte, []int) { + return file_ligato_configurator_configurator_proto_rawDescGZIP(), []int{11} } -type ConfiguratorService_NotifyServer interface { - Send(*NotifyResponse) error - grpc.ServerStream +func (x *NotifyResponse) GetNextIdx() uint32 { + if x != nil { + return x.NextIdx + } + return 0 } -type configuratorServiceNotifyServer struct { - grpc.ServerStream +func (x *NotifyResponse) GetNotification() *Notification { + if x != nil { + return x.Notification + } + return nil } -func (x *configuratorServiceNotifyServer) Send(m *NotifyResponse) error { - return x.ServerStream.SendMsg(m) -} +var File_ligato_configurator_configurator_proto protoreflect.FileDescriptor + +var file_ligato_configurator_configurator_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x14, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x76, 0x70, 0x70, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x6e, 0x75, + 0x78, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6e, 0x65, 0x74, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x2f, 0x6e, + 0x65, 0x74, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc2, 0x01, + 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x35, 0x0a, 0x0a, 0x76, 0x70, 0x70, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x44, 0x61, 0x74, 0x61, 0x52, 0x09, 0x76, 0x70, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, + 0x3b, 0x0a, 0x0c, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, + 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x44, 0x61, 0x74, 0x61, 0x52, + 0x0b, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x44, 0x0a, 0x0f, + 0x6e, 0x65, 0x74, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6e, + 0x65, 0x74, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x44, 0x61, + 0x74, 0x61, 0x52, 0x0e, 0x6e, 0x65, 0x74, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x22, 0xb2, 0x01, 0x0a, 0x0c, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x45, 0x0a, 0x10, 0x76, 0x70, 0x70, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0f, 0x76, 0x70, 0x70, 0x4e, 0x6f, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x12, 0x6c, 0x69, + 0x6e, 0x75, 0x78, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, + 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x11, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x4e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0e, 0x0a, 0x0c, 0x6e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x65, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x06, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, + 0x0b, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x79, 0x6e, 0x63, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0a, 0x66, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x79, 0x6e, 0x63, 0x22, 0x10, + 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x44, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x33, 0x0a, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, + 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x22, 0x10, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0c, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x42, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x0d, 0x0a, 0x0b, 0x44, 0x75, + 0x6d, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x3f, 0x0a, 0x0c, 0x44, 0x75, 0x6d, + 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x04, 0x64, 0x75, 0x6d, + 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x52, 0x04, 0x64, 0x75, 0x6d, 0x70, 0x22, 0x21, 0x0a, 0x0d, 0x4e, 0x6f, + 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, + 0x64, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x69, 0x64, 0x78, 0x22, 0x72, 0x0a, + 0x0e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x19, 0x0a, 0x08, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x69, 0x64, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x07, 0x6e, 0x65, 0x78, 0x74, 0x49, 0x64, 0x78, 0x12, 0x45, 0x0a, 0x0c, 0x6e, 0x6f, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x21, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x32, 0xa7, 0x03, 0x0a, 0x13, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x03, 0x47, 0x65, 0x74, + 0x12, 0x1f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x20, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x22, 0x2e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x23, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x12, 0x22, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x04, 0x44, 0x75, 0x6d, + 0x70, 0x12, 0x20, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x44, 0x75, 0x6d, 0x70, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x44, 0x75, 0x6d, 0x70, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x06, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, + 0x12, 0x22, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, 0x42, 0x5a, 0x40, 0x67, + 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x3b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_configurator_configurator_proto_rawDescOnce sync.Once + file_ligato_configurator_configurator_proto_rawDescData = file_ligato_configurator_configurator_proto_rawDesc +) -var _ConfiguratorService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "ligato.configurator.ConfiguratorService", - HandlerType: (*ConfiguratorServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Get", - Handler: _ConfiguratorService_Get_Handler, - }, - { - MethodName: "Update", - Handler: _ConfiguratorService_Update_Handler, - }, - { - MethodName: "Delete", - Handler: _ConfiguratorService_Delete_Handler, - }, - { - MethodName: "Dump", - Handler: _ConfiguratorService_Dump_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Notify", - Handler: _ConfiguratorService_Notify_Handler, - ServerStreams: true, +func file_ligato_configurator_configurator_proto_rawDescGZIP() []byte { + file_ligato_configurator_configurator_proto_rawDescOnce.Do(func() { + file_ligato_configurator_configurator_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_configurator_configurator_proto_rawDescData) + }) + return file_ligato_configurator_configurator_proto_rawDescData +} + +var file_ligato_configurator_configurator_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_ligato_configurator_configurator_proto_goTypes = []interface{}{ + (*Config)(nil), // 0: ligato.configurator.Config + (*Notification)(nil), // 1: ligato.configurator.Notification + (*UpdateRequest)(nil), // 2: ligato.configurator.UpdateRequest + (*UpdateResponse)(nil), // 3: ligato.configurator.UpdateResponse + (*DeleteRequest)(nil), // 4: ligato.configurator.DeleteRequest + (*DeleteResponse)(nil), // 5: ligato.configurator.DeleteResponse + (*GetRequest)(nil), // 6: ligato.configurator.GetRequest + (*GetResponse)(nil), // 7: ligato.configurator.GetResponse + (*DumpRequest)(nil), // 8: ligato.configurator.DumpRequest + (*DumpResponse)(nil), // 9: ligato.configurator.DumpResponse + (*NotifyRequest)(nil), // 10: ligato.configurator.NotifyRequest + (*NotifyResponse)(nil), // 11: ligato.configurator.NotifyResponse + (*vpp.ConfigData)(nil), // 12: ligato.vpp.ConfigData + (*linux.ConfigData)(nil), // 13: ligato.linux.ConfigData + (*netalloc.ConfigData)(nil), // 14: ligato.netalloc.ConfigData + (*vpp.Notification)(nil), // 15: ligato.vpp.Notification + (*linux.Notification)(nil), // 16: ligato.linux.Notification +} +var file_ligato_configurator_configurator_proto_depIdxs = []int32{ + 12, // 0: ligato.configurator.Config.vpp_config:type_name -> ligato.vpp.ConfigData + 13, // 1: ligato.configurator.Config.linux_config:type_name -> ligato.linux.ConfigData + 14, // 2: ligato.configurator.Config.netalloc_config:type_name -> ligato.netalloc.ConfigData + 15, // 3: ligato.configurator.Notification.vpp_notification:type_name -> ligato.vpp.Notification + 16, // 4: ligato.configurator.Notification.linux_notification:type_name -> ligato.linux.Notification + 0, // 5: ligato.configurator.UpdateRequest.update:type_name -> ligato.configurator.Config + 0, // 6: ligato.configurator.DeleteRequest.delete:type_name -> ligato.configurator.Config + 0, // 7: ligato.configurator.GetResponse.config:type_name -> ligato.configurator.Config + 0, // 8: ligato.configurator.DumpResponse.dump:type_name -> ligato.configurator.Config + 1, // 9: ligato.configurator.NotifyResponse.notification:type_name -> ligato.configurator.Notification + 6, // 10: ligato.configurator.ConfiguratorService.Get:input_type -> ligato.configurator.GetRequest + 2, // 11: ligato.configurator.ConfiguratorService.Update:input_type -> ligato.configurator.UpdateRequest + 4, // 12: ligato.configurator.ConfiguratorService.Delete:input_type -> ligato.configurator.DeleteRequest + 8, // 13: ligato.configurator.ConfiguratorService.Dump:input_type -> ligato.configurator.DumpRequest + 10, // 14: ligato.configurator.ConfiguratorService.Notify:input_type -> ligato.configurator.NotifyRequest + 7, // 15: ligato.configurator.ConfiguratorService.Get:output_type -> ligato.configurator.GetResponse + 3, // 16: ligato.configurator.ConfiguratorService.Update:output_type -> ligato.configurator.UpdateResponse + 5, // 17: ligato.configurator.ConfiguratorService.Delete:output_type -> ligato.configurator.DeleteResponse + 9, // 18: ligato.configurator.ConfiguratorService.Dump:output_type -> ligato.configurator.DumpResponse + 11, // 19: ligato.configurator.ConfiguratorService.Notify:output_type -> ligato.configurator.NotifyResponse + 15, // [15:20] is the sub-list for method output_type + 10, // [10:15] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name +} + +func init() { file_ligato_configurator_configurator_proto_init() } +func file_ligato_configurator_configurator_proto_init() { + if File_ligato_configurator_configurator_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_configurator_configurator_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Config); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_configurator_configurator_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Notification); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_configurator_configurator_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_configurator_configurator_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_configurator_configurator_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_configurator_configurator_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_configurator_configurator_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_configurator_configurator_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_configurator_configurator_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DumpRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_configurator_configurator_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DumpResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_configurator_configurator_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_configurator_configurator_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_ligato_configurator_configurator_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*Notification_VppNotification)(nil), + (*Notification_LinuxNotification)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_configurator_configurator_proto_rawDesc, + NumEnums: 0, + NumMessages: 12, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "ligato/configurator/configurator.proto", + GoTypes: file_ligato_configurator_configurator_proto_goTypes, + DependencyIndexes: file_ligato_configurator_configurator_proto_depIdxs, + MessageInfos: file_ligato_configurator_configurator_proto_msgTypes, + }.Build() + File_ligato_configurator_configurator_proto = out.File + file_ligato_configurator_configurator_proto_rawDesc = nil + file_ligato_configurator_configurator_proto_goTypes = nil + file_ligato_configurator_configurator_proto_depIdxs = nil } diff --git a/proto/ligato/configurator/configurator_grpc.pb.go b/proto/ligato/configurator/configurator_grpc.pb.go new file mode 100644 index 0000000000..4f67a6f433 --- /dev/null +++ b/proto/ligato/configurator/configurator_grpc.pb.go @@ -0,0 +1,272 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package configurator + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// ConfiguratorServiceClient is the client API for ConfiguratorService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ConfiguratorServiceClient interface { + // Get is used for listing desired config. + Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) + // Update is used for updating desired config. + Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) + // Delete is used for deleting desired config. + Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) + // Dump is used for dumping running config. + Dump(ctx context.Context, in *DumpRequest, opts ...grpc.CallOption) (*DumpResponse, error) + // Notify is used for subscribing to notifications. + Notify(ctx context.Context, in *NotifyRequest, opts ...grpc.CallOption) (ConfiguratorService_NotifyClient, error) +} + +type configuratorServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewConfiguratorServiceClient(cc grpc.ClientConnInterface) ConfiguratorServiceClient { + return &configuratorServiceClient{cc} +} + +func (c *configuratorServiceClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { + out := new(GetResponse) + err := c.cc.Invoke(ctx, "/ligato.configurator.ConfiguratorService/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *configuratorServiceClient) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) { + out := new(UpdateResponse) + err := c.cc.Invoke(ctx, "/ligato.configurator.ConfiguratorService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *configuratorServiceClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { + out := new(DeleteResponse) + err := c.cc.Invoke(ctx, "/ligato.configurator.ConfiguratorService/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *configuratorServiceClient) Dump(ctx context.Context, in *DumpRequest, opts ...grpc.CallOption) (*DumpResponse, error) { + out := new(DumpResponse) + err := c.cc.Invoke(ctx, "/ligato.configurator.ConfiguratorService/Dump", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *configuratorServiceClient) Notify(ctx context.Context, in *NotifyRequest, opts ...grpc.CallOption) (ConfiguratorService_NotifyClient, error) { + stream, err := c.cc.NewStream(ctx, &_ConfiguratorService_serviceDesc.Streams[0], "/ligato.configurator.ConfiguratorService/Notify", opts...) + if err != nil { + return nil, err + } + x := &configuratorServiceNotifyClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ConfiguratorService_NotifyClient interface { + Recv() (*NotifyResponse, error) + grpc.ClientStream +} + +type configuratorServiceNotifyClient struct { + grpc.ClientStream +} + +func (x *configuratorServiceNotifyClient) Recv() (*NotifyResponse, error) { + m := new(NotifyResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// ConfiguratorServiceServer is the server API for ConfiguratorService service. +// All implementations must embed UnimplementedConfiguratorServiceServer +// for forward compatibility +type ConfiguratorServiceServer interface { + // Get is used for listing desired config. + Get(context.Context, *GetRequest) (*GetResponse, error) + // Update is used for updating desired config. + Update(context.Context, *UpdateRequest) (*UpdateResponse, error) + // Delete is used for deleting desired config. + Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) + // Dump is used for dumping running config. + Dump(context.Context, *DumpRequest) (*DumpResponse, error) + // Notify is used for subscribing to notifications. + Notify(*NotifyRequest, ConfiguratorService_NotifyServer) error + mustEmbedUnimplementedConfiguratorServiceServer() +} + +// UnimplementedConfiguratorServiceServer must be embedded to have forward compatible implementations. +type UnimplementedConfiguratorServiceServer struct { +} + +func (*UnimplementedConfiguratorServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (*UnimplementedConfiguratorServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (*UnimplementedConfiguratorServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (*UnimplementedConfiguratorServiceServer) Dump(context.Context, *DumpRequest) (*DumpResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Dump not implemented") +} +func (*UnimplementedConfiguratorServiceServer) Notify(*NotifyRequest, ConfiguratorService_NotifyServer) error { + return status.Errorf(codes.Unimplemented, "method Notify not implemented") +} +func (*UnimplementedConfiguratorServiceServer) mustEmbedUnimplementedConfiguratorServiceServer() {} + +func RegisterConfiguratorServiceServer(s *grpc.Server, srv ConfiguratorServiceServer) { + s.RegisterService(&_ConfiguratorService_serviceDesc, srv) +} + +func _ConfiguratorService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ConfiguratorServiceServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ligato.configurator.ConfiguratorService/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ConfiguratorServiceServer).Get(ctx, req.(*GetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ConfiguratorService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ConfiguratorServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ligato.configurator.ConfiguratorService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ConfiguratorServiceServer).Update(ctx, req.(*UpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ConfiguratorService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ConfiguratorServiceServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ligato.configurator.ConfiguratorService/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ConfiguratorServiceServer).Delete(ctx, req.(*DeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ConfiguratorService_Dump_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DumpRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ConfiguratorServiceServer).Dump(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ligato.configurator.ConfiguratorService/Dump", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ConfiguratorServiceServer).Dump(ctx, req.(*DumpRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ConfiguratorService_Notify_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(NotifyRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ConfiguratorServiceServer).Notify(m, &configuratorServiceNotifyServer{stream}) +} + +type ConfiguratorService_NotifyServer interface { + Send(*NotifyResponse) error + grpc.ServerStream +} + +type configuratorServiceNotifyServer struct { + grpc.ServerStream +} + +func (x *configuratorServiceNotifyServer) Send(m *NotifyResponse) error { + return x.ServerStream.SendMsg(m) +} + +var _ConfiguratorService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "ligato.configurator.ConfiguratorService", + HandlerType: (*ConfiguratorServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Get", + Handler: _ConfiguratorService_Get_Handler, + }, + { + MethodName: "Update", + Handler: _ConfiguratorService_Update_Handler, + }, + { + MethodName: "Delete", + Handler: _ConfiguratorService_Delete_Handler, + }, + { + MethodName: "Dump", + Handler: _ConfiguratorService_Dump_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Notify", + Handler: _ConfiguratorService_Notify_Handler, + ServerStreams: true, + }, + }, + Metadata: "ligato/configurator/configurator.proto", +} diff --git a/proto/ligato/configurator/statspoller.pb.go b/proto/ligato/configurator/statspoller.pb.go index f88dfcd601..79dd05e4b6 100644 --- a/proto/ligato/configurator/statspoller.pb.go +++ b/proto/ligato/configurator/statspoller.pb.go @@ -1,75 +1,74 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/configurator/statspoller.proto package configurator import ( - context "context" - fmt "fmt" proto "github.com/golang/protobuf/proto" vpp "go.ligato.io/vpp-agent/v3/proto/ligato/vpp" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 // Stats defines stats data returned by StatsPollerService. type Stats struct { - // Types that are valid to be assigned to Stats: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Stats: // *Stats_VppStats - Stats isStats_Stats `protobuf_oneof:"stats"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Stats isStats_Stats `protobuf_oneof:"stats"` } -func (m *Stats) Reset() { *m = Stats{} } -func (m *Stats) String() string { return proto.CompactTextString(m) } -func (*Stats) ProtoMessage() {} -func (*Stats) Descriptor() ([]byte, []int) { - return fileDescriptor_a59f0470c39b77d1, []int{0} +func (x *Stats) Reset() { + *x = Stats{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_configurator_statspoller_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Stats) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Stats.Unmarshal(m, b) -} -func (m *Stats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Stats.Marshal(b, m, deterministic) -} -func (m *Stats) XXX_Merge(src proto.Message) { - xxx_messageInfo_Stats.Merge(m, src) -} -func (m *Stats) XXX_Size() int { - return xxx_messageInfo_Stats.Size(m) -} -func (m *Stats) XXX_DiscardUnknown() { - xxx_messageInfo_Stats.DiscardUnknown(m) +func (x *Stats) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Stats proto.InternalMessageInfo +func (*Stats) ProtoMessage() {} -type isStats_Stats interface { - isStats_Stats() +func (x *Stats) ProtoReflect() protoreflect.Message { + mi := &file_ligato_configurator_statspoller_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type Stats_VppStats struct { - VppStats *vpp.Stats `protobuf:"bytes,1,opt,name=vpp_stats,json=vppStats,proto3,oneof"` +// Deprecated: Use Stats.ProtoReflect.Descriptor instead. +func (*Stats) Descriptor() ([]byte, []int) { + return file_ligato_configurator_statspoller_proto_rawDescGZIP(), []int{0} } -func (*Stats_VppStats) isStats_Stats() {} - func (m *Stats) GetStats() isStats_Stats { if m != nil { return m.Stats @@ -77,258 +76,270 @@ func (m *Stats) GetStats() isStats_Stats { return nil } -func (m *Stats) GetVppStats() *vpp.Stats { - if x, ok := m.GetStats().(*Stats_VppStats); ok { +func (x *Stats) GetVppStats() *vpp.Stats { + if x, ok := x.GetStats().(*Stats_VppStats); ok { return x.VppStats } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Stats) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Stats_VppStats)(nil), - } +type isStats_Stats interface { + isStats_Stats() +} + +type Stats_VppStats struct { + VppStats *vpp.Stats `protobuf:"bytes,1,opt,name=vpp_stats,json=vppStats,proto3,oneof"` } +func (*Stats_VppStats) isStats_Stats() {} + type PollStatsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // PeriodSec defines polling period (in seconds). Set to zero to // return just single polling. PeriodSec uint32 `protobuf:"varint,1,opt,name=period_sec,json=periodSec,proto3" json:"period_sec,omitempty"` // NumPolls defines number of pollings. Set to non-zero number to // stop the polling after specified number of pollings is reached. - NumPolls uint32 `protobuf:"varint,2,opt,name=num_polls,json=numPolls,proto3" json:"num_polls,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + NumPolls uint32 `protobuf:"varint,2,opt,name=num_polls,json=numPolls,proto3" json:"num_polls,omitempty"` } -func (m *PollStatsRequest) Reset() { *m = PollStatsRequest{} } -func (m *PollStatsRequest) String() string { return proto.CompactTextString(m) } -func (*PollStatsRequest) ProtoMessage() {} -func (*PollStatsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a59f0470c39b77d1, []int{1} +func (x *PollStatsRequest) Reset() { + *x = PollStatsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_configurator_statspoller_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PollStatsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PollStatsRequest.Unmarshal(m, b) -} -func (m *PollStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PollStatsRequest.Marshal(b, m, deterministic) +func (x *PollStatsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PollStatsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PollStatsRequest.Merge(m, src) -} -func (m *PollStatsRequest) XXX_Size() int { - return xxx_messageInfo_PollStatsRequest.Size(m) -} -func (m *PollStatsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PollStatsRequest.DiscardUnknown(m) + +func (*PollStatsRequest) ProtoMessage() {} + +func (x *PollStatsRequest) ProtoReflect() protoreflect.Message { + mi := &file_ligato_configurator_statspoller_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PollStatsRequest proto.InternalMessageInfo +// Deprecated: Use PollStatsRequest.ProtoReflect.Descriptor instead. +func (*PollStatsRequest) Descriptor() ([]byte, []int) { + return file_ligato_configurator_statspoller_proto_rawDescGZIP(), []int{1} +} -func (m *PollStatsRequest) GetPeriodSec() uint32 { - if m != nil { - return m.PeriodSec +func (x *PollStatsRequest) GetPeriodSec() uint32 { + if x != nil { + return x.PeriodSec } return 0 } -func (m *PollStatsRequest) GetNumPolls() uint32 { - if m != nil { - return m.NumPolls +func (x *PollStatsRequest) GetNumPolls() uint32 { + if x != nil { + return x.NumPolls } return 0 } type PollStatsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // PollSeq defines the sequence number of this polling response. PollSeq uint32 `protobuf:"varint,1,opt,name=poll_seq,json=pollSeq,proto3" json:"poll_seq,omitempty"` // Stats contains polled stats data. - Stats *Stats `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PollStatsResponse) Reset() { *m = PollStatsResponse{} } -func (m *PollStatsResponse) String() string { return proto.CompactTextString(m) } -func (*PollStatsResponse) ProtoMessage() {} -func (*PollStatsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a59f0470c39b77d1, []int{2} -} - -func (m *PollStatsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PollStatsResponse.Unmarshal(m, b) -} -func (m *PollStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PollStatsResponse.Marshal(b, m, deterministic) -} -func (m *PollStatsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PollStatsResponse.Merge(m, src) -} -func (m *PollStatsResponse) XXX_Size() int { - return xxx_messageInfo_PollStatsResponse.Size(m) -} -func (m *PollStatsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PollStatsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_PollStatsResponse proto.InternalMessageInfo - -func (m *PollStatsResponse) GetPollSeq() uint32 { - if m != nil { - return m.PollSeq - } - return 0 + Stats *Stats `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"` } -func (m *PollStatsResponse) GetStats() *Stats { - if m != nil { - return m.Stats +func (x *PollStatsResponse) Reset() { + *x = PollStatsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_configurator_statspoller_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil -} - -func init() { - proto.RegisterType((*Stats)(nil), "ligato.configurator.Stats") - proto.RegisterType((*PollStatsRequest)(nil), "ligato.configurator.PollStatsRequest") - proto.RegisterType((*PollStatsResponse)(nil), "ligato.configurator.PollStatsResponse") -} - -func init() { - proto.RegisterFile("ligato/configurator/statspoller.proto", fileDescriptor_a59f0470c39b77d1) -} - -var fileDescriptor_a59f0470c39b77d1 = []byte{ - // 297 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xc1, 0x4b, 0x84, 0x40, - 0x14, 0x87, 0x77, 0x83, 0x6d, 0xd7, 0xb7, 0x04, 0xed, 0xd4, 0x61, 0x33, 0x82, 0x10, 0x36, 0xba, - 0xa4, 0xe2, 0x1e, 0xbb, 0x84, 0xa7, 0x4e, 0xb1, 0xe8, 0xad, 0x43, 0x66, 0xf6, 0x12, 0xc1, 0x75, - 0xc6, 0x99, 0xd1, 0xbf, 0x3f, 0xe6, 0x8d, 0x85, 0x84, 0xd0, 0x41, 0xf0, 0x8d, 0xdf, 0xfb, 0xfc, - 0xbd, 0x79, 0xb0, 0xab, 0xab, 0x32, 0xd7, 0x3c, 0x28, 0x78, 0xf3, 0x55, 0x95, 0x9d, 0xcc, 0x35, - 0x97, 0x81, 0xd2, 0xb9, 0x56, 0x82, 0xd7, 0x35, 0x4a, 0x5f, 0x48, 0xae, 0x39, 0xbb, 0xb0, 0x98, - 0x3f, 0xc6, 0xdc, 0xcb, 0xa1, 0xb7, 0x17, 0xc2, 0x3c, 0x16, 0xf5, 0x62, 0x58, 0xa4, 0xa6, 0x9f, - 0x85, 0xe0, 0xf4, 0x42, 0x64, 0x24, 0xdb, 0xce, 0x6f, 0xe7, 0xf7, 0xeb, 0x68, 0xe3, 0x0f, 0x1e, - 0x83, 0x13, 0xf5, 0x3c, 0x4b, 0x56, 0xbd, 0x10, 0xf4, 0x1e, 0x2f, 0x61, 0x41, 0xb4, 0xf7, 0x02, - 0xe7, 0x07, 0x5e, 0xd7, 0x74, 0x9a, 0x60, 0xdb, 0xa1, 0xd2, 0xec, 0x06, 0x40, 0xa0, 0xac, 0xf8, - 0x67, 0xa6, 0xb0, 0x20, 0xdf, 0x59, 0xe2, 0xd8, 0x93, 0x14, 0x0b, 0x76, 0x0d, 0x4e, 0xd3, 0x1d, - 0x33, 0x93, 0x5a, 0x6d, 0x4f, 0xe8, 0xeb, 0xaa, 0xe9, 0x8e, 0x46, 0xa3, 0xbc, 0x77, 0xd8, 0x8c, - 0x7c, 0x4a, 0xf0, 0x46, 0x21, 0xbb, 0x82, 0x95, 0xa1, 0x33, 0x85, 0xed, 0xa0, 0x5b, 0x9a, 0x3a, - 0xc5, 0x96, 0x85, 0x43, 0x10, 0x12, 0xad, 0x23, 0xd7, 0x9f, 0x18, 0xdf, 0xe6, 0x4f, 0x2c, 0x18, - 0x69, 0x60, 0x54, 0x1f, 0xe8, 0xd6, 0x52, 0x94, 0x7d, 0x55, 0x20, 0x7b, 0x03, 0xe7, 0xf7, 0xbf, - 0x6c, 0x37, 0x69, 0xf9, 0x3b, 0xa7, 0x7b, 0xf7, 0x1f, 0x66, 0xe3, 0x7b, 0xb3, 0x70, 0x1e, 0xc7, - 0xaf, 0x4f, 0x25, 0xff, 0xe1, 0x2b, 0xda, 0xc4, 0x43, 0x5e, 0x62, 0xa3, 0x83, 0x7e, 0x1f, 0xd0, - 0x3a, 0x82, 0x89, 0xfd, 0x3e, 0x8e, 0x8b, 0x8f, 0x53, 0xe2, 0xf6, 0xdf, 0x01, 0x00, 0x00, 0xff, - 0xff, 0xb2, 0x45, 0x53, 0x57, 0x0a, 0x02, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// StatsPollerServiceClient is the client API for StatsPollerService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type StatsPollerServiceClient interface { - // PollStats is used for polling stats with specific period and number of pollings. - PollStats(ctx context.Context, in *PollStatsRequest, opts ...grpc.CallOption) (StatsPollerService_PollStatsClient, error) } -type statsPollerServiceClient struct { - cc grpc.ClientConnInterface +func (x *PollStatsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func NewStatsPollerServiceClient(cc grpc.ClientConnInterface) StatsPollerServiceClient { - return &statsPollerServiceClient{cc} -} +func (*PollStatsResponse) ProtoMessage() {} -func (c *statsPollerServiceClient) PollStats(ctx context.Context, in *PollStatsRequest, opts ...grpc.CallOption) (StatsPollerService_PollStatsClient, error) { - stream, err := c.cc.NewStream(ctx, &_StatsPollerService_serviceDesc.Streams[0], "/ligato.configurator.StatsPollerService/PollStats", opts...) - if err != nil { - return nil, err - } - x := &statsPollerServicePollStatsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *PollStatsResponse) ProtoReflect() protoreflect.Message { + mi := &file_ligato_configurator_statspoller_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return x, nil + return mi.MessageOf(x) } -type StatsPollerService_PollStatsClient interface { - Recv() (*PollStatsResponse, error) - grpc.ClientStream -} - -type statsPollerServicePollStatsClient struct { - grpc.ClientStream +// Deprecated: Use PollStatsResponse.ProtoReflect.Descriptor instead. +func (*PollStatsResponse) Descriptor() ([]byte, []int) { + return file_ligato_configurator_statspoller_proto_rawDescGZIP(), []int{2} } -func (x *statsPollerServicePollStatsClient) Recv() (*PollStatsResponse, error) { - m := new(PollStatsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *PollStatsResponse) GetPollSeq() uint32 { + if x != nil { + return x.PollSeq } - return m, nil -} - -// StatsPollerServiceServer is the server API for StatsPollerService service. -type StatsPollerServiceServer interface { - // PollStats is used for polling stats with specific period and number of pollings. - PollStats(*PollStatsRequest, StatsPollerService_PollStatsServer) error -} - -// UnimplementedStatsPollerServiceServer can be embedded to have forward compatible implementations. -type UnimplementedStatsPollerServiceServer struct { -} - -func (*UnimplementedStatsPollerServiceServer) PollStats(req *PollStatsRequest, srv StatsPollerService_PollStatsServer) error { - return status.Errorf(codes.Unimplemented, "method PollStats not implemented") -} - -func RegisterStatsPollerServiceServer(s *grpc.Server, srv StatsPollerServiceServer) { - s.RegisterService(&_StatsPollerService_serviceDesc, srv) + return 0 } -func _StatsPollerService_PollStats_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(PollStatsRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *PollStatsResponse) GetStats() *Stats { + if x != nil { + return x.Stats } - return srv.(StatsPollerServiceServer).PollStats(m, &statsPollerServicePollStatsServer{stream}) -} - -type StatsPollerService_PollStatsServer interface { - Send(*PollStatsResponse) error - grpc.ServerStream -} - -type statsPollerServicePollStatsServer struct { - grpc.ServerStream + return nil } -func (x *statsPollerServicePollStatsServer) Send(m *PollStatsResponse) error { - return x.ServerStream.SendMsg(m) -} +var File_ligato_configurator_statspoller_proto protoreflect.FileDescriptor + +var file_ligato_configurator_statspoller_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x70, 0x6f, 0x6c, 0x6c, 0x65, + 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x14, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x76, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0x42, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x30, 0x0a, 0x09, 0x76, + 0x70, 0x70, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, + 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x73, 0x48, 0x00, 0x52, 0x08, 0x76, 0x70, 0x70, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x07, 0x0a, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x22, 0x4e, 0x0a, 0x10, 0x50, 0x6f, 0x6c, 0x6c, 0x53, 0x74, + 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x65, + 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x73, 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, + 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x53, 0x65, 0x63, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x75, 0x6d, + 0x5f, 0x70, 0x6f, 0x6c, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6e, 0x75, + 0x6d, 0x50, 0x6f, 0x6c, 0x6c, 0x73, 0x22, 0x60, 0x0a, 0x11, 0x50, 0x6f, 0x6c, 0x6c, 0x53, 0x74, + 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x70, + 0x6f, 0x6c, 0x6c, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x70, + 0x6f, 0x6c, 0x6c, 0x53, 0x65, 0x71, 0x12, 0x30, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x73, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x32, 0x74, 0x0a, 0x12, 0x53, 0x74, 0x61, 0x74, + 0x73, 0x50, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5e, + 0x0a, 0x09, 0x50, 0x6f, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x25, 0x2e, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, + 0x72, 0x2e, 0x50, 0x6f, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x50, 0x6f, 0x6c, 0x6c, 0x53, 0x74, 0x61, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x42, + 0x5a, 0x40, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, + 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0x3b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_configurator_statspoller_proto_rawDescOnce sync.Once + file_ligato_configurator_statspoller_proto_rawDescData = file_ligato_configurator_statspoller_proto_rawDesc +) -var _StatsPollerService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "ligato.configurator.StatsPollerService", - HandlerType: (*StatsPollerServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "PollStats", - Handler: _StatsPollerService_PollStats_Handler, - ServerStreams: true, +func file_ligato_configurator_statspoller_proto_rawDescGZIP() []byte { + file_ligato_configurator_statspoller_proto_rawDescOnce.Do(func() { + file_ligato_configurator_statspoller_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_configurator_statspoller_proto_rawDescData) + }) + return file_ligato_configurator_statspoller_proto_rawDescData +} + +var file_ligato_configurator_statspoller_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_ligato_configurator_statspoller_proto_goTypes = []interface{}{ + (*Stats)(nil), // 0: ligato.configurator.Stats + (*PollStatsRequest)(nil), // 1: ligato.configurator.PollStatsRequest + (*PollStatsResponse)(nil), // 2: ligato.configurator.PollStatsResponse + (*vpp.Stats)(nil), // 3: ligato.vpp.Stats +} +var file_ligato_configurator_statspoller_proto_depIdxs = []int32{ + 3, // 0: ligato.configurator.Stats.vpp_stats:type_name -> ligato.vpp.Stats + 0, // 1: ligato.configurator.PollStatsResponse.stats:type_name -> ligato.configurator.Stats + 1, // 2: ligato.configurator.StatsPollerService.PollStats:input_type -> ligato.configurator.PollStatsRequest + 2, // 3: ligato.configurator.StatsPollerService.PollStats:output_type -> ligato.configurator.PollStatsResponse + 3, // [3:4] is the sub-list for method output_type + 2, // [2:3] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_ligato_configurator_statspoller_proto_init() } +func file_ligato_configurator_statspoller_proto_init() { + if File_ligato_configurator_statspoller_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_configurator_statspoller_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Stats); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_configurator_statspoller_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PollStatsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_configurator_statspoller_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PollStatsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_ligato_configurator_statspoller_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*Stats_VppStats)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_configurator_statspoller_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "ligato/configurator/statspoller.proto", + GoTypes: file_ligato_configurator_statspoller_proto_goTypes, + DependencyIndexes: file_ligato_configurator_statspoller_proto_depIdxs, + MessageInfos: file_ligato_configurator_statspoller_proto_msgTypes, + }.Build() + File_ligato_configurator_statspoller_proto = out.File + file_ligato_configurator_statspoller_proto_rawDesc = nil + file_ligato_configurator_statspoller_proto_goTypes = nil + file_ligato_configurator_statspoller_proto_depIdxs = nil } diff --git a/proto/ligato/configurator/statspoller_grpc.pb.go b/proto/ligato/configurator/statspoller_grpc.pb.go new file mode 100644 index 0000000000..85dd5df490 --- /dev/null +++ b/proto/ligato/configurator/statspoller_grpc.pb.go @@ -0,0 +1,119 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package configurator + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// StatsPollerServiceClient is the client API for StatsPollerService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type StatsPollerServiceClient interface { + // PollStats is used for polling stats with specific period and number of pollings. + PollStats(ctx context.Context, in *PollStatsRequest, opts ...grpc.CallOption) (StatsPollerService_PollStatsClient, error) +} + +type statsPollerServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewStatsPollerServiceClient(cc grpc.ClientConnInterface) StatsPollerServiceClient { + return &statsPollerServiceClient{cc} +} + +func (c *statsPollerServiceClient) PollStats(ctx context.Context, in *PollStatsRequest, opts ...grpc.CallOption) (StatsPollerService_PollStatsClient, error) { + stream, err := c.cc.NewStream(ctx, &_StatsPollerService_serviceDesc.Streams[0], "/ligato.configurator.StatsPollerService/PollStats", opts...) + if err != nil { + return nil, err + } + x := &statsPollerServicePollStatsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type StatsPollerService_PollStatsClient interface { + Recv() (*PollStatsResponse, error) + grpc.ClientStream +} + +type statsPollerServicePollStatsClient struct { + grpc.ClientStream +} + +func (x *statsPollerServicePollStatsClient) Recv() (*PollStatsResponse, error) { + m := new(PollStatsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// StatsPollerServiceServer is the server API for StatsPollerService service. +// All implementations must embed UnimplementedStatsPollerServiceServer +// for forward compatibility +type StatsPollerServiceServer interface { + // PollStats is used for polling stats with specific period and number of pollings. + PollStats(*PollStatsRequest, StatsPollerService_PollStatsServer) error + mustEmbedUnimplementedStatsPollerServiceServer() +} + +// UnimplementedStatsPollerServiceServer must be embedded to have forward compatible implementations. +type UnimplementedStatsPollerServiceServer struct { +} + +func (*UnimplementedStatsPollerServiceServer) PollStats(*PollStatsRequest, StatsPollerService_PollStatsServer) error { + return status.Errorf(codes.Unimplemented, "method PollStats not implemented") +} +func (*UnimplementedStatsPollerServiceServer) mustEmbedUnimplementedStatsPollerServiceServer() {} + +func RegisterStatsPollerServiceServer(s *grpc.Server, srv StatsPollerServiceServer) { + s.RegisterService(&_StatsPollerService_serviceDesc, srv) +} + +func _StatsPollerService_PollStats_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(PollStatsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(StatsPollerServiceServer).PollStats(m, &statsPollerServicePollStatsServer{stream}) +} + +type StatsPollerService_PollStatsServer interface { + Send(*PollStatsResponse) error + grpc.ServerStream +} + +type statsPollerServicePollStatsServer struct { + grpc.ServerStream +} + +func (x *statsPollerServicePollStatsServer) Send(m *PollStatsResponse) error { + return x.ServerStream.SendMsg(m) +} + +var _StatsPollerService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "ligato.configurator.StatsPollerService", + HandlerType: (*StatsPollerServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "PollStats", + Handler: _StatsPollerService_PollStats_Handler, + ServerStreams: true, + }, + }, + Metadata: "ligato/configurator/statspoller.proto", +} diff --git a/proto/ligato/generic/manager.pb.go b/proto/ligato/generic/manager.pb.go index cd6195a55f..ff4356a2e2 100644 --- a/proto/ligato/generic/manager.pb.go +++ b/proto/ligato/generic/manager.pb.go @@ -1,29 +1,30 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/generic/manager.proto package generic import ( - context "context" - fmt "fmt" proto "github.com/golang/protobuf/proto" any "github.com/golang/protobuf/ptypes/any" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type UpdateResult_Operation int32 @@ -34,169 +35,148 @@ const ( UpdateResult_DELETE UpdateResult_Operation = 3 ) -var UpdateResult_Operation_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "CREATE", - 2: "UPDATE", - 3: "DELETE", -} +// Enum value maps for UpdateResult_Operation. +var ( + UpdateResult_Operation_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "CREATE", + 2: "UPDATE", + 3: "DELETE", + } + UpdateResult_Operation_value = map[string]int32{ + "UNSPECIFIED": 0, + "CREATE": 1, + "UPDATE": 2, + "DELETE": 3, + } +) -var UpdateResult_Operation_value = map[string]int32{ - "UNSPECIFIED": 0, - "CREATE": 1, - "UPDATE": 2, - "DELETE": 3, +func (x UpdateResult_Operation) Enum() *UpdateResult_Operation { + p := new(UpdateResult_Operation) + *p = x + return p } func (x UpdateResult_Operation) String() string { - return proto.EnumName(UpdateResult_Operation_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (UpdateResult_Operation) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_815b28196c48f9b5, []int{6, 0} +func (UpdateResult_Operation) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_generic_manager_proto_enumTypes[0].Descriptor() } -// Item represents single instance described by the Model. -type Item struct { - Id *Item_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Data *Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (UpdateResult_Operation) Type() protoreflect.EnumType { + return &file_ligato_generic_manager_proto_enumTypes[0] } -func (m *Item) Reset() { *m = Item{} } -func (m *Item) String() string { return proto.CompactTextString(m) } -func (*Item) ProtoMessage() {} -func (*Item) Descriptor() ([]byte, []int) { - return fileDescriptor_815b28196c48f9b5, []int{0} +func (x UpdateResult_Operation) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *Item) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Item.Unmarshal(m, b) -} -func (m *Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Item.Marshal(b, m, deterministic) -} -func (m *Item) XXX_Merge(src proto.Message) { - xxx_messageInfo_Item.Merge(m, src) -} -func (m *Item) XXX_Size() int { - return xxx_messageInfo_Item.Size(m) -} -func (m *Item) XXX_DiscardUnknown() { - xxx_messageInfo_Item.DiscardUnknown(m) +// Deprecated: Use UpdateResult_Operation.Descriptor instead. +func (UpdateResult_Operation) EnumDescriptor() ([]byte, []int) { + return file_ligato_generic_manager_proto_rawDescGZIP(), []int{6, 0} } -var xxx_messageInfo_Item proto.InternalMessageInfo +// Item represents single instance described by the Model. +type Item struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Item) GetId() *Item_ID { - if m != nil { - return m.Id - } - return nil + Id *Item_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Data *Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` } -func (m *Item) GetData() *Data { - if m != nil { - return m.Data +func (x *Item) Reset() { + *x = Item{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_manager_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -// ID represents identifier for distinguishing items. -type Item_ID struct { - Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *Item) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Item_ID) Reset() { *m = Item_ID{} } -func (m *Item_ID) String() string { return proto.CompactTextString(m) } -func (*Item_ID) ProtoMessage() {} -func (*Item_ID) Descriptor() ([]byte, []int) { - return fileDescriptor_815b28196c48f9b5, []int{0, 0} -} +func (*Item) ProtoMessage() {} -func (m *Item_ID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Item_ID.Unmarshal(m, b) -} -func (m *Item_ID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Item_ID.Marshal(b, m, deterministic) -} -func (m *Item_ID) XXX_Merge(src proto.Message) { - xxx_messageInfo_Item_ID.Merge(m, src) -} -func (m *Item_ID) XXX_Size() int { - return xxx_messageInfo_Item_ID.Size(m) -} -func (m *Item_ID) XXX_DiscardUnknown() { - xxx_messageInfo_Item_ID.DiscardUnknown(m) +func (x *Item) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_manager_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Item_ID proto.InternalMessageInfo +// Deprecated: Use Item.ProtoReflect.Descriptor instead. +func (*Item) Descriptor() ([]byte, []int) { + return file_ligato_generic_manager_proto_rawDescGZIP(), []int{0} +} -func (m *Item_ID) GetModel() string { - if m != nil { - return m.Model +func (x *Item) GetId() *Item_ID { + if x != nil { + return x.Id } - return "" + return nil } -func (m *Item_ID) GetName() string { - if m != nil { - return m.Name +func (x *Item) GetData() *Data { + if x != nil { + return x.Data } - return "" + return nil } // Data represents encoded data for an item. type Data struct { - // Types that are valid to be assigned to Union: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Union: // *Data_Any - Union isData_Union `protobuf_oneof:"union"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Union isData_Union `protobuf_oneof:"union"` } -func (m *Data) Reset() { *m = Data{} } -func (m *Data) String() string { return proto.CompactTextString(m) } -func (*Data) ProtoMessage() {} -func (*Data) Descriptor() ([]byte, []int) { - return fileDescriptor_815b28196c48f9b5, []int{1} +func (x *Data) Reset() { + *x = Data{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_manager_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Data.Unmarshal(m, b) -} -func (m *Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Data.Marshal(b, m, deterministic) -} -func (m *Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Data.Merge(m, src) -} -func (m *Data) XXX_Size() int { - return xxx_messageInfo_Data.Size(m) -} -func (m *Data) XXX_DiscardUnknown() { - xxx_messageInfo_Data.DiscardUnknown(m) +func (x *Data) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Data proto.InternalMessageInfo +func (*Data) ProtoMessage() {} -type isData_Union interface { - isData_Union() +func (x *Data) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_manager_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type Data_Any struct { - Any *any.Any `protobuf:"bytes,1,opt,name=any,proto3,oneof"` +// Deprecated: Use Data.ProtoReflect.Descriptor instead. +func (*Data) Descriptor() ([]byte, []int) { + return file_ligato_generic_manager_proto_rawDescGZIP(), []int{1} } -func (*Data_Any) isData_Union() {} - func (m *Data) GetUnion() isData_Union { if m != nil { return m.Union @@ -204,996 +184,1347 @@ func (m *Data) GetUnion() isData_Union { return nil } -func (m *Data) GetAny() *any.Any { - if x, ok := m.GetUnion().(*Data_Any); ok { +func (x *Data) GetAny() *any.Any { + if x, ok := x.GetUnion().(*Data_Any); ok { return x.Any } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Data) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Data_Any)(nil), - } +type isData_Union interface { + isData_Union() } +type Data_Any struct { + Any *any.Any `protobuf:"bytes,1,opt,name=any,proto3,oneof"` +} + +func (*Data_Any) isData_Union() {} + // Item status describes status of an item. type ItemStatus struct { - Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ItemStatus) Reset() { *m = ItemStatus{} } -func (m *ItemStatus) String() string { return proto.CompactTextString(m) } -func (*ItemStatus) ProtoMessage() {} -func (*ItemStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_815b28196c48f9b5, []int{2} + Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } -func (m *ItemStatus) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ItemStatus.Unmarshal(m, b) -} -func (m *ItemStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ItemStatus.Marshal(b, m, deterministic) -} -func (m *ItemStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ItemStatus.Merge(m, src) +func (x *ItemStatus) Reset() { + *x = ItemStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_manager_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ItemStatus) XXX_Size() int { - return xxx_messageInfo_ItemStatus.Size(m) + +func (x *ItemStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ItemStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ItemStatus.DiscardUnknown(m) + +func (*ItemStatus) ProtoMessage() {} + +func (x *ItemStatus) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_manager_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ItemStatus proto.InternalMessageInfo +// Deprecated: Use ItemStatus.ProtoReflect.Descriptor instead. +func (*ItemStatus) Descriptor() ([]byte, []int) { + return file_ligato_generic_manager_proto_rawDescGZIP(), []int{2} +} -func (m *ItemStatus) GetStatus() string { - if m != nil { - return m.Status +func (x *ItemStatus) GetStatus() string { + if x != nil { + return x.Status } return "" } -func (m *ItemStatus) GetMessage() string { - if m != nil { - return m.Message +func (x *ItemStatus) GetMessage() string { + if x != nil { + return x.Message } return "" } type SetConfigRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Updates []*UpdateItem `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"` // The overwrite_all can be set to true to overwrite all other configuration // (this is also known as Full Resync) - OverwriteAll bool `protobuf:"varint,2,opt,name=overwrite_all,json=overwriteAll,proto3" json:"overwrite_all,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + OverwriteAll bool `protobuf:"varint,2,opt,name=overwrite_all,json=overwriteAll,proto3" json:"overwrite_all,omitempty"` } -func (m *SetConfigRequest) Reset() { *m = SetConfigRequest{} } -func (m *SetConfigRequest) String() string { return proto.CompactTextString(m) } -func (*SetConfigRequest) ProtoMessage() {} -func (*SetConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_815b28196c48f9b5, []int{3} +func (x *SetConfigRequest) Reset() { + *x = SetConfigRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_manager_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SetConfigRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetConfigRequest.Unmarshal(m, b) -} -func (m *SetConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetConfigRequest.Marshal(b, m, deterministic) -} -func (m *SetConfigRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetConfigRequest.Merge(m, src) -} -func (m *SetConfigRequest) XXX_Size() int { - return xxx_messageInfo_SetConfigRequest.Size(m) +func (x *SetConfigRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SetConfigRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetConfigRequest.DiscardUnknown(m) + +func (*SetConfigRequest) ProtoMessage() {} + +func (x *SetConfigRequest) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_manager_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SetConfigRequest proto.InternalMessageInfo +// Deprecated: Use SetConfigRequest.ProtoReflect.Descriptor instead. +func (*SetConfigRequest) Descriptor() ([]byte, []int) { + return file_ligato_generic_manager_proto_rawDescGZIP(), []int{3} +} -func (m *SetConfigRequest) GetUpdates() []*UpdateItem { - if m != nil { - return m.Updates +func (x *SetConfigRequest) GetUpdates() []*UpdateItem { + if x != nil { + return x.Updates } return nil } -func (m *SetConfigRequest) GetOverwriteAll() bool { - if m != nil { - return m.OverwriteAll +func (x *SetConfigRequest) GetOverwriteAll() bool { + if x != nil { + return x.OverwriteAll } return false } type SetConfigResponse struct { - Results []*UpdateResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SetConfigResponse) Reset() { *m = SetConfigResponse{} } -func (m *SetConfigResponse) String() string { return proto.CompactTextString(m) } -func (*SetConfigResponse) ProtoMessage() {} -func (*SetConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_815b28196c48f9b5, []int{4} + Results []*UpdateResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` } -func (m *SetConfigResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetConfigResponse.Unmarshal(m, b) -} -func (m *SetConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetConfigResponse.Marshal(b, m, deterministic) -} -func (m *SetConfigResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetConfigResponse.Merge(m, src) +func (x *SetConfigResponse) Reset() { + *x = SetConfigResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_manager_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SetConfigResponse) XXX_Size() int { - return xxx_messageInfo_SetConfigResponse.Size(m) + +func (x *SetConfigResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SetConfigResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SetConfigResponse.DiscardUnknown(m) + +func (*SetConfigResponse) ProtoMessage() {} + +func (x *SetConfigResponse) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_manager_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SetConfigResponse proto.InternalMessageInfo +// Deprecated: Use SetConfigResponse.ProtoReflect.Descriptor instead. +func (*SetConfigResponse) Descriptor() ([]byte, []int) { + return file_ligato_generic_manager_proto_rawDescGZIP(), []int{4} +} -func (m *SetConfigResponse) GetResults() []*UpdateResult { - if m != nil { - return m.Results +func (x *SetConfigResponse) GetResults() []*UpdateResult { + if x != nil { + return x.Results } return nil } type UpdateItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The item describes item to be updated. // For a delete operation set fields item.Data to nil. Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` // The labels can be used to define user-defined labels for item. - Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *UpdateItem) Reset() { *m = UpdateItem{} } -func (m *UpdateItem) String() string { return proto.CompactTextString(m) } -func (*UpdateItem) ProtoMessage() {} -func (*UpdateItem) Descriptor() ([]byte, []int) { - return fileDescriptor_815b28196c48f9b5, []int{5} +func (x *UpdateItem) Reset() { + *x = UpdateItem{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_manager_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UpdateItem) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateItem.Unmarshal(m, b) -} -func (m *UpdateItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateItem.Marshal(b, m, deterministic) +func (x *UpdateItem) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UpdateItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateItem.Merge(m, src) -} -func (m *UpdateItem) XXX_Size() int { - return xxx_messageInfo_UpdateItem.Size(m) -} -func (m *UpdateItem) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateItem.DiscardUnknown(m) + +func (*UpdateItem) ProtoMessage() {} + +func (x *UpdateItem) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_manager_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UpdateItem proto.InternalMessageInfo +// Deprecated: Use UpdateItem.ProtoReflect.Descriptor instead. +func (*UpdateItem) Descriptor() ([]byte, []int) { + return file_ligato_generic_manager_proto_rawDescGZIP(), []int{5} +} -func (m *UpdateItem) GetItem() *Item { - if m != nil { - return m.Item +func (x *UpdateItem) GetItem() *Item { + if x != nil { + return x.Item } return nil } -func (m *UpdateItem) GetLabels() map[string]string { - if m != nil { - return m.Labels +func (x *UpdateItem) GetLabels() map[string]string { + if x != nil { + return x.Labels } return nil } type UpdateResult struct { - Id *Item_ID `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Op UpdateResult_Operation `protobuf:"varint,2,opt,name=op,proto3,enum=ligato.generic.UpdateResult_Operation" json:"op,omitempty"` - Status *ItemStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdateResult) Reset() { *m = UpdateResult{} } -func (m *UpdateResult) String() string { return proto.CompactTextString(m) } -func (*UpdateResult) ProtoMessage() {} -func (*UpdateResult) Descriptor() ([]byte, []int) { - return fileDescriptor_815b28196c48f9b5, []int{6} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id *Item_ID `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Op UpdateResult_Operation `protobuf:"varint,2,opt,name=op,proto3,enum=ligato.generic.UpdateResult_Operation" json:"op,omitempty"` + Status *ItemStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *UpdateResult) Reset() { + *x = UpdateResult{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_manager_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UpdateResult) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateResult.Unmarshal(m, b) -} -func (m *UpdateResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateResult.Marshal(b, m, deterministic) -} -func (m *UpdateResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateResult.Merge(m, src) +func (x *UpdateResult) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UpdateResult) XXX_Size() int { - return xxx_messageInfo_UpdateResult.Size(m) -} -func (m *UpdateResult) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateResult.DiscardUnknown(m) + +func (*UpdateResult) ProtoMessage() {} + +func (x *UpdateResult) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_manager_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UpdateResult proto.InternalMessageInfo +// Deprecated: Use UpdateResult.ProtoReflect.Descriptor instead. +func (*UpdateResult) Descriptor() ([]byte, []int) { + return file_ligato_generic_manager_proto_rawDescGZIP(), []int{6} +} -func (m *UpdateResult) GetId() *Item_ID { - if m != nil { - return m.Id +func (x *UpdateResult) GetId() *Item_ID { + if x != nil { + return x.Id } return nil } -func (m *UpdateResult) GetKey() string { - if m != nil { - return m.Key +func (x *UpdateResult) GetKey() string { + if x != nil { + return x.Key } return "" } -func (m *UpdateResult) GetOp() UpdateResult_Operation { - if m != nil { - return m.Op +func (x *UpdateResult) GetOp() UpdateResult_Operation { + if x != nil { + return x.Op } return UpdateResult_UNSPECIFIED } -func (m *UpdateResult) GetStatus() *ItemStatus { - if m != nil { - return m.Status +func (x *UpdateResult) GetStatus() *ItemStatus { + if x != nil { + return x.Status } return nil } type GetConfigRequest struct { - Ids []*Item_ID `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetConfigRequest) Reset() { *m = GetConfigRequest{} } -func (m *GetConfigRequest) String() string { return proto.CompactTextString(m) } -func (*GetConfigRequest) ProtoMessage() {} -func (*GetConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_815b28196c48f9b5, []int{7} + Ids []*Item_ID `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` } -func (m *GetConfigRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetConfigRequest.Unmarshal(m, b) -} -func (m *GetConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetConfigRequest.Marshal(b, m, deterministic) -} -func (m *GetConfigRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetConfigRequest.Merge(m, src) +func (x *GetConfigRequest) Reset() { + *x = GetConfigRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_manager_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetConfigRequest) XXX_Size() int { - return xxx_messageInfo_GetConfigRequest.Size(m) + +func (x *GetConfigRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetConfigRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetConfigRequest.DiscardUnknown(m) + +func (*GetConfigRequest) ProtoMessage() {} + +func (x *GetConfigRequest) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_manager_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetConfigRequest proto.InternalMessageInfo +// Deprecated: Use GetConfigRequest.ProtoReflect.Descriptor instead. +func (*GetConfigRequest) Descriptor() ([]byte, []int) { + return file_ligato_generic_manager_proto_rawDescGZIP(), []int{7} +} -func (m *GetConfigRequest) GetIds() []*Item_ID { - if m != nil { - return m.Ids +func (x *GetConfigRequest) GetIds() []*Item_ID { + if x != nil { + return x.Ids } return nil } type GetConfigResponse struct { - Items []*ConfigItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetConfigResponse) Reset() { *m = GetConfigResponse{} } -func (m *GetConfigResponse) String() string { return proto.CompactTextString(m) } -func (*GetConfigResponse) ProtoMessage() {} -func (*GetConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_815b28196c48f9b5, []int{8} + Items []*ConfigItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` } -func (m *GetConfigResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetConfigResponse.Unmarshal(m, b) -} -func (m *GetConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetConfigResponse.Marshal(b, m, deterministic) -} -func (m *GetConfigResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetConfigResponse.Merge(m, src) +func (x *GetConfigResponse) Reset() { + *x = GetConfigResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_manager_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetConfigResponse) XXX_Size() int { - return xxx_messageInfo_GetConfigResponse.Size(m) + +func (x *GetConfigResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetConfigResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetConfigResponse.DiscardUnknown(m) + +func (*GetConfigResponse) ProtoMessage() {} + +func (x *GetConfigResponse) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_manager_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetConfigResponse proto.InternalMessageInfo +// Deprecated: Use GetConfigResponse.ProtoReflect.Descriptor instead. +func (*GetConfigResponse) Descriptor() ([]byte, []int) { + return file_ligato_generic_manager_proto_rawDescGZIP(), []int{8} +} -func (m *GetConfigResponse) GetItems() []*ConfigItem { - if m != nil { - return m.Items +func (x *GetConfigResponse) GetItems() []*ConfigItem { + if x != nil { + return x.Items } return nil } type ConfigItem struct { - Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` - Status *ItemStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ConfigItem) Reset() { *m = ConfigItem{} } -func (m *ConfigItem) String() string { return proto.CompactTextString(m) } -func (*ConfigItem) ProtoMessage() {} -func (*ConfigItem) Descriptor() ([]byte, []int) { - return fileDescriptor_815b28196c48f9b5, []int{9} + Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` + Status *ItemStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *ConfigItem) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ConfigItem.Unmarshal(m, b) -} -func (m *ConfigItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ConfigItem.Marshal(b, m, deterministic) -} -func (m *ConfigItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigItem.Merge(m, src) +func (x *ConfigItem) Reset() { + *x = ConfigItem{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_manager_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ConfigItem) XXX_Size() int { - return xxx_messageInfo_ConfigItem.Size(m) + +func (x *ConfigItem) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ConfigItem) XXX_DiscardUnknown() { - xxx_messageInfo_ConfigItem.DiscardUnknown(m) + +func (*ConfigItem) ProtoMessage() {} + +func (x *ConfigItem) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_manager_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ConfigItem proto.InternalMessageInfo +// Deprecated: Use ConfigItem.ProtoReflect.Descriptor instead. +func (*ConfigItem) Descriptor() ([]byte, []int) { + return file_ligato_generic_manager_proto_rawDescGZIP(), []int{9} +} -func (m *ConfigItem) GetItem() *Item { - if m != nil { - return m.Item +func (x *ConfigItem) GetItem() *Item { + if x != nil { + return x.Item } return nil } -func (m *ConfigItem) GetStatus() *ItemStatus { - if m != nil { - return m.Status +func (x *ConfigItem) GetStatus() *ItemStatus { + if x != nil { + return x.Status } return nil } -func (m *ConfigItem) GetLabels() map[string]string { - if m != nil { - return m.Labels +func (x *ConfigItem) GetLabels() map[string]string { + if x != nil { + return x.Labels } return nil } type DumpStateRequest struct { - Ids []*Item_ID `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DumpStateRequest) Reset() { *m = DumpStateRequest{} } -func (m *DumpStateRequest) String() string { return proto.CompactTextString(m) } -func (*DumpStateRequest) ProtoMessage() {} -func (*DumpStateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_815b28196c48f9b5, []int{10} + Ids []*Item_ID `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` } -func (m *DumpStateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DumpStateRequest.Unmarshal(m, b) -} -func (m *DumpStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DumpStateRequest.Marshal(b, m, deterministic) -} -func (m *DumpStateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DumpStateRequest.Merge(m, src) +func (x *DumpStateRequest) Reset() { + *x = DumpStateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_manager_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DumpStateRequest) XXX_Size() int { - return xxx_messageInfo_DumpStateRequest.Size(m) + +func (x *DumpStateRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DumpStateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DumpStateRequest.DiscardUnknown(m) + +func (*DumpStateRequest) ProtoMessage() {} + +func (x *DumpStateRequest) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_manager_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DumpStateRequest proto.InternalMessageInfo +// Deprecated: Use DumpStateRequest.ProtoReflect.Descriptor instead. +func (*DumpStateRequest) Descriptor() ([]byte, []int) { + return file_ligato_generic_manager_proto_rawDescGZIP(), []int{10} +} -func (m *DumpStateRequest) GetIds() []*Item_ID { - if m != nil { - return m.Ids +func (x *DumpStateRequest) GetIds() []*Item_ID { + if x != nil { + return x.Ids } return nil } type DumpStateResponse struct { - Items []*StateItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DumpStateResponse) Reset() { *m = DumpStateResponse{} } -func (m *DumpStateResponse) String() string { return proto.CompactTextString(m) } -func (*DumpStateResponse) ProtoMessage() {} -func (*DumpStateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_815b28196c48f9b5, []int{11} + Items []*StateItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` } -func (m *DumpStateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DumpStateResponse.Unmarshal(m, b) -} -func (m *DumpStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DumpStateResponse.Marshal(b, m, deterministic) -} -func (m *DumpStateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DumpStateResponse.Merge(m, src) +func (x *DumpStateResponse) Reset() { + *x = DumpStateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_manager_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DumpStateResponse) XXX_Size() int { - return xxx_messageInfo_DumpStateResponse.Size(m) + +func (x *DumpStateResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DumpStateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DumpStateResponse.DiscardUnknown(m) + +func (*DumpStateResponse) ProtoMessage() {} + +func (x *DumpStateResponse) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_manager_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DumpStateResponse proto.InternalMessageInfo +// Deprecated: Use DumpStateResponse.ProtoReflect.Descriptor instead. +func (*DumpStateResponse) Descriptor() ([]byte, []int) { + return file_ligato_generic_manager_proto_rawDescGZIP(), []int{11} +} -func (m *DumpStateResponse) GetItems() []*StateItem { - if m != nil { - return m.Items +func (x *DumpStateResponse) GetItems() []*StateItem { + if x != nil { + return x.Items } return nil } type StateItem struct { - Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` - Metadata map[string]string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *StateItem) Reset() { *m = StateItem{} } -func (m *StateItem) String() string { return proto.CompactTextString(m) } -func (*StateItem) ProtoMessage() {} -func (*StateItem) Descriptor() ([]byte, []int) { - return fileDescriptor_815b28196c48f9b5, []int{12} + Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` + Metadata map[string]string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *StateItem) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StateItem.Unmarshal(m, b) -} -func (m *StateItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StateItem.Marshal(b, m, deterministic) -} -func (m *StateItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_StateItem.Merge(m, src) +func (x *StateItem) Reset() { + *x = StateItem{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_manager_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StateItem) XXX_Size() int { - return xxx_messageInfo_StateItem.Size(m) + +func (x *StateItem) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StateItem) XXX_DiscardUnknown() { - xxx_messageInfo_StateItem.DiscardUnknown(m) + +func (*StateItem) ProtoMessage() {} + +func (x *StateItem) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_manager_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StateItem proto.InternalMessageInfo +// Deprecated: Use StateItem.ProtoReflect.Descriptor instead. +func (*StateItem) Descriptor() ([]byte, []int) { + return file_ligato_generic_manager_proto_rawDescGZIP(), []int{12} +} -func (m *StateItem) GetItem() *Item { - if m != nil { - return m.Item +func (x *StateItem) GetItem() *Item { + if x != nil { + return x.Item } return nil } -func (m *StateItem) GetMetadata() map[string]string { - if m != nil { - return m.Metadata +func (x *StateItem) GetMetadata() map[string]string { + if x != nil { + return x.Metadata } return nil } type SubscribeRequest struct { - Subscriptions []*Subscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SubscribeRequest) Reset() { *m = SubscribeRequest{} } -func (m *SubscribeRequest) String() string { return proto.CompactTextString(m) } -func (*SubscribeRequest) ProtoMessage() {} -func (*SubscribeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_815b28196c48f9b5, []int{13} + Subscriptions []*Subscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"` } -func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SubscribeRequest.Unmarshal(m, b) -} -func (m *SubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SubscribeRequest.Marshal(b, m, deterministic) -} -func (m *SubscribeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubscribeRequest.Merge(m, src) +func (x *SubscribeRequest) Reset() { + *x = SubscribeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_manager_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SubscribeRequest) XXX_Size() int { - return xxx_messageInfo_SubscribeRequest.Size(m) + +func (x *SubscribeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SubscribeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SubscribeRequest.DiscardUnknown(m) + +func (*SubscribeRequest) ProtoMessage() {} + +func (x *SubscribeRequest) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_manager_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SubscribeRequest proto.InternalMessageInfo +// Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead. +func (*SubscribeRequest) Descriptor() ([]byte, []int) { + return file_ligato_generic_manager_proto_rawDescGZIP(), []int{13} +} -func (m *SubscribeRequest) GetSubscriptions() []*Subscription { - if m != nil { - return m.Subscriptions +func (x *SubscribeRequest) GetSubscriptions() []*Subscription { + if x != nil { + return x.Subscriptions } return nil } type SubscribeResponse struct { - Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SubscribeResponse) Reset() { *m = SubscribeResponse{} } -func (m *SubscribeResponse) String() string { return proto.CompactTextString(m) } -func (*SubscribeResponse) ProtoMessage() {} -func (*SubscribeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_815b28196c48f9b5, []int{14} + Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` } -func (m *SubscribeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SubscribeResponse.Unmarshal(m, b) -} -func (m *SubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SubscribeResponse.Marshal(b, m, deterministic) -} -func (m *SubscribeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubscribeResponse.Merge(m, src) +func (x *SubscribeResponse) Reset() { + *x = SubscribeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_manager_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SubscribeResponse) XXX_Size() int { - return xxx_messageInfo_SubscribeResponse.Size(m) + +func (x *SubscribeResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SubscribeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SubscribeResponse.DiscardUnknown(m) + +func (*SubscribeResponse) ProtoMessage() {} + +func (x *SubscribeResponse) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_manager_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SubscribeResponse proto.InternalMessageInfo +// Deprecated: Use SubscribeResponse.ProtoReflect.Descriptor instead. +func (*SubscribeResponse) Descriptor() ([]byte, []int) { + return file_ligato_generic_manager_proto_rawDescGZIP(), []int{14} +} -func (m *SubscribeResponse) GetNotifications() []*Notification { - if m != nil { - return m.Notifications +func (x *SubscribeResponse) GetNotifications() []*Notification { + if x != nil { + return x.Notifications } return nil } type Subscription struct { - Id *Item_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Subscription) Reset() { *m = Subscription{} } -func (m *Subscription) String() string { return proto.CompactTextString(m) } -func (*Subscription) ProtoMessage() {} -func (*Subscription) Descriptor() ([]byte, []int) { - return fileDescriptor_815b28196c48f9b5, []int{15} + Id *Item_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *Subscription) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Subscription.Unmarshal(m, b) -} -func (m *Subscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Subscription.Marshal(b, m, deterministic) -} -func (m *Subscription) XXX_Merge(src proto.Message) { - xxx_messageInfo_Subscription.Merge(m, src) +func (x *Subscription) Reset() { + *x = Subscription{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_manager_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Subscription) XXX_Size() int { - return xxx_messageInfo_Subscription.Size(m) + +func (x *Subscription) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Subscription) XXX_DiscardUnknown() { - xxx_messageInfo_Subscription.DiscardUnknown(m) + +func (*Subscription) ProtoMessage() {} + +func (x *Subscription) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_manager_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Subscription proto.InternalMessageInfo +// Deprecated: Use Subscription.ProtoReflect.Descriptor instead. +func (*Subscription) Descriptor() ([]byte, []int) { + return file_ligato_generic_manager_proto_rawDescGZIP(), []int{15} +} -func (m *Subscription) GetId() *Item_ID { - if m != nil { - return m.Id +func (x *Subscription) GetId() *Item_ID { + if x != nil { + return x.Id } return nil } type Notification struct { - Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` - Status *ItemStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Notification) Reset() { *m = Notification{} } -func (m *Notification) String() string { return proto.CompactTextString(m) } -func (*Notification) ProtoMessage() {} -func (*Notification) Descriptor() ([]byte, []int) { - return fileDescriptor_815b28196c48f9b5, []int{16} + Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` + Status *ItemStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` } -func (m *Notification) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Notification.Unmarshal(m, b) -} -func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Notification.Marshal(b, m, deterministic) -} -func (m *Notification) XXX_Merge(src proto.Message) { - xxx_messageInfo_Notification.Merge(m, src) -} -func (m *Notification) XXX_Size() int { - return xxx_messageInfo_Notification.Size(m) +func (x *Notification) Reset() { + *x = Notification{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_manager_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Notification) XXX_DiscardUnknown() { - xxx_messageInfo_Notification.DiscardUnknown(m) + +func (x *Notification) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Notification proto.InternalMessageInfo +func (*Notification) ProtoMessage() {} -func (m *Notification) GetItem() *Item { - if m != nil { - return m.Item +func (x *Notification) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_manager_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *Notification) GetStatus() *ItemStatus { - if m != nil { - return m.Status - } - return nil +// Deprecated: Use Notification.ProtoReflect.Descriptor instead. +func (*Notification) Descriptor() ([]byte, []int) { + return file_ligato_generic_manager_proto_rawDescGZIP(), []int{16} } -func init() { - proto.RegisterEnum("ligato.generic.UpdateResult_Operation", UpdateResult_Operation_name, UpdateResult_Operation_value) - proto.RegisterType((*Item)(nil), "ligato.generic.Item") - proto.RegisterType((*Item_ID)(nil), "ligato.generic.Item.ID") - proto.RegisterType((*Data)(nil), "ligato.generic.Data") - proto.RegisterType((*ItemStatus)(nil), "ligato.generic.ItemStatus") - proto.RegisterType((*SetConfigRequest)(nil), "ligato.generic.SetConfigRequest") - proto.RegisterType((*SetConfigResponse)(nil), "ligato.generic.SetConfigResponse") - proto.RegisterType((*UpdateItem)(nil), "ligato.generic.UpdateItem") - proto.RegisterMapType((map[string]string)(nil), "ligato.generic.UpdateItem.LabelsEntry") - proto.RegisterType((*UpdateResult)(nil), "ligato.generic.UpdateResult") - proto.RegisterType((*GetConfigRequest)(nil), "ligato.generic.GetConfigRequest") - proto.RegisterType((*GetConfigResponse)(nil), "ligato.generic.GetConfigResponse") - proto.RegisterType((*ConfigItem)(nil), "ligato.generic.ConfigItem") - proto.RegisterMapType((map[string]string)(nil), "ligato.generic.ConfigItem.LabelsEntry") - proto.RegisterType((*DumpStateRequest)(nil), "ligato.generic.DumpStateRequest") - proto.RegisterType((*DumpStateResponse)(nil), "ligato.generic.DumpStateResponse") - proto.RegisterType((*StateItem)(nil), "ligato.generic.StateItem") - proto.RegisterMapType((map[string]string)(nil), "ligato.generic.StateItem.MetadataEntry") - proto.RegisterType((*SubscribeRequest)(nil), "ligato.generic.SubscribeRequest") - proto.RegisterType((*SubscribeResponse)(nil), "ligato.generic.SubscribeResponse") - proto.RegisterType((*Subscription)(nil), "ligato.generic.Subscription") - proto.RegisterType((*Notification)(nil), "ligato.generic.Notification") -} - -func init() { proto.RegisterFile("ligato/generic/manager.proto", fileDescriptor_815b28196c48f9b5) } - -var fileDescriptor_815b28196c48f9b5 = []byte{ - // 817 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xdd, 0x8e, 0xdb, 0x44, - 0x18, 0xad, 0x9d, 0x6c, 0xd2, 0x7c, 0x49, 0x16, 0x67, 0xb4, 0x82, 0x34, 0xea, 0x45, 0x31, 0x12, - 0x0d, 0x17, 0xd8, 0xab, 0x14, 0x15, 0x0a, 0x6a, 0xc5, 0x26, 0x36, 0x21, 0xa2, 0x2d, 0xd1, 0xa4, - 0x0b, 0x12, 0x37, 0x68, 0x92, 0xcc, 0x5a, 0x16, 0xb6, 0xc7, 0xd8, 0xe3, 0xa0, 0x3c, 0x02, 0x8f, - 0xc3, 0x15, 0xef, 0xc2, 0x3d, 0xcf, 0xc0, 0x2d, 0x9a, 0xf1, 0x4f, 0x1c, 0x27, 0x69, 0xbb, 0x88, - 0xde, 0x8d, 0x67, 0xce, 0x9c, 0xf3, 0x7d, 0x67, 0xce, 0xd8, 0x86, 0xfb, 0x9e, 0xeb, 0x10, 0xce, - 0x4c, 0x87, 0x06, 0x34, 0x72, 0x57, 0xa6, 0x4f, 0x02, 0xe2, 0xd0, 0xc8, 0x08, 0x23, 0xc6, 0x19, - 0x3a, 0x4f, 0x57, 0x8d, 0x6c, 0x75, 0x70, 0xcf, 0x61, 0xcc, 0xf1, 0xa8, 0x29, 0x57, 0x97, 0xc9, - 0x8d, 0x49, 0x82, 0x6d, 0x0a, 0xd5, 0x7f, 0x57, 0xa0, 0x3e, 0xe3, 0xd4, 0x47, 0x0f, 0x41, 0x75, - 0xd7, 0x7d, 0xe5, 0x81, 0x32, 0x6c, 0x8f, 0x3e, 0x30, 0xf6, 0x09, 0x0c, 0x81, 0x30, 0x66, 0x16, - 0x56, 0xdd, 0x35, 0x1a, 0x42, 0x7d, 0x4d, 0x38, 0xe9, 0xab, 0x12, 0x7a, 0x51, 0x85, 0x5a, 0x84, - 0x13, 0x2c, 0x11, 0x03, 0x03, 0xd4, 0x99, 0x85, 0x2e, 0xe0, 0xcc, 0x67, 0x6b, 0xea, 0x49, 0xee, - 0x16, 0x4e, 0x1f, 0x10, 0x82, 0x7a, 0x40, 0x7c, 0x2a, 0x59, 0x5a, 0x58, 0x8e, 0xf5, 0x27, 0x50, - 0x17, 0xbb, 0xd1, 0x10, 0x6a, 0x24, 0xd8, 0x66, 0xb5, 0x5c, 0x18, 0x69, 0xf1, 0x46, 0x5e, 0xbc, - 0x71, 0x15, 0x6c, 0xbf, 0xbd, 0x83, 0x05, 0x64, 0xdc, 0x84, 0xb3, 0x24, 0x70, 0x59, 0xa0, 0x3f, - 0x03, 0x10, 0x35, 0x2e, 0x38, 0xe1, 0x49, 0x8c, 0xde, 0x87, 0x46, 0x2c, 0x47, 0x99, 0x66, 0xf6, - 0x84, 0xfa, 0xd0, 0xf4, 0x69, 0x1c, 0x13, 0x27, 0xd7, 0xcd, 0x1f, 0x75, 0x1f, 0xb4, 0x05, 0xe5, - 0x13, 0x16, 0xdc, 0xb8, 0x0e, 0xa6, 0xbf, 0x26, 0x34, 0xe6, 0xe8, 0x33, 0x68, 0x26, 0xe1, 0x9a, - 0x70, 0x2a, 0x68, 0x6a, 0xc3, 0xf6, 0x68, 0x50, 0xed, 0xf5, 0x5a, 0x2e, 0x0b, 0x61, 0x9c, 0x43, - 0xd1, 0x47, 0xd0, 0x65, 0x1b, 0x1a, 0xfd, 0x16, 0xb9, 0x9c, 0xfe, 0x4c, 0x3c, 0x4f, 0x2a, 0xdd, - 0xc5, 0x9d, 0x62, 0xf2, 0xca, 0xf3, 0xf4, 0xef, 0xa0, 0x57, 0x92, 0x8b, 0x43, 0x16, 0xc4, 0x14, - 0x3d, 0x86, 0x66, 0x44, 0xe3, 0xc4, 0xe3, 0xb9, 0xde, 0xfd, 0xe3, 0x7a, 0x58, 0x82, 0x70, 0x0e, - 0xd6, 0xff, 0x50, 0x00, 0x76, 0x95, 0x88, 0xf3, 0x71, 0x39, 0xf5, 0x0b, 0xfb, 0x8e, 0x1c, 0x25, - 0x96, 0x08, 0xf4, 0x0c, 0x1a, 0x1e, 0x59, 0x52, 0x2f, 0xee, 0xab, 0x52, 0xef, 0xe3, 0xd3, 0xfd, - 0x19, 0xcf, 0x25, 0xd0, 0x0e, 0x78, 0xb4, 0xc5, 0xd9, 0xae, 0xc1, 0x13, 0x68, 0x97, 0xa6, 0x91, - 0x06, 0xb5, 0x5f, 0xe8, 0x36, 0xb3, 0x5c, 0x0c, 0xc5, 0xd1, 0x6f, 0x88, 0x97, 0xe4, 0x6e, 0xa7, - 0x0f, 0x5f, 0xaa, 0x5f, 0x28, 0xfa, 0x3f, 0x0a, 0x74, 0xca, 0xdd, 0x64, 0xf1, 0xab, 0xbf, 0x39, - 0x7e, 0x87, 0x2a, 0x8f, 0x41, 0x65, 0xa1, 0x94, 0x38, 0x3f, 0xd5, 0x42, 0x2a, 0x62, 0x7c, 0x1f, - 0xd2, 0x88, 0x70, 0x97, 0x05, 0x58, 0x65, 0x21, 0x1a, 0x15, 0x29, 0xa9, 0x49, 0xd9, 0xc1, 0x31, - 0xd9, 0x34, 0x51, 0x79, 0x82, 0xf4, 0xaf, 0xa1, 0x55, 0x90, 0xa0, 0xf7, 0xa0, 0x7d, 0xfd, 0x72, - 0x31, 0xb7, 0x27, 0xb3, 0x6f, 0x66, 0xb6, 0xa5, 0xdd, 0x41, 0x00, 0x8d, 0x09, 0xb6, 0xaf, 0x5e, - 0xd9, 0x9a, 0x22, 0xc6, 0xd7, 0x73, 0x4b, 0x8c, 0x55, 0x31, 0xb6, 0xec, 0xe7, 0xf6, 0x2b, 0x5b, - 0xab, 0xe9, 0x4f, 0x41, 0x9b, 0x56, 0x93, 0xf6, 0x09, 0xd4, 0xdc, 0x75, 0x7e, 0xea, 0x27, 0xbb, - 0x17, 0x18, 0xdd, 0x86, 0xde, 0xf4, 0x20, 0x39, 0x97, 0x70, 0x26, 0x0e, 0xf4, 0x64, 0x4e, 0x53, - 0xb8, 0x3c, 0xf9, 0x14, 0xa8, 0xff, 0xad, 0x00, 0xec, 0x66, 0x6f, 0x91, 0x99, 0x9d, 0x69, 0xea, - 0xdb, 0x9a, 0x56, 0xca, 0x59, 0xed, 0x78, 0xce, 0x76, 0x95, 0xfc, 0xdf, 0x39, 0x7b, 0x0a, 0x9a, - 0x95, 0xf8, 0xa1, 0x28, 0x88, 0xfe, 0x07, 0xb7, 0x2d, 0xe8, 0x95, 0xb6, 0x67, 0x6e, 0x9b, 0xfb, - 0x6e, 0xdf, 0xab, 0x32, 0x48, 0x74, 0xd9, 0xec, 0x3f, 0x15, 0x68, 0x15, 0x93, 0xb7, 0xf0, 0x7a, - 0x02, 0x77, 0x7d, 0xca, 0x49, 0xf6, 0xb6, 0x15, 0x5a, 0x0f, 0x4f, 0x6a, 0x19, 0x2f, 0x32, 0x64, - 0x6a, 0x5d, 0xb1, 0x71, 0xf0, 0x15, 0x74, 0xf7, 0x96, 0x6e, 0x65, 0xdf, 0x0f, 0xa0, 0x2d, 0x92, - 0x65, 0xbc, 0x8a, 0xdc, 0x65, 0x61, 0xdf, 0x18, 0xba, 0x71, 0x3a, 0x17, 0x8a, 0x5b, 0x70, 0xf2, - 0x65, 0xb5, 0x28, 0x81, 0xf0, 0xfe, 0x16, 0xfd, 0x47, 0xe8, 0x95, 0x78, 0x33, 0x5f, 0xc7, 0xd0, - 0x0d, 0x18, 0x77, 0x6f, 0xdc, 0x15, 0x79, 0x2d, 0xf1, 0xcb, 0x12, 0x08, 0xef, 0x6f, 0xd1, 0x3f, - 0x87, 0x4e, 0x59, 0xf7, 0xad, 0xbf, 0x6a, 0xba, 0x07, 0x9d, 0x32, 0xef, 0xbb, 0xbd, 0x11, 0xa3, - 0xbf, 0x54, 0x38, 0x7f, 0x91, 0x7e, 0xb2, 0x17, 0x34, 0xda, 0xb8, 0x2b, 0x8a, 0xe6, 0xd0, 0x2a, - 0x3e, 0x09, 0xe8, 0xc1, 0x81, 0x99, 0x95, 0x57, 0xc6, 0xe0, 0xc3, 0xd7, 0x20, 0x32, 0x3f, 0xe7, - 0xd0, 0x9a, 0x9e, 0x66, 0x9c, 0xbe, 0x91, 0x71, 0x7a, 0x8c, 0xb1, 0xb8, 0x0e, 0x87, 0x8c, 0xd5, - 0x8b, 0x76, 0xc8, 0x78, 0x78, 0x97, 0x30, 0xb4, 0x8a, 0x20, 0x1c, 0xe9, 0xba, 0x92, 0xbd, 0x23, - 0x5d, 0x57, 0x53, 0x74, 0xa9, 0x8c, 0x2f, 0x7f, 0x32, 0x1c, 0x96, 0x03, 0x5d, 0x66, 0x6e, 0xc2, - 0xf0, 0x53, 0xe2, 0xd0, 0x80, 0x9b, 0x9b, 0x47, 0xe9, 0x2f, 0x90, 0xb9, 0xff, 0xf7, 0xb4, 0x6c, - 0xc8, 0xd9, 0x47, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x83, 0xe2, 0x29, 0xec, 0x56, 0x09, 0x00, - 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// ManagerServiceClient is the client API for ManagerService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ManagerServiceClient interface { - // SetConfig is used to update desired configuration. - SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) - // GetConfig is used to read the desired configuration. - GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error) - // DumpState is used to retrieve the actual running state. - DumpState(ctx context.Context, in *DumpStateRequest, opts ...grpc.CallOption) (*DumpStateResponse, error) - // Subscribe is used for subscribing to events. - // Notifications are returned by streaming updates. - Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (ManagerService_SubscribeClient, error) -} - -type managerServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewManagerServiceClient(cc grpc.ClientConnInterface) ManagerServiceClient { - return &managerServiceClient{cc} -} - -func (c *managerServiceClient) SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) { - out := new(SetConfigResponse) - err := c.cc.Invoke(ctx, "/ligato.generic.ManagerService/SetConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managerServiceClient) GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error) { - out := new(GetConfigResponse) - err := c.cc.Invoke(ctx, "/ligato.generic.ManagerService/GetConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managerServiceClient) DumpState(ctx context.Context, in *DumpStateRequest, opts ...grpc.CallOption) (*DumpStateResponse, error) { - out := new(DumpStateResponse) - err := c.cc.Invoke(ctx, "/ligato.generic.ManagerService/DumpState", in, out, opts...) - if err != nil { - return nil, err +func (x *Notification) GetItem() *Item { + if x != nil { + return x.Item } - return out, nil + return nil } -func (c *managerServiceClient) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (ManagerService_SubscribeClient, error) { - stream, err := c.cc.NewStream(ctx, &_ManagerService_serviceDesc.Streams[0], "/ligato.generic.ManagerService/Subscribe", opts...) - if err != nil { - return nil, err - } - x := &managerServiceSubscribeClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *Notification) GetStatus() *ItemStatus { + if x != nil { + return x.Status } - return x, nil + return nil } -type ManagerService_SubscribeClient interface { - Recv() (*SubscribeResponse, error) - grpc.ClientStream -} +// ID represents identifier for distinguishing items. +type Item_ID struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type managerServiceSubscribeClient struct { - grpc.ClientStream + Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } -func (x *managerServiceSubscribeClient) Recv() (*SubscribeResponse, error) { - m := new(SubscribeResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *Item_ID) Reset() { + *x = Item_ID{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_manager_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return m, nil } -// ManagerServiceServer is the server API for ManagerService service. -type ManagerServiceServer interface { - // SetConfig is used to update desired configuration. - SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error) - // GetConfig is used to read the desired configuration. - GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error) - // DumpState is used to retrieve the actual running state. - DumpState(context.Context, *DumpStateRequest) (*DumpStateResponse, error) - // Subscribe is used for subscribing to events. - // Notifications are returned by streaming updates. - Subscribe(*SubscribeRequest, ManagerService_SubscribeServer) error +func (x *Item_ID) String() string { + return protoimpl.X.MessageStringOf(x) } -// UnimplementedManagerServiceServer can be embedded to have forward compatible implementations. -type UnimplementedManagerServiceServer struct { -} +func (*Item_ID) ProtoMessage() {} -func (*UnimplementedManagerServiceServer) SetConfig(ctx context.Context, req *SetConfigRequest) (*SetConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetConfig not implemented") -} -func (*UnimplementedManagerServiceServer) GetConfig(ctx context.Context, req *GetConfigRequest) (*GetConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetConfig not implemented") -} -func (*UnimplementedManagerServiceServer) DumpState(ctx context.Context, req *DumpStateRequest) (*DumpStateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DumpState not implemented") -} -func (*UnimplementedManagerServiceServer) Subscribe(req *SubscribeRequest, srv ManagerService_SubscribeServer) error { - return status.Errorf(codes.Unimplemented, "method Subscribe not implemented") +func (x *Item_ID) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_manager_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func RegisterManagerServiceServer(s *grpc.Server, srv ManagerServiceServer) { - s.RegisterService(&_ManagerService_serviceDesc, srv) +// Deprecated: Use Item_ID.ProtoReflect.Descriptor instead. +func (*Item_ID) Descriptor() ([]byte, []int) { + return file_ligato_generic_manager_proto_rawDescGZIP(), []int{0, 0} } -func _ManagerService_SetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagerServiceServer).SetConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ligato.generic.ManagerService/SetConfig", +func (x *Item_ID) GetModel() string { + if x != nil { + return x.Model } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagerServiceServer).SetConfig(ctx, req.(*SetConfigRequest)) - } - return interceptor(ctx, in, info, handler) + return "" } -func _ManagerService_GetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetConfigRequest) - if err := dec(in); err != nil { - return nil, err +func (x *Item_ID) GetName() string { + if x != nil { + return x.Name } - if interceptor == nil { - return srv.(ManagerServiceServer).GetConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ligato.generic.ManagerService/GetConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagerServiceServer).GetConfig(ctx, req.(*GetConfigRequest)) - } - return interceptor(ctx, in, info, handler) + return "" } -func _ManagerService_DumpState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DumpStateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagerServiceServer).DumpState(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ligato.generic.ManagerService/DumpState", +var File_ligato_generic_manager_proto protoreflect.FileDescriptor + +var file_ligato_generic_manager_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, + 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x1a, 0x19, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x89, 0x01, 0x0a, 0x04, 0x49, 0x74, + 0x65, 0x6d, 0x12, 0x27, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, + 0x49, 0x74, 0x65, 0x6d, 0x2e, 0x49, 0x44, 0x52, 0x02, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x04, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x2e, 0x0a, 0x02, 0x49, 0x44, 0x12, 0x14, 0x0a, 0x05, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, + 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x39, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x12, 0x28, 0x0a, + 0x03, 0x61, 0x6e, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, + 0x48, 0x00, 0x52, 0x03, 0x61, 0x6e, 0x79, 0x42, 0x07, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, + 0x22, 0x3e, 0x0a, 0x0a, 0x49, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x22, 0x6d, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x74, 0x65, + 0x6d, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x6f, 0x76, + 0x65, 0x72, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x61, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0c, 0x6f, 0x76, 0x65, 0x72, 0x77, 0x72, 0x69, 0x74, 0x65, 0x41, 0x6c, 0x6c, 0x22, + 0x4b, 0x0a, 0x11, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xb1, 0x01, 0x0a, + 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x28, 0x0a, 0x04, 0x69, + 0x74, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x52, + 0x04, 0x69, 0x74, 0x65, 0x6d, 0x12, 0x3e, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x74, 0x65, + 0x6d, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x22, 0xf7, 0x01, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x12, 0x27, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x49, + 0x74, 0x65, 0x6d, 0x2e, 0x49, 0x44, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x36, 0x0a, 0x02, + 0x6f, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x02, 0x6f, 0x70, 0x12, 0x32, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x40, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, + 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x0a, + 0x0a, 0x06, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x03, 0x22, 0x3d, 0x0a, 0x10, 0x47, 0x65, + 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, + 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x49, 0x74, 0x65, + 0x6d, 0x2e, 0x49, 0x44, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0x45, 0x0a, 0x11, 0x47, 0x65, 0x74, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, + 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, + 0x22, 0xe5, 0x01, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x74, 0x65, 0x6d, 0x12, + 0x28, 0x0a, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x49, + 0x74, 0x65, 0x6d, 0x52, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x12, 0x32, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3e, 0x0a, + 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, + 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3d, 0x0a, 0x10, 0x44, 0x75, 0x6d, 0x70, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x03, + 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x2e, + 0x49, 0x44, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0x44, 0x0a, 0x11, 0x44, 0x75, 0x6d, 0x70, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x05, + 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0xb7, 0x01, + 0x0a, 0x09, 0x53, 0x74, 0x61, 0x74, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x28, 0x0a, 0x04, 0x69, + 0x74, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x52, + 0x04, 0x69, 0x74, 0x65, 0x6d, 0x12, 0x43, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x49, 0x74, + 0x65, 0x6d, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x56, 0x0a, 0x10, 0x53, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x0d, 0x73, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x69, 0x63, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x0d, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, + 0x57, 0x0a, 0x11, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x4e, 0x6f, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x6e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x37, 0x0a, 0x0c, 0x53, 0x75, 0x62, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x2e, 0x49, 0x44, 0x52, 0x02, 0x69, + 0x64, 0x22, 0x6c, 0x0a, 0x0c, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x28, 0x0a, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x14, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, + 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x12, 0x32, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x49, 0x74, 0x65, + 0x6d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x32, + 0xda, 0x02, 0x0a, 0x0e, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x50, 0x0a, 0x09, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, + 0x20, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, + 0x2e, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x21, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x69, 0x63, 0x2e, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x20, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x69, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x69, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x09, 0x44, 0x75, 0x6d, 0x70, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x20, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x69, 0x63, 0x2e, 0x44, 0x75, 0x6d, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x44, 0x75, 0x6d, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x73, + 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, 0x20, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, 0x30, 0x5a, 0x2e, + 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, + 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_generic_manager_proto_rawDescOnce sync.Once + file_ligato_generic_manager_proto_rawDescData = file_ligato_generic_manager_proto_rawDesc +) + +func file_ligato_generic_manager_proto_rawDescGZIP() []byte { + file_ligato_generic_manager_proto_rawDescOnce.Do(func() { + file_ligato_generic_manager_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_generic_manager_proto_rawDescData) + }) + return file_ligato_generic_manager_proto_rawDescData +} + +var file_ligato_generic_manager_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_ligato_generic_manager_proto_msgTypes = make([]protoimpl.MessageInfo, 21) +var file_ligato_generic_manager_proto_goTypes = []interface{}{ + (UpdateResult_Operation)(0), // 0: ligato.generic.UpdateResult.Operation + (*Item)(nil), // 1: ligato.generic.Item + (*Data)(nil), // 2: ligato.generic.Data + (*ItemStatus)(nil), // 3: ligato.generic.ItemStatus + (*SetConfigRequest)(nil), // 4: ligato.generic.SetConfigRequest + (*SetConfigResponse)(nil), // 5: ligato.generic.SetConfigResponse + (*UpdateItem)(nil), // 6: ligato.generic.UpdateItem + (*UpdateResult)(nil), // 7: ligato.generic.UpdateResult + (*GetConfigRequest)(nil), // 8: ligato.generic.GetConfigRequest + (*GetConfigResponse)(nil), // 9: ligato.generic.GetConfigResponse + (*ConfigItem)(nil), // 10: ligato.generic.ConfigItem + (*DumpStateRequest)(nil), // 11: ligato.generic.DumpStateRequest + (*DumpStateResponse)(nil), // 12: ligato.generic.DumpStateResponse + (*StateItem)(nil), // 13: ligato.generic.StateItem + (*SubscribeRequest)(nil), // 14: ligato.generic.SubscribeRequest + (*SubscribeResponse)(nil), // 15: ligato.generic.SubscribeResponse + (*Subscription)(nil), // 16: ligato.generic.Subscription + (*Notification)(nil), // 17: ligato.generic.Notification + (*Item_ID)(nil), // 18: ligato.generic.Item.ID + nil, // 19: ligato.generic.UpdateItem.LabelsEntry + nil, // 20: ligato.generic.ConfigItem.LabelsEntry + nil, // 21: ligato.generic.StateItem.MetadataEntry + (*any.Any)(nil), // 22: google.protobuf.Any +} +var file_ligato_generic_manager_proto_depIdxs = []int32{ + 18, // 0: ligato.generic.Item.id:type_name -> ligato.generic.Item.ID + 2, // 1: ligato.generic.Item.data:type_name -> ligato.generic.Data + 22, // 2: ligato.generic.Data.any:type_name -> google.protobuf.Any + 6, // 3: ligato.generic.SetConfigRequest.updates:type_name -> ligato.generic.UpdateItem + 7, // 4: ligato.generic.SetConfigResponse.results:type_name -> ligato.generic.UpdateResult + 1, // 5: ligato.generic.UpdateItem.item:type_name -> ligato.generic.Item + 19, // 6: ligato.generic.UpdateItem.labels:type_name -> ligato.generic.UpdateItem.LabelsEntry + 18, // 7: ligato.generic.UpdateResult.id:type_name -> ligato.generic.Item.ID + 0, // 8: ligato.generic.UpdateResult.op:type_name -> ligato.generic.UpdateResult.Operation + 3, // 9: ligato.generic.UpdateResult.status:type_name -> ligato.generic.ItemStatus + 18, // 10: ligato.generic.GetConfigRequest.ids:type_name -> ligato.generic.Item.ID + 10, // 11: ligato.generic.GetConfigResponse.items:type_name -> ligato.generic.ConfigItem + 1, // 12: ligato.generic.ConfigItem.item:type_name -> ligato.generic.Item + 3, // 13: ligato.generic.ConfigItem.status:type_name -> ligato.generic.ItemStatus + 20, // 14: ligato.generic.ConfigItem.labels:type_name -> ligato.generic.ConfigItem.LabelsEntry + 18, // 15: ligato.generic.DumpStateRequest.ids:type_name -> ligato.generic.Item.ID + 13, // 16: ligato.generic.DumpStateResponse.items:type_name -> ligato.generic.StateItem + 1, // 17: ligato.generic.StateItem.item:type_name -> ligato.generic.Item + 21, // 18: ligato.generic.StateItem.metadata:type_name -> ligato.generic.StateItem.MetadataEntry + 16, // 19: ligato.generic.SubscribeRequest.subscriptions:type_name -> ligato.generic.Subscription + 17, // 20: ligato.generic.SubscribeResponse.notifications:type_name -> ligato.generic.Notification + 18, // 21: ligato.generic.Subscription.id:type_name -> ligato.generic.Item.ID + 1, // 22: ligato.generic.Notification.item:type_name -> ligato.generic.Item + 3, // 23: ligato.generic.Notification.status:type_name -> ligato.generic.ItemStatus + 4, // 24: ligato.generic.ManagerService.SetConfig:input_type -> ligato.generic.SetConfigRequest + 8, // 25: ligato.generic.ManagerService.GetConfig:input_type -> ligato.generic.GetConfigRequest + 11, // 26: ligato.generic.ManagerService.DumpState:input_type -> ligato.generic.DumpStateRequest + 14, // 27: ligato.generic.ManagerService.Subscribe:input_type -> ligato.generic.SubscribeRequest + 5, // 28: ligato.generic.ManagerService.SetConfig:output_type -> ligato.generic.SetConfigResponse + 9, // 29: ligato.generic.ManagerService.GetConfig:output_type -> ligato.generic.GetConfigResponse + 12, // 30: ligato.generic.ManagerService.DumpState:output_type -> ligato.generic.DumpStateResponse + 15, // 31: ligato.generic.ManagerService.Subscribe:output_type -> ligato.generic.SubscribeResponse + 28, // [28:32] is the sub-list for method output_type + 24, // [24:28] is the sub-list for method input_type + 24, // [24:24] is the sub-list for extension type_name + 24, // [24:24] is the sub-list for extension extendee + 0, // [0:24] is the sub-list for field type_name +} + +func init() { file_ligato_generic_manager_proto_init() } +func file_ligato_generic_manager_proto_init() { + if File_ligato_generic_manager_proto != nil { + return } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagerServiceServer).DumpState(ctx, req.(*DumpStateRequest)) + if !protoimpl.UnsafeEnabled { + file_ligato_generic_manager_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Item); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_manager_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Data); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_manager_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ItemStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_manager_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetConfigRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_manager_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetConfigResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_manager_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_manager_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_manager_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetConfigRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_manager_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetConfigResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_manager_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConfigItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_manager_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DumpStateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_manager_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DumpStateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_manager_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StateItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_manager_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubscribeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_manager_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubscribeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_manager_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Subscription); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_manager_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Notification); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_manager_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Item_ID); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - return interceptor(ctx, in, info, handler) -} - -func _ManagerService_Subscribe_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(SubscribeRequest) - if err := stream.RecvMsg(m); err != nil { - return err + file_ligato_generic_manager_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*Data_Any)(nil), } - return srv.(ManagerServiceServer).Subscribe(m, &managerServiceSubscribeServer{stream}) -} - -type ManagerService_SubscribeServer interface { - Send(*SubscribeResponse) error - grpc.ServerStream -} - -type managerServiceSubscribeServer struct { - grpc.ServerStream -} - -func (x *managerServiceSubscribeServer) Send(m *SubscribeResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _ManagerService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "ligato.generic.ManagerService", - HandlerType: (*ManagerServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "SetConfig", - Handler: _ManagerService_SetConfig_Handler, - }, - { - MethodName: "GetConfig", - Handler: _ManagerService_GetConfig_Handler, - }, - { - MethodName: "DumpState", - Handler: _ManagerService_DumpState_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Subscribe", - Handler: _ManagerService_Subscribe_Handler, - ServerStreams: true, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_generic_manager_proto_rawDesc, + NumEnums: 1, + NumMessages: 21, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "ligato/generic/manager.proto", + GoTypes: file_ligato_generic_manager_proto_goTypes, + DependencyIndexes: file_ligato_generic_manager_proto_depIdxs, + EnumInfos: file_ligato_generic_manager_proto_enumTypes, + MessageInfos: file_ligato_generic_manager_proto_msgTypes, + }.Build() + File_ligato_generic_manager_proto = out.File + file_ligato_generic_manager_proto_rawDesc = nil + file_ligato_generic_manager_proto_goTypes = nil + file_ligato_generic_manager_proto_depIdxs = nil } diff --git a/proto/ligato/generic/manager_grpc.pb.go b/proto/ligato/generic/manager_grpc.pb.go new file mode 100644 index 0000000000..18ffa92092 --- /dev/null +++ b/proto/ligato/generic/manager_grpc.pb.go @@ -0,0 +1,236 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package generic + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// ManagerServiceClient is the client API for ManagerService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ManagerServiceClient interface { + // SetConfig is used to update desired configuration. + SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) + // GetConfig is used to read the desired configuration. + GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error) + // DumpState is used to retrieve the actual running state. + DumpState(ctx context.Context, in *DumpStateRequest, opts ...grpc.CallOption) (*DumpStateResponse, error) + // Subscribe is used for subscribing to events. + // Notifications are returned by streaming updates. + Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (ManagerService_SubscribeClient, error) +} + +type managerServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewManagerServiceClient(cc grpc.ClientConnInterface) ManagerServiceClient { + return &managerServiceClient{cc} +} + +func (c *managerServiceClient) SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) { + out := new(SetConfigResponse) + err := c.cc.Invoke(ctx, "/ligato.generic.ManagerService/SetConfig", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managerServiceClient) GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error) { + out := new(GetConfigResponse) + err := c.cc.Invoke(ctx, "/ligato.generic.ManagerService/GetConfig", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managerServiceClient) DumpState(ctx context.Context, in *DumpStateRequest, opts ...grpc.CallOption) (*DumpStateResponse, error) { + out := new(DumpStateResponse) + err := c.cc.Invoke(ctx, "/ligato.generic.ManagerService/DumpState", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managerServiceClient) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (ManagerService_SubscribeClient, error) { + stream, err := c.cc.NewStream(ctx, &_ManagerService_serviceDesc.Streams[0], "/ligato.generic.ManagerService/Subscribe", opts...) + if err != nil { + return nil, err + } + x := &managerServiceSubscribeClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ManagerService_SubscribeClient interface { + Recv() (*SubscribeResponse, error) + grpc.ClientStream +} + +type managerServiceSubscribeClient struct { + grpc.ClientStream +} + +func (x *managerServiceSubscribeClient) Recv() (*SubscribeResponse, error) { + m := new(SubscribeResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// ManagerServiceServer is the server API for ManagerService service. +// All implementations must embed UnimplementedManagerServiceServer +// for forward compatibility +type ManagerServiceServer interface { + // SetConfig is used to update desired configuration. + SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error) + // GetConfig is used to read the desired configuration. + GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error) + // DumpState is used to retrieve the actual running state. + DumpState(context.Context, *DumpStateRequest) (*DumpStateResponse, error) + // Subscribe is used for subscribing to events. + // Notifications are returned by streaming updates. + Subscribe(*SubscribeRequest, ManagerService_SubscribeServer) error + mustEmbedUnimplementedManagerServiceServer() +} + +// UnimplementedManagerServiceServer must be embedded to have forward compatible implementations. +type UnimplementedManagerServiceServer struct { +} + +func (*UnimplementedManagerServiceServer) SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetConfig not implemented") +} +func (*UnimplementedManagerServiceServer) GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetConfig not implemented") +} +func (*UnimplementedManagerServiceServer) DumpState(context.Context, *DumpStateRequest) (*DumpStateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DumpState not implemented") +} +func (*UnimplementedManagerServiceServer) Subscribe(*SubscribeRequest, ManagerService_SubscribeServer) error { + return status.Errorf(codes.Unimplemented, "method Subscribe not implemented") +} +func (*UnimplementedManagerServiceServer) mustEmbedUnimplementedManagerServiceServer() {} + +func RegisterManagerServiceServer(s *grpc.Server, srv ManagerServiceServer) { + s.RegisterService(&_ManagerService_serviceDesc, srv) +} + +func _ManagerService_SetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetConfigRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagerServiceServer).SetConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ligato.generic.ManagerService/SetConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagerServiceServer).SetConfig(ctx, req.(*SetConfigRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagerService_GetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetConfigRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagerServiceServer).GetConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ligato.generic.ManagerService/GetConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagerServiceServer).GetConfig(ctx, req.(*GetConfigRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagerService_DumpState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DumpStateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagerServiceServer).DumpState(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ligato.generic.ManagerService/DumpState", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagerServiceServer).DumpState(ctx, req.(*DumpStateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagerService_Subscribe_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(SubscribeRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ManagerServiceServer).Subscribe(m, &managerServiceSubscribeServer{stream}) +} + +type ManagerService_SubscribeServer interface { + Send(*SubscribeResponse) error + grpc.ServerStream +} + +type managerServiceSubscribeServer struct { + grpc.ServerStream +} + +func (x *managerServiceSubscribeServer) Send(m *SubscribeResponse) error { + return x.ServerStream.SendMsg(m) +} + +var _ManagerService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "ligato.generic.ManagerService", + HandlerType: (*ManagerServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "SetConfig", + Handler: _ManagerService_SetConfig_Handler, + }, + { + MethodName: "GetConfig", + Handler: _ManagerService_GetConfig_Handler, + }, + { + MethodName: "DumpState", + Handler: _ManagerService_DumpState_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Subscribe", + Handler: _ManagerService_Subscribe_Handler, + ServerStreams: true, + }, + }, + Metadata: "ligato/generic/manager.proto", +} diff --git a/proto/ligato/generic/meta.pb.go b/proto/ligato/generic/meta.pb.go index 775179312a..6996d4cf4c 100644 --- a/proto/ligato/generic/meta.pb.go +++ b/proto/ligato/generic/meta.pb.go @@ -1,222 +1,240 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/generic/meta.proto package generic import ( - context "context" - fmt "fmt" proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type KnownModelsRequest struct { - Class string `protobuf:"bytes,1,opt,name=class,proto3" json:"class,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *KnownModelsRequest) Reset() { *m = KnownModelsRequest{} } -func (m *KnownModelsRequest) String() string { return proto.CompactTextString(m) } -func (*KnownModelsRequest) ProtoMessage() {} -func (*KnownModelsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f153e6a4d289f1e7, []int{0} + Class string `protobuf:"bytes,1,opt,name=class,proto3" json:"class,omitempty"` } -func (m *KnownModelsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_KnownModelsRequest.Unmarshal(m, b) -} -func (m *KnownModelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_KnownModelsRequest.Marshal(b, m, deterministic) -} -func (m *KnownModelsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_KnownModelsRequest.Merge(m, src) -} -func (m *KnownModelsRequest) XXX_Size() int { - return xxx_messageInfo_KnownModelsRequest.Size(m) -} -func (m *KnownModelsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_KnownModelsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_KnownModelsRequest proto.InternalMessageInfo - -func (m *KnownModelsRequest) GetClass() string { - if m != nil { - return m.Class +func (x *KnownModelsRequest) Reset() { + *x = KnownModelsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_meta_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -type KnownModelsResponse struct { - KnownModels []*ModelDetail `protobuf:"bytes,1,rep,name=known_models,json=knownModels,proto3" json:"known_models,omitempty"` - ActiveModules []string `protobuf:"bytes,2,rep,name=active_modules,json=activeModules,proto3" json:"active_modules,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *KnownModelsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *KnownModelsResponse) Reset() { *m = KnownModelsResponse{} } -func (m *KnownModelsResponse) String() string { return proto.CompactTextString(m) } -func (*KnownModelsResponse) ProtoMessage() {} -func (*KnownModelsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f153e6a4d289f1e7, []int{1} -} +func (*KnownModelsRequest) ProtoMessage() {} -func (m *KnownModelsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_KnownModelsResponse.Unmarshal(m, b) -} -func (m *KnownModelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_KnownModelsResponse.Marshal(b, m, deterministic) -} -func (m *KnownModelsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_KnownModelsResponse.Merge(m, src) -} -func (m *KnownModelsResponse) XXX_Size() int { - return xxx_messageInfo_KnownModelsResponse.Size(m) -} -func (m *KnownModelsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_KnownModelsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_KnownModelsResponse proto.InternalMessageInfo - -func (m *KnownModelsResponse) GetKnownModels() []*ModelDetail { - if m != nil { - return m.KnownModels +func (x *KnownModelsRequest) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_meta_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *KnownModelsResponse) GetActiveModules() []string { - if m != nil { - return m.ActiveModules - } - return nil +// Deprecated: Use KnownModelsRequest.ProtoReflect.Descriptor instead. +func (*KnownModelsRequest) Descriptor() ([]byte, []int) { + return file_ligato_generic_meta_proto_rawDescGZIP(), []int{0} } -func init() { - proto.RegisterType((*KnownModelsRequest)(nil), "ligato.generic.KnownModelsRequest") - proto.RegisterType((*KnownModelsResponse)(nil), "ligato.generic.KnownModelsResponse") +func (x *KnownModelsRequest) GetClass() string { + if x != nil { + return x.Class + } + return "" } -func init() { proto.RegisterFile("ligato/generic/meta.proto", fileDescriptor_f153e6a4d289f1e7) } +type KnownModelsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -var fileDescriptor_f153e6a4d289f1e7 = []byte{ - // 247 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0x41, 0x4b, 0xc4, 0x30, - 0x10, 0x46, 0x59, 0x17, 0x85, 0x9d, 0xea, 0x1e, 0xa2, 0x87, 0xb5, 0x5e, 0x96, 0x8a, 0x50, 0x04, - 0x13, 0xd9, 0xbd, 0x7b, 0x10, 0x6f, 0xd2, 0x4b, 0x05, 0x0f, 0x5e, 0x24, 0xd6, 0xa1, 0x84, 0x8d, - 0x99, 0xda, 0xcc, 0xd6, 0x8b, 0x3f, 0x5e, 0x9a, 0x28, 0xda, 0x0a, 0x7b, 0xcc, 0x9b, 0x37, 0x5f, - 0x66, 0x06, 0x4e, 0xad, 0xa9, 0x35, 0x93, 0xaa, 0xd1, 0x61, 0x6b, 0x2a, 0xf5, 0x86, 0xac, 0x65, - 0xd3, 0x12, 0x93, 0x98, 0xc7, 0x92, 0xfc, 0x2e, 0xa5, 0xe9, 0x58, 0xa5, 0x57, 0xb4, 0xd1, 0xcd, - 0x2e, 0x41, 0xdc, 0x3b, 0xfa, 0x70, 0x45, 0xcf, 0x7c, 0x89, 0xef, 0x5b, 0xf4, 0x2c, 0x4e, 0x60, - 0xbf, 0xb2, 0xda, 0xfb, 0xc5, 0x64, 0x39, 0xc9, 0x67, 0x65, 0x7c, 0x64, 0x9f, 0x70, 0x3c, 0x70, - 0x7d, 0x43, 0xce, 0xa3, 0xb8, 0x81, 0xc3, 0x4d, 0x8f, 0x9f, 0x43, 0x6e, 0xdf, 0x33, 0xcd, 0x93, - 0xd5, 0x99, 0x1c, 0x4e, 0x21, 0x43, 0xd7, 0x1d, 0xb2, 0x36, 0xb6, 0x4c, 0x36, 0xbf, 0x39, 0xe2, - 0x02, 0xe6, 0xba, 0x62, 0xd3, 0x61, 0x1f, 0xb0, 0xb5, 0xe8, 0x17, 0x7b, 0xcb, 0x69, 0x3e, 0x2b, - 0x8f, 0x22, 0x2d, 0x22, 0x5c, 0x21, 0x24, 0x05, 0xb2, 0x7e, 0xc0, 0xb6, 0x33, 0x15, 0x8a, 0x47, - 0x48, 0xfe, 0x0c, 0x23, 0xb2, 0xf1, 0x77, 0xff, 0xb7, 0x4a, 0xcf, 0x77, 0x3a, 0x71, 0x9b, 0xdb, - 0xeb, 0x27, 0x59, 0xd3, 0x8f, 0x68, 0x48, 0x75, 0x4d, 0x73, 0xa5, 0x6b, 0x74, 0xac, 0xba, 0xb5, - 0x0a, 0x37, 0x53, 0xc3, 0x73, 0xbe, 0x1c, 0x04, 0xba, 0xfe, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x1e, - 0xdc, 0x33, 0x75, 0x92, 0x01, 0x00, 0x00, + KnownModels []*ModelDetail `protobuf:"bytes,1,rep,name=known_models,json=knownModels,proto3" json:"known_models,omitempty"` + ActiveModules []string `protobuf:"bytes,2,rep,name=active_modules,json=activeModules,proto3" json:"active_modules,omitempty"` } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// MetaServiceClient is the client API for MetaService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MetaServiceClient interface { - // KnownModels returns information about service capabilities - // including list of models supported by the server. - KnownModels(ctx context.Context, in *KnownModelsRequest, opts ...grpc.CallOption) (*KnownModelsResponse, error) +func (x *KnownModelsResponse) Reset() { + *x = KnownModelsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_meta_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -type metaServiceClient struct { - cc grpc.ClientConnInterface +func (x *KnownModelsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func NewMetaServiceClient(cc grpc.ClientConnInterface) MetaServiceClient { - return &metaServiceClient{cc} -} +func (*KnownModelsResponse) ProtoMessage() {} -func (c *metaServiceClient) KnownModels(ctx context.Context, in *KnownModelsRequest, opts ...grpc.CallOption) (*KnownModelsResponse, error) { - out := new(KnownModelsResponse) - err := c.cc.Invoke(ctx, "/ligato.generic.MetaService/KnownModels", in, out, opts...) - if err != nil { - return nil, err +func (x *KnownModelsResponse) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_meta_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil + return mi.MessageOf(x) } -// MetaServiceServer is the server API for MetaService service. -type MetaServiceServer interface { - // KnownModels returns information about service capabilities - // including list of models supported by the server. - KnownModels(context.Context, *KnownModelsRequest) (*KnownModelsResponse, error) +// Deprecated: Use KnownModelsResponse.ProtoReflect.Descriptor instead. +func (*KnownModelsResponse) Descriptor() ([]byte, []int) { + return file_ligato_generic_meta_proto_rawDescGZIP(), []int{1} } -// UnimplementedMetaServiceServer can be embedded to have forward compatible implementations. -type UnimplementedMetaServiceServer struct { +func (x *KnownModelsResponse) GetKnownModels() []*ModelDetail { + if x != nil { + return x.KnownModels + } + return nil } -func (*UnimplementedMetaServiceServer) KnownModels(ctx context.Context, req *KnownModelsRequest) (*KnownModelsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KnownModels not implemented") +func (x *KnownModelsResponse) GetActiveModules() []string { + if x != nil { + return x.ActiveModules + } + return nil } -func RegisterMetaServiceServer(s *grpc.Server, srv MetaServiceServer) { - s.RegisterService(&_MetaService_serviceDesc, srv) -} +var File_ligato_generic_meta_proto protoreflect.FileDescriptor + +var file_ligato_generic_meta_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, + 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6c, 0x69, 0x67, + 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x1a, 0x1a, 0x6c, 0x69, 0x67, + 0x61, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2f, 0x6d, 0x6f, 0x64, 0x65, + 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2a, 0x0a, 0x12, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, + 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, + 0x05, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6c, + 0x61, 0x73, 0x73, 0x22, 0x7c, 0x0a, 0x13, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0c, 0x6b, 0x6e, + 0x6f, 0x77, 0x6e, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x1b, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, + 0x63, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x0b, 0x6b, + 0x6e, 0x6f, 0x77, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x63, + 0x74, 0x69, 0x76, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, + 0x73, 0x32, 0x65, 0x0a, 0x0b, 0x4d, 0x65, 0x74, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x56, 0x0a, 0x0b, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x12, + 0x22, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, + 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x69, 0x63, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x6f, 0x2e, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_ligato_generic_meta_proto_rawDescOnce sync.Once + file_ligato_generic_meta_proto_rawDescData = file_ligato_generic_meta_proto_rawDesc +) -func _MetaService_KnownModels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(KnownModelsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MetaServiceServer).KnownModels(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ligato.generic.MetaService/KnownModels", +func file_ligato_generic_meta_proto_rawDescGZIP() []byte { + file_ligato_generic_meta_proto_rawDescOnce.Do(func() { + file_ligato_generic_meta_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_generic_meta_proto_rawDescData) + }) + return file_ligato_generic_meta_proto_rawDescData +} + +var file_ligato_generic_meta_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_ligato_generic_meta_proto_goTypes = []interface{}{ + (*KnownModelsRequest)(nil), // 0: ligato.generic.KnownModelsRequest + (*KnownModelsResponse)(nil), // 1: ligato.generic.KnownModelsResponse + (*ModelDetail)(nil), // 2: ligato.generic.ModelDetail +} +var file_ligato_generic_meta_proto_depIdxs = []int32{ + 2, // 0: ligato.generic.KnownModelsResponse.known_models:type_name -> ligato.generic.ModelDetail + 0, // 1: ligato.generic.MetaService.KnownModels:input_type -> ligato.generic.KnownModelsRequest + 1, // 2: ligato.generic.MetaService.KnownModels:output_type -> ligato.generic.KnownModelsResponse + 2, // [2:3] is the sub-list for method output_type + 1, // [1:2] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_ligato_generic_meta_proto_init() } +func file_ligato_generic_meta_proto_init() { + if File_ligato_generic_meta_proto != nil { + return } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetaServiceServer).KnownModels(ctx, req.(*KnownModelsRequest)) + file_ligato_generic_model_proto_init() + if !protoimpl.UnsafeEnabled { + file_ligato_generic_meta_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*KnownModelsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_meta_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*KnownModelsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - return interceptor(ctx, in, info, handler) -} - -var _MetaService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "ligato.generic.MetaService", - HandlerType: (*MetaServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "KnownModels", - Handler: _MetaService_KnownModels_Handler, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_generic_meta_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "ligato/generic/meta.proto", + GoTypes: file_ligato_generic_meta_proto_goTypes, + DependencyIndexes: file_ligato_generic_meta_proto_depIdxs, + MessageInfos: file_ligato_generic_meta_proto_msgTypes, + }.Build() + File_ligato_generic_meta_proto = out.File + file_ligato_generic_meta_proto_rawDesc = nil + file_ligato_generic_meta_proto_goTypes = nil + file_ligato_generic_meta_proto_depIdxs = nil } diff --git a/proto/ligato/generic/meta_grpc.pb.go b/proto/ligato/generic/meta_grpc.pb.go new file mode 100644 index 0000000000..fd5c2f840a --- /dev/null +++ b/proto/ligato/generic/meta_grpc.pb.go @@ -0,0 +1,94 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package generic + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// MetaServiceClient is the client API for MetaService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type MetaServiceClient interface { + // KnownModels returns information about service capabilities + // including list of models supported by the server. + KnownModels(ctx context.Context, in *KnownModelsRequest, opts ...grpc.CallOption) (*KnownModelsResponse, error) +} + +type metaServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewMetaServiceClient(cc grpc.ClientConnInterface) MetaServiceClient { + return &metaServiceClient{cc} +} + +func (c *metaServiceClient) KnownModels(ctx context.Context, in *KnownModelsRequest, opts ...grpc.CallOption) (*KnownModelsResponse, error) { + out := new(KnownModelsResponse) + err := c.cc.Invoke(ctx, "/ligato.generic.MetaService/KnownModels", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MetaServiceServer is the server API for MetaService service. +// All implementations must embed UnimplementedMetaServiceServer +// for forward compatibility +type MetaServiceServer interface { + // KnownModels returns information about service capabilities + // including list of models supported by the server. + KnownModels(context.Context, *KnownModelsRequest) (*KnownModelsResponse, error) + mustEmbedUnimplementedMetaServiceServer() +} + +// UnimplementedMetaServiceServer must be embedded to have forward compatible implementations. +type UnimplementedMetaServiceServer struct { +} + +func (*UnimplementedMetaServiceServer) KnownModels(context.Context, *KnownModelsRequest) (*KnownModelsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KnownModels not implemented") +} +func (*UnimplementedMetaServiceServer) mustEmbedUnimplementedMetaServiceServer() {} + +func RegisterMetaServiceServer(s *grpc.Server, srv MetaServiceServer) { + s.RegisterService(&_MetaService_serviceDesc, srv) +} + +func _MetaService_KnownModels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(KnownModelsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MetaServiceServer).KnownModels(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ligato.generic.MetaService/KnownModels", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MetaServiceServer).KnownModels(ctx, req.(*KnownModelsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _MetaService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "ligato.generic.MetaService", + HandlerType: (*MetaServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "KnownModels", + Handler: _MetaService_KnownModels_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "ligato/generic/meta.proto", +} diff --git a/proto/ligato/generic/model.pb.go b/proto/ligato/generic/model.pb.go index c11101c532..9f49e59e77 100644 --- a/proto/ligato/generic/model.pb.go +++ b/proto/ligato/generic/model.pb.go @@ -1,27 +1,36 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/generic/model.proto package generic import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 // ModelSpec defines a model specification to identify a model. type ModelSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Module describes grouping for the model. Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` // Version describes version of the model schema. @@ -29,196 +38,308 @@ type ModelSpec struct { // Type describes name of type described by this model. Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // Class describes purpose for the model. - Class string `protobuf:"bytes,4,opt,name=class,proto3" json:"class,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Class string `protobuf:"bytes,4,opt,name=class,proto3" json:"class,omitempty"` } -func (m *ModelSpec) Reset() { *m = ModelSpec{} } -func (m *ModelSpec) String() string { return proto.CompactTextString(m) } -func (*ModelSpec) ProtoMessage() {} -func (*ModelSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_13d85de19425b7f8, []int{0} +func (x *ModelSpec) Reset() { + *x = ModelSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_model_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ModelSpec) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ModelSpec.Unmarshal(m, b) -} -func (m *ModelSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ModelSpec.Marshal(b, m, deterministic) -} -func (m *ModelSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_ModelSpec.Merge(m, src) +func (x *ModelSpec) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ModelSpec) XXX_Size() int { - return xxx_messageInfo_ModelSpec.Size(m) -} -func (m *ModelSpec) XXX_DiscardUnknown() { - xxx_messageInfo_ModelSpec.DiscardUnknown(m) + +func (*ModelSpec) ProtoMessage() {} + +func (x *ModelSpec) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_model_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ModelSpec proto.InternalMessageInfo +// Deprecated: Use ModelSpec.ProtoReflect.Descriptor instead. +func (*ModelSpec) Descriptor() ([]byte, []int) { + return file_ligato_generic_model_proto_rawDescGZIP(), []int{0} +} -func (m *ModelSpec) GetModule() string { - if m != nil { - return m.Module +func (x *ModelSpec) GetModule() string { + if x != nil { + return x.Module } return "" } -func (m *ModelSpec) GetVersion() string { - if m != nil { - return m.Version +func (x *ModelSpec) GetVersion() string { + if x != nil { + return x.Version } return "" } -func (m *ModelSpec) GetType() string { - if m != nil { - return m.Type +func (x *ModelSpec) GetType() string { + if x != nil { + return x.Type } return "" } -func (m *ModelSpec) GetClass() string { - if m != nil { - return m.Class +func (x *ModelSpec) GetClass() string { + if x != nil { + return x.Class } return "" } // ModelDetail represents info about model details. type ModelDetail struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Spec is a specificaiton the model was registered with. Spec *ModelSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` // ProtoName is a name of protobuf message representing the model. - ProtoName string `protobuf:"bytes,2,opt,name=proto_name,json=protoName,proto3" json:"proto_name,omitempty"` - Options []*ModelDetail_Option `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ProtoName string `protobuf:"bytes,2,opt,name=proto_name,json=protoName,proto3" json:"proto_name,omitempty"` + Options []*ModelDetail_Option `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"` } -func (m *ModelDetail) Reset() { *m = ModelDetail{} } -func (m *ModelDetail) String() string { return proto.CompactTextString(m) } -func (*ModelDetail) ProtoMessage() {} -func (*ModelDetail) Descriptor() ([]byte, []int) { - return fileDescriptor_13d85de19425b7f8, []int{1} +func (x *ModelDetail) Reset() { + *x = ModelDetail{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_model_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ModelDetail) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ModelDetail.Unmarshal(m, b) -} -func (m *ModelDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ModelDetail.Marshal(b, m, deterministic) -} -func (m *ModelDetail) XXX_Merge(src proto.Message) { - xxx_messageInfo_ModelDetail.Merge(m, src) -} -func (m *ModelDetail) XXX_Size() int { - return xxx_messageInfo_ModelDetail.Size(m) +func (x *ModelDetail) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ModelDetail) XXX_DiscardUnknown() { - xxx_messageInfo_ModelDetail.DiscardUnknown(m) + +func (*ModelDetail) ProtoMessage() {} + +func (x *ModelDetail) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_model_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ModelDetail proto.InternalMessageInfo +// Deprecated: Use ModelDetail.ProtoReflect.Descriptor instead. +func (*ModelDetail) Descriptor() ([]byte, []int) { + return file_ligato_generic_model_proto_rawDescGZIP(), []int{1} +} -func (m *ModelDetail) GetSpec() *ModelSpec { - if m != nil { - return m.Spec +func (x *ModelDetail) GetSpec() *ModelSpec { + if x != nil { + return x.Spec } return nil } -func (m *ModelDetail) GetProtoName() string { - if m != nil { - return m.ProtoName +func (x *ModelDetail) GetProtoName() string { + if x != nil { + return x.ProtoName } return "" } -func (m *ModelDetail) GetOptions() []*ModelDetail_Option { - if m != nil { - return m.Options +func (x *ModelDetail) GetOptions() []*ModelDetail_Option { + if x != nil { + return x.Options } return nil } type ModelDetail_Option struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ModelDetail_Option) Reset() { *m = ModelDetail_Option{} } -func (m *ModelDetail_Option) String() string { return proto.CompactTextString(m) } -func (*ModelDetail_Option) ProtoMessage() {} -func (*ModelDetail_Option) Descriptor() ([]byte, []int) { - return fileDescriptor_13d85de19425b7f8, []int{1, 0} + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` } -func (m *ModelDetail_Option) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ModelDetail_Option.Unmarshal(m, b) -} -func (m *ModelDetail_Option) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ModelDetail_Option.Marshal(b, m, deterministic) -} -func (m *ModelDetail_Option) XXX_Merge(src proto.Message) { - xxx_messageInfo_ModelDetail_Option.Merge(m, src) +func (x *ModelDetail_Option) Reset() { + *x = ModelDetail_Option{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_generic_model_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ModelDetail_Option) XXX_Size() int { - return xxx_messageInfo_ModelDetail_Option.Size(m) + +func (x *ModelDetail_Option) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ModelDetail_Option) XXX_DiscardUnknown() { - xxx_messageInfo_ModelDetail_Option.DiscardUnknown(m) + +func (*ModelDetail_Option) ProtoMessage() {} + +func (x *ModelDetail_Option) ProtoReflect() protoreflect.Message { + mi := &file_ligato_generic_model_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ModelDetail_Option proto.InternalMessageInfo +// Deprecated: Use ModelDetail_Option.ProtoReflect.Descriptor instead. +func (*ModelDetail_Option) Descriptor() ([]byte, []int) { + return file_ligato_generic_model_proto_rawDescGZIP(), []int{1, 0} +} -func (m *ModelDetail_Option) GetKey() string { - if m != nil { - return m.Key +func (x *ModelDetail_Option) GetKey() string { + if x != nil { + return x.Key } return "" } -func (m *ModelDetail_Option) GetValues() []string { - if m != nil { - return m.Values +func (x *ModelDetail_Option) GetValues() []string { + if x != nil { + return x.Values } return nil } -func init() { - proto.RegisterType((*ModelSpec)(nil), "ligato.generic.ModelSpec") - proto.RegisterType((*ModelDetail)(nil), "ligato.generic.ModelDetail") - proto.RegisterType((*ModelDetail_Option)(nil), "ligato.generic.ModelDetail.Option") -} - -func init() { proto.RegisterFile("ligato/generic/model.proto", fileDescriptor_13d85de19425b7f8) } - -var fileDescriptor_13d85de19425b7f8 = []byte{ - // 274 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x51, 0x41, 0x4b, 0xf4, 0x30, - 0x10, 0x65, 0xb7, 0xfd, 0xba, 0x74, 0x0a, 0x1f, 0x12, 0x44, 0xe2, 0x82, 0x50, 0x7a, 0xda, 0xcb, - 0x26, 0xd2, 0xbd, 0x7a, 0x12, 0xaf, 0x2a, 0xd4, 0x9b, 0x17, 0x89, 0xdd, 0xa1, 0x04, 0xd3, 0x26, - 0x34, 0xd9, 0xc2, 0xfe, 0x48, 0xff, 0x93, 0x74, 0xda, 0x0a, 0x0b, 0xde, 0xe6, 0xbd, 0x37, 0xc9, - 0x7b, 0x33, 0x03, 0x5b, 0xa3, 0x1b, 0x15, 0xac, 0x6c, 0xb0, 0xc3, 0x5e, 0xd7, 0xb2, 0xb5, 0x47, - 0x34, 0xc2, 0xf5, 0x36, 0x58, 0xf6, 0x7f, 0xd2, 0xc4, 0xac, 0x15, 0x0d, 0xa4, 0xcf, 0xa3, 0xfc, - 0xe6, 0xb0, 0x66, 0x37, 0x90, 0xb4, 0xf6, 0x78, 0x32, 0xc8, 0x57, 0xf9, 0x6a, 0x97, 0x56, 0x33, - 0x62, 0x1c, 0x36, 0x03, 0xf6, 0x5e, 0xdb, 0x8e, 0xaf, 0x49, 0x58, 0x20, 0x63, 0x10, 0x87, 0xb3, - 0x43, 0x1e, 0x11, 0x4d, 0x35, 0xbb, 0x86, 0x7f, 0xb5, 0x51, 0xde, 0xf3, 0x98, 0xc8, 0x09, 0x14, - 0xdf, 0x2b, 0xc8, 0xc8, 0xe9, 0x09, 0x83, 0xd2, 0x86, 0xed, 0x21, 0xf6, 0x0e, 0x6b, 0x72, 0xca, - 0xca, 0x5b, 0x71, 0x99, 0x4b, 0xfc, 0x86, 0xaa, 0xa8, 0x8d, 0xdd, 0x01, 0xd0, 0x00, 0x1f, 0x9d, - 0x6a, 0x71, 0x4e, 0x91, 0x12, 0xf3, 0xa2, 0x5a, 0x64, 0x0f, 0xb0, 0xb1, 0x2e, 0x68, 0xdb, 0x79, - 0x1e, 0xe5, 0xd1, 0x2e, 0x2b, 0x8b, 0x3f, 0x3f, 0x9c, 0xbc, 0xc5, 0x2b, 0xb5, 0x56, 0xcb, 0x93, - 0x6d, 0x09, 0xc9, 0x44, 0xb1, 0x2b, 0x88, 0xbe, 0xf0, 0x3c, 0x8f, 0x3f, 0x96, 0xe3, 0x4e, 0x06, - 0x65, 0x4e, 0xe8, 0xf9, 0x3a, 0x8f, 0xc6, 0x9d, 0x4c, 0xe8, 0xf1, 0xfe, 0x5d, 0x34, 0x76, 0x31, - 0xd1, 0x56, 0x0e, 0xce, 0xed, 0x55, 0x83, 0x5d, 0x90, 0xc3, 0x41, 0x52, 0x30, 0x79, 0x79, 0x86, - 0xcf, 0x84, 0xd8, 0xc3, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd5, 0x06, 0xe4, 0xbe, 0x9f, 0x01, - 0x00, 0x00, +var File_ligato_generic_model_proto protoreflect.FileDescriptor + +var file_ligato_generic_model_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, + 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x22, 0x67, 0x0a, 0x09, + 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x53, 0x70, 0x65, 0x63, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x63, 0x6c, 0x61, 0x73, 0x73, 0x22, 0xcd, 0x01, 0x0a, 0x0b, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x44, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x2d, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x69, 0x63, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, + 0x73, 0x70, 0x65, 0x63, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x44, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x1a, 0x32, 0x0a, 0x06, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x16, 0x0a, + 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x73, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, + 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_generic_model_proto_rawDescOnce sync.Once + file_ligato_generic_model_proto_rawDescData = file_ligato_generic_model_proto_rawDesc +) + +func file_ligato_generic_model_proto_rawDescGZIP() []byte { + file_ligato_generic_model_proto_rawDescOnce.Do(func() { + file_ligato_generic_model_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_generic_model_proto_rawDescData) + }) + return file_ligato_generic_model_proto_rawDescData +} + +var file_ligato_generic_model_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_ligato_generic_model_proto_goTypes = []interface{}{ + (*ModelSpec)(nil), // 0: ligato.generic.ModelSpec + (*ModelDetail)(nil), // 1: ligato.generic.ModelDetail + (*ModelDetail_Option)(nil), // 2: ligato.generic.ModelDetail.Option +} +var file_ligato_generic_model_proto_depIdxs = []int32{ + 0, // 0: ligato.generic.ModelDetail.spec:type_name -> ligato.generic.ModelSpec + 2, // 1: ligato.generic.ModelDetail.options:type_name -> ligato.generic.ModelDetail.Option + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_ligato_generic_model_proto_init() } +func file_ligato_generic_model_proto_init() { + if File_ligato_generic_model_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_generic_model_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModelSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_model_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModelDetail); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_generic_model_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModelDetail_Option); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_generic_model_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_generic_model_proto_goTypes, + DependencyIndexes: file_ligato_generic_model_proto_depIdxs, + MessageInfos: file_ligato_generic_model_proto_msgTypes, + }.Build() + File_ligato_generic_model_proto = out.File + file_ligato_generic_model_proto_rawDesc = nil + file_ligato_generic_model_proto_goTypes = nil + file_ligato_generic_model_proto_depIdxs = nil } diff --git a/proto/ligato/generic/options.pb.go b/proto/ligato/generic/options.pb.go index 657110d8da..66c38be6aa 100644 --- a/proto/ligato/generic/options.pb.go +++ b/proto/ligato/generic/options.pb.go @@ -1,53 +1,104 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/generic/options.proto package generic import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -var E_Model = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.MessageOptions)(nil), - ExtensionType: (*ModelSpec)(nil), - Field: 50222, - Name: "ligato.generic.model", - Tag: "bytes,50222,opt,name=model", - Filename: "ligato/generic/options.proto", +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +var file_ligato_generic_options_proto_extTypes = []protoimpl.ExtensionInfo{ + { + ExtendedType: (*descriptor.MessageOptions)(nil), + ExtensionType: (*ModelSpec)(nil), + Field: 50222, + Name: "ligato.generic.model", + Tag: "bytes,50222,opt,name=model", + Filename: "ligato/generic/options.proto", + }, } -func init() { - proto.RegisterExtension(E_Model) +// Extension fields to descriptor.MessageOptions. +var ( + // optional ligato.generic.ModelSpec model = 50222; + E_Model = &file_ligato_generic_options_proto_extTypes[0] +) + +var File_ligato_generic_options_proto protoreflect.FileDescriptor + +var file_ligato_generic_options_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, + 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x1a, 0x20, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x1a, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, + 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3a, 0x52, 0x0a, 0x05, + 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xae, 0x88, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, + 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x53, 0x70, 0x65, 0x63, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, + 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, + 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x69, 0x63, +} + +var file_ligato_generic_options_proto_goTypes = []interface{}{ + (*descriptor.MessageOptions)(nil), // 0: google.protobuf.MessageOptions + (*ModelSpec)(nil), // 1: ligato.generic.ModelSpec +} +var file_ligato_generic_options_proto_depIdxs = []int32{ + 0, // 0: ligato.generic.model:extendee -> google.protobuf.MessageOptions + 1, // 1: ligato.generic.model:type_name -> ligato.generic.ModelSpec + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 1, // [1:2] is the sub-list for extension type_name + 0, // [0:1] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } -func init() { proto.RegisterFile("ligato/generic/options.proto", fileDescriptor_2596e25d393fefd6) } - -var fileDescriptor_2596e25d393fefd6 = []byte{ - // 177 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xc9, 0xc9, 0x4c, 0x4f, - 0x2c, 0xc9, 0xd7, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xca, 0x4c, 0xd6, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, - 0xcf, 0x2b, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x83, 0xc8, 0xea, 0x41, 0x65, 0xa5, - 0x14, 0xd2, 0xf3, 0xf3, 0xd3, 0x73, 0x52, 0xf5, 0xc1, 0xb2, 0x49, 0xa5, 0x69, 0xfa, 0x29, 0xa9, - 0xc5, 0xc9, 0x45, 0x99, 0x05, 0x25, 0xf9, 0x45, 0x10, 0x1d, 0x52, 0x52, 0x68, 0xe6, 0xe5, 0xe6, - 0xa7, 0xa4, 0xe6, 0x40, 0xe4, 0xac, 0x82, 0xb8, 0x58, 0xc1, 0x5c, 0x21, 0x79, 0x3d, 0x88, 0x39, - 0x7a, 0x30, 0x73, 0xf4, 0x7c, 0x53, 0x8b, 0x8b, 0x13, 0xd3, 0x53, 0xfd, 0x21, 0xb6, 0x4b, 0xac, - 0xeb, 0x60, 0x56, 0x60, 0xd4, 0xe0, 0x36, 0x92, 0xd4, 0x43, 0x75, 0x80, 0x9e, 0x2f, 0x48, 0x7f, - 0x70, 0x41, 0x6a, 0x72, 0x10, 0xc4, 0x28, 0x27, 0x83, 0x28, 0xbd, 0xf4, 0x7c, 0x98, 0xaa, 0xcc, - 0x7c, 0xfd, 0xb2, 0x82, 0x02, 0xdd, 0xc4, 0xf4, 0xd4, 0xbc, 0x12, 0xfd, 0x32, 0x63, 0x88, 0x33, - 0xf5, 0x51, 0x5d, 0x04, 0x08, 0x00, 0x00, 0xff, 0xff, 0x0b, 0x89, 0xbe, 0xdc, 0xf2, 0x00, 0x00, - 0x00, +func init() { file_ligato_generic_options_proto_init() } +func file_ligato_generic_options_proto_init() { + if File_ligato_generic_options_proto != nil { + return + } + file_ligato_generic_model_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_generic_options_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 1, + NumServices: 0, + }, + GoTypes: file_ligato_generic_options_proto_goTypes, + DependencyIndexes: file_ligato_generic_options_proto_depIdxs, + ExtensionInfos: file_ligato_generic_options_proto_extTypes, + }.Build() + File_ligato_generic_options_proto = out.File + file_ligato_generic_options_proto_rawDesc = nil + file_ligato_generic_options_proto_goTypes = nil + file_ligato_generic_options_proto_depIdxs = nil } diff --git a/proto/ligato/govppmux/metrics.pb.go b/proto/ligato/govppmux/metrics.pb.go index eb53df4a6c..acbfbff49d 100644 --- a/proto/ligato/govppmux/metrics.pb.go +++ b/proto/ligato/govppmux/metrics.pb.go @@ -1,125 +1,204 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/govppmux/metrics.proto package govppmux import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type Metrics struct { - ChannelsCreated uint64 `protobuf:"varint,1,opt,name=channels_created,json=channelsCreated,proto3" json:"channels_created,omitempty"` - ChannelsOpen uint64 `protobuf:"varint,2,opt,name=channels_open,json=channelsOpen,proto3" json:"channels_open,omitempty"` - RequestsSent uint64 `protobuf:"varint,3,opt,name=requests_sent,json=requestsSent,proto3" json:"requests_sent,omitempty"` - RequestsDone uint64 `protobuf:"varint,4,opt,name=requests_done,json=requestsDone,proto3" json:"requests_done,omitempty"` - RequestsFail uint64 `protobuf:"varint,5,opt,name=requests_fail,json=requestsFail,proto3" json:"requests_fail,omitempty"` - RequestReplies uint64 `protobuf:"varint,6,opt,name=request_replies,json=requestReplies,proto3" json:"request_replies,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Metrics) Reset() { *m = Metrics{} } -func (m *Metrics) String() string { return proto.CompactTextString(m) } -func (*Metrics) ProtoMessage() {} -func (*Metrics) Descriptor() ([]byte, []int) { - return fileDescriptor_a54ec93fe2fe8fda, []int{0} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ChannelsCreated uint64 `protobuf:"varint,1,opt,name=channels_created,json=channelsCreated,proto3" json:"channels_created,omitempty"` + ChannelsOpen uint64 `protobuf:"varint,2,opt,name=channels_open,json=channelsOpen,proto3" json:"channels_open,omitempty"` + RequestsSent uint64 `protobuf:"varint,3,opt,name=requests_sent,json=requestsSent,proto3" json:"requests_sent,omitempty"` + RequestsDone uint64 `protobuf:"varint,4,opt,name=requests_done,json=requestsDone,proto3" json:"requests_done,omitempty"` + RequestsFail uint64 `protobuf:"varint,5,opt,name=requests_fail,json=requestsFail,proto3" json:"requests_fail,omitempty"` + RequestReplies uint64 `protobuf:"varint,6,opt,name=request_replies,json=requestReplies,proto3" json:"request_replies,omitempty"` } -func (m *Metrics) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Metrics.Unmarshal(m, b) -} -func (m *Metrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Metrics.Marshal(b, m, deterministic) -} -func (m *Metrics) XXX_Merge(src proto.Message) { - xxx_messageInfo_Metrics.Merge(m, src) +func (x *Metrics) Reset() { + *x = Metrics{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_govppmux_metrics_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Metrics) XXX_Size() int { - return xxx_messageInfo_Metrics.Size(m) + +func (x *Metrics) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Metrics) XXX_DiscardUnknown() { - xxx_messageInfo_Metrics.DiscardUnknown(m) + +func (*Metrics) ProtoMessage() {} + +func (x *Metrics) ProtoReflect() protoreflect.Message { + mi := &file_ligato_govppmux_metrics_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Metrics proto.InternalMessageInfo +// Deprecated: Use Metrics.ProtoReflect.Descriptor instead. +func (*Metrics) Descriptor() ([]byte, []int) { + return file_ligato_govppmux_metrics_proto_rawDescGZIP(), []int{0} +} -func (m *Metrics) GetChannelsCreated() uint64 { - if m != nil { - return m.ChannelsCreated +func (x *Metrics) GetChannelsCreated() uint64 { + if x != nil { + return x.ChannelsCreated } return 0 } -func (m *Metrics) GetChannelsOpen() uint64 { - if m != nil { - return m.ChannelsOpen +func (x *Metrics) GetChannelsOpen() uint64 { + if x != nil { + return x.ChannelsOpen } return 0 } -func (m *Metrics) GetRequestsSent() uint64 { - if m != nil { - return m.RequestsSent +func (x *Metrics) GetRequestsSent() uint64 { + if x != nil { + return x.RequestsSent } return 0 } -func (m *Metrics) GetRequestsDone() uint64 { - if m != nil { - return m.RequestsDone +func (x *Metrics) GetRequestsDone() uint64 { + if x != nil { + return x.RequestsDone } return 0 } -func (m *Metrics) GetRequestsFail() uint64 { - if m != nil { - return m.RequestsFail +func (x *Metrics) GetRequestsFail() uint64 { + if x != nil { + return x.RequestsFail } return 0 } -func (m *Metrics) GetRequestReplies() uint64 { - if m != nil { - return m.RequestReplies +func (x *Metrics) GetRequestReplies() uint64 { + if x != nil { + return x.RequestReplies } return 0 } -func init() { - proto.RegisterType((*Metrics)(nil), "ligato.govppmux.Metrics") -} - -func init() { proto.RegisterFile("ligato/govppmux/metrics.proto", fileDescriptor_a54ec93fe2fe8fda) } - -var fileDescriptor_a54ec93fe2fe8fda = []byte{ - // 232 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0xd0, 0xb1, 0x4b, 0xc4, 0x30, - 0x14, 0xc7, 0x71, 0xaa, 0xe7, 0x09, 0x41, 0xad, 0x74, 0xca, 0x22, 0x88, 0x0e, 0xea, 0x60, 0x33, - 0xdc, 0x22, 0xba, 0xa9, 0xb8, 0x89, 0x70, 0x6e, 0x2e, 0x25, 0xf6, 0x9e, 0x35, 0x90, 0x7b, 0xef, - 0x99, 0xbc, 0x2b, 0xfe, 0xdb, 0xfe, 0x07, 0x62, 0xd3, 0x08, 0xbd, 0x2d, 0xf9, 0xbe, 0xcf, 0xf4, - 0x53, 0x27, 0xde, 0x75, 0x56, 0xc8, 0x74, 0xd4, 0x33, 0xaf, 0x37, 0xdf, 0x66, 0x0d, 0x12, 0x5c, - 0x1b, 0x6b, 0x0e, 0x24, 0x54, 0x95, 0xe9, 0x5c, 0xe7, 0xf3, 0xd9, 0x4f, 0xa1, 0xf6, 0x9f, 0x13, - 0xa9, 0xae, 0xd4, 0x71, 0xfb, 0x69, 0x11, 0xc1, 0xc7, 0xa6, 0x0d, 0x60, 0x05, 0x56, 0xba, 0x38, - 0x2d, 0x2e, 0x67, 0xcb, 0x32, 0xf7, 0x87, 0x94, 0xab, 0x73, 0x75, 0xf8, 0x4f, 0x89, 0x01, 0xf5, - 0xce, 0xe0, 0x0e, 0x72, 0x7c, 0x61, 0xc0, 0x3f, 0x14, 0xe0, 0x6b, 0x03, 0x51, 0x62, 0x13, 0x01, - 0x45, 0xef, 0x26, 0x94, 0xe3, 0x2b, 0xa0, 0x4c, 0xd0, 0x8a, 0x10, 0xf4, 0x6c, 0x8a, 0x1e, 0x09, - 0x61, 0x82, 0x3e, 0xac, 0xf3, 0x7a, 0x6f, 0x8a, 0x9e, 0xac, 0xf3, 0xd5, 0x85, 0x2a, 0xc7, 0x7f, - 0x13, 0x80, 0xbd, 0x83, 0xa8, 0xe7, 0x03, 0x3b, 0x1a, 0xf3, 0x32, 0xd5, 0xfb, 0xdb, 0xb7, 0x9b, - 0x8e, 0xea, 0x71, 0x09, 0x47, 0xa6, 0x67, 0xbe, 0xb6, 0x1d, 0xa0, 0x98, 0x7e, 0x61, 0x86, 0x9d, - 0xcc, 0xd6, 0x8a, 0x77, 0xf9, 0xf1, 0x3e, 0x1f, 0xee, 0x8b, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, - 0xdc, 0xc0, 0xc5, 0xb4, 0x68, 0x01, 0x00, 0x00, +var File_ligato_govppmux_metrics_proto protoreflect.FileDescriptor + +var file_ligato_govppmux_metrics_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x76, 0x70, 0x70, 0x6d, 0x75, + 0x78, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x6f, 0x76, 0x70, 0x70, 0x6d, 0x75, 0x78, + 0x22, 0xf1, 0x01, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x29, 0x0a, 0x10, + 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x6e, 0x6e, + 0x65, 0x6c, 0x73, 0x5f, 0x6f, 0x70, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, + 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x4f, 0x70, 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x0d, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x53, 0x65, 0x6e, + 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x5f, 0x64, 0x6f, + 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x73, 0x44, 0x6f, 0x6e, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x73, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x46, 0x61, 0x69, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x65, 0x73, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x65, 0x73, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, + 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x67, + 0x6f, 0x76, 0x70, 0x70, 0x6d, 0x75, 0x78, 0x3b, 0x67, 0x6f, 0x76, 0x70, 0x70, 0x6d, 0x75, 0x78, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_govppmux_metrics_proto_rawDescOnce sync.Once + file_ligato_govppmux_metrics_proto_rawDescData = file_ligato_govppmux_metrics_proto_rawDesc +) + +func file_ligato_govppmux_metrics_proto_rawDescGZIP() []byte { + file_ligato_govppmux_metrics_proto_rawDescOnce.Do(func() { + file_ligato_govppmux_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_govppmux_metrics_proto_rawDescData) + }) + return file_ligato_govppmux_metrics_proto_rawDescData +} + +var file_ligato_govppmux_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_ligato_govppmux_metrics_proto_goTypes = []interface{}{ + (*Metrics)(nil), // 0: ligato.govppmux.Metrics +} +var file_ligato_govppmux_metrics_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_ligato_govppmux_metrics_proto_init() } +func file_ligato_govppmux_metrics_proto_init() { + if File_ligato_govppmux_metrics_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_govppmux_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Metrics); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_govppmux_metrics_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_govppmux_metrics_proto_goTypes, + DependencyIndexes: file_ligato_govppmux_metrics_proto_depIdxs, + MessageInfos: file_ligato_govppmux_metrics_proto_msgTypes, + }.Build() + File_ligato_govppmux_metrics_proto = out.File + file_ligato_govppmux_metrics_proto_rawDesc = nil + file_ligato_govppmux_metrics_proto_goTypes = nil + file_ligato_govppmux_metrics_proto_depIdxs = nil } diff --git a/proto/ligato/kvscheduler/value_status.pb.go b/proto/ligato/kvscheduler/value_status.pb.go index 30d275f414..ccda2b5b44 100644 --- a/proto/ligato/kvscheduler/value_status.pb.go +++ b/proto/ligato/kvscheduler/value_status.pb.go @@ -1,24 +1,29 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/kvscheduler/value_status.proto package kvscheduler import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type ValueState int32 @@ -71,40 +76,61 @@ const ( ValueState_RETRYING ValueState = 10 ) -var ValueState_name = map[int32]string{ - 0: "NONEXISTENT", - 1: "MISSING", - 2: "UNIMPLEMENTED", - 3: "REMOVED", - 4: "CONFIGURED", - 5: "OBTAINED", - 6: "DISCOVERED", - 7: "PENDING", - 8: "INVALID", - 9: "FAILED", - 10: "RETRYING", -} - -var ValueState_value = map[string]int32{ - "NONEXISTENT": 0, - "MISSING": 1, - "UNIMPLEMENTED": 2, - "REMOVED": 3, - "CONFIGURED": 4, - "OBTAINED": 5, - "DISCOVERED": 6, - "PENDING": 7, - "INVALID": 8, - "FAILED": 9, - "RETRYING": 10, +// Enum value maps for ValueState. +var ( + ValueState_name = map[int32]string{ + 0: "NONEXISTENT", + 1: "MISSING", + 2: "UNIMPLEMENTED", + 3: "REMOVED", + 4: "CONFIGURED", + 5: "OBTAINED", + 6: "DISCOVERED", + 7: "PENDING", + 8: "INVALID", + 9: "FAILED", + 10: "RETRYING", + } + ValueState_value = map[string]int32{ + "NONEXISTENT": 0, + "MISSING": 1, + "UNIMPLEMENTED": 2, + "REMOVED": 3, + "CONFIGURED": 4, + "OBTAINED": 5, + "DISCOVERED": 6, + "PENDING": 7, + "INVALID": 8, + "FAILED": 9, + "RETRYING": 10, + } +) + +func (x ValueState) Enum() *ValueState { + p := new(ValueState) + *p = x + return p } func (x ValueState) String() string { - return proto.EnumName(ValueState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ValueState) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_kvscheduler_value_status_proto_enumTypes[0].Descriptor() +} + +func (ValueState) Type() protoreflect.EnumType { + return &file_ligato_kvscheduler_value_status_proto_enumTypes[0] +} + +func (x ValueState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use ValueState.Descriptor instead. func (ValueState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_5a5c0c659d27c9c5, []int{0} + return file_ligato_kvscheduler_value_status_proto_rawDescGZIP(), []int{0} } type TxnOperation int32 @@ -117,190 +143,318 @@ const ( TxnOperation_DELETE TxnOperation = 4 ) -var TxnOperation_name = map[int32]string{ - 0: "UNDEFINED", - 1: "VALIDATE", - 2: "CREATE", - 3: "UPDATE", - 4: "DELETE", -} +// Enum value maps for TxnOperation. +var ( + TxnOperation_name = map[int32]string{ + 0: "UNDEFINED", + 1: "VALIDATE", + 2: "CREATE", + 3: "UPDATE", + 4: "DELETE", + } + TxnOperation_value = map[string]int32{ + "UNDEFINED": 0, + "VALIDATE": 1, + "CREATE": 2, + "UPDATE": 3, + "DELETE": 4, + } +) -var TxnOperation_value = map[string]int32{ - "UNDEFINED": 0, - "VALIDATE": 1, - "CREATE": 2, - "UPDATE": 3, - "DELETE": 4, +func (x TxnOperation) Enum() *TxnOperation { + p := new(TxnOperation) + *p = x + return p } func (x TxnOperation) String() string { - return proto.EnumName(TxnOperation_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (TxnOperation) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_kvscheduler_value_status_proto_enumTypes[1].Descriptor() } +func (TxnOperation) Type() protoreflect.EnumType { + return &file_ligato_kvscheduler_value_status_proto_enumTypes[1] +} + +func (x TxnOperation) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use TxnOperation.Descriptor instead. func (TxnOperation) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_5a5c0c659d27c9c5, []int{1} + return file_ligato_kvscheduler_value_status_proto_rawDescGZIP(), []int{1} } type ValueStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` State ValueState `protobuf:"varint,2,opt,name=state,proto3,enum=ligato.kvscheduler.ValueState" json:"state,omitempty"` - Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` + Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // error returned by the last operation (none if empty string) LastOperation TxnOperation `protobuf:"varint,4,opt,name=last_operation,json=lastOperation,proto3,enum=ligato.kvscheduler.TxnOperation" json:"last_operation,omitempty"` // - for invalid value, details is a list of invalid fields // - for pending value, details is a list of missing dependencies (labels) - Details []string `protobuf:"bytes,5,rep,name=details,proto3" json:"details,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Details []string `protobuf:"bytes,5,rep,name=details,proto3" json:"details,omitempty"` } -func (m *ValueStatus) Reset() { *m = ValueStatus{} } -func (m *ValueStatus) String() string { return proto.CompactTextString(m) } -func (*ValueStatus) ProtoMessage() {} -func (*ValueStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_5a5c0c659d27c9c5, []int{0} +func (x *ValueStatus) Reset() { + *x = ValueStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_kvscheduler_value_status_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ValueStatus) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValueStatus.Unmarshal(m, b) -} -func (m *ValueStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValueStatus.Marshal(b, m, deterministic) -} -func (m *ValueStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValueStatus.Merge(m, src) +func (x *ValueStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ValueStatus) XXX_Size() int { - return xxx_messageInfo_ValueStatus.Size(m) -} -func (m *ValueStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ValueStatus.DiscardUnknown(m) + +func (*ValueStatus) ProtoMessage() {} + +func (x *ValueStatus) ProtoReflect() protoreflect.Message { + mi := &file_ligato_kvscheduler_value_status_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ValueStatus proto.InternalMessageInfo +// Deprecated: Use ValueStatus.ProtoReflect.Descriptor instead. +func (*ValueStatus) Descriptor() ([]byte, []int) { + return file_ligato_kvscheduler_value_status_proto_rawDescGZIP(), []int{0} +} -func (m *ValueStatus) GetKey() string { - if m != nil { - return m.Key +func (x *ValueStatus) GetKey() string { + if x != nil { + return x.Key } return "" } -func (m *ValueStatus) GetState() ValueState { - if m != nil { - return m.State +func (x *ValueStatus) GetState() ValueState { + if x != nil { + return x.State } return ValueState_NONEXISTENT } -func (m *ValueStatus) GetError() string { - if m != nil { - return m.Error +func (x *ValueStatus) GetError() string { + if x != nil { + return x.Error } return "" } -func (m *ValueStatus) GetLastOperation() TxnOperation { - if m != nil { - return m.LastOperation +func (x *ValueStatus) GetLastOperation() TxnOperation { + if x != nil { + return x.LastOperation } return TxnOperation_UNDEFINED } -func (m *ValueStatus) GetDetails() []string { - if m != nil { - return m.Details +func (x *ValueStatus) GetDetails() []string { + if x != nil { + return x.Details } return nil } type BaseValueStatus struct { - Value *ValueStatus `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - DerivedValues []*ValueStatus `protobuf:"bytes,2,rep,name=derived_values,json=derivedValues,proto3" json:"derived_values,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BaseValueStatus) Reset() { *m = BaseValueStatus{} } -func (m *BaseValueStatus) String() string { return proto.CompactTextString(m) } -func (*BaseValueStatus) ProtoMessage() {} -func (*BaseValueStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_5a5c0c659d27c9c5, []int{1} + Value *ValueStatus `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + DerivedValues []*ValueStatus `protobuf:"bytes,2,rep,name=derived_values,json=derivedValues,proto3" json:"derived_values,omitempty"` } -func (m *BaseValueStatus) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BaseValueStatus.Unmarshal(m, b) -} -func (m *BaseValueStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BaseValueStatus.Marshal(b, m, deterministic) -} -func (m *BaseValueStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_BaseValueStatus.Merge(m, src) +func (x *BaseValueStatus) Reset() { + *x = BaseValueStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_kvscheduler_value_status_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BaseValueStatus) XXX_Size() int { - return xxx_messageInfo_BaseValueStatus.Size(m) + +func (x *BaseValueStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BaseValueStatus) XXX_DiscardUnknown() { - xxx_messageInfo_BaseValueStatus.DiscardUnknown(m) + +func (*BaseValueStatus) ProtoMessage() {} + +func (x *BaseValueStatus) ProtoReflect() protoreflect.Message { + mi := &file_ligato_kvscheduler_value_status_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BaseValueStatus proto.InternalMessageInfo +// Deprecated: Use BaseValueStatus.ProtoReflect.Descriptor instead. +func (*BaseValueStatus) Descriptor() ([]byte, []int) { + return file_ligato_kvscheduler_value_status_proto_rawDescGZIP(), []int{1} +} -func (m *BaseValueStatus) GetValue() *ValueStatus { - if m != nil { - return m.Value +func (x *BaseValueStatus) GetValue() *ValueStatus { + if x != nil { + return x.Value } return nil } -func (m *BaseValueStatus) GetDerivedValues() []*ValueStatus { - if m != nil { - return m.DerivedValues +func (x *BaseValueStatus) GetDerivedValues() []*ValueStatus { + if x != nil { + return x.DerivedValues } return nil } -func init() { - proto.RegisterEnum("ligato.kvscheduler.ValueState", ValueState_name, ValueState_value) - proto.RegisterEnum("ligato.kvscheduler.TxnOperation", TxnOperation_name, TxnOperation_value) - proto.RegisterType((*ValueStatus)(nil), "ligato.kvscheduler.ValueStatus") - proto.RegisterType((*BaseValueStatus)(nil), "ligato.kvscheduler.BaseValueStatus") -} - -func init() { - proto.RegisterFile("ligato/kvscheduler/value_status.proto", fileDescriptor_5a5c0c659d27c9c5) -} - -var fileDescriptor_5a5c0c659d27c9c5 = []byte{ - // 451 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xdd, 0x8a, 0xda, 0x40, - 0x14, 0x80, 0x37, 0xc6, 0xe8, 0x7a, 0x5c, 0xdd, 0xe9, 0xd0, 0x8b, 0x5c, 0xb5, 0x61, 0xa1, 0x20, - 0x0b, 0x35, 0xe0, 0x6e, 0x1f, 0x40, 0x9d, 0xa3, 0x0c, 0xe8, 0x44, 0x26, 0x51, 0xda, 0xde, 0x48, - 0x5a, 0x07, 0x1b, 0x36, 0x18, 0x49, 0x62, 0x68, 0xdf, 0xa2, 0x0f, 0xd2, 0x67, 0xe9, 0x33, 0x95, - 0x19, 0xeb, 0x56, 0xb0, 0x94, 0xde, 0x9d, 0x9f, 0xef, 0x7c, 0xc3, 0x39, 0x0c, 0xbc, 0x49, 0x93, - 0x6d, 0x5c, 0x66, 0xfe, 0x53, 0x55, 0x7c, 0xfe, 0xa2, 0x36, 0x87, 0x54, 0xe5, 0x7e, 0x15, 0xa7, - 0x07, 0xb5, 0x2e, 0xca, 0xb8, 0x3c, 0x14, 0xfd, 0x7d, 0x9e, 0x95, 0x19, 0xa5, 0x47, 0xac, 0x7f, - 0x86, 0xdd, 0xfd, 0xb4, 0xa0, 0xbd, 0xd2, 0x68, 0x68, 0x48, 0x4a, 0xc0, 0x7e, 0x52, 0xdf, 0x5c, - 0xcb, 0xb3, 0x7a, 0x2d, 0xa9, 0x43, 0xfa, 0x08, 0x8e, 0xb6, 0x28, 0xb7, 0xe6, 0x59, 0xbd, 0xee, - 0xe0, 0x55, 0xff, 0xd2, 0xd2, 0x7f, 0x36, 0x28, 0x79, 0x84, 0xe9, 0x4b, 0x70, 0x54, 0x9e, 0x67, - 0xb9, 0x6b, 0x1b, 0xd3, 0x31, 0xa1, 0x53, 0xe8, 0xa6, 0x71, 0x51, 0xae, 0xb3, 0xbd, 0xca, 0xe3, - 0x32, 0xc9, 0x76, 0x6e, 0xdd, 0x48, 0xbd, 0xbf, 0x49, 0xa3, 0xaf, 0xbb, 0xe0, 0xc4, 0xc9, 0x8e, - 0x9e, 0x7b, 0x4e, 0xa9, 0x0b, 0xcd, 0x8d, 0x2a, 0xe3, 0x24, 0x2d, 0x5c, 0xc7, 0xb3, 0x7b, 0x2d, - 0x79, 0x4a, 0xef, 0xbe, 0x5b, 0x70, 0x3b, 0x8a, 0x0b, 0x75, 0xbe, 0xd4, 0x3b, 0x70, 0xcc, 0x39, - 0xcc, 0x5a, 0xed, 0xc1, 0xeb, 0x7f, 0xae, 0x70, 0x28, 0xe4, 0x91, 0xa6, 0x13, 0xe8, 0x6e, 0x54, - 0x9e, 0x54, 0x6a, 0xb3, 0x36, 0x85, 0xc2, 0xad, 0x79, 0xf6, 0xff, 0xcc, 0x77, 0x7e, 0x8f, 0x99, - 0x5a, 0x71, 0xff, 0xc3, 0x02, 0xf8, 0x73, 0x21, 0x7a, 0x0b, 0x6d, 0x11, 0x08, 0x7c, 0xcf, 0xc3, - 0x08, 0x45, 0x44, 0xae, 0x68, 0x1b, 0x9a, 0x73, 0x1e, 0x86, 0x5c, 0x4c, 0x89, 0x45, 0x5f, 0x40, - 0x67, 0x29, 0xf8, 0x7c, 0x31, 0xc3, 0x39, 0x8a, 0x08, 0x19, 0xa9, 0xe9, 0xbe, 0xc4, 0x79, 0xb0, - 0x42, 0x46, 0x6c, 0xda, 0x05, 0x18, 0x07, 0x62, 0xc2, 0xa7, 0x4b, 0x89, 0x8c, 0xd4, 0xe9, 0x0d, - 0x5c, 0x07, 0xa3, 0x68, 0xc8, 0x05, 0x32, 0xe2, 0xe8, 0x2e, 0xe3, 0xe1, 0x38, 0x58, 0xa1, 0xee, - 0x36, 0xf4, 0xe8, 0x02, 0x05, 0xd3, 0xea, 0xa6, 0x4e, 0xb8, 0x58, 0x0d, 0x67, 0x9c, 0x91, 0x6b, - 0x0a, 0xd0, 0x98, 0x0c, 0xf9, 0x0c, 0x19, 0x69, 0x69, 0x87, 0xc4, 0x48, 0x7e, 0xd0, 0x18, 0xdc, - 0x07, 0x70, 0x73, 0x7e, 0x7a, 0xda, 0x81, 0xd6, 0x52, 0x30, 0x9c, 0x98, 0x27, 0xae, 0x34, 0x6c, - 0x1c, 0xc3, 0x08, 0x89, 0xa5, 0x35, 0x63, 0x89, 0x3a, 0xae, 0xe9, 0x78, 0xb9, 0x30, 0x75, 0x5b, - 0xc7, 0x0c, 0x67, 0x18, 0x21, 0xa9, 0x8f, 0x1e, 0x3f, 0x0e, 0xb6, 0xd9, 0xe9, 0x66, 0x49, 0xe6, - 0x57, 0xfb, 0xfd, 0xdb, 0x78, 0xab, 0x76, 0xa5, 0x5f, 0x3d, 0xf8, 0xe6, 0x6b, 0xfa, 0x97, 0x1f, - 0xf8, 0x53, 0xc3, 0x74, 0x1e, 0x7e, 0x05, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x0a, 0x92, 0x44, 0xdd, - 0x02, 0x00, 0x00, +var File_ligato_kvscheduler_value_status_proto protoreflect.FileDescriptor + +var file_ligato_kvscheduler_value_status_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6b, 0x76, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x2f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, + 0x6b, 0x76, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x22, 0xce, 0x01, 0x0a, 0x0b, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x34, 0x0a, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6b, 0x76, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x72, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x47, 0x0a, 0x0e, 0x6c, 0x61, 0x73, + 0x74, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x20, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6b, 0x76, 0x73, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x54, 0x78, 0x6e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x05, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x90, 0x01, 0x0a, + 0x0f, 0x42, 0x61, 0x73, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6b, 0x76, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x46, 0x0a, 0x0e, 0x64, 0x65, 0x72, 0x69, 0x76, + 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6b, 0x76, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x0d, 0x64, 0x65, 0x72, 0x69, 0x76, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2a, + 0xac, 0x01, 0x0a, 0x0a, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0f, + 0x0a, 0x0b, 0x4e, 0x4f, 0x4e, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x00, 0x12, + 0x0b, 0x0a, 0x07, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, + 0x55, 0x4e, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, + 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, + 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x55, 0x52, 0x45, 0x44, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, + 0x4f, 0x42, 0x54, 0x41, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x49, + 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x45, 0x44, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, + 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x07, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, + 0x49, 0x44, 0x10, 0x08, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x09, + 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x45, 0x54, 0x52, 0x59, 0x49, 0x4e, 0x47, 0x10, 0x0a, 0x2a, 0x4f, + 0x0a, 0x0c, 0x54, 0x78, 0x6e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0d, + 0x0a, 0x09, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, + 0x08, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, + 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x50, 0x44, 0x41, 0x54, + 0x45, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x04, 0x42, + 0x34, 0x5a, 0x32, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, + 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6b, 0x76, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_kvscheduler_value_status_proto_rawDescOnce sync.Once + file_ligato_kvscheduler_value_status_proto_rawDescData = file_ligato_kvscheduler_value_status_proto_rawDesc +) + +func file_ligato_kvscheduler_value_status_proto_rawDescGZIP() []byte { + file_ligato_kvscheduler_value_status_proto_rawDescOnce.Do(func() { + file_ligato_kvscheduler_value_status_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_kvscheduler_value_status_proto_rawDescData) + }) + return file_ligato_kvscheduler_value_status_proto_rawDescData +} + +var file_ligato_kvscheduler_value_status_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_ligato_kvscheduler_value_status_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_ligato_kvscheduler_value_status_proto_goTypes = []interface{}{ + (ValueState)(0), // 0: ligato.kvscheduler.ValueState + (TxnOperation)(0), // 1: ligato.kvscheduler.TxnOperation + (*ValueStatus)(nil), // 2: ligato.kvscheduler.ValueStatus + (*BaseValueStatus)(nil), // 3: ligato.kvscheduler.BaseValueStatus +} +var file_ligato_kvscheduler_value_status_proto_depIdxs = []int32{ + 0, // 0: ligato.kvscheduler.ValueStatus.state:type_name -> ligato.kvscheduler.ValueState + 1, // 1: ligato.kvscheduler.ValueStatus.last_operation:type_name -> ligato.kvscheduler.TxnOperation + 2, // 2: ligato.kvscheduler.BaseValueStatus.value:type_name -> ligato.kvscheduler.ValueStatus + 2, // 3: ligato.kvscheduler.BaseValueStatus.derived_values:type_name -> ligato.kvscheduler.ValueStatus + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_ligato_kvscheduler_value_status_proto_init() } +func file_ligato_kvscheduler_value_status_proto_init() { + if File_ligato_kvscheduler_value_status_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_kvscheduler_value_status_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_kvscheduler_value_status_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BaseValueStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_kvscheduler_value_status_proto_rawDesc, + NumEnums: 2, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_kvscheduler_value_status_proto_goTypes, + DependencyIndexes: file_ligato_kvscheduler_value_status_proto_depIdxs, + EnumInfos: file_ligato_kvscheduler_value_status_proto_enumTypes, + MessageInfos: file_ligato_kvscheduler_value_status_proto_msgTypes, + }.Build() + File_ligato_kvscheduler_value_status_proto = out.File + file_ligato_kvscheduler_value_status_proto_rawDesc = nil + file_ligato_kvscheduler_value_status_proto_goTypes = nil + file_ligato_kvscheduler_value_status_proto_depIdxs = nil } diff --git a/proto/ligato/linux/interfaces/interface.pb.go b/proto/ligato/linux/interfaces/interface.pb.go index d4865cf4ef..244ad65c1d 100644 --- a/proto/ligato/linux/interfaces/interface.pb.go +++ b/proto/ligato/linux/interfaces/interface.pb.go @@ -1,58 +1,84 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/linux/interfaces/interface.proto package linux_interfaces import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" namespace "go.ligato.io/vpp-agent/v3/proto/ligato/linux/namespace" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type Interface_Type int32 const ( Interface_UNDEFINED Interface_Type = 0 Interface_VETH Interface_Type = 1 - Interface_TAP_TO_VPP Interface_Type = 2 + Interface_TAP_TO_VPP Interface_Type = 2 // TAP created by VPP to have the Linux-side further configured Interface_LOOPBACK Interface_Type = 3 Interface_EXISTING Interface_Type = 4 ) -var Interface_Type_name = map[int32]string{ - 0: "UNDEFINED", - 1: "VETH", - 2: "TAP_TO_VPP", - 3: "LOOPBACK", - 4: "EXISTING", -} +// Enum value maps for Interface_Type. +var ( + Interface_Type_name = map[int32]string{ + 0: "UNDEFINED", + 1: "VETH", + 2: "TAP_TO_VPP", + 3: "LOOPBACK", + 4: "EXISTING", + } + Interface_Type_value = map[string]int32{ + "UNDEFINED": 0, + "VETH": 1, + "TAP_TO_VPP": 2, + "LOOPBACK": 3, + "EXISTING": 4, + } +) -var Interface_Type_value = map[string]int32{ - "UNDEFINED": 0, - "VETH": 1, - "TAP_TO_VPP": 2, - "LOOPBACK": 3, - "EXISTING": 4, +func (x Interface_Type) Enum() *Interface_Type { + p := new(Interface_Type) + *p = x + return p } func (x Interface_Type) String() string { - return proto.EnumName(Interface_Type_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Interface_Type) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_linux_interfaces_interface_proto_enumTypes[0].Descriptor() +} + +func (Interface_Type) Type() protoreflect.EnumType { + return &file_ligato_linux_interfaces_interface_proto_enumTypes[0] } +func (x Interface_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Interface_Type.Descriptor instead. func (Interface_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8493d0c9b18c4f5d, []int{0, 0} + return file_ligato_linux_interfaces_interface_proto_rawDescGZIP(), []int{0, 0} } type VethLink_ChecksumOffloading int32 @@ -63,27 +89,52 @@ const ( VethLink_CHKSM_OFFLOAD_DISABLED VethLink_ChecksumOffloading = 2 ) -var VethLink_ChecksumOffloading_name = map[int32]string{ - 0: "CHKSM_OFFLOAD_DEFAULT", - 1: "CHKSM_OFFLOAD_ENABLED", - 2: "CHKSM_OFFLOAD_DISABLED", -} +// Enum value maps for VethLink_ChecksumOffloading. +var ( + VethLink_ChecksumOffloading_name = map[int32]string{ + 0: "CHKSM_OFFLOAD_DEFAULT", + 1: "CHKSM_OFFLOAD_ENABLED", + 2: "CHKSM_OFFLOAD_DISABLED", + } + VethLink_ChecksumOffloading_value = map[string]int32{ + "CHKSM_OFFLOAD_DEFAULT": 0, + "CHKSM_OFFLOAD_ENABLED": 1, + "CHKSM_OFFLOAD_DISABLED": 2, + } +) -var VethLink_ChecksumOffloading_value = map[string]int32{ - "CHKSM_OFFLOAD_DEFAULT": 0, - "CHKSM_OFFLOAD_ENABLED": 1, - "CHKSM_OFFLOAD_DISABLED": 2, +func (x VethLink_ChecksumOffloading) Enum() *VethLink_ChecksumOffloading { + p := new(VethLink_ChecksumOffloading) + *p = x + return p } func (x VethLink_ChecksumOffloading) String() string { - return proto.EnumName(VethLink_ChecksumOffloading_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (VethLink_ChecksumOffloading) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_linux_interfaces_interface_proto_enumTypes[1].Descriptor() } +func (VethLink_ChecksumOffloading) Type() protoreflect.EnumType { + return &file_ligato_linux_interfaces_interface_proto_enumTypes[1] +} + +func (x VethLink_ChecksumOffloading) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use VethLink_ChecksumOffloading.Descriptor instead. func (VethLink_ChecksumOffloading) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8493d0c9b18c4f5d, []int{1, 0} + return file_ligato_linux_interfaces_interface_proto_rawDescGZIP(), []int{1, 0} } type Interface struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Name is mandatory field representing logical name for the interface. // It must be unique across all configured interfaces. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` @@ -107,115 +158,103 @@ type Interface struct { PhysAddress string `protobuf:"bytes,7,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"` // MTU is the maximum transmission unit value. Mtu uint32 `protobuf:"varint,8,opt,name=mtu,proto3" json:"mtu,omitempty"` - // Types that are valid to be assigned to Link: + // Types that are assignable to Link: // *Interface_Veth // *Interface_Tap Link isInterface_Link `protobuf_oneof:"link"` // Configure/Resync link only. IP/MAC addresses are expected to be configured // externally - i.e. by a different agent or manually via CLI. - LinkOnly bool `protobuf:"varint,9,opt,name=link_only,json=linkOnly,proto3" json:"link_only,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + LinkOnly bool `protobuf:"varint,9,opt,name=link_only,json=linkOnly,proto3" json:"link_only,omitempty"` } -func (m *Interface) Reset() { *m = Interface{} } -func (m *Interface) String() string { return proto.CompactTextString(m) } -func (*Interface) ProtoMessage() {} -func (*Interface) Descriptor() ([]byte, []int) { - return fileDescriptor_8493d0c9b18c4f5d, []int{0} +func (x *Interface) Reset() { + *x = Interface{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_linux_interfaces_interface_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Interface) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Interface.Unmarshal(m, b) -} -func (m *Interface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Interface.Marshal(b, m, deterministic) -} -func (m *Interface) XXX_Merge(src proto.Message) { - xxx_messageInfo_Interface.Merge(m, src) +func (x *Interface) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Interface) XXX_Size() int { - return xxx_messageInfo_Interface.Size(m) -} -func (m *Interface) XXX_DiscardUnknown() { - xxx_messageInfo_Interface.DiscardUnknown(m) + +func (*Interface) ProtoMessage() {} + +func (x *Interface) ProtoReflect() protoreflect.Message { + mi := &file_ligato_linux_interfaces_interface_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Interface proto.InternalMessageInfo +// Deprecated: Use Interface.ProtoReflect.Descriptor instead. +func (*Interface) Descriptor() ([]byte, []int) { + return file_ligato_linux_interfaces_interface_proto_rawDescGZIP(), []int{0} +} -func (m *Interface) GetName() string { - if m != nil { - return m.Name +func (x *Interface) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *Interface) GetType() Interface_Type { - if m != nil { - return m.Type +func (x *Interface) GetType() Interface_Type { + if x != nil { + return x.Type } return Interface_UNDEFINED } -func (m *Interface) GetNamespace() *namespace.NetNamespace { - if m != nil { - return m.Namespace +func (x *Interface) GetNamespace() *namespace.NetNamespace { + if x != nil { + return x.Namespace } return nil } -func (m *Interface) GetHostIfName() string { - if m != nil { - return m.HostIfName +func (x *Interface) GetHostIfName() string { + if x != nil { + return x.HostIfName } return "" } -func (m *Interface) GetEnabled() bool { - if m != nil { - return m.Enabled +func (x *Interface) GetEnabled() bool { + if x != nil { + return x.Enabled } return false } -func (m *Interface) GetIpAddresses() []string { - if m != nil { - return m.IpAddresses +func (x *Interface) GetIpAddresses() []string { + if x != nil { + return x.IpAddresses } return nil } -func (m *Interface) GetPhysAddress() string { - if m != nil { - return m.PhysAddress +func (x *Interface) GetPhysAddress() string { + if x != nil { + return x.PhysAddress } return "" } -func (m *Interface) GetMtu() uint32 { - if m != nil { - return m.Mtu +func (x *Interface) GetMtu() uint32 { + if x != nil { + return x.Mtu } return 0 } -type isInterface_Link interface { - isInterface_Link() -} - -type Interface_Veth struct { - Veth *VethLink `protobuf:"bytes,20,opt,name=veth,proto3,oneof"` -} - -type Interface_Tap struct { - Tap *TapLink `protobuf:"bytes,21,opt,name=tap,proto3,oneof"` -} - -func (*Interface_Veth) isInterface_Link() {} - -func (*Interface_Tap) isInterface_Link() {} - func (m *Interface) GetLink() isInterface_Link { if m != nil { return m.Link @@ -223,182 +262,336 @@ func (m *Interface) GetLink() isInterface_Link { return nil } -func (m *Interface) GetVeth() *VethLink { - if x, ok := m.GetLink().(*Interface_Veth); ok { +func (x *Interface) GetVeth() *VethLink { + if x, ok := x.GetLink().(*Interface_Veth); ok { return x.Veth } return nil } -func (m *Interface) GetTap() *TapLink { - if x, ok := m.GetLink().(*Interface_Tap); ok { +func (x *Interface) GetTap() *TapLink { + if x, ok := x.GetLink().(*Interface_Tap); ok { return x.Tap } return nil } -func (m *Interface) GetLinkOnly() bool { - if m != nil { - return m.LinkOnly +func (x *Interface) GetLinkOnly() bool { + if x != nil { + return x.LinkOnly } return false } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Interface) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Interface_Veth)(nil), - (*Interface_Tap)(nil), - } +type isInterface_Link interface { + isInterface_Link() } +type Interface_Veth struct { + // VETH-specific configuration + Veth *VethLink `protobuf:"bytes,20,opt,name=veth,proto3,oneof"` +} + +type Interface_Tap struct { + // TAP_TO_VPP-specific configuration + Tap *TapLink `protobuf:"bytes,21,opt,name=tap,proto3,oneof"` +} + +func (*Interface_Veth) isInterface_Link() {} + +func (*Interface_Tap) isInterface_Link() {} + type VethLink struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Name of the VETH peer, i.e. other end of the linux veth (mandatory for VETH) PeerIfName string `protobuf:"bytes,1,opt,name=peer_if_name,json=peerIfName,proto3" json:"peer_if_name,omitempty"` // Checksum offloading - Rx side (enabled by default) RxChecksumOffloading VethLink_ChecksumOffloading `protobuf:"varint,2,opt,name=rx_checksum_offloading,json=rxChecksumOffloading,proto3,enum=ligato.linux.interfaces.VethLink_ChecksumOffloading" json:"rx_checksum_offloading,omitempty"` // Checksum offloading - Tx side (enabled by default) TxChecksumOffloading VethLink_ChecksumOffloading `protobuf:"varint,3,opt,name=tx_checksum_offloading,json=txChecksumOffloading,proto3,enum=ligato.linux.interfaces.VethLink_ChecksumOffloading" json:"tx_checksum_offloading,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *VethLink) Reset() { *m = VethLink{} } -func (m *VethLink) String() string { return proto.CompactTextString(m) } -func (*VethLink) ProtoMessage() {} -func (*VethLink) Descriptor() ([]byte, []int) { - return fileDescriptor_8493d0c9b18c4f5d, []int{1} +func (x *VethLink) Reset() { + *x = VethLink{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_linux_interfaces_interface_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *VethLink) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VethLink.Unmarshal(m, b) -} -func (m *VethLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VethLink.Marshal(b, m, deterministic) -} -func (m *VethLink) XXX_Merge(src proto.Message) { - xxx_messageInfo_VethLink.Merge(m, src) -} -func (m *VethLink) XXX_Size() int { - return xxx_messageInfo_VethLink.Size(m) +func (x *VethLink) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VethLink) XXX_DiscardUnknown() { - xxx_messageInfo_VethLink.DiscardUnknown(m) + +func (*VethLink) ProtoMessage() {} + +func (x *VethLink) ProtoReflect() protoreflect.Message { + mi := &file_ligato_linux_interfaces_interface_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_VethLink proto.InternalMessageInfo +// Deprecated: Use VethLink.ProtoReflect.Descriptor instead. +func (*VethLink) Descriptor() ([]byte, []int) { + return file_ligato_linux_interfaces_interface_proto_rawDescGZIP(), []int{1} +} -func (m *VethLink) GetPeerIfName() string { - if m != nil { - return m.PeerIfName +func (x *VethLink) GetPeerIfName() string { + if x != nil { + return x.PeerIfName } return "" } -func (m *VethLink) GetRxChecksumOffloading() VethLink_ChecksumOffloading { - if m != nil { - return m.RxChecksumOffloading +func (x *VethLink) GetRxChecksumOffloading() VethLink_ChecksumOffloading { + if x != nil { + return x.RxChecksumOffloading } return VethLink_CHKSM_OFFLOAD_DEFAULT } -func (m *VethLink) GetTxChecksumOffloading() VethLink_ChecksumOffloading { - if m != nil { - return m.TxChecksumOffloading +func (x *VethLink) GetTxChecksumOffloading() VethLink_ChecksumOffloading { + if x != nil { + return x.TxChecksumOffloading } return VethLink_CHKSM_OFFLOAD_DEFAULT } type TapLink struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Logical name of the VPP TAP interface (mandatory for TAP_TO_VPP) - VppTapIfName string `protobuf:"bytes,1,opt,name=vpp_tap_if_name,json=vppTapIfName,proto3" json:"vpp_tap_if_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VppTapIfName string `protobuf:"bytes,1,opt,name=vpp_tap_if_name,json=vppTapIfName,proto3" json:"vpp_tap_if_name,omitempty"` } -func (m *TapLink) Reset() { *m = TapLink{} } -func (m *TapLink) String() string { return proto.CompactTextString(m) } -func (*TapLink) ProtoMessage() {} -func (*TapLink) Descriptor() ([]byte, []int) { - return fileDescriptor_8493d0c9b18c4f5d, []int{2} +func (x *TapLink) Reset() { + *x = TapLink{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_linux_interfaces_interface_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TapLink) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TapLink.Unmarshal(m, b) -} -func (m *TapLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TapLink.Marshal(b, m, deterministic) -} -func (m *TapLink) XXX_Merge(src proto.Message) { - xxx_messageInfo_TapLink.Merge(m, src) -} -func (m *TapLink) XXX_Size() int { - return xxx_messageInfo_TapLink.Size(m) +func (x *TapLink) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TapLink) XXX_DiscardUnknown() { - xxx_messageInfo_TapLink.DiscardUnknown(m) + +func (*TapLink) ProtoMessage() {} + +func (x *TapLink) ProtoReflect() protoreflect.Message { + mi := &file_ligato_linux_interfaces_interface_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TapLink proto.InternalMessageInfo +// Deprecated: Use TapLink.ProtoReflect.Descriptor instead. +func (*TapLink) Descriptor() ([]byte, []int) { + return file_ligato_linux_interfaces_interface_proto_rawDescGZIP(), []int{2} +} -func (m *TapLink) GetVppTapIfName() string { - if m != nil { - return m.VppTapIfName +func (x *TapLink) GetVppTapIfName() string { + if x != nil { + return x.VppTapIfName } return "" } -func init() { - proto.RegisterEnum("ligato.linux.interfaces.Interface_Type", Interface_Type_name, Interface_Type_value) - proto.RegisterEnum("ligato.linux.interfaces.VethLink_ChecksumOffloading", VethLink_ChecksumOffloading_name, VethLink_ChecksumOffloading_value) - proto.RegisterType((*Interface)(nil), "ligato.linux.interfaces.Interface") - proto.RegisterType((*VethLink)(nil), "ligato.linux.interfaces.VethLink") - proto.RegisterType((*TapLink)(nil), "ligato.linux.interfaces.TapLink") -} - -func init() { - proto.RegisterFile("ligato/linux/interfaces/interface.proto", fileDescriptor_8493d0c9b18c4f5d) -} - -var fileDescriptor_8493d0c9b18c4f5d = []byte{ - // 583 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0x5d, 0x53, 0xda, 0x40, - 0x14, 0x35, 0x90, 0x2a, 0xb9, 0xa2, 0xcd, 0xec, 0xa8, 0x4d, 0xed, 0x4b, 0x64, 0xda, 0xca, 0x4b, - 0x43, 0x47, 0x9d, 0xe9, 0x83, 0x4f, 0x20, 0xa1, 0x50, 0x29, 0x61, 0x62, 0x74, 0x3a, 0x7d, 0xd9, - 0x59, 0x61, 0x03, 0xa9, 0x31, 0xd9, 0x49, 0x56, 0x46, 0x7e, 0x48, 0xff, 0x65, 0x7f, 0x44, 0x67, - 0x97, 0x84, 0x8c, 0x0a, 0xd3, 0x87, 0xbe, 0xdd, 0x3d, 0x7b, 0xce, 0x3d, 0xf7, 0x63, 0x13, 0x38, - 0x0e, 0x83, 0x09, 0xe1, 0x71, 0x23, 0x0c, 0xa2, 0x87, 0xc7, 0x46, 0x10, 0x71, 0x9a, 0xf8, 0x64, - 0x44, 0xd3, 0x22, 0xb4, 0x58, 0x12, 0xf3, 0x18, 0xbd, 0x59, 0x10, 0x2d, 0x49, 0xb4, 0x0a, 0xe2, - 0xe1, 0xc7, 0x27, 0x19, 0x22, 0x72, 0x4f, 0x53, 0x46, 0x46, 0xb4, 0x88, 0x16, 0x09, 0x6a, 0xbf, - 0x55, 0xd0, 0x7a, 0xb9, 0x0c, 0x21, 0x50, 0x05, 0xc1, 0x50, 0x4c, 0xa5, 0xae, 0xb9, 0x32, 0x46, - 0xe7, 0xa0, 0xf2, 0x39, 0xa3, 0x46, 0xc9, 0x54, 0xea, 0xbb, 0x27, 0xc7, 0xd6, 0x1a, 0x47, 0x6b, - 0x99, 0xc5, 0xf2, 0xe6, 0x8c, 0xba, 0x52, 0x84, 0x5a, 0xa0, 0x2d, 0x1d, 0x8d, 0xb2, 0xa9, 0xd4, - 0xb7, 0x4f, 0xde, 0x3f, 0xcd, 0x50, 0x14, 0x34, 0xa0, 0x7c, 0x90, 0x1f, 0xdc, 0x42, 0x86, 0x4c, - 0xa8, 0x4e, 0xe3, 0x94, 0xe3, 0xc0, 0xc7, 0xb2, 0x38, 0x55, 0x16, 0x07, 0x02, 0xeb, 0xf9, 0x42, - 0x81, 0x0c, 0xd8, 0xa2, 0x11, 0xb9, 0x0d, 0xe9, 0xd8, 0x78, 0x65, 0x2a, 0xf5, 0x8a, 0x9b, 0x1f, - 0xd1, 0x11, 0x54, 0x03, 0x86, 0xc9, 0x78, 0x9c, 0xd0, 0x34, 0xa5, 0xa9, 0xb1, 0x69, 0x96, 0xeb, - 0x9a, 0xbb, 0x1d, 0xb0, 0x66, 0x0e, 0x09, 0x0a, 0x9b, 0xce, 0xd3, 0x9c, 0x64, 0x6c, 0xc9, 0xf4, - 0xdb, 0x02, 0xcb, 0x48, 0x48, 0x87, 0xf2, 0x3d, 0x7f, 0x30, 0x2a, 0xa6, 0x52, 0xdf, 0x71, 0x45, - 0x88, 0xbe, 0x80, 0x3a, 0xa3, 0x7c, 0x6a, 0xec, 0xc9, 0x96, 0x8e, 0xd6, 0x0e, 0xe5, 0x86, 0xf2, - 0x69, 0x3f, 0x88, 0xee, 0xba, 0x1b, 0xae, 0x14, 0xa0, 0x33, 0x28, 0x73, 0xc2, 0x8c, 0x7d, 0xa9, - 0x33, 0xd7, 0xea, 0x3c, 0xc2, 0x32, 0x99, 0xa0, 0xa3, 0x77, 0xa0, 0x85, 0x41, 0x74, 0x87, 0xe3, - 0x28, 0x9c, 0x1b, 0x9a, 0x6c, 0xb1, 0x22, 0x00, 0x27, 0x0a, 0xe7, 0xb5, 0x4b, 0x50, 0xc5, 0xc4, - 0xd1, 0x0e, 0x68, 0xd7, 0x83, 0xb6, 0xdd, 0xe9, 0x0d, 0xec, 0xb6, 0xbe, 0x81, 0x2a, 0xa0, 0xde, - 0xd8, 0x5e, 0x57, 0x57, 0xd0, 0x2e, 0x80, 0xd7, 0x1c, 0x62, 0xcf, 0xc1, 0x37, 0xc3, 0xa1, 0x5e, - 0x42, 0x55, 0xa8, 0xf4, 0x1d, 0x67, 0xd8, 0x6a, 0x5e, 0x5c, 0xea, 0x65, 0x71, 0xb2, 0x7f, 0xf4, - 0xae, 0xbc, 0xde, 0xe0, 0xab, 0xae, 0xb6, 0x36, 0x41, 0x15, 0x89, 0x6b, 0x7f, 0x4a, 0x50, 0xc9, - 0x8b, 0x17, 0x1b, 0x60, 0x94, 0x26, 0xcb, 0x0d, 0x2c, 0x9e, 0x07, 0x08, 0x2c, 0xdb, 0xc0, 0x2f, - 0x38, 0x48, 0x1e, 0xf1, 0x68, 0x4a, 0x47, 0x77, 0xe9, 0xc3, 0x3d, 0x8e, 0x7d, 0x3f, 0x8c, 0xc9, - 0x38, 0x88, 0x26, 0xd9, 0xb3, 0x39, 0xfb, 0xe7, 0x84, 0xac, 0x8b, 0x4c, 0xec, 0x2c, 0xb5, 0xee, - 0x5e, 0xf2, 0xf8, 0x12, 0x15, 0x5e, 0x7c, 0xb5, 0x57, 0xf9, 0x7f, 0xbc, 0xf8, 0x0a, 0xaf, 0x9a, - 0x0f, 0x68, 0x45, 0x05, 0x6f, 0x61, 0xff, 0xa2, 0x7b, 0x79, 0xf5, 0x1d, 0x3b, 0x9d, 0x4e, 0xdf, - 0x69, 0xb6, 0x71, 0xdb, 0xee, 0x34, 0xaf, 0xfb, 0x9e, 0xbe, 0xf1, 0xf2, 0xca, 0x1e, 0x34, 0x5b, - 0x7d, 0xbb, 0xad, 0x2b, 0xe8, 0x10, 0x0e, 0x9e, 0xa9, 0x7a, 0x57, 0x8b, 0xbb, 0x52, 0xed, 0x33, - 0x6c, 0x65, 0x2b, 0x47, 0x1f, 0xe0, 0xf5, 0x8c, 0x31, 0xcc, 0x09, 0x7b, 0x36, 0xef, 0xea, 0x8c, - 0x31, 0x8f, 0xb0, 0xc5, 0xc4, 0x5b, 0xdf, 0x7e, 0x76, 0x27, 0x71, 0xde, 0x69, 0x10, 0x37, 0x66, - 0x8c, 0x7d, 0x22, 0x13, 0x1a, 0xf1, 0xc6, 0xec, 0xb4, 0x21, 0xbf, 0xed, 0xc6, 0x9a, 0x9f, 0xc8, - 0xb9, 0x04, 0x70, 0x01, 0xdc, 0x6e, 0x4a, 0xfe, 0xe9, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf0, - 0xe1, 0xd8, 0x49, 0x77, 0x04, 0x00, 0x00, +var File_ligato_linux_interfaces_interface_proto protoreflect.FileDescriptor + +var file_ligato_linux_interfaces_interface_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2f, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x73, 0x1a, 0x26, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, + 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x95, 0x04, 0x0a, 0x09, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x6c, 0x69, 0x67, + 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x42, 0x0a, 0x09, 0x6e, 0x61, 0x6d, + 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x6e, 0x61, 0x6d, 0x65, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x2e, 0x4e, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x20, 0x0a, + 0x0c, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x68, 0x6f, 0x73, 0x74, 0x49, 0x66, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x70, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x0b, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, + 0x70, 0x68, 0x79, 0x73, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x70, 0x68, 0x79, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x10, 0x0a, 0x03, 0x6d, 0x74, 0x75, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6d, 0x74, + 0x75, 0x12, 0x37, 0x0a, 0x04, 0x76, 0x65, 0x74, 0x68, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x21, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x56, 0x65, 0x74, 0x68, 0x4c, 0x69, + 0x6e, 0x6b, 0x48, 0x00, 0x52, 0x04, 0x76, 0x65, 0x74, 0x68, 0x12, 0x34, 0x0a, 0x03, 0x74, 0x61, + 0x70, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x73, 0x2e, 0x54, 0x61, 0x70, 0x4c, 0x69, 0x6e, 0x6b, 0x48, 0x00, 0x52, 0x03, 0x74, 0x61, 0x70, + 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x08, 0x6c, 0x69, 0x6e, 0x6b, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x4b, 0x0a, + 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, + 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x56, 0x45, 0x54, 0x48, 0x10, 0x01, 0x12, 0x0e, + 0x0a, 0x0a, 0x54, 0x41, 0x50, 0x5f, 0x54, 0x4f, 0x5f, 0x56, 0x50, 0x50, 0x10, 0x02, 0x12, 0x0c, + 0x0a, 0x08, 0x4c, 0x4f, 0x4f, 0x50, 0x42, 0x41, 0x43, 0x4b, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, + 0x45, 0x58, 0x49, 0x53, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x42, 0x06, 0x0a, 0x04, 0x6c, 0x69, + 0x6e, 0x6b, 0x22, 0xec, 0x02, 0x0a, 0x08, 0x56, 0x65, 0x74, 0x68, 0x4c, 0x69, 0x6e, 0x6b, 0x12, + 0x20, 0x0a, 0x0c, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x65, 0x65, 0x72, 0x49, 0x66, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x6a, 0x0a, 0x16, 0x72, 0x78, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, + 0x5f, 0x6f, 0x66, 0x66, 0x6c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x34, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, + 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x56, 0x65, 0x74, 0x68, + 0x4c, 0x69, 0x6e, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x4f, 0x66, 0x66, + 0x6c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x14, 0x72, 0x78, 0x43, 0x68, 0x65, 0x63, 0x6b, + 0x73, 0x75, 0x6d, 0x4f, 0x66, 0x66, 0x6c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x6a, 0x0a, + 0x16, 0x74, 0x78, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x5f, 0x6f, 0x66, 0x66, + 0x6c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x56, 0x65, 0x74, 0x68, 0x4c, 0x69, 0x6e, 0x6b, + 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x4f, 0x66, 0x66, 0x6c, 0x6f, 0x61, 0x64, + 0x69, 0x6e, 0x67, 0x52, 0x14, 0x74, 0x78, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x4f, + 0x66, 0x66, 0x6c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x22, 0x66, 0x0a, 0x12, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x4f, 0x66, 0x66, 0x6c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x12, + 0x19, 0x0a, 0x15, 0x43, 0x48, 0x4b, 0x53, 0x4d, 0x5f, 0x4f, 0x46, 0x46, 0x4c, 0x4f, 0x41, 0x44, + 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x48, + 0x4b, 0x53, 0x4d, 0x5f, 0x4f, 0x46, 0x46, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x4e, 0x41, 0x42, + 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x43, 0x48, 0x4b, 0x53, 0x4d, 0x5f, 0x4f, + 0x46, 0x46, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, + 0x02, 0x22, 0x30, 0x0a, 0x07, 0x54, 0x61, 0x70, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x25, 0x0a, 0x0f, + 0x76, 0x70, 0x70, 0x5f, 0x74, 0x61, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x76, 0x70, 0x70, 0x54, 0x61, 0x70, 0x49, 0x66, 0x4e, + 0x61, 0x6d, 0x65, 0x42, 0x4a, 0x5a, 0x48, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, 0x69, + 0x6e, 0x75, 0x78, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x3b, 0x6c, + 0x69, 0x6e, 0x75, 0x78, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_linux_interfaces_interface_proto_rawDescOnce sync.Once + file_ligato_linux_interfaces_interface_proto_rawDescData = file_ligato_linux_interfaces_interface_proto_rawDesc +) + +func file_ligato_linux_interfaces_interface_proto_rawDescGZIP() []byte { + file_ligato_linux_interfaces_interface_proto_rawDescOnce.Do(func() { + file_ligato_linux_interfaces_interface_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_linux_interfaces_interface_proto_rawDescData) + }) + return file_ligato_linux_interfaces_interface_proto_rawDescData +} + +var file_ligato_linux_interfaces_interface_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_ligato_linux_interfaces_interface_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_ligato_linux_interfaces_interface_proto_goTypes = []interface{}{ + (Interface_Type)(0), // 0: ligato.linux.interfaces.Interface.Type + (VethLink_ChecksumOffloading)(0), // 1: ligato.linux.interfaces.VethLink.ChecksumOffloading + (*Interface)(nil), // 2: ligato.linux.interfaces.Interface + (*VethLink)(nil), // 3: ligato.linux.interfaces.VethLink + (*TapLink)(nil), // 4: ligato.linux.interfaces.TapLink + (*namespace.NetNamespace)(nil), // 5: ligato.linux.namespace.NetNamespace +} +var file_ligato_linux_interfaces_interface_proto_depIdxs = []int32{ + 0, // 0: ligato.linux.interfaces.Interface.type:type_name -> ligato.linux.interfaces.Interface.Type + 5, // 1: ligato.linux.interfaces.Interface.namespace:type_name -> ligato.linux.namespace.NetNamespace + 3, // 2: ligato.linux.interfaces.Interface.veth:type_name -> ligato.linux.interfaces.VethLink + 4, // 3: ligato.linux.interfaces.Interface.tap:type_name -> ligato.linux.interfaces.TapLink + 1, // 4: ligato.linux.interfaces.VethLink.rx_checksum_offloading:type_name -> ligato.linux.interfaces.VethLink.ChecksumOffloading + 1, // 5: ligato.linux.interfaces.VethLink.tx_checksum_offloading:type_name -> ligato.linux.interfaces.VethLink.ChecksumOffloading + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_ligato_linux_interfaces_interface_proto_init() } +func file_ligato_linux_interfaces_interface_proto_init() { + if File_ligato_linux_interfaces_interface_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_linux_interfaces_interface_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Interface); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_linux_interfaces_interface_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VethLink); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_linux_interfaces_interface_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TapLink); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_ligato_linux_interfaces_interface_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*Interface_Veth)(nil), + (*Interface_Tap)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_linux_interfaces_interface_proto_rawDesc, + NumEnums: 2, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_linux_interfaces_interface_proto_goTypes, + DependencyIndexes: file_ligato_linux_interfaces_interface_proto_depIdxs, + EnumInfos: file_ligato_linux_interfaces_interface_proto_enumTypes, + MessageInfos: file_ligato_linux_interfaces_interface_proto_msgTypes, + }.Build() + File_ligato_linux_interfaces_interface_proto = out.File + file_ligato_linux_interfaces_interface_proto_rawDesc = nil + file_ligato_linux_interfaces_interface_proto_goTypes = nil + file_ligato_linux_interfaces_interface_proto_depIdxs = nil } diff --git a/proto/ligato/linux/iptables/iptables.pb.go b/proto/ligato/linux/iptables/iptables.pb.go index 354cddf389..702ab17bb1 100644 --- a/proto/ligato/linux/iptables/iptables.pb.go +++ b/proto/ligato/linux/iptables/iptables.pb.go @@ -1,25 +1,30 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/linux/iptables/iptables.proto package linux_iptables import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" namespace "go.ligato.io/vpp-agent/v3/proto/ligato/linux/namespace" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type RuleChain_Protocol int32 @@ -28,22 +33,43 @@ const ( RuleChain_IPV6 RuleChain_Protocol = 1 ) -var RuleChain_Protocol_name = map[int32]string{ - 0: "IPV4", - 1: "IPV6", -} +// Enum value maps for RuleChain_Protocol. +var ( + RuleChain_Protocol_name = map[int32]string{ + 0: "IPV4", + 1: "IPV6", + } + RuleChain_Protocol_value = map[string]int32{ + "IPV4": 0, + "IPV6": 1, + } +) -var RuleChain_Protocol_value = map[string]int32{ - "IPV4": 0, - "IPV6": 1, +func (x RuleChain_Protocol) Enum() *RuleChain_Protocol { + p := new(RuleChain_Protocol) + *p = x + return p } func (x RuleChain_Protocol) String() string { - return proto.EnumName(RuleChain_Protocol_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (RuleChain_Protocol) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_linux_iptables_iptables_proto_enumTypes[0].Descriptor() +} + +func (RuleChain_Protocol) Type() protoreflect.EnumType { + return &file_ligato_linux_iptables_iptables_proto_enumTypes[0] } +func (x RuleChain_Protocol) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use RuleChain_Protocol.Descriptor instead. func (RuleChain_Protocol) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7836bca61fd8c1bc, []int{0, 0} + return file_ligato_linux_iptables_iptables_proto_rawDescGZIP(), []int{0, 0} } type RuleChain_Table int32 @@ -56,28 +82,49 @@ const ( RuleChain_SECURITY RuleChain_Table = 4 ) -var RuleChain_Table_name = map[int32]string{ - 0: "FILTER", - 1: "NAT", - 2: "MANGLE", - 3: "RAW", - 4: "SECURITY", -} +// Enum value maps for RuleChain_Table. +var ( + RuleChain_Table_name = map[int32]string{ + 0: "FILTER", + 1: "NAT", + 2: "MANGLE", + 3: "RAW", + 4: "SECURITY", + } + RuleChain_Table_value = map[string]int32{ + "FILTER": 0, + "NAT": 1, + "MANGLE": 2, + "RAW": 3, + "SECURITY": 4, + } +) -var RuleChain_Table_value = map[string]int32{ - "FILTER": 0, - "NAT": 1, - "MANGLE": 2, - "RAW": 3, - "SECURITY": 4, +func (x RuleChain_Table) Enum() *RuleChain_Table { + p := new(RuleChain_Table) + *p = x + return p } func (x RuleChain_Table) String() string { - return proto.EnumName(RuleChain_Table_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (RuleChain_Table) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_linux_iptables_iptables_proto_enumTypes[1].Descriptor() } +func (RuleChain_Table) Type() protoreflect.EnumType { + return &file_ligato_linux_iptables_iptables_proto_enumTypes[1] +} + +func (x RuleChain_Table) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use RuleChain_Table.Descriptor instead. func (RuleChain_Table) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7836bca61fd8c1bc, []int{0, 1} + return file_ligato_linux_iptables_iptables_proto_rawDescGZIP(), []int{0, 1} } type RuleChain_ChainType int32 @@ -91,30 +138,51 @@ const ( RuleChain_POSTROUTING RuleChain_ChainType = 5 ) -var RuleChain_ChainType_name = map[int32]string{ - 0: "CUSTOM", - 1: "INPUT", - 2: "OUTPUT", - 3: "FORWARD", - 4: "PREROUTING", - 5: "POSTROUTING", -} +// Enum value maps for RuleChain_ChainType. +var ( + RuleChain_ChainType_name = map[int32]string{ + 0: "CUSTOM", + 1: "INPUT", + 2: "OUTPUT", + 3: "FORWARD", + 4: "PREROUTING", + 5: "POSTROUTING", + } + RuleChain_ChainType_value = map[string]int32{ + "CUSTOM": 0, + "INPUT": 1, + "OUTPUT": 2, + "FORWARD": 3, + "PREROUTING": 4, + "POSTROUTING": 5, + } +) -var RuleChain_ChainType_value = map[string]int32{ - "CUSTOM": 0, - "INPUT": 1, - "OUTPUT": 2, - "FORWARD": 3, - "PREROUTING": 4, - "POSTROUTING": 5, +func (x RuleChain_ChainType) Enum() *RuleChain_ChainType { + p := new(RuleChain_ChainType) + *p = x + return p } func (x RuleChain_ChainType) String() string { - return proto.EnumName(RuleChain_ChainType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (RuleChain_ChainType) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_linux_iptables_iptables_proto_enumTypes[2].Descriptor() +} + +func (RuleChain_ChainType) Type() protoreflect.EnumType { + return &file_ligato_linux_iptables_iptables_proto_enumTypes[2] } +func (x RuleChain_ChainType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use RuleChain_ChainType.Descriptor instead. func (RuleChain_ChainType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7836bca61fd8c1bc, []int{0, 2} + return file_ligato_linux_iptables_iptables_proto_rawDescGZIP(), []int{0, 2} } type RuleChain_Policy int32 @@ -127,177 +195,295 @@ const ( RuleChain_RETURN RuleChain_Policy = 4 ) -var RuleChain_Policy_name = map[int32]string{ - 0: "NONE", - 1: "ACCEPT", - 2: "DROP", - 3: "QUEUE", - 4: "RETURN", -} +// Enum value maps for RuleChain_Policy. +var ( + RuleChain_Policy_name = map[int32]string{ + 0: "NONE", + 1: "ACCEPT", + 2: "DROP", + 3: "QUEUE", + 4: "RETURN", + } + RuleChain_Policy_value = map[string]int32{ + "NONE": 0, + "ACCEPT": 1, + "DROP": 2, + "QUEUE": 3, + "RETURN": 4, + } +) -var RuleChain_Policy_value = map[string]int32{ - "NONE": 0, - "ACCEPT": 1, - "DROP": 2, - "QUEUE": 3, - "RETURN": 4, +func (x RuleChain_Policy) Enum() *RuleChain_Policy { + p := new(RuleChain_Policy) + *p = x + return p } func (x RuleChain_Policy) String() string { - return proto.EnumName(RuleChain_Policy_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (RuleChain_Policy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7836bca61fd8c1bc, []int{0, 3} +func (RuleChain_Policy) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_linux_iptables_iptables_proto_enumTypes[3].Descriptor() } -type RuleChain struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace *namespace.NetNamespace `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - Interfaces []string `protobuf:"bytes,3,rep,name=interfaces,proto3" json:"interfaces,omitempty"` - Protocol RuleChain_Protocol `protobuf:"varint,4,opt,name=protocol,proto3,enum=ligato.linux.iptables.RuleChain_Protocol" json:"protocol,omitempty"` - Table RuleChain_Table `protobuf:"varint,5,opt,name=table,proto3,enum=ligato.linux.iptables.RuleChain_Table" json:"table,omitempty"` - ChainType RuleChain_ChainType `protobuf:"varint,6,opt,name=chain_type,json=chainType,proto3,enum=ligato.linux.iptables.RuleChain_ChainType" json:"chain_type,omitempty"` - ChainName string `protobuf:"bytes,7,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` - DefaultPolicy RuleChain_Policy `protobuf:"varint,8,opt,name=default_policy,json=defaultPolicy,proto3,enum=ligato.linux.iptables.RuleChain_Policy" json:"default_policy,omitempty"` - Rules []string `protobuf:"bytes,10,rep,name=rules,proto3" json:"rules,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RuleChain) Reset() { *m = RuleChain{} } -func (m *RuleChain) String() string { return proto.CompactTextString(m) } -func (*RuleChain) ProtoMessage() {} -func (*RuleChain) Descriptor() ([]byte, []int) { - return fileDescriptor_7836bca61fd8c1bc, []int{0} +func (RuleChain_Policy) Type() protoreflect.EnumType { + return &file_ligato_linux_iptables_iptables_proto_enumTypes[3] } -func (m *RuleChain) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RuleChain.Unmarshal(m, b) +func (x RuleChain_Policy) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *RuleChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RuleChain.Marshal(b, m, deterministic) + +// Deprecated: Use RuleChain_Policy.Descriptor instead. +func (RuleChain_Policy) EnumDescriptor() ([]byte, []int) { + return file_ligato_linux_iptables_iptables_proto_rawDescGZIP(), []int{0, 3} } -func (m *RuleChain) XXX_Merge(src proto.Message) { - xxx_messageInfo_RuleChain.Merge(m, src) + +type RuleChain struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace *namespace.NetNamespace `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` // network namespace in which this rule chain is applied + Interfaces []string `protobuf:"bytes,3,rep,name=interfaces,proto3" json:"interfaces,omitempty"` // list of interfaces referred by the rules (optional) + Protocol RuleChain_Protocol `protobuf:"varint,4,opt,name=protocol,proto3,enum=ligato.linux.iptables.RuleChain_Protocol" json:"protocol,omitempty"` // protocol (address family) of the rule chain + Table RuleChain_Table `protobuf:"varint,5,opt,name=table,proto3,enum=ligato.linux.iptables.RuleChain_Table" json:"table,omitempty"` // table the rule chain belongs to + ChainType RuleChain_ChainType `protobuf:"varint,6,opt,name=chain_type,json=chainType,proto3,enum=ligato.linux.iptables.RuleChain_ChainType" json:"chain_type,omitempty"` // type of the chain + ChainName string `protobuf:"bytes,7,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` // name of the chain, used only for chains with CUSTOM chain_type + DefaultPolicy RuleChain_Policy `protobuf:"varint,8,opt,name=default_policy,json=defaultPolicy,proto3,enum=ligato.linux.iptables.RuleChain_Policy" json:"default_policy,omitempty"` // default policy of the chain. Used for FILTER tables only. + Rules []string `protobuf:"bytes,10,rep,name=rules,proto3" json:"rules,omitempty"` +} + +func (x *RuleChain) Reset() { + *x = RuleChain{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_linux_iptables_iptables_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RuleChain) XXX_Size() int { - return xxx_messageInfo_RuleChain.Size(m) + +func (x *RuleChain) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RuleChain) XXX_DiscardUnknown() { - xxx_messageInfo_RuleChain.DiscardUnknown(m) + +func (*RuleChain) ProtoMessage() {} + +func (x *RuleChain) ProtoReflect() protoreflect.Message { + mi := &file_ligato_linux_iptables_iptables_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RuleChain proto.InternalMessageInfo +// Deprecated: Use RuleChain.ProtoReflect.Descriptor instead. +func (*RuleChain) Descriptor() ([]byte, []int) { + return file_ligato_linux_iptables_iptables_proto_rawDescGZIP(), []int{0} +} -func (m *RuleChain) GetName() string { - if m != nil { - return m.Name +func (x *RuleChain) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *RuleChain) GetNamespace() *namespace.NetNamespace { - if m != nil { - return m.Namespace +func (x *RuleChain) GetNamespace() *namespace.NetNamespace { + if x != nil { + return x.Namespace } return nil } -func (m *RuleChain) GetInterfaces() []string { - if m != nil { - return m.Interfaces +func (x *RuleChain) GetInterfaces() []string { + if x != nil { + return x.Interfaces } return nil } -func (m *RuleChain) GetProtocol() RuleChain_Protocol { - if m != nil { - return m.Protocol +func (x *RuleChain) GetProtocol() RuleChain_Protocol { + if x != nil { + return x.Protocol } return RuleChain_IPV4 } -func (m *RuleChain) GetTable() RuleChain_Table { - if m != nil { - return m.Table +func (x *RuleChain) GetTable() RuleChain_Table { + if x != nil { + return x.Table } return RuleChain_FILTER } -func (m *RuleChain) GetChainType() RuleChain_ChainType { - if m != nil { - return m.ChainType +func (x *RuleChain) GetChainType() RuleChain_ChainType { + if x != nil { + return x.ChainType } return RuleChain_CUSTOM } -func (m *RuleChain) GetChainName() string { - if m != nil { - return m.ChainName +func (x *RuleChain) GetChainName() string { + if x != nil { + return x.ChainName } return "" } -func (m *RuleChain) GetDefaultPolicy() RuleChain_Policy { - if m != nil { - return m.DefaultPolicy +func (x *RuleChain) GetDefaultPolicy() RuleChain_Policy { + if x != nil { + return x.DefaultPolicy } return RuleChain_NONE } -func (m *RuleChain) GetRules() []string { - if m != nil { - return m.Rules +func (x *RuleChain) GetRules() []string { + if x != nil { + return x.Rules } return nil } -func init() { - proto.RegisterEnum("ligato.linux.iptables.RuleChain_Protocol", RuleChain_Protocol_name, RuleChain_Protocol_value) - proto.RegisterEnum("ligato.linux.iptables.RuleChain_Table", RuleChain_Table_name, RuleChain_Table_value) - proto.RegisterEnum("ligato.linux.iptables.RuleChain_ChainType", RuleChain_ChainType_name, RuleChain_ChainType_value) - proto.RegisterEnum("ligato.linux.iptables.RuleChain_Policy", RuleChain_Policy_name, RuleChain_Policy_value) - proto.RegisterType((*RuleChain)(nil), "ligato.linux.iptables.RuleChain") -} - -func init() { - proto.RegisterFile("ligato/linux/iptables/iptables.proto", fileDescriptor_7836bca61fd8c1bc) -} - -var fileDescriptor_7836bca61fd8c1bc = []byte{ - // 504 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0xf1, 0x6b, 0xda, 0x40, - 0x18, 0x35, 0x26, 0xd1, 0xe4, 0x73, 0x73, 0xc7, 0xb1, 0x41, 0x18, 0xac, 0x88, 0x94, 0xce, 0x0d, - 0x96, 0x40, 0x3b, 0xf6, 0xcb, 0x06, 0xc5, 0xea, 0x59, 0x02, 0xed, 0x25, 0x3b, 0x2f, 0x2b, 0x1b, - 0x03, 0x49, 0xb3, 0xab, 0x0b, 0x64, 0x26, 0x68, 0x2c, 0xf3, 0x3f, 0xdd, 0x9f, 0x33, 0xee, 0x62, - 0xb4, 0x85, 0x82, 0xbf, 0xc8, 0xfb, 0xde, 0xbd, 0xf7, 0xee, 0xbe, 0x87, 0x81, 0xe3, 0x2c, 0x9d, - 0xc7, 0x65, 0xee, 0x65, 0xe9, 0x62, 0xfd, 0xd7, 0x4b, 0x8b, 0x32, 0xbe, 0xcd, 0xc4, 0x6a, 0x07, - 0xdc, 0x62, 0x99, 0x97, 0x39, 0x7e, 0x55, 0xa9, 0x5c, 0xa5, 0x72, 0xeb, 0xc3, 0xd7, 0x27, 0x8f, - 0xcc, 0x8b, 0xf8, 0x8f, 0x58, 0x15, 0x71, 0x22, 0xf6, 0xa8, 0xb2, 0xf7, 0xff, 0x99, 0x60, 0xb3, - 0x75, 0x26, 0x46, 0xbf, 0xe3, 0x74, 0x81, 0x31, 0x18, 0x52, 0xe0, 0x68, 0x3d, 0x6d, 0x60, 0x33, - 0x85, 0xf1, 0x05, 0xd8, 0x3b, 0x93, 0xd3, 0xec, 0x69, 0x83, 0xce, 0xe9, 0xb1, 0xfb, 0xe8, 0xd2, - 0x7d, 0x26, 0x15, 0x25, 0xad, 0x07, 0xb6, 0xb7, 0xe1, 0x23, 0x80, 0x74, 0x51, 0x8a, 0xe5, 0x5d, - 0x9c, 0x88, 0x95, 0xa3, 0xf7, 0xf4, 0x81, 0xcd, 0x1e, 0x30, 0x98, 0x80, 0xa5, 0x9e, 0x93, 0xe4, - 0x99, 0x63, 0xf4, 0xb4, 0x41, 0xf7, 0xf4, 0x9d, 0xfb, 0xe4, 0x5e, 0xee, 0xee, 0xad, 0x6e, 0xb8, - 0x35, 0xb0, 0x9d, 0x15, 0x7f, 0x01, 0x53, 0xc9, 0x1c, 0x53, 0x65, 0x9c, 0x1c, 0xcc, 0xe0, 0x92, - 0x60, 0x95, 0x09, 0xfb, 0x00, 0x89, 0x64, 0x67, 0xe5, 0xa6, 0x10, 0x4e, 0x4b, 0x45, 0xbc, 0x3f, - 0x18, 0xa1, 0x7e, 0xf9, 0xa6, 0x10, 0xcc, 0x4e, 0x6a, 0x88, 0xdf, 0xd4, 0x51, 0xaa, 0xcd, 0xb6, - 0x6a, 0xb3, 0x3a, 0x96, 0xf5, 0x60, 0x0a, 0xdd, 0x5f, 0xe2, 0x2e, 0x5e, 0x67, 0xe5, 0xac, 0xc8, - 0xb3, 0x34, 0xd9, 0x38, 0x96, 0xba, 0xed, 0xed, 0xe1, 0xa5, 0x95, 0x9c, 0x3d, 0xdf, 0xda, 0xab, - 0x11, 0xbf, 0x04, 0x73, 0xb9, 0xce, 0xc4, 0xca, 0x01, 0xd5, 0x6c, 0x35, 0xf4, 0x8f, 0xc0, 0xaa, - 0x3b, 0xc2, 0x16, 0x18, 0x7e, 0xf8, 0xed, 0x23, 0x6a, 0x6c, 0xd1, 0x27, 0xa4, 0xf5, 0xcf, 0xc1, - 0x54, 0xfb, 0x63, 0x80, 0xd6, 0xc4, 0xbf, 0xe2, 0x84, 0xa1, 0x06, 0x6e, 0x83, 0x4e, 0x87, 0x1c, - 0x69, 0x92, 0xbc, 0x1e, 0xd2, 0xcb, 0x2b, 0x82, 0x9a, 0x92, 0x64, 0xc3, 0x1b, 0xa4, 0xe3, 0x67, - 0x60, 0x4d, 0xc9, 0x28, 0x62, 0x3e, 0xff, 0x8e, 0x8c, 0xfe, 0x4f, 0xb0, 0x77, 0xdb, 0x4b, 0xfd, - 0x28, 0x9a, 0xf2, 0xe0, 0x1a, 0x35, 0xb0, 0x0d, 0xa6, 0x4f, 0xc3, 0x68, 0x1b, 0x13, 0x44, 0x5c, - 0xe2, 0x26, 0xee, 0x40, 0x7b, 0x12, 0xb0, 0x9b, 0x21, 0x1b, 0x23, 0x1d, 0x77, 0x01, 0x42, 0x46, - 0x58, 0x10, 0x71, 0x9f, 0x5e, 0x22, 0x03, 0xbf, 0x80, 0x4e, 0x18, 0x4c, 0x79, 0x4d, 0x98, 0xfd, - 0x73, 0x68, 0x6d, 0xd7, 0xb3, 0xc0, 0xa0, 0x01, 0x25, 0xa8, 0x21, 0xd3, 0x86, 0xa3, 0x11, 0x09, - 0x65, 0xb2, 0x05, 0xc6, 0x98, 0x05, 0x21, 0x6a, 0xca, 0xeb, 0xbe, 0x46, 0x24, 0x22, 0x48, 0x97, - 0x02, 0x46, 0x78, 0xc4, 0x28, 0x32, 0x2e, 0x26, 0x3f, 0xc6, 0xf3, 0xbc, 0x6e, 0x34, 0xcd, 0xbd, - 0xfb, 0xa2, 0xf8, 0x10, 0xcf, 0xc5, 0xa2, 0xf4, 0xee, 0xcf, 0x3c, 0xf5, 0x9f, 0xf1, 0x9e, 0xfc, - 0xc2, 0x3e, 0xab, 0x71, 0x56, 0x8f, 0xb7, 0x2d, 0xa5, 0x3d, 0xfb, 0x1f, 0x00, 0x00, 0xff, 0xff, - 0xf9, 0x99, 0x01, 0xc2, 0x90, 0x03, 0x00, 0x00, +var File_ligato_linux_iptables_iptables_proto protoreflect.FileDescriptor + +var file_ligato_linux_iptables_iptables_proto_rawDesc = []byte{ + 0x0a, 0x24, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2f, 0x69, + 0x70, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x2f, 0x69, 0x70, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, + 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x69, 0x70, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x1a, 0x26, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2f, 0x6e, 0x61, 0x6d, 0x65, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd8, 0x05, 0x0a, 0x09, 0x52, 0x75, 0x6c, 0x65, 0x43, 0x68, + 0x61, 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6c, 0x69, 0x67, + 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x2e, 0x4e, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x45, 0x0a, 0x08, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x69, 0x70, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x73, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x2e, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x12, 0x3c, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x26, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, + 0x2e, 0x69, 0x70, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x43, 0x68, + 0x61, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x12, 0x49, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, + 0x6e, 0x75, 0x78, 0x2e, 0x69, 0x70, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x2e, 0x52, 0x75, 0x6c, + 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x09, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x4e, 0x0a, 0x0e, 0x64, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, + 0x78, 0x2e, 0x69, 0x70, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x43, + 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0d, 0x64, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x75, + 0x6c, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, + 0x22, 0x1e, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x08, 0x0a, 0x04, + 0x49, 0x50, 0x56, 0x34, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x36, 0x10, 0x01, + 0x22, 0x3f, 0x0a, 0x05, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x49, 0x4c, + 0x54, 0x45, 0x52, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4e, 0x41, 0x54, 0x10, 0x01, 0x12, 0x0a, + 0x0a, 0x06, 0x4d, 0x41, 0x4e, 0x47, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x52, 0x41, + 0x57, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x45, 0x43, 0x55, 0x52, 0x49, 0x54, 0x59, 0x10, + 0x04, 0x22, 0x5c, 0x0a, 0x09, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, + 0x0a, 0x06, 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, + 0x50, 0x55, 0x54, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, + 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4f, 0x52, 0x57, 0x41, 0x52, 0x44, 0x10, 0x03, 0x12, 0x0e, + 0x0a, 0x0a, 0x50, 0x52, 0x45, 0x52, 0x4f, 0x55, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x0f, + 0x0a, 0x0b, 0x50, 0x4f, 0x53, 0x54, 0x52, 0x4f, 0x55, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x05, 0x22, + 0x3f, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, + 0x45, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x10, 0x01, 0x12, + 0x08, 0x0a, 0x04, 0x44, 0x52, 0x4f, 0x50, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x51, 0x55, 0x45, + 0x55, 0x45, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x45, 0x54, 0x55, 0x52, 0x4e, 0x10, 0x04, + 0x42, 0x46, 0x5a, 0x44, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, + 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, + 0x2f, 0x69, 0x70, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x3b, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x5f, + 0x69, 0x70, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_linux_iptables_iptables_proto_rawDescOnce sync.Once + file_ligato_linux_iptables_iptables_proto_rawDescData = file_ligato_linux_iptables_iptables_proto_rawDesc +) + +func file_ligato_linux_iptables_iptables_proto_rawDescGZIP() []byte { + file_ligato_linux_iptables_iptables_proto_rawDescOnce.Do(func() { + file_ligato_linux_iptables_iptables_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_linux_iptables_iptables_proto_rawDescData) + }) + return file_ligato_linux_iptables_iptables_proto_rawDescData +} + +var file_ligato_linux_iptables_iptables_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_ligato_linux_iptables_iptables_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_ligato_linux_iptables_iptables_proto_goTypes = []interface{}{ + (RuleChain_Protocol)(0), // 0: ligato.linux.iptables.RuleChain.Protocol + (RuleChain_Table)(0), // 1: ligato.linux.iptables.RuleChain.Table + (RuleChain_ChainType)(0), // 2: ligato.linux.iptables.RuleChain.ChainType + (RuleChain_Policy)(0), // 3: ligato.linux.iptables.RuleChain.Policy + (*RuleChain)(nil), // 4: ligato.linux.iptables.RuleChain + (*namespace.NetNamespace)(nil), // 5: ligato.linux.namespace.NetNamespace +} +var file_ligato_linux_iptables_iptables_proto_depIdxs = []int32{ + 5, // 0: ligato.linux.iptables.RuleChain.namespace:type_name -> ligato.linux.namespace.NetNamespace + 0, // 1: ligato.linux.iptables.RuleChain.protocol:type_name -> ligato.linux.iptables.RuleChain.Protocol + 1, // 2: ligato.linux.iptables.RuleChain.table:type_name -> ligato.linux.iptables.RuleChain.Table + 2, // 3: ligato.linux.iptables.RuleChain.chain_type:type_name -> ligato.linux.iptables.RuleChain.ChainType + 3, // 4: ligato.linux.iptables.RuleChain.default_policy:type_name -> ligato.linux.iptables.RuleChain.Policy + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_ligato_linux_iptables_iptables_proto_init() } +func file_ligato_linux_iptables_iptables_proto_init() { + if File_ligato_linux_iptables_iptables_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_linux_iptables_iptables_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RuleChain); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_linux_iptables_iptables_proto_rawDesc, + NumEnums: 4, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_linux_iptables_iptables_proto_goTypes, + DependencyIndexes: file_ligato_linux_iptables_iptables_proto_depIdxs, + EnumInfos: file_ligato_linux_iptables_iptables_proto_enumTypes, + MessageInfos: file_ligato_linux_iptables_iptables_proto_msgTypes, + }.Build() + File_ligato_linux_iptables_iptables_proto = out.File + file_ligato_linux_iptables_iptables_proto_rawDesc = nil + file_ligato_linux_iptables_iptables_proto_goTypes = nil + file_ligato_linux_iptables_iptables_proto_depIdxs = nil } diff --git a/proto/ligato/linux/l3/arp.pb.go b/proto/ligato/linux/l3/arp.pb.go index 5b5c6f75d8..75ae295b0b 100644 --- a/proto/ligato/linux/l3/arp.pb.go +++ b/proto/ligato/linux/l3/arp.pb.go @@ -1,97 +1,171 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/linux/l3/arp.proto package linux_l3 import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type ARPEntry struct { - Interface string `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - IpAddress string `protobuf:"bytes,2,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` - HwAddress string `protobuf:"bytes,3,opt,name=hw_address,json=hwAddress,proto3" json:"hw_address,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ARPEntry) Reset() { *m = ARPEntry{} } -func (m *ARPEntry) String() string { return proto.CompactTextString(m) } -func (*ARPEntry) ProtoMessage() {} -func (*ARPEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_3e7a8406f67230b7, []int{0} + Interface string `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + IpAddress string `protobuf:"bytes,2,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` + HwAddress string `protobuf:"bytes,3,opt,name=hw_address,json=hwAddress,proto3" json:"hw_address,omitempty"` } -func (m *ARPEntry) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ARPEntry.Unmarshal(m, b) -} -func (m *ARPEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ARPEntry.Marshal(b, m, deterministic) -} -func (m *ARPEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_ARPEntry.Merge(m, src) +func (x *ARPEntry) Reset() { + *x = ARPEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_linux_l3_arp_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ARPEntry) XXX_Size() int { - return xxx_messageInfo_ARPEntry.Size(m) + +func (x *ARPEntry) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ARPEntry) XXX_DiscardUnknown() { - xxx_messageInfo_ARPEntry.DiscardUnknown(m) + +func (*ARPEntry) ProtoMessage() {} + +func (x *ARPEntry) ProtoReflect() protoreflect.Message { + mi := &file_ligato_linux_l3_arp_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ARPEntry proto.InternalMessageInfo +// Deprecated: Use ARPEntry.ProtoReflect.Descriptor instead. +func (*ARPEntry) Descriptor() ([]byte, []int) { + return file_ligato_linux_l3_arp_proto_rawDescGZIP(), []int{0} +} -func (m *ARPEntry) GetInterface() string { - if m != nil { - return m.Interface +func (x *ARPEntry) GetInterface() string { + if x != nil { + return x.Interface } return "" } -func (m *ARPEntry) GetIpAddress() string { - if m != nil { - return m.IpAddress +func (x *ARPEntry) GetIpAddress() string { + if x != nil { + return x.IpAddress } return "" } -func (m *ARPEntry) GetHwAddress() string { - if m != nil { - return m.HwAddress +func (x *ARPEntry) GetHwAddress() string { + if x != nil { + return x.HwAddress } return "" } -func init() { - proto.RegisterType((*ARPEntry)(nil), "ligato.linux.l3.ARPEntry") +var File_ligato_linux_l3_arp_proto protoreflect.FileDescriptor + +var file_ligato_linux_l3_arp_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2f, 0x6c, + 0x33, 0x2f, 0x61, 0x72, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x6c, 0x69, 0x67, + 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x6c, 0x33, 0x22, 0x66, 0x0a, 0x08, + 0x41, 0x52, 0x50, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x70, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x77, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x77, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, + 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, + 0x69, 0x6e, 0x75, 0x78, 0x2f, 0x6c, 0x33, 0x3b, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x5f, 0x6c, 0x33, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_linux_l3_arp_proto_rawDescOnce sync.Once + file_ligato_linux_l3_arp_proto_rawDescData = file_ligato_linux_l3_arp_proto_rawDesc +) + +func file_ligato_linux_l3_arp_proto_rawDescGZIP() []byte { + file_ligato_linux_l3_arp_proto_rawDescOnce.Do(func() { + file_ligato_linux_l3_arp_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_linux_l3_arp_proto_rawDescData) + }) + return file_ligato_linux_l3_arp_proto_rawDescData } -func init() { proto.RegisterFile("ligato/linux/l3/arp.proto", fileDescriptor_3e7a8406f67230b7) } - -var fileDescriptor_3e7a8406f67230b7 = []byte{ - // 170 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xc9, 0x4c, 0x4f, - 0x2c, 0xc9, 0xd7, 0xcf, 0xc9, 0xcc, 0x2b, 0xad, 0xd0, 0xcf, 0x31, 0xd6, 0x4f, 0x2c, 0x2a, 0xd0, - 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x87, 0x48, 0xe9, 0x81, 0xa5, 0xf4, 0x72, 0x8c, 0x95, - 0xd2, 0xb8, 0x38, 0x1c, 0x83, 0x02, 0x5c, 0xf3, 0x4a, 0x8a, 0x2a, 0x85, 0x64, 0xb8, 0x38, 0x33, - 0xf3, 0x4a, 0x52, 0x8b, 0xd2, 0x12, 0x93, 0x53, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x10, - 0x02, 0x42, 0xb2, 0x5c, 0x5c, 0x99, 0x05, 0xf1, 0x89, 0x29, 0x29, 0x45, 0xa9, 0xc5, 0xc5, 0x12, - 0x4c, 0x50, 0xe9, 0x02, 0x47, 0x88, 0x00, 0x48, 0x3a, 0xa3, 0x1c, 0x2e, 0xcd, 0x0c, 0x91, 0xce, - 0x28, 0x87, 0x4a, 0x3b, 0x59, 0x45, 0x59, 0xa4, 0x83, 0xac, 0x05, 0xdb, 0x9e, 0x99, 0xaf, 0x5f, - 0x56, 0x50, 0xa0, 0x9b, 0x98, 0x9e, 0x9a, 0x57, 0xa2, 0x5f, 0x66, 0xac, 0x0f, 0x76, 0x9b, 0x3e, - 0x9a, 0xab, 0xad, 0xc1, 0x8c, 0xf8, 0x1c, 0xe3, 0x24, 0x36, 0xb0, 0xbc, 0x31, 0x20, 0x00, 0x00, - 0xff, 0xff, 0x9e, 0x83, 0x4e, 0xef, 0xd8, 0x00, 0x00, 0x00, +var file_ligato_linux_l3_arp_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_ligato_linux_l3_arp_proto_goTypes = []interface{}{ + (*ARPEntry)(nil), // 0: ligato.linux.l3.ARPEntry +} +var file_ligato_linux_l3_arp_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_ligato_linux_l3_arp_proto_init() } +func file_ligato_linux_l3_arp_proto_init() { + if File_ligato_linux_l3_arp_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_linux_l3_arp_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ARPEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_linux_l3_arp_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_linux_l3_arp_proto_goTypes, + DependencyIndexes: file_ligato_linux_l3_arp_proto_depIdxs, + MessageInfos: file_ligato_linux_l3_arp_proto_msgTypes, + }.Build() + File_ligato_linux_l3_arp_proto = out.File + file_ligato_linux_l3_arp_proto_rawDesc = nil + file_ligato_linux_l3_arp_proto_goTypes = nil + file_ligato_linux_l3_arp_proto_depIdxs = nil } diff --git a/proto/ligato/linux/l3/route.pb.go b/proto/ligato/linux/l3/route.pb.go index 59dde28f16..6bf0501c05 100644 --- a/proto/ligato/linux/l3/route.pb.go +++ b/proto/ligato/linux/l3/route.pb.go @@ -1,24 +1,29 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/linux/l3/route.proto package linux_l3 import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type Route_Scope int32 @@ -30,31 +35,56 @@ const ( Route_HOST Route_Scope = 4 ) -var Route_Scope_name = map[int32]string{ - 0: "UNDEFINED", - 1: "GLOBAL", - 2: "SITE", - 3: "LINK", - 4: "HOST", -} +// Enum value maps for Route_Scope. +var ( + Route_Scope_name = map[int32]string{ + 0: "UNDEFINED", + 1: "GLOBAL", + 2: "SITE", + 3: "LINK", + 4: "HOST", + } + Route_Scope_value = map[string]int32{ + "UNDEFINED": 0, + "GLOBAL": 1, + "SITE": 2, + "LINK": 3, + "HOST": 4, + } +) -var Route_Scope_value = map[string]int32{ - "UNDEFINED": 0, - "GLOBAL": 1, - "SITE": 2, - "LINK": 3, - "HOST": 4, +func (x Route_Scope) Enum() *Route_Scope { + p := new(Route_Scope) + *p = x + return p } func (x Route_Scope) String() string { - return proto.EnumName(Route_Scope_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Route_Scope) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_linux_l3_route_proto_enumTypes[0].Descriptor() +} + +func (Route_Scope) Type() protoreflect.EnumType { + return &file_ligato_linux_l3_route_proto_enumTypes[0] +} + +func (x Route_Scope) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use Route_Scope.Descriptor instead. func (Route_Scope) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_c54d098186701b55, []int{0, 0} + return file_ligato_linux_l3_route_proto_rawDescGZIP(), []int{0, 0} } type Route struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Outgoing interface logical name (mandatory). OutgoingInterface string `protobuf:"bytes,1,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"` // The scope of the area where the link is valid. @@ -68,98 +98,168 @@ type Route struct { // see: api/models/netalloc/netalloc.proto GwAddr string `protobuf:"bytes,4,opt,name=gw_addr,json=gwAddr,proto3" json:"gw_addr,omitempty"` // routing metric (weight) - Metric uint32 `protobuf:"varint,5,opt,name=metric,proto3" json:"metric,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Metric uint32 `protobuf:"varint,5,opt,name=metric,proto3" json:"metric,omitempty"` } -func (m *Route) Reset() { *m = Route{} } -func (m *Route) String() string { return proto.CompactTextString(m) } -func (*Route) ProtoMessage() {} -func (*Route) Descriptor() ([]byte, []int) { - return fileDescriptor_c54d098186701b55, []int{0} +func (x *Route) Reset() { + *x = Route{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_linux_l3_route_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Route) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Route.Unmarshal(m, b) -} -func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Route.Marshal(b, m, deterministic) -} -func (m *Route) XXX_Merge(src proto.Message) { - xxx_messageInfo_Route.Merge(m, src) -} -func (m *Route) XXX_Size() int { - return xxx_messageInfo_Route.Size(m) +func (x *Route) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Route) XXX_DiscardUnknown() { - xxx_messageInfo_Route.DiscardUnknown(m) + +func (*Route) ProtoMessage() {} + +func (x *Route) ProtoReflect() protoreflect.Message { + mi := &file_ligato_linux_l3_route_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Route proto.InternalMessageInfo +// Deprecated: Use Route.ProtoReflect.Descriptor instead. +func (*Route) Descriptor() ([]byte, []int) { + return file_ligato_linux_l3_route_proto_rawDescGZIP(), []int{0} +} -func (m *Route) GetOutgoingInterface() string { - if m != nil { - return m.OutgoingInterface +func (x *Route) GetOutgoingInterface() string { + if x != nil { + return x.OutgoingInterface } return "" } -func (m *Route) GetScope() Route_Scope { - if m != nil { - return m.Scope +func (x *Route) GetScope() Route_Scope { + if x != nil { + return x.Scope } return Route_UNDEFINED } -func (m *Route) GetDstNetwork() string { - if m != nil { - return m.DstNetwork +func (x *Route) GetDstNetwork() string { + if x != nil { + return x.DstNetwork } return "" } -func (m *Route) GetGwAddr() string { - if m != nil { - return m.GwAddr +func (x *Route) GetGwAddr() string { + if x != nil { + return x.GwAddr } return "" } -func (m *Route) GetMetric() uint32 { - if m != nil { - return m.Metric +func (x *Route) GetMetric() uint32 { + if x != nil { + return x.Metric } return 0 } -func init() { - proto.RegisterEnum("ligato.linux.l3.Route_Scope", Route_Scope_name, Route_Scope_value) - proto.RegisterType((*Route)(nil), "ligato.linux.l3.Route") -} - -func init() { proto.RegisterFile("ligato/linux/l3/route.proto", fileDescriptor_c54d098186701b55) } - -var fileDescriptor_c54d098186701b55 = []byte{ - // 291 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xc1, 0x4f, 0xc2, 0x30, - 0x14, 0xc6, 0x2d, 0xb0, 0x29, 0xcf, 0xa0, 0xb3, 0x07, 0x5d, 0xa2, 0x89, 0x84, 0x13, 0x17, 0xda, - 0x84, 0x5d, 0x8c, 0x5e, 0x84, 0x80, 0xba, 0x48, 0x46, 0x32, 0xf0, 0xe2, 0x65, 0x99, 0xb4, 0x36, - 0x8d, 0x73, 0x5d, 0x4a, 0x61, 0xfe, 0xf5, 0xc6, 0xac, 0x73, 0x17, 0x6e, 0xdf, 0x7b, 0xbf, 0x2f, - 0xdf, 0x7b, 0xf9, 0xe0, 0x3a, 0x93, 0x22, 0x35, 0x8a, 0x66, 0x32, 0xdf, 0xfd, 0xd0, 0x2c, 0xa0, - 0x5a, 0xed, 0x0c, 0x27, 0x85, 0x56, 0x46, 0xe1, 0xf3, 0x1a, 0x12, 0x0b, 0x49, 0x16, 0x0c, 0x7e, - 0x11, 0x38, 0x71, 0x65, 0xc0, 0x23, 0xc0, 0x6a, 0x67, 0x84, 0x92, 0xb9, 0x48, 0x64, 0x6e, 0xb8, - 0xfe, 0x4c, 0x37, 0xdc, 0x47, 0x7d, 0x34, 0xec, 0xc6, 0x17, 0x0d, 0x09, 0x1b, 0x80, 0xc7, 0xe0, - 0x6c, 0x37, 0xaa, 0xe0, 0x7e, 0xab, 0x8f, 0x86, 0x67, 0xe3, 0x1b, 0x72, 0x90, 0x4c, 0x6c, 0x2a, - 0x59, 0x55, 0x9e, 0xb8, 0xb6, 0xe2, 0x5b, 0x38, 0x65, 0x5b, 0x93, 0xe4, 0xdc, 0x94, 0x4a, 0x7f, - 0xf9, 0x6d, 0x9b, 0x0d, 0x6c, 0x6b, 0xa2, 0x7a, 0x83, 0xaf, 0xe0, 0x58, 0x94, 0x49, 0xca, 0x98, - 0xf6, 0x3b, 0x16, 0xba, 0xa2, 0x9c, 0x30, 0xa6, 0xf1, 0x25, 0xb8, 0xdf, 0xdc, 0x68, 0xb9, 0xf1, - 0x9d, 0x3e, 0x1a, 0xf6, 0xe2, 0xff, 0x69, 0xf0, 0x08, 0x8e, 0xbd, 0x80, 0x7b, 0xd0, 0x7d, 0x8b, - 0x66, 0xf3, 0xa7, 0x30, 0x9a, 0xcf, 0xbc, 0x23, 0x0c, 0xe0, 0x3e, 0x2f, 0x96, 0xd3, 0xc9, 0xc2, - 0x43, 0xf8, 0x04, 0x3a, 0xab, 0x70, 0x3d, 0xf7, 0x5a, 0x95, 0x5a, 0x84, 0xd1, 0xab, 0xd7, 0xae, - 0xd4, 0xcb, 0x72, 0xb5, 0xf6, 0x3a, 0xd3, 0xfb, 0xf7, 0x3b, 0xa1, 0x9a, 0xe7, 0xa5, 0xa2, 0xfb, - 0xa2, 0x18, 0xa5, 0x82, 0xe7, 0x86, 0xee, 0x03, 0x6a, 0x4b, 0xa3, 0x07, 0x85, 0x3e, 0x58, 0x91, - 0x64, 0xc1, 0x87, 0x6b, 0x79, 0xf0, 0x17, 0x00, 0x00, 0xff, 0xff, 0x37, 0x7d, 0xe4, 0xbb, 0x73, - 0x01, 0x00, 0x00, +var File_ligato_linux_l3_route_proto protoreflect.FileDescriptor + +var file_ligato_linux_l3_route_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2f, 0x6c, + 0x33, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x6c, 0x33, 0x22, 0xfe, + 0x01, 0x0a, 0x05, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x6f, 0x75, 0x74, 0x67, + 0x6f, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x32, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, + 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x6c, 0x33, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x53, + 0x63, 0x6f, 0x70, 0x65, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x64, + 0x73, 0x74, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x64, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x17, 0x0a, 0x07, + 0x67, 0x77, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x67, + 0x77, 0x41, 0x64, 0x64, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x22, 0x40, 0x0a, + 0x05, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, + 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x47, 0x4c, 0x4f, 0x42, 0x41, 0x4c, 0x10, + 0x01, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x49, 0x54, 0x45, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x4c, + 0x49, 0x4e, 0x4b, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x4f, 0x53, 0x54, 0x10, 0x04, 0x42, + 0x3a, 0x5a, 0x38, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, + 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2f, + 0x6c, 0x33, 0x3b, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x5f, 0x6c, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_linux_l3_route_proto_rawDescOnce sync.Once + file_ligato_linux_l3_route_proto_rawDescData = file_ligato_linux_l3_route_proto_rawDesc +) + +func file_ligato_linux_l3_route_proto_rawDescGZIP() []byte { + file_ligato_linux_l3_route_proto_rawDescOnce.Do(func() { + file_ligato_linux_l3_route_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_linux_l3_route_proto_rawDescData) + }) + return file_ligato_linux_l3_route_proto_rawDescData +} + +var file_ligato_linux_l3_route_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_ligato_linux_l3_route_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_ligato_linux_l3_route_proto_goTypes = []interface{}{ + (Route_Scope)(0), // 0: ligato.linux.l3.Route.Scope + (*Route)(nil), // 1: ligato.linux.l3.Route +} +var file_ligato_linux_l3_route_proto_depIdxs = []int32{ + 0, // 0: ligato.linux.l3.Route.scope:type_name -> ligato.linux.l3.Route.Scope + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_ligato_linux_l3_route_proto_init() } +func file_ligato_linux_l3_route_proto_init() { + if File_ligato_linux_l3_route_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_linux_l3_route_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Route); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_linux_l3_route_proto_rawDesc, + NumEnums: 1, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_linux_l3_route_proto_goTypes, + DependencyIndexes: file_ligato_linux_l3_route_proto_depIdxs, + EnumInfos: file_ligato_linux_l3_route_proto_enumTypes, + MessageInfos: file_ligato_linux_l3_route_proto_msgTypes, + }.Build() + File_ligato_linux_l3_route_proto = out.File + file_ligato_linux_l3_route_proto_rawDesc = nil + file_ligato_linux_l3_route_proto_goTypes = nil + file_ligato_linux_l3_route_proto_depIdxs = nil } diff --git a/proto/ligato/linux/linux.pb.go b/proto/ligato/linux/linux.pb.go index 7773808ae8..5fb15b4eec 100644 --- a/proto/ligato/linux/linux.pb.go +++ b/proto/ligato/linux/linux.pb.go @@ -1,136 +1,242 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/linux/linux.proto package linux import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" interfaces "go.ligato.io/vpp-agent/v3/proto/ligato/linux/interfaces" l3 "go.ligato.io/vpp-agent/v3/proto/ligato/linux/l3" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type ConfigData struct { - Interfaces []*interfaces.Interface `protobuf:"bytes,10,rep,name=interfaces,proto3" json:"interfaces,omitempty"` - ArpEntries []*l3.ARPEntry `protobuf:"bytes,20,rep,name=arp_entries,json=arpEntries,proto3" json:"arp_entries,omitempty"` - Routes []*l3.Route `protobuf:"bytes,21,rep,name=routes,proto3" json:"routes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ConfigData) Reset() { *m = ConfigData{} } -func (m *ConfigData) String() string { return proto.CompactTextString(m) } -func (*ConfigData) ProtoMessage() {} -func (*ConfigData) Descriptor() ([]byte, []int) { - return fileDescriptor_8d75d970dbe631df, []int{0} + Interfaces []*interfaces.Interface `protobuf:"bytes,10,rep,name=interfaces,proto3" json:"interfaces,omitempty"` + ArpEntries []*l3.ARPEntry `protobuf:"bytes,20,rep,name=arp_entries,json=arpEntries,proto3" json:"arp_entries,omitempty"` + Routes []*l3.Route `protobuf:"bytes,21,rep,name=routes,proto3" json:"routes,omitempty"` } -func (m *ConfigData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ConfigData.Unmarshal(m, b) -} -func (m *ConfigData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ConfigData.Marshal(b, m, deterministic) -} -func (m *ConfigData) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigData.Merge(m, src) +func (x *ConfigData) Reset() { + *x = ConfigData{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_linux_linux_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ConfigData) XXX_Size() int { - return xxx_messageInfo_ConfigData.Size(m) + +func (x *ConfigData) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ConfigData) XXX_DiscardUnknown() { - xxx_messageInfo_ConfigData.DiscardUnknown(m) + +func (*ConfigData) ProtoMessage() {} + +func (x *ConfigData) ProtoReflect() protoreflect.Message { + mi := &file_ligato_linux_linux_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ConfigData proto.InternalMessageInfo +// Deprecated: Use ConfigData.ProtoReflect.Descriptor instead. +func (*ConfigData) Descriptor() ([]byte, []int) { + return file_ligato_linux_linux_proto_rawDescGZIP(), []int{0} +} -func (m *ConfigData) GetInterfaces() []*interfaces.Interface { - if m != nil { - return m.Interfaces +func (x *ConfigData) GetInterfaces() []*interfaces.Interface { + if x != nil { + return x.Interfaces } return nil } -func (m *ConfigData) GetArpEntries() []*l3.ARPEntry { - if m != nil { - return m.ArpEntries +func (x *ConfigData) GetArpEntries() []*l3.ARPEntry { + if x != nil { + return x.ArpEntries } return nil } -func (m *ConfigData) GetRoutes() []*l3.Route { - if m != nil { - return m.Routes +func (x *ConfigData) GetRoutes() []*l3.Route { + if x != nil { + return x.Routes } return nil } type Notification struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *Notification) Reset() { *m = Notification{} } -func (m *Notification) String() string { return proto.CompactTextString(m) } -func (*Notification) ProtoMessage() {} -func (*Notification) Descriptor() ([]byte, []int) { - return fileDescriptor_8d75d970dbe631df, []int{1} +func (x *Notification) Reset() { + *x = Notification{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_linux_linux_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Notification) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Notification.Unmarshal(m, b) -} -func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Notification.Marshal(b, m, deterministic) -} -func (m *Notification) XXX_Merge(src proto.Message) { - xxx_messageInfo_Notification.Merge(m, src) -} -func (m *Notification) XXX_Size() int { - return xxx_messageInfo_Notification.Size(m) -} -func (m *Notification) XXX_DiscardUnknown() { - xxx_messageInfo_Notification.DiscardUnknown(m) +func (x *Notification) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Notification proto.InternalMessageInfo +func (*Notification) ProtoMessage() {} -func init() { - proto.RegisterType((*ConfigData)(nil), "ligato.linux.ConfigData") - proto.RegisterType((*Notification)(nil), "ligato.linux.Notification") +func (x *Notification) ProtoReflect() protoreflect.Message { + mi := &file_ligato_linux_linux_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func init() { proto.RegisterFile("ligato/linux/linux.proto", fileDescriptor_8d75d970dbe631df) } +// Deprecated: Use Notification.ProtoReflect.Descriptor instead. +func (*Notification) Descriptor() ([]byte, []int) { + return file_ligato_linux_linux_proto_rawDescGZIP(), []int{1} +} + +var File_ligato_linux_linux_proto protoreflect.FileDescriptor + +var file_ligato_linux_linux_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2f, 0x6c, + 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x1a, 0x27, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x19, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2f, + 0x6c, 0x33, 0x2f, 0x61, 0x72, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2f, 0x6c, 0x33, 0x2f, 0x72, 0x6f, + 0x75, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbc, 0x01, 0x0a, 0x0a, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x42, 0x0a, 0x0a, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x3a, 0x0a, 0x0b, + 0x61, 0x72, 0x70, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x14, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, + 0x2e, 0x6c, 0x33, 0x2e, 0x41, 0x52, 0x50, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x61, 0x72, + 0x70, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x06, 0x72, 0x6f, 0x75, 0x74, + 0x65, 0x73, 0x18, 0x15, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x6c, 0x33, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, + 0x52, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, 0x0e, 0x0a, 0x0c, 0x4e, 0x6f, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x6f, 0x2e, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x3b, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_linux_linux_proto_rawDescOnce sync.Once + file_ligato_linux_linux_proto_rawDescData = file_ligato_linux_linux_proto_rawDesc +) -var fileDescriptor_8d75d970dbe631df = []byte{ - // 244 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0xc1, 0x4a, 0xc4, 0x30, - 0x10, 0x86, 0x11, 0x61, 0x0f, 0xb3, 0x8b, 0x87, 0xa2, 0xd2, 0x5d, 0x2f, 0xd2, 0x8b, 0x5e, 0x4c, - 0x60, 0xeb, 0x49, 0x4f, 0xae, 0xee, 0xc1, 0x8b, 0x48, 0x8e, 0x5e, 0x64, 0x5c, 0xd2, 0x32, 0x50, - 0x32, 0x21, 0x9d, 0x5d, 0xf4, 0xdd, 0x7c, 0x38, 0x31, 0x69, 0x69, 0xab, 0x97, 0x61, 0xc8, 0x37, - 0xdf, 0x9f, 0x49, 0x20, 0x6f, 0xa8, 0x46, 0x61, 0xdd, 0x90, 0xdb, 0x7f, 0xa6, 0xaa, 0x7c, 0x60, - 0xe1, 0x6c, 0x91, 0x88, 0x8a, 0x67, 0xab, 0xab, 0xc9, 0x1c, 0x39, 0xb1, 0xa1, 0xc2, 0x9d, 0x6d, - 0x87, 0x36, 0x69, 0xab, 0xe5, 0x34, 0xb0, 0xd4, 0x18, 0x7c, 0x87, 0x2e, 0xfe, 0xa2, 0xc0, 0x7b, - 0xe9, 0xbc, 0xe2, 0xfb, 0x08, 0xe0, 0x91, 0x5d, 0x45, 0xf5, 0x13, 0x0a, 0x66, 0x1b, 0x80, 0xe1, - 0x92, 0x1c, 0x2e, 0x8f, 0xaf, 0xe7, 0xeb, 0x42, 0x8d, 0x57, 0x52, 0x03, 0x57, 0xcf, 0x7d, 0x6b, - 0x46, 0x56, 0x76, 0x07, 0x73, 0x0c, 0xfe, 0xdd, 0x3a, 0x09, 0x64, 0xdb, 0xfc, 0x34, 0x86, 0x2c, - 0xa7, 0x21, 0x4d, 0xa9, 0x1e, 0xcc, 0xeb, 0xd6, 0x49, 0xf8, 0x32, 0x80, 0xc1, 0x6f, 0xd3, 0x70, - 0xa6, 0x60, 0x16, 0xb7, 0x6b, 0xf3, 0xb3, 0xa8, 0x9d, 0xff, 0xd3, 0xcc, 0x2f, 0x36, 0xdd, 0x54, - 0x71, 0x02, 0x8b, 0x17, 0x16, 0xaa, 0x68, 0x87, 0x42, 0xec, 0x36, 0xb7, 0x6f, 0xeb, 0x9a, 0x7b, - 0x87, 0x58, 0x1f, 0xbc, 0xbf, 0xc1, 0xda, 0x3a, 0xd1, 0x87, 0x52, 0xc7, 0x17, 0xeb, 0xf1, 0x6f, - 0xdc, 0xc7, 0xfa, 0x31, 0x8b, 0xa4, 0xfc, 0x09, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x25, 0xbe, 0xf8, - 0x96, 0x01, 0x00, 0x00, +func file_ligato_linux_linux_proto_rawDescGZIP() []byte { + file_ligato_linux_linux_proto_rawDescOnce.Do(func() { + file_ligato_linux_linux_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_linux_linux_proto_rawDescData) + }) + return file_ligato_linux_linux_proto_rawDescData +} + +var file_ligato_linux_linux_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_ligato_linux_linux_proto_goTypes = []interface{}{ + (*ConfigData)(nil), // 0: ligato.linux.ConfigData + (*Notification)(nil), // 1: ligato.linux.Notification + (*interfaces.Interface)(nil), // 2: ligato.linux.interfaces.Interface + (*l3.ARPEntry)(nil), // 3: ligato.linux.l3.ARPEntry + (*l3.Route)(nil), // 4: ligato.linux.l3.Route +} +var file_ligato_linux_linux_proto_depIdxs = []int32{ + 2, // 0: ligato.linux.ConfigData.interfaces:type_name -> ligato.linux.interfaces.Interface + 3, // 1: ligato.linux.ConfigData.arp_entries:type_name -> ligato.linux.l3.ARPEntry + 4, // 2: ligato.linux.ConfigData.routes:type_name -> ligato.linux.l3.Route + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_ligato_linux_linux_proto_init() } +func file_ligato_linux_linux_proto_init() { + if File_ligato_linux_linux_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_linux_linux_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConfigData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_linux_linux_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Notification); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_linux_linux_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_linux_linux_proto_goTypes, + DependencyIndexes: file_ligato_linux_linux_proto_depIdxs, + MessageInfos: file_ligato_linux_linux_proto_msgTypes, + }.Build() + File_ligato_linux_linux_proto = out.File + file_ligato_linux_linux_proto_rawDesc = nil + file_ligato_linux_linux_proto_goTypes = nil + file_ligato_linux_linux_proto_depIdxs = nil } diff --git a/proto/ligato/linux/namespace/namespace.pb.go b/proto/ligato/linux/namespace/namespace.pb.go index 73f2e3fd4e..bef7892fbe 100644 --- a/proto/ligato/linux/namespace/namespace.pb.go +++ b/proto/ligato/linux/namespace/namespace.pb.go @@ -1,60 +1,90 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/linux/namespace/namespace.proto package linux_namespace import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type NetNamespace_ReferenceType int32 const ( NetNamespace_UNDEFINED NetNamespace_ReferenceType = 0 - NetNamespace_NSID NetNamespace_ReferenceType = 1 - NetNamespace_PID NetNamespace_ReferenceType = 2 - NetNamespace_FD NetNamespace_ReferenceType = 3 - NetNamespace_MICROSERVICE NetNamespace_ReferenceType = 4 + NetNamespace_NSID NetNamespace_ReferenceType = 1 // named namespace + NetNamespace_PID NetNamespace_ReferenceType = 2 // namespace of a given process + NetNamespace_FD NetNamespace_ReferenceType = 3 // namespace referenced by a file handle + NetNamespace_MICROSERVICE NetNamespace_ReferenceType = 4 // namespace of a docker container running given microservice ) -var NetNamespace_ReferenceType_name = map[int32]string{ - 0: "UNDEFINED", - 1: "NSID", - 2: "PID", - 3: "FD", - 4: "MICROSERVICE", -} +// Enum value maps for NetNamespace_ReferenceType. +var ( + NetNamespace_ReferenceType_name = map[int32]string{ + 0: "UNDEFINED", + 1: "NSID", + 2: "PID", + 3: "FD", + 4: "MICROSERVICE", + } + NetNamespace_ReferenceType_value = map[string]int32{ + "UNDEFINED": 0, + "NSID": 1, + "PID": 2, + "FD": 3, + "MICROSERVICE": 4, + } +) -var NetNamespace_ReferenceType_value = map[string]int32{ - "UNDEFINED": 0, - "NSID": 1, - "PID": 2, - "FD": 3, - "MICROSERVICE": 4, +func (x NetNamespace_ReferenceType) Enum() *NetNamespace_ReferenceType { + p := new(NetNamespace_ReferenceType) + *p = x + return p } func (x NetNamespace_ReferenceType) String() string { - return proto.EnumName(NetNamespace_ReferenceType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (NetNamespace_ReferenceType) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_linux_namespace_namespace_proto_enumTypes[0].Descriptor() } +func (NetNamespace_ReferenceType) Type() protoreflect.EnumType { + return &file_ligato_linux_namespace_namespace_proto_enumTypes[0] +} + +func (x NetNamespace_ReferenceType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use NetNamespace_ReferenceType.Descriptor instead. func (NetNamespace_ReferenceType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_460c1221140c0b2d, []int{0, 0} + return file_ligato_linux_namespace_namespace_proto_rawDescGZIP(), []int{0, 0} } type NetNamespace struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Type NetNamespace_ReferenceType `protobuf:"varint,1,opt,name=type,proto3,enum=ligato.linux.namespace.NetNamespace_ReferenceType" json:"type,omitempty"` // Reference defines reference specific // to the namespace type: @@ -62,75 +92,145 @@ type NetNamespace struct { // * PID number (PID) // * file path (FD) // * microservice label (MICROSERVICE) - Reference string `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Reference string `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"` } -func (m *NetNamespace) Reset() { *m = NetNamespace{} } -func (m *NetNamespace) String() string { return proto.CompactTextString(m) } -func (*NetNamespace) ProtoMessage() {} -func (*NetNamespace) Descriptor() ([]byte, []int) { - return fileDescriptor_460c1221140c0b2d, []int{0} +func (x *NetNamespace) Reset() { + *x = NetNamespace{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_linux_namespace_namespace_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *NetNamespace) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NetNamespace.Unmarshal(m, b) -} -func (m *NetNamespace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NetNamespace.Marshal(b, m, deterministic) +func (x *NetNamespace) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NetNamespace) XXX_Merge(src proto.Message) { - xxx_messageInfo_NetNamespace.Merge(m, src) -} -func (m *NetNamespace) XXX_Size() int { - return xxx_messageInfo_NetNamespace.Size(m) -} -func (m *NetNamespace) XXX_DiscardUnknown() { - xxx_messageInfo_NetNamespace.DiscardUnknown(m) + +func (*NetNamespace) ProtoMessage() {} + +func (x *NetNamespace) ProtoReflect() protoreflect.Message { + mi := &file_ligato_linux_namespace_namespace_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_NetNamespace proto.InternalMessageInfo +// Deprecated: Use NetNamespace.ProtoReflect.Descriptor instead. +func (*NetNamespace) Descriptor() ([]byte, []int) { + return file_ligato_linux_namespace_namespace_proto_rawDescGZIP(), []int{0} +} -func (m *NetNamespace) GetType() NetNamespace_ReferenceType { - if m != nil { - return m.Type +func (x *NetNamespace) GetType() NetNamespace_ReferenceType { + if x != nil { + return x.Type } return NetNamespace_UNDEFINED } -func (m *NetNamespace) GetReference() string { - if m != nil { - return m.Reference +func (x *NetNamespace) GetReference() string { + if x != nil { + return x.Reference } return "" } -func init() { - proto.RegisterEnum("ligato.linux.namespace.NetNamespace_ReferenceType", NetNamespace_ReferenceType_name, NetNamespace_ReferenceType_value) - proto.RegisterType((*NetNamespace)(nil), "ligato.linux.namespace.NetNamespace") -} - -func init() { - proto.RegisterFile("ligato/linux/namespace/namespace.proto", fileDescriptor_460c1221140c0b2d) -} - -var fileDescriptor_460c1221140c0b2d = []byte{ - // 239 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcb, 0xc9, 0x4c, 0x4f, - 0x2c, 0xc9, 0xd7, 0xcf, 0xc9, 0xcc, 0x2b, 0xad, 0xd0, 0xcf, 0x4b, 0xcc, 0x4d, 0x2d, 0x2e, 0x48, - 0x4c, 0x4e, 0x45, 0xb0, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xc4, 0x20, 0xea, 0xf4, 0xc0, - 0xea, 0xf4, 0xe0, 0xb2, 0x4a, 0x07, 0x19, 0xb9, 0x78, 0xfc, 0x52, 0x4b, 0xfc, 0x60, 0x02, 0x42, - 0x6e, 0x5c, 0x2c, 0x25, 0x95, 0x05, 0xa9, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x7c, 0x46, 0x46, 0x7a, - 0xd8, 0xf5, 0xe9, 0x21, 0xeb, 0xd1, 0x0b, 0x4a, 0x4d, 0x4b, 0x2d, 0x4a, 0xcd, 0x4b, 0x4e, 0x0d, - 0xa9, 0x2c, 0x48, 0x0d, 0x02, 0xeb, 0x17, 0x92, 0xe1, 0xe2, 0x2c, 0x82, 0x09, 0x4b, 0x30, 0x29, - 0x30, 0x6a, 0x70, 0x06, 0x21, 0x04, 0x94, 0xbc, 0xb9, 0x78, 0x51, 0x34, 0x09, 0xf1, 0x72, 0x71, - 0x86, 0xfa, 0xb9, 0xb8, 0xba, 0x79, 0xfa, 0xb9, 0xba, 0x08, 0x30, 0x08, 0x71, 0x70, 0xb1, 0xf8, - 0x05, 0x7b, 0xba, 0x08, 0x30, 0x0a, 0xb1, 0x73, 0x31, 0x07, 0x78, 0xba, 0x08, 0x30, 0x09, 0xb1, - 0x71, 0x31, 0xb9, 0xb9, 0x08, 0x30, 0x0b, 0x09, 0x70, 0xf1, 0xf8, 0x7a, 0x3a, 0x07, 0xf9, 0x07, - 0xbb, 0x06, 0x85, 0x79, 0x3a, 0xbb, 0x0a, 0xb0, 0x38, 0x79, 0x44, 0xb9, 0xa5, 0xe7, 0xc3, 0x1c, - 0x9a, 0x99, 0xaf, 0x5f, 0x56, 0x50, 0xa0, 0x9b, 0x98, 0x9e, 0x9a, 0x57, 0xa2, 0x5f, 0x66, 0xac, - 0x0f, 0xf6, 0xbe, 0x3e, 0xf6, 0x50, 0xb2, 0x06, 0xf3, 0xe3, 0xe1, 0xfc, 0x24, 0x36, 0xb0, 0x6a, - 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7c, 0xc8, 0x33, 0xd7, 0x56, 0x01, 0x00, 0x00, +var File_ligato_linux_namespace_namespace_proto protoreflect.FileDescriptor + +var file_ligato_linux_namespace_namespace_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2f, 0x6e, + 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x22, 0xc1, 0x01, 0x0a, 0x0c, 0x4e, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x12, 0x46, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x32, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x6e, + 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2e, 0x4e, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x4b, 0x0a, 0x0d, 0x52, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, 0x44, 0x45, + 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x53, 0x49, 0x44, 0x10, + 0x01, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x49, 0x44, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x46, 0x44, + 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x52, 0x56, 0x49, + 0x43, 0x45, 0x10, 0x04, 0x42, 0x48, 0x5a, 0x46, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, + 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, + 0x69, 0x6e, 0x75, 0x78, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x3b, 0x6c, + 0x69, 0x6e, 0x75, 0x78, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_linux_namespace_namespace_proto_rawDescOnce sync.Once + file_ligato_linux_namespace_namespace_proto_rawDescData = file_ligato_linux_namespace_namespace_proto_rawDesc +) + +func file_ligato_linux_namespace_namespace_proto_rawDescGZIP() []byte { + file_ligato_linux_namespace_namespace_proto_rawDescOnce.Do(func() { + file_ligato_linux_namespace_namespace_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_linux_namespace_namespace_proto_rawDescData) + }) + return file_ligato_linux_namespace_namespace_proto_rawDescData +} + +var file_ligato_linux_namespace_namespace_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_ligato_linux_namespace_namespace_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_ligato_linux_namespace_namespace_proto_goTypes = []interface{}{ + (NetNamespace_ReferenceType)(0), // 0: ligato.linux.namespace.NetNamespace.ReferenceType + (*NetNamespace)(nil), // 1: ligato.linux.namespace.NetNamespace +} +var file_ligato_linux_namespace_namespace_proto_depIdxs = []int32{ + 0, // 0: ligato.linux.namespace.NetNamespace.type:type_name -> ligato.linux.namespace.NetNamespace.ReferenceType + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_ligato_linux_namespace_namespace_proto_init() } +func file_ligato_linux_namespace_namespace_proto_init() { + if File_ligato_linux_namespace_namespace_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_linux_namespace_namespace_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NetNamespace); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_linux_namespace_namespace_proto_rawDesc, + NumEnums: 1, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_linux_namespace_namespace_proto_goTypes, + DependencyIndexes: file_ligato_linux_namespace_namespace_proto_depIdxs, + EnumInfos: file_ligato_linux_namespace_namespace_proto_enumTypes, + MessageInfos: file_ligato_linux_namespace_namespace_proto_msgTypes, + }.Build() + File_ligato_linux_namespace_namespace_proto = out.File + file_ligato_linux_namespace_namespace_proto_rawDesc = nil + file_ligato_linux_namespace_namespace_proto_goTypes = nil + file_ligato_linux_namespace_namespace_proto_depIdxs = nil } diff --git a/proto/ligato/linux/punt/punt.pb.go b/proto/ligato/linux/punt/punt.pb.go index eeef2eb280..372548fb9c 100644 --- a/proto/ligato/linux/punt/punt.pb.go +++ b/proto/ligato/linux/punt/punt.pb.go @@ -1,24 +1,29 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/linux/punt/punt.proto package linux_punt import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type PortBased_L4Protocol int32 @@ -28,24 +33,45 @@ const ( PortBased_UDP PortBased_L4Protocol = 17 ) -var PortBased_L4Protocol_name = map[int32]string{ - 0: "UNDEFINED_L4", - 6: "TCP", - 17: "UDP", -} +// Enum value maps for PortBased_L4Protocol. +var ( + PortBased_L4Protocol_name = map[int32]string{ + 0: "UNDEFINED_L4", + 6: "TCP", + 17: "UDP", + } + PortBased_L4Protocol_value = map[string]int32{ + "UNDEFINED_L4": 0, + "TCP": 6, + "UDP": 17, + } +) -var PortBased_L4Protocol_value = map[string]int32{ - "UNDEFINED_L4": 0, - "TCP": 6, - "UDP": 17, +func (x PortBased_L4Protocol) Enum() *PortBased_L4Protocol { + p := new(PortBased_L4Protocol) + *p = x + return p } func (x PortBased_L4Protocol) String() string { - return proto.EnumName(PortBased_L4Protocol_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PortBased_L4Protocol) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_linux_punt_punt_proto_enumTypes[0].Descriptor() } +func (PortBased_L4Protocol) Type() protoreflect.EnumType { + return &file_ligato_linux_punt_punt_proto_enumTypes[0] +} + +func (x PortBased_L4Protocol) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PortBased_L4Protocol.Descriptor instead. func (PortBased_L4Protocol) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_4b47fac4fb35071d, []int{1, 0} + return file_ligato_linux_punt_punt_proto_rawDescGZIP(), []int{1, 0} } type PortBased_L3Protocol int32 @@ -57,84 +83,97 @@ const ( PortBased_ALL PortBased_L3Protocol = 3 ) -var PortBased_L3Protocol_name = map[int32]string{ - 0: "UNDEFINED_L3", - 1: "IPV4", - 2: "IPV6", - 3: "ALL", -} +// Enum value maps for PortBased_L3Protocol. +var ( + PortBased_L3Protocol_name = map[int32]string{ + 0: "UNDEFINED_L3", + 1: "IPV4", + 2: "IPV6", + 3: "ALL", + } + PortBased_L3Protocol_value = map[string]int32{ + "UNDEFINED_L3": 0, + "IPV4": 1, + "IPV6": 2, + "ALL": 3, + } +) -var PortBased_L3Protocol_value = map[string]int32{ - "UNDEFINED_L3": 0, - "IPV4": 1, - "IPV6": 2, - "ALL": 3, +func (x PortBased_L3Protocol) Enum() *PortBased_L3Protocol { + p := new(PortBased_L3Protocol) + *p = x + return p } func (x PortBased_L3Protocol) String() string { - return proto.EnumName(PortBased_L3Protocol_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (PortBased_L3Protocol) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_linux_punt_punt_proto_enumTypes[1].Descriptor() +} + +func (PortBased_L3Protocol) Type() protoreflect.EnumType { + return &file_ligato_linux_punt_punt_proto_enumTypes[1] +} + +func (x PortBased_L3Protocol) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PortBased_L3Protocol.Descriptor instead. func (PortBased_L3Protocol) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_4b47fac4fb35071d, []int{1, 1} + return file_ligato_linux_punt_punt_proto_rawDescGZIP(), []int{1, 1} } // Proxy allows to listen on network socket or unix domain socket, and resend to another network/unix domain socket type Proxy struct { - // Types that are valid to be assigned to Rx: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Rx: // *Proxy_RxPort // *Proxy_RxSocket Rx isProxy_Rx `protobuf_oneof:"rx"` - // Types that are valid to be assigned to Tx: + // Types that are assignable to Tx: // *Proxy_TxPort // *Proxy_TxSocket - Tx isProxy_Tx `protobuf_oneof:"tx"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Tx isProxy_Tx `protobuf_oneof:"tx"` } -func (m *Proxy) Reset() { *m = Proxy{} } -func (m *Proxy) String() string { return proto.CompactTextString(m) } -func (*Proxy) ProtoMessage() {} -func (*Proxy) Descriptor() ([]byte, []int) { - return fileDescriptor_4b47fac4fb35071d, []int{0} +func (x *Proxy) Reset() { + *x = Proxy{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_linux_punt_punt_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Proxy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Proxy.Unmarshal(m, b) -} -func (m *Proxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Proxy.Marshal(b, m, deterministic) -} -func (m *Proxy) XXX_Merge(src proto.Message) { - xxx_messageInfo_Proxy.Merge(m, src) -} -func (m *Proxy) XXX_Size() int { - return xxx_messageInfo_Proxy.Size(m) +func (x *Proxy) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Proxy) XXX_DiscardUnknown() { - xxx_messageInfo_Proxy.DiscardUnknown(m) -} - -var xxx_messageInfo_Proxy proto.InternalMessageInfo -type isProxy_Rx interface { - isProxy_Rx() -} +func (*Proxy) ProtoMessage() {} -type Proxy_RxPort struct { - RxPort *PortBased `protobuf:"bytes,1,opt,name=rx_port,json=rxPort,proto3,oneof"` +func (x *Proxy) ProtoReflect() protoreflect.Message { + mi := &file_ligato_linux_punt_punt_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type Proxy_RxSocket struct { - RxSocket *SocketBased `protobuf:"bytes,2,opt,name=rx_socket,json=rxSocket,proto3,oneof"` +// Deprecated: Use Proxy.ProtoReflect.Descriptor instead. +func (*Proxy) Descriptor() ([]byte, []int) { + return file_ligato_linux_punt_punt_proto_rawDescGZIP(), []int{0} } -func (*Proxy_RxPort) isProxy_Rx() {} - -func (*Proxy_RxSocket) isProxy_Rx() {} - func (m *Proxy) GetRx() isProxy_Rx { if m != nil { return m.Rx @@ -142,36 +181,20 @@ func (m *Proxy) GetRx() isProxy_Rx { return nil } -func (m *Proxy) GetRxPort() *PortBased { - if x, ok := m.GetRx().(*Proxy_RxPort); ok { +func (x *Proxy) GetRxPort() *PortBased { + if x, ok := x.GetRx().(*Proxy_RxPort); ok { return x.RxPort } return nil } -func (m *Proxy) GetRxSocket() *SocketBased { - if x, ok := m.GetRx().(*Proxy_RxSocket); ok { +func (x *Proxy) GetRxSocket() *SocketBased { + if x, ok := x.GetRx().(*Proxy_RxSocket); ok { return x.RxSocket } return nil } -type isProxy_Tx interface { - isProxy_Tx() -} - -type Proxy_TxPort struct { - TxPort *PortBased `protobuf:"bytes,3,opt,name=tx_port,json=txPort,proto3,oneof"` -} - -type Proxy_TxSocket struct { - TxSocket *SocketBased `protobuf:"bytes,4,opt,name=tx_socket,json=txSocket,proto3,oneof"` -} - -func (*Proxy_TxPort) isProxy_Tx() {} - -func (*Proxy_TxSocket) isProxy_Tx() {} - func (m *Proxy) GetTx() isProxy_Tx { if m != nil { return m.Tx @@ -179,159 +202,315 @@ func (m *Proxy) GetTx() isProxy_Tx { return nil } -func (m *Proxy) GetTxPort() *PortBased { - if x, ok := m.GetTx().(*Proxy_TxPort); ok { +func (x *Proxy) GetTxPort() *PortBased { + if x, ok := x.GetTx().(*Proxy_TxPort); ok { return x.TxPort } return nil } -func (m *Proxy) GetTxSocket() *SocketBased { - if x, ok := m.GetTx().(*Proxy_TxSocket); ok { +func (x *Proxy) GetTxSocket() *SocketBased { + if x, ok := x.GetTx().(*Proxy_TxSocket); ok { return x.TxSocket } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Proxy) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Proxy_RxPort)(nil), - (*Proxy_RxSocket)(nil), - (*Proxy_TxPort)(nil), - (*Proxy_TxSocket)(nil), - } +type isProxy_Rx interface { + isProxy_Rx() } -// Define network socket type -type PortBased struct { - L4Protocol PortBased_L4Protocol `protobuf:"varint,1,opt,name=l4_protocol,json=l4Protocol,proto3,enum=ligato.linux.punt.PortBased_L4Protocol" json:"l4_protocol,omitempty"` - L3Protocol PortBased_L3Protocol `protobuf:"varint,3,opt,name=l3_protocol,json=l3Protocol,proto3,enum=ligato.linux.punt.PortBased_L3Protocol" json:"l3_protocol,omitempty"` - Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Proxy_RxPort struct { + RxPort *PortBased `protobuf:"bytes,1,opt,name=rx_port,json=rxPort,proto3,oneof"` } -func (m *PortBased) Reset() { *m = PortBased{} } -func (m *PortBased) String() string { return proto.CompactTextString(m) } -func (*PortBased) ProtoMessage() {} -func (*PortBased) Descriptor() ([]byte, []int) { - return fileDescriptor_4b47fac4fb35071d, []int{1} +type Proxy_RxSocket struct { + RxSocket *SocketBased `protobuf:"bytes,2,opt,name=rx_socket,json=rxSocket,proto3,oneof"` } -func (m *PortBased) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PortBased.Unmarshal(m, b) +func (*Proxy_RxPort) isProxy_Rx() {} + +func (*Proxy_RxSocket) isProxy_Rx() {} + +type isProxy_Tx interface { + isProxy_Tx() } -func (m *PortBased) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PortBased.Marshal(b, m, deterministic) + +type Proxy_TxPort struct { + TxPort *PortBased `protobuf:"bytes,3,opt,name=tx_port,json=txPort,proto3,oneof"` } -func (m *PortBased) XXX_Merge(src proto.Message) { - xxx_messageInfo_PortBased.Merge(m, src) + +type Proxy_TxSocket struct { + TxSocket *SocketBased `protobuf:"bytes,4,opt,name=tx_socket,json=txSocket,proto3,oneof"` } -func (m *PortBased) XXX_Size() int { - return xxx_messageInfo_PortBased.Size(m) + +func (*Proxy_TxPort) isProxy_Tx() {} + +func (*Proxy_TxSocket) isProxy_Tx() {} + +// Define network socket type +type PortBased struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + L4Protocol PortBased_L4Protocol `protobuf:"varint,1,opt,name=l4_protocol,json=l4Protocol,proto3,enum=ligato.linux.punt.PortBased_L4Protocol" json:"l4_protocol,omitempty"` + L3Protocol PortBased_L3Protocol `protobuf:"varint,3,opt,name=l3_protocol,json=l3Protocol,proto3,enum=ligato.linux.punt.PortBased_L3Protocol" json:"l3_protocol,omitempty"` + Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` } -func (m *PortBased) XXX_DiscardUnknown() { - xxx_messageInfo_PortBased.DiscardUnknown(m) + +func (x *PortBased) Reset() { + *x = PortBased{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_linux_punt_punt_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -var xxx_messageInfo_PortBased proto.InternalMessageInfo +func (x *PortBased) String() string { + return protoimpl.X.MessageStringOf(x) +} -func (m *PortBased) GetL4Protocol() PortBased_L4Protocol { - if m != nil { - return m.L4Protocol +func (*PortBased) ProtoMessage() {} + +func (x *PortBased) ProtoReflect() protoreflect.Message { + mi := &file_ligato_linux_punt_punt_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PortBased.ProtoReflect.Descriptor instead. +func (*PortBased) Descriptor() ([]byte, []int) { + return file_ligato_linux_punt_punt_proto_rawDescGZIP(), []int{1} +} + +func (x *PortBased) GetL4Protocol() PortBased_L4Protocol { + if x != nil { + return x.L4Protocol } return PortBased_UNDEFINED_L4 } -func (m *PortBased) GetL3Protocol() PortBased_L3Protocol { - if m != nil { - return m.L3Protocol +func (x *PortBased) GetL3Protocol() PortBased_L3Protocol { + if x != nil { + return x.L3Protocol } return PortBased_UNDEFINED_L3 } -func (m *PortBased) GetPort() uint32 { - if m != nil { - return m.Port +func (x *PortBased) GetPort() uint32 { + if x != nil { + return x.Port } return 0 } // Define unix domain socket type for IPC type SocketBased struct { - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SocketBased) Reset() { *m = SocketBased{} } -func (m *SocketBased) String() string { return proto.CompactTextString(m) } -func (*SocketBased) ProtoMessage() {} -func (*SocketBased) Descriptor() ([]byte, []int) { - return fileDescriptor_4b47fac4fb35071d, []int{2} + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` } -func (m *SocketBased) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SocketBased.Unmarshal(m, b) -} -func (m *SocketBased) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SocketBased.Marshal(b, m, deterministic) -} -func (m *SocketBased) XXX_Merge(src proto.Message) { - xxx_messageInfo_SocketBased.Merge(m, src) +func (x *SocketBased) Reset() { + *x = SocketBased{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_linux_punt_punt_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SocketBased) XXX_Size() int { - return xxx_messageInfo_SocketBased.Size(m) + +func (x *SocketBased) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SocketBased) XXX_DiscardUnknown() { - xxx_messageInfo_SocketBased.DiscardUnknown(m) + +func (*SocketBased) ProtoMessage() {} + +func (x *SocketBased) ProtoReflect() protoreflect.Message { + mi := &file_ligato_linux_punt_punt_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SocketBased proto.InternalMessageInfo +// Deprecated: Use SocketBased.ProtoReflect.Descriptor instead. +func (*SocketBased) Descriptor() ([]byte, []int) { + return file_ligato_linux_punt_punt_proto_rawDescGZIP(), []int{2} +} -func (m *SocketBased) GetPath() string { - if m != nil { - return m.Path +func (x *SocketBased) GetPath() string { + if x != nil { + return x.Path } return "" } -func init() { - proto.RegisterEnum("ligato.linux.punt.PortBased_L4Protocol", PortBased_L4Protocol_name, PortBased_L4Protocol_value) - proto.RegisterEnum("ligato.linux.punt.PortBased_L3Protocol", PortBased_L3Protocol_name, PortBased_L3Protocol_value) - proto.RegisterType((*Proxy)(nil), "ligato.linux.punt.Proxy") - proto.RegisterType((*PortBased)(nil), "ligato.linux.punt.PortBased") - proto.RegisterType((*SocketBased)(nil), "ligato.linux.punt.SocketBased") -} - -func init() { proto.RegisterFile("ligato/linux/punt/punt.proto", fileDescriptor_4b47fac4fb35071d) } - -var fileDescriptor_4b47fac4fb35071d = []byte{ - // 365 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x4f, 0x4f, 0xe2, 0x40, - 0x18, 0xc6, 0xe9, 0x9f, 0x2d, 0xf0, 0xb2, 0xbb, 0x19, 0xe6, 0xc4, 0x81, 0x6c, 0x76, 0x7b, 0x59, - 0x2f, 0xb6, 0x86, 0x36, 0x7a, 0x40, 0x4d, 0x44, 0x30, 0x90, 0x34, 0xa4, 0xa9, 0xe2, 0xc1, 0x4b, - 0x53, 0x91, 0x20, 0xb1, 0x61, 0x9a, 0x61, 0x20, 0xe3, 0xd9, 0x6f, 0xe2, 0x27, 0x35, 0xf3, 0x52, - 0x0a, 0x11, 0x63, 0xb8, 0x4c, 0x1e, 0x78, 0xdf, 0xe7, 0xf9, 0xcd, 0x3c, 0x29, 0x34, 0xd3, 0xd9, - 0x34, 0x11, 0xcc, 0x4d, 0x67, 0xf3, 0xa5, 0x74, 0xb3, 0xe5, 0x5c, 0xe0, 0xe1, 0x64, 0x9c, 0x09, - 0x46, 0xeb, 0xeb, 0xa9, 0x83, 0x53, 0x47, 0x0d, 0xec, 0x37, 0x1d, 0x7e, 0x84, 0x9c, 0xc9, 0x57, - 0x7a, 0x06, 0x65, 0x2e, 0xe3, 0x8c, 0x71, 0xd1, 0xd0, 0xfe, 0x6a, 0x47, 0xb5, 0x56, 0xd3, 0xd9, - 0x5b, 0x77, 0x42, 0xc6, 0x45, 0x27, 0x59, 0x4c, 0x9e, 0xfa, 0xa5, 0xc8, 0xe2, 0x52, 0xfd, 0xa4, - 0x17, 0x50, 0xe5, 0x32, 0x5e, 0xb0, 0xf1, 0xcb, 0x44, 0x34, 0x74, 0xb4, 0xfe, 0xf9, 0xc2, 0x7a, - 0x8b, 0x0b, 0x1b, 0x73, 0x85, 0xcb, 0xf5, 0x1f, 0x8a, 0x2b, 0x72, 0xae, 0x71, 0x00, 0x57, 0x8b, - 0x2c, 0x51, 0x70, 0x45, 0xc1, 0x35, 0x0f, 0xe2, 0x6a, 0x51, 0x45, 0xe4, 0xdc, 0x8e, 0x09, 0x3a, - 0x97, 0xea, 0x14, 0xd2, 0x7e, 0xd7, 0xa1, 0x5a, 0x20, 0x68, 0x1f, 0x6a, 0xa9, 0x1f, 0x63, 0x65, - 0x63, 0x96, 0x62, 0x1b, 0xbf, 0x5b, 0xff, 0xbf, 0xbb, 0x95, 0x13, 0xf8, 0x61, 0xbe, 0x1e, 0x41, - 0x5a, 0x68, 0x4c, 0xf2, 0xb6, 0x49, 0xc6, 0x21, 0x49, 0xde, 0x4e, 0x52, 0xa1, 0x29, 0x05, 0x13, - 0x2b, 0x52, 0xef, 0xfc, 0x15, 0xa1, 0xb6, 0x4f, 0x00, 0xb6, 0x5c, 0x4a, 0xe0, 0xe7, 0x68, 0xd8, - 0xed, 0xdd, 0x0c, 0x86, 0xbd, 0x6e, 0x1c, 0xf8, 0xa4, 0x44, 0xcb, 0x60, 0xdc, 0x5d, 0x87, 0xc4, - 0x52, 0x62, 0xd4, 0x0d, 0x49, 0xdd, 0x6e, 0x03, 0x6c, 0xf3, 0x3f, 0x39, 0x3c, 0x52, 0xa2, 0x15, - 0x30, 0x07, 0xe1, 0xbd, 0x4f, 0xb4, 0x5c, 0x9d, 0x12, 0x5d, 0x99, 0xaf, 0x82, 0x80, 0x18, 0xf6, - 0x3f, 0xa8, 0xed, 0x74, 0x89, 0x37, 0x4a, 0xc4, 0x33, 0xd6, 0x53, 0x8d, 0x50, 0x77, 0x2e, 0x1f, - 0xce, 0xa7, 0x6c, 0xf3, 0xbc, 0x19, 0x73, 0x57, 0x59, 0x76, 0x9c, 0x4c, 0x27, 0x73, 0xe1, 0xae, - 0x3c, 0x17, 0x6b, 0x70, 0xf7, 0x3e, 0xd0, 0x36, 0xca, 0x58, 0xc9, 0x47, 0x0b, 0x77, 0xbc, 0x8f, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x90, 0x46, 0x37, 0xf5, 0xc7, 0x02, 0x00, 0x00, +var File_ligato_linux_punt_punt_proto protoreflect.FileDescriptor + +var file_ligato_linux_punt_punt_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2f, 0x70, + 0x75, 0x6e, 0x74, 0x2f, 0x70, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x70, 0x75, 0x6e, + 0x74, 0x22, 0x83, 0x02, 0x0a, 0x05, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x37, 0x0a, 0x07, 0x72, + 0x78, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x70, 0x75, 0x6e, 0x74, + 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x42, 0x61, 0x73, 0x65, 0x64, 0x48, 0x00, 0x52, 0x06, 0x72, 0x78, + 0x50, 0x6f, 0x72, 0x74, 0x12, 0x3d, 0x0a, 0x09, 0x72, 0x78, 0x5f, 0x73, 0x6f, 0x63, 0x6b, 0x65, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x70, 0x75, 0x6e, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, + 0x65, 0x74, 0x42, 0x61, 0x73, 0x65, 0x64, 0x48, 0x00, 0x52, 0x08, 0x72, 0x78, 0x53, 0x6f, 0x63, + 0x6b, 0x65, 0x74, 0x12, 0x37, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, + 0x6e, 0x75, 0x78, 0x2e, 0x70, 0x75, 0x6e, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x42, 0x61, 0x73, + 0x65, 0x64, 0x48, 0x01, 0x52, 0x06, 0x74, 0x78, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x3d, 0x0a, 0x09, + 0x74, 0x78, 0x5f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1e, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x70, + 0x75, 0x6e, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x42, 0x61, 0x73, 0x65, 0x64, 0x48, + 0x01, 0x52, 0x08, 0x74, 0x78, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x42, 0x04, 0x0a, 0x02, 0x72, + 0x78, 0x42, 0x04, 0x0a, 0x02, 0x74, 0x78, 0x22, 0xa2, 0x02, 0x0a, 0x09, 0x50, 0x6f, 0x72, 0x74, + 0x42, 0x61, 0x73, 0x65, 0x64, 0x12, 0x48, 0x0a, 0x0b, 0x6c, 0x34, 0x5f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x6c, 0x69, 0x67, + 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x70, 0x75, 0x6e, 0x74, 0x2e, 0x50, + 0x6f, 0x72, 0x74, 0x42, 0x61, 0x73, 0x65, 0x64, 0x2e, 0x4c, 0x34, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x52, 0x0a, 0x6c, 0x34, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, + 0x48, 0x0a, 0x0b, 0x6c, 0x33, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, + 0x6e, 0x75, 0x78, 0x2e, 0x70, 0x75, 0x6e, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x42, 0x61, 0x73, + 0x65, 0x64, 0x2e, 0x4c, 0x33, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x0a, 0x6c, + 0x33, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, + 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x30, 0x0a, + 0x0a, 0x4c, 0x34, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x10, 0x0a, 0x0c, 0x55, + 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x5f, 0x4c, 0x34, 0x10, 0x00, 0x12, 0x07, 0x0a, + 0x03, 0x54, 0x43, 0x50, 0x10, 0x06, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x44, 0x50, 0x10, 0x11, 0x22, + 0x3b, 0x0a, 0x0a, 0x4c, 0x33, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x10, 0x0a, + 0x0c, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x5f, 0x4c, 0x33, 0x10, 0x00, 0x12, + 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x34, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, + 0x36, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4c, 0x4c, 0x10, 0x03, 0x22, 0x21, 0x0a, 0x0b, + 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x42, 0x61, 0x73, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, + 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x42, + 0x3e, 0x5a, 0x3c, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, + 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2f, + 0x70, 0x75, 0x6e, 0x74, 0x3b, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x5f, 0x70, 0x75, 0x6e, 0x74, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_linux_punt_punt_proto_rawDescOnce sync.Once + file_ligato_linux_punt_punt_proto_rawDescData = file_ligato_linux_punt_punt_proto_rawDesc +) + +func file_ligato_linux_punt_punt_proto_rawDescGZIP() []byte { + file_ligato_linux_punt_punt_proto_rawDescOnce.Do(func() { + file_ligato_linux_punt_punt_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_linux_punt_punt_proto_rawDescData) + }) + return file_ligato_linux_punt_punt_proto_rawDescData +} + +var file_ligato_linux_punt_punt_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_ligato_linux_punt_punt_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_ligato_linux_punt_punt_proto_goTypes = []interface{}{ + (PortBased_L4Protocol)(0), // 0: ligato.linux.punt.PortBased.L4Protocol + (PortBased_L3Protocol)(0), // 1: ligato.linux.punt.PortBased.L3Protocol + (*Proxy)(nil), // 2: ligato.linux.punt.Proxy + (*PortBased)(nil), // 3: ligato.linux.punt.PortBased + (*SocketBased)(nil), // 4: ligato.linux.punt.SocketBased +} +var file_ligato_linux_punt_punt_proto_depIdxs = []int32{ + 3, // 0: ligato.linux.punt.Proxy.rx_port:type_name -> ligato.linux.punt.PortBased + 4, // 1: ligato.linux.punt.Proxy.rx_socket:type_name -> ligato.linux.punt.SocketBased + 3, // 2: ligato.linux.punt.Proxy.tx_port:type_name -> ligato.linux.punt.PortBased + 4, // 3: ligato.linux.punt.Proxy.tx_socket:type_name -> ligato.linux.punt.SocketBased + 0, // 4: ligato.linux.punt.PortBased.l4_protocol:type_name -> ligato.linux.punt.PortBased.L4Protocol + 1, // 5: ligato.linux.punt.PortBased.l3_protocol:type_name -> ligato.linux.punt.PortBased.L3Protocol + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_ligato_linux_punt_punt_proto_init() } +func file_ligato_linux_punt_punt_proto_init() { + if File_ligato_linux_punt_punt_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_linux_punt_punt_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Proxy); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_linux_punt_punt_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PortBased); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_linux_punt_punt_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SocketBased); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_ligato_linux_punt_punt_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*Proxy_RxPort)(nil), + (*Proxy_RxSocket)(nil), + (*Proxy_TxPort)(nil), + (*Proxy_TxSocket)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_linux_punt_punt_proto_rawDesc, + NumEnums: 2, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_linux_punt_punt_proto_goTypes, + DependencyIndexes: file_ligato_linux_punt_punt_proto_depIdxs, + EnumInfos: file_ligato_linux_punt_punt_proto_enumTypes, + MessageInfos: file_ligato_linux_punt_punt_proto_msgTypes, + }.Build() + File_ligato_linux_punt_punt_proto = out.File + file_ligato_linux_punt_punt_proto_rawDesc = nil + file_ligato_linux_punt_punt_proto_goTypes = nil + file_ligato_linux_punt_punt_proto_depIdxs = nil } diff --git a/proto/ligato/netalloc/netalloc.pb.go b/proto/ligato/netalloc/netalloc.pb.go index 13cddf1398..8bb83e67b0 100644 --- a/proto/ligato/netalloc/netalloc.pb.go +++ b/proto/ligato/netalloc/netalloc.pb.go @@ -1,4 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/netalloc/netalloc.proto // Netalloc allows to disassociate topology from addressing in the network @@ -23,21 +26,23 @@ package netalloc import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 // IPAddressForm can be used in descriptors whose models reference allocated IP // addresses, to ask for a specific form in which the address should applied. @@ -58,28 +63,49 @@ const ( IPAddressForm_SINGLE_ADDR_NET IPAddressForm = 4 ) -var IPAddressForm_name = map[int32]string{ - 0: "UNDEFINED_FORM", - 1: "ADDR_ONLY", - 2: "ADDR_WITH_MASK", - 3: "ADDR_NET", - 4: "SINGLE_ADDR_NET", -} +// Enum value maps for IPAddressForm. +var ( + IPAddressForm_name = map[int32]string{ + 0: "UNDEFINED_FORM", + 1: "ADDR_ONLY", + 2: "ADDR_WITH_MASK", + 3: "ADDR_NET", + 4: "SINGLE_ADDR_NET", + } + IPAddressForm_value = map[string]int32{ + "UNDEFINED_FORM": 0, + "ADDR_ONLY": 1, + "ADDR_WITH_MASK": 2, + "ADDR_NET": 3, + "SINGLE_ADDR_NET": 4, + } +) -var IPAddressForm_value = map[string]int32{ - "UNDEFINED_FORM": 0, - "ADDR_ONLY": 1, - "ADDR_WITH_MASK": 2, - "ADDR_NET": 3, - "SINGLE_ADDR_NET": 4, +func (x IPAddressForm) Enum() *IPAddressForm { + p := new(IPAddressForm) + *p = x + return p } func (x IPAddressForm) String() string { - return proto.EnumName(IPAddressForm_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (IPAddressForm) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_netalloc_netalloc_proto_enumTypes[0].Descriptor() +} + +func (IPAddressForm) Type() protoreflect.EnumType { + return &file_ligato_netalloc_netalloc_proto_enumTypes[0] } +func (x IPAddressForm) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use IPAddressForm.Descriptor instead. func (IPAddressForm) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_034a8c5cac8e0a20, []int{0} + return file_ligato_netalloc_netalloc_proto_rawDescGZIP(), []int{0} } // IPAddressSource can be used to remember the source of an IP address. @@ -97,26 +123,47 @@ const ( IPAddressSource_ALLOC_REF IPAddressSource = 3 ) -var IPAddressSource_name = map[int32]string{ - 0: "UNDEFINED_SOURCE", - 1: "STATIC", - 2: "FROM_DHCP", - 3: "ALLOC_REF", -} +// Enum value maps for IPAddressSource. +var ( + IPAddressSource_name = map[int32]string{ + 0: "UNDEFINED_SOURCE", + 1: "STATIC", + 2: "FROM_DHCP", + 3: "ALLOC_REF", + } + IPAddressSource_value = map[string]int32{ + "UNDEFINED_SOURCE": 0, + "STATIC": 1, + "FROM_DHCP": 2, + "ALLOC_REF": 3, + } +) -var IPAddressSource_value = map[string]int32{ - "UNDEFINED_SOURCE": 0, - "STATIC": 1, - "FROM_DHCP": 2, - "ALLOC_REF": 3, +func (x IPAddressSource) Enum() *IPAddressSource { + p := new(IPAddressSource) + *p = x + return p } func (x IPAddressSource) String() string { - return proto.EnumName(IPAddressSource_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (IPAddressSource) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_netalloc_netalloc_proto_enumTypes[1].Descriptor() } +func (IPAddressSource) Type() protoreflect.EnumType { + return &file_ligato_netalloc_netalloc_proto_enumTypes[1] +} + +func (x IPAddressSource) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use IPAddressSource.Descriptor instead. func (IPAddressSource) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_034a8c5cac8e0a20, []int{1} + return file_ligato_netalloc_netalloc_proto_rawDescGZIP(), []int{1} } // IPAllocation represents a single allocated IP address. @@ -135,6 +182,10 @@ func (IPAddressSource) EnumDescriptor() ([]byte, []int) { // can be omitted: // "alloc:/GW" type IPAllocation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // NetworkName is some label assigned to the network where the IP address // was assigned to the given interface. // In theory, interface can have multiple IP adresses or there can be multiple @@ -155,61 +206,65 @@ type IPAllocation struct { // a) the mask of the
is used provided that GW IP falls into the // same network IP range, or // b) the all-ones mask is used otherwise - Gw string `protobuf:"bytes,5,opt,name=gw,proto3" json:"gw,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Gw string `protobuf:"bytes,5,opt,name=gw,proto3" json:"gw,omitempty"` } -func (m *IPAllocation) Reset() { *m = IPAllocation{} } -func (m *IPAllocation) String() string { return proto.CompactTextString(m) } -func (*IPAllocation) ProtoMessage() {} -func (*IPAllocation) Descriptor() ([]byte, []int) { - return fileDescriptor_034a8c5cac8e0a20, []int{0} +func (x *IPAllocation) Reset() { + *x = IPAllocation{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_netalloc_netalloc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *IPAllocation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IPAllocation.Unmarshal(m, b) -} -func (m *IPAllocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IPAllocation.Marshal(b, m, deterministic) -} -func (m *IPAllocation) XXX_Merge(src proto.Message) { - xxx_messageInfo_IPAllocation.Merge(m, src) +func (x *IPAllocation) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *IPAllocation) XXX_Size() int { - return xxx_messageInfo_IPAllocation.Size(m) -} -func (m *IPAllocation) XXX_DiscardUnknown() { - xxx_messageInfo_IPAllocation.DiscardUnknown(m) + +func (*IPAllocation) ProtoMessage() {} + +func (x *IPAllocation) ProtoReflect() protoreflect.Message { + mi := &file_ligato_netalloc_netalloc_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_IPAllocation proto.InternalMessageInfo +// Deprecated: Use IPAllocation.ProtoReflect.Descriptor instead. +func (*IPAllocation) Descriptor() ([]byte, []int) { + return file_ligato_netalloc_netalloc_proto_rawDescGZIP(), []int{0} +} -func (m *IPAllocation) GetNetworkName() string { - if m != nil { - return m.NetworkName +func (x *IPAllocation) GetNetworkName() string { + if x != nil { + return x.NetworkName } return "" } -func (m *IPAllocation) GetInterfaceName() string { - if m != nil { - return m.InterfaceName +func (x *IPAllocation) GetInterfaceName() string { + if x != nil { + return x.InterfaceName } return "" } -func (m *IPAllocation) GetAddress() string { - if m != nil { - return m.Address +func (x *IPAllocation) GetAddress() string { + if x != nil { + return x.Address } return "" } -func (m *IPAllocation) GetGw() string { - if m != nil { - return m.Gw +func (x *IPAllocation) GetGw() string { + if x != nil { + return x.Gw } return "" } @@ -217,76 +272,166 @@ func (m *IPAllocation) GetGw() string { // ConfigData wraps all configuration items exported by netalloc. // TBD: MACs, VXLAN VNIs, memif IDs, etc. type ConfigData struct { - IpAddresses []*IPAllocation `protobuf:"bytes,10,rep,name=ip_addresses,json=ipAddresses,proto3" json:"ip_addresses,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IpAddresses []*IPAllocation `protobuf:"bytes,10,rep,name=ip_addresses,json=ipAddresses,proto3" json:"ip_addresses,omitempty"` } -func (m *ConfigData) Reset() { *m = ConfigData{} } -func (m *ConfigData) String() string { return proto.CompactTextString(m) } -func (*ConfigData) ProtoMessage() {} -func (*ConfigData) Descriptor() ([]byte, []int) { - return fileDescriptor_034a8c5cac8e0a20, []int{1} +func (x *ConfigData) Reset() { + *x = ConfigData{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_netalloc_netalloc_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ConfigData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ConfigData.Unmarshal(m, b) +func (x *ConfigData) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ConfigData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ConfigData.Marshal(b, m, deterministic) + +func (*ConfigData) ProtoMessage() {} + +func (x *ConfigData) ProtoReflect() protoreflect.Message { + mi := &file_ligato_netalloc_netalloc_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ConfigData) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigData.Merge(m, src) + +// Deprecated: Use ConfigData.ProtoReflect.Descriptor instead. +func (*ConfigData) Descriptor() ([]byte, []int) { + return file_ligato_netalloc_netalloc_proto_rawDescGZIP(), []int{1} } -func (m *ConfigData) XXX_Size() int { - return xxx_messageInfo_ConfigData.Size(m) + +func (x *ConfigData) GetIpAddresses() []*IPAllocation { + if x != nil { + return x.IpAddresses + } + return nil } -func (m *ConfigData) XXX_DiscardUnknown() { - xxx_messageInfo_ConfigData.DiscardUnknown(m) + +var File_ligato_netalloc_netalloc_proto protoreflect.FileDescriptor + +var file_ligato_netalloc_netalloc_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6e, 0x65, 0x74, 0x61, 0x6c, 0x6c, 0x6f, + 0x63, 0x2f, 0x6e, 0x65, 0x74, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x0f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x61, 0x6c, 0x6c, 0x6f, + 0x63, 0x22, 0x82, 0x01, 0x0a, 0x0c, 0x49, 0x50, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x67, 0x77, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x67, 0x77, 0x22, 0x4e, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x44, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x0c, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6c, 0x69, 0x67, + 0x61, 0x74, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x2e, 0x49, 0x50, 0x41, + 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x69, 0x70, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x2a, 0x69, 0x0a, 0x0d, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x46, 0x6f, 0x72, 0x6d, 0x12, 0x12, 0x0a, 0x0e, 0x55, 0x4e, 0x44, 0x45, 0x46, + 0x49, 0x4e, 0x45, 0x44, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, + 0x44, 0x44, 0x52, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x44, + 0x44, 0x52, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x5f, 0x4d, 0x41, 0x53, 0x4b, 0x10, 0x02, 0x12, 0x0c, + 0x0a, 0x08, 0x41, 0x44, 0x44, 0x52, 0x5f, 0x4e, 0x45, 0x54, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, + 0x53, 0x49, 0x4e, 0x47, 0x4c, 0x45, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x5f, 0x4e, 0x45, 0x54, 0x10, + 0x04, 0x2a, 0x51, 0x0a, 0x0f, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, + 0x44, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, + 0x41, 0x54, 0x49, 0x43, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x52, 0x4f, 0x4d, 0x5f, 0x44, + 0x48, 0x43, 0x50, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x4c, 0x4c, 0x4f, 0x43, 0x5f, 0x52, + 0x45, 0x46, 0x10, 0x03, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, + 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6e, + 0x65, 0x74, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var xxx_messageInfo_ConfigData proto.InternalMessageInfo +var ( + file_ligato_netalloc_netalloc_proto_rawDescOnce sync.Once + file_ligato_netalloc_netalloc_proto_rawDescData = file_ligato_netalloc_netalloc_proto_rawDesc +) -func (m *ConfigData) GetIpAddresses() []*IPAllocation { - if m != nil { - return m.IpAddresses - } - return nil +func file_ligato_netalloc_netalloc_proto_rawDescGZIP() []byte { + file_ligato_netalloc_netalloc_proto_rawDescOnce.Do(func() { + file_ligato_netalloc_netalloc_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_netalloc_netalloc_proto_rawDescData) + }) + return file_ligato_netalloc_netalloc_proto_rawDescData +} + +var file_ligato_netalloc_netalloc_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_ligato_netalloc_netalloc_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_ligato_netalloc_netalloc_proto_goTypes = []interface{}{ + (IPAddressForm)(0), // 0: ligato.netalloc.IPAddressForm + (IPAddressSource)(0), // 1: ligato.netalloc.IPAddressSource + (*IPAllocation)(nil), // 2: ligato.netalloc.IPAllocation + (*ConfigData)(nil), // 3: ligato.netalloc.ConfigData +} +var file_ligato_netalloc_netalloc_proto_depIdxs = []int32{ + 2, // 0: ligato.netalloc.ConfigData.ip_addresses:type_name -> ligato.netalloc.IPAllocation + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name } -func init() { - proto.RegisterEnum("ligato.netalloc.IPAddressForm", IPAddressForm_name, IPAddressForm_value) - proto.RegisterEnum("ligato.netalloc.IPAddressSource", IPAddressSource_name, IPAddressSource_value) - proto.RegisterType((*IPAllocation)(nil), "ligato.netalloc.IPAllocation") - proto.RegisterType((*ConfigData)(nil), "ligato.netalloc.ConfigData") -} - -func init() { proto.RegisterFile("ligato/netalloc/netalloc.proto", fileDescriptor_034a8c5cac8e0a20) } - -var fileDescriptor_034a8c5cac8e0a20 = []byte{ - // 361 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0x4f, 0xaf, 0xd2, 0x40, - 0x14, 0xc5, 0x5f, 0xcb, 0x13, 0xe5, 0x52, 0x60, 0x32, 0xba, 0xe8, 0x46, 0x83, 0x24, 0x26, 0x84, - 0xc4, 0x36, 0xca, 0x17, 0xb0, 0xf6, 0x8f, 0x34, 0x96, 0x16, 0xdb, 0x12, 0xa3, 0x9b, 0xc9, 0x08, - 0x43, 0x33, 0x11, 0x3a, 0x4d, 0x19, 0x61, 0xef, 0x27, 0x37, 0x0c, 0xb4, 0xbe, 0xb0, 0xbb, 0xe7, - 0x77, 0xcf, 0xe4, 0x9c, 0xc9, 0x85, 0x37, 0x7b, 0x5e, 0x50, 0x29, 0xec, 0x92, 0x49, 0xba, 0xdf, - 0x8b, 0x4d, 0x3b, 0x58, 0x55, 0x2d, 0xa4, 0xc0, 0xa3, 0xeb, 0xde, 0x6a, 0xf0, 0xe4, 0xaf, 0x06, - 0x46, 0xb8, 0x72, 0x2e, 0x33, 0x95, 0x5c, 0x94, 0xf8, 0x2d, 0x18, 0x25, 0x93, 0x67, 0x51, 0xff, - 0x26, 0x25, 0x3d, 0x30, 0x53, 0x1b, 0x6b, 0xd3, 0x5e, 0xda, 0xbf, 0xb1, 0x98, 0x1e, 0x18, 0x7e, - 0x07, 0x43, 0x5e, 0x4a, 0x56, 0xef, 0xe8, 0x86, 0x5d, 0x4d, 0xba, 0x32, 0x0d, 0x5a, 0xaa, 0x6c, - 0x26, 0x3c, 0xa7, 0xdb, 0x6d, 0xcd, 0x8e, 0x47, 0xf3, 0x51, 0xed, 0x1b, 0x89, 0x87, 0xa0, 0x17, - 0x67, 0xf3, 0x99, 0x82, 0x7a, 0x71, 0x9e, 0xc4, 0x00, 0xae, 0x28, 0x77, 0xbc, 0xf0, 0xa8, 0xa4, - 0xf8, 0x13, 0x18, 0xbc, 0x22, 0x37, 0x2f, 0x3b, 0x9a, 0x30, 0xee, 0x4c, 0xfb, 0x1f, 0x5f, 0x5b, - 0x77, 0xd5, 0xad, 0xa7, 0xb5, 0xd3, 0x3e, 0xaf, 0x9c, 0xe6, 0xc5, 0x8c, 0xc3, 0x20, 0x5c, 0xdd, - 0x64, 0x20, 0xea, 0x03, 0xc6, 0x30, 0x5c, 0xc7, 0x9e, 0x1f, 0x84, 0xb1, 0xef, 0x91, 0x20, 0x49, - 0x97, 0xe8, 0x01, 0x0f, 0xa0, 0xe7, 0x78, 0x5e, 0x4a, 0x92, 0x38, 0xfa, 0x81, 0xb4, 0x8b, 0x45, - 0xc9, 0xef, 0x61, 0xbe, 0x20, 0x4b, 0x27, 0xfb, 0x8a, 0x74, 0x6c, 0xc0, 0x0b, 0xc5, 0x62, 0x3f, - 0x47, 0x1d, 0xfc, 0x12, 0x46, 0x59, 0x18, 0x7f, 0x89, 0x7c, 0xd2, 0xc2, 0xc7, 0xd9, 0x37, 0x18, - 0xb5, 0x51, 0x99, 0xf8, 0x53, 0x6f, 0x18, 0x7e, 0x05, 0xe8, 0x7f, 0x58, 0x96, 0xac, 0x53, 0xd7, - 0x47, 0x0f, 0x18, 0xa0, 0x9b, 0xe5, 0x4e, 0x1e, 0xba, 0x48, 0xbb, 0x44, 0x07, 0x69, 0xb2, 0x24, - 0xde, 0xc2, 0x5d, 0x21, 0x5d, 0x35, 0x89, 0xa2, 0xc4, 0x25, 0xa9, 0x1f, 0xa0, 0xce, 0xe7, 0x0f, - 0x3f, 0xed, 0x42, 0x34, 0xbf, 0xe5, 0xc2, 0x3e, 0x55, 0xd5, 0x7b, 0x5a, 0xb0, 0x52, 0xda, 0xa7, - 0xb9, 0xad, 0xce, 0x68, 0xdf, 0x5d, 0xf9, 0x57, 0x57, 0xe1, 0xf9, 0xbf, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x66, 0x9d, 0x6a, 0x26, 0xff, 0x01, 0x00, 0x00, +func init() { file_ligato_netalloc_netalloc_proto_init() } +func file_ligato_netalloc_netalloc_proto_init() { + if File_ligato_netalloc_netalloc_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_netalloc_netalloc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IPAllocation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_netalloc_netalloc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConfigData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_netalloc_netalloc_proto_rawDesc, + NumEnums: 2, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_netalloc_netalloc_proto_goTypes, + DependencyIndexes: file_ligato_netalloc_netalloc_proto_depIdxs, + EnumInfos: file_ligato_netalloc_netalloc_proto_enumTypes, + MessageInfos: file_ligato_netalloc_netalloc_proto_msgTypes, + }.Build() + File_ligato_netalloc_netalloc_proto = out.File + file_ligato_netalloc_netalloc_proto_rawDesc = nil + file_ligato_netalloc_netalloc_proto_goTypes = nil + file_ligato_netalloc_netalloc_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/abf/abf.pb.go b/proto/ligato/vpp/abf/abf.pb.go index a77acad7f3..3c00f8ccc4 100644 --- a/proto/ligato/vpp/abf/abf.pb.go +++ b/proto/ligato/vpp/abf/abf.pb.go @@ -1,250 +1,377 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/abf/abf.proto package vpp_abf import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 // ABF defines ACL based forwarding. type ABF struct { - Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - AclName string `protobuf:"bytes,2,opt,name=acl_name,json=aclName,proto3" json:"acl_name,omitempty"` - AttachedInterfaces []*ABF_AttachedInterface `protobuf:"bytes,3,rep,name=attached_interfaces,json=attachedInterfaces,proto3" json:"attached_interfaces,omitempty"` - ForwardingPaths []*ABF_ForwardingPath `protobuf:"bytes,4,rep,name=forwarding_paths,json=forwardingPaths,proto3" json:"forwarding_paths,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ABF) Reset() { *m = ABF{} } -func (m *ABF) String() string { return proto.CompactTextString(m) } -func (*ABF) ProtoMessage() {} -func (*ABF) Descriptor() ([]byte, []int) { - return fileDescriptor_1535b8ce2775e25e, []int{0} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ABF) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ABF.Unmarshal(m, b) + Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // ABF index (unique identifier) + AclName string `protobuf:"bytes,2,opt,name=acl_name,json=aclName,proto3" json:"acl_name,omitempty"` // Name of the associated access list + AttachedInterfaces []*ABF_AttachedInterface `protobuf:"bytes,3,rep,name=attached_interfaces,json=attachedInterfaces,proto3" json:"attached_interfaces,omitempty"` + ForwardingPaths []*ABF_ForwardingPath `protobuf:"bytes,4,rep,name=forwarding_paths,json=forwardingPaths,proto3" json:"forwarding_paths,omitempty"` } -func (m *ABF) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ABF.Marshal(b, m, deterministic) -} -func (m *ABF) XXX_Merge(src proto.Message) { - xxx_messageInfo_ABF.Merge(m, src) + +func (x *ABF) Reset() { + *x = ABF{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_abf_abf_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ABF) XXX_Size() int { - return xxx_messageInfo_ABF.Size(m) + +func (x *ABF) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ABF) XXX_DiscardUnknown() { - xxx_messageInfo_ABF.DiscardUnknown(m) + +func (*ABF) ProtoMessage() {} + +func (x *ABF) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_abf_abf_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ABF proto.InternalMessageInfo +// Deprecated: Use ABF.ProtoReflect.Descriptor instead. +func (*ABF) Descriptor() ([]byte, []int) { + return file_ligato_vpp_abf_abf_proto_rawDescGZIP(), []int{0} +} -func (m *ABF) GetIndex() uint32 { - if m != nil { - return m.Index +func (x *ABF) GetIndex() uint32 { + if x != nil { + return x.Index } return 0 } -func (m *ABF) GetAclName() string { - if m != nil { - return m.AclName +func (x *ABF) GetAclName() string { + if x != nil { + return x.AclName } return "" } -func (m *ABF) GetAttachedInterfaces() []*ABF_AttachedInterface { - if m != nil { - return m.AttachedInterfaces +func (x *ABF) GetAttachedInterfaces() []*ABF_AttachedInterface { + if x != nil { + return x.AttachedInterfaces } return nil } -func (m *ABF) GetForwardingPaths() []*ABF_ForwardingPath { - if m != nil { - return m.ForwardingPaths +func (x *ABF) GetForwardingPaths() []*ABF_ForwardingPath { + if x != nil { + return x.ForwardingPaths } return nil } // List of interfaces attached to the ABF type ABF_AttachedInterface struct { - InputInterface string `protobuf:"bytes,1,opt,name=input_interface,json=inputInterface,proto3" json:"input_interface,omitempty"` - Priority uint32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"` - IsIpv6 bool `protobuf:"varint,3,opt,name=is_ipv6,json=isIpv6,proto3" json:"is_ipv6,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ABF_AttachedInterface) Reset() { *m = ABF_AttachedInterface{} } -func (m *ABF_AttachedInterface) String() string { return proto.CompactTextString(m) } -func (*ABF_AttachedInterface) ProtoMessage() {} -func (*ABF_AttachedInterface) Descriptor() ([]byte, []int) { - return fileDescriptor_1535b8ce2775e25e, []int{0, 0} + InputInterface string `protobuf:"bytes,1,opt,name=input_interface,json=inputInterface,proto3" json:"input_interface,omitempty"` + Priority uint32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"` + IsIpv6 bool `protobuf:"varint,3,opt,name=is_ipv6,json=isIpv6,proto3" json:"is_ipv6,omitempty"` } -func (m *ABF_AttachedInterface) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ABF_AttachedInterface.Unmarshal(m, b) -} -func (m *ABF_AttachedInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ABF_AttachedInterface.Marshal(b, m, deterministic) -} -func (m *ABF_AttachedInterface) XXX_Merge(src proto.Message) { - xxx_messageInfo_ABF_AttachedInterface.Merge(m, src) +func (x *ABF_AttachedInterface) Reset() { + *x = ABF_AttachedInterface{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_abf_abf_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ABF_AttachedInterface) XXX_Size() int { - return xxx_messageInfo_ABF_AttachedInterface.Size(m) + +func (x *ABF_AttachedInterface) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ABF_AttachedInterface) XXX_DiscardUnknown() { - xxx_messageInfo_ABF_AttachedInterface.DiscardUnknown(m) + +func (*ABF_AttachedInterface) ProtoMessage() {} + +func (x *ABF_AttachedInterface) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_abf_abf_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ABF_AttachedInterface proto.InternalMessageInfo +// Deprecated: Use ABF_AttachedInterface.ProtoReflect.Descriptor instead. +func (*ABF_AttachedInterface) Descriptor() ([]byte, []int) { + return file_ligato_vpp_abf_abf_proto_rawDescGZIP(), []int{0, 0} +} -func (m *ABF_AttachedInterface) GetInputInterface() string { - if m != nil { - return m.InputInterface +func (x *ABF_AttachedInterface) GetInputInterface() string { + if x != nil { + return x.InputInterface } return "" } -func (m *ABF_AttachedInterface) GetPriority() uint32 { - if m != nil { - return m.Priority +func (x *ABF_AttachedInterface) GetPriority() uint32 { + if x != nil { + return x.Priority } return 0 } -func (m *ABF_AttachedInterface) GetIsIpv6() bool { - if m != nil { - return m.IsIpv6 +func (x *ABF_AttachedInterface) GetIsIpv6() bool { + if x != nil { + return x.IsIpv6 } return false } // List of forwarding paths added to the ABF policy (via) type ABF_ForwardingPath struct { - NextHopIp string `protobuf:"bytes,1,opt,name=next_hop_ip,json=nextHopIp,proto3" json:"next_hop_ip,omitempty"` - InterfaceName string `protobuf:"bytes,2,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"` - Weight uint32 `protobuf:"varint,3,opt,name=weight,proto3" json:"weight,omitempty"` - Preference uint32 `protobuf:"varint,4,opt,name=preference,proto3" json:"preference,omitempty"` - Dvr bool `protobuf:"varint,5,opt,name=dvr,proto3" json:"dvr,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ABF_ForwardingPath) Reset() { *m = ABF_ForwardingPath{} } -func (m *ABF_ForwardingPath) String() string { return proto.CompactTextString(m) } -func (*ABF_ForwardingPath) ProtoMessage() {} -func (*ABF_ForwardingPath) Descriptor() ([]byte, []int) { - return fileDescriptor_1535b8ce2775e25e, []int{0, 1} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ABF_ForwardingPath) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ABF_ForwardingPath.Unmarshal(m, b) -} -func (m *ABF_ForwardingPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ABF_ForwardingPath.Marshal(b, m, deterministic) + NextHopIp string `protobuf:"bytes,1,opt,name=next_hop_ip,json=nextHopIp,proto3" json:"next_hop_ip,omitempty"` + InterfaceName string `protobuf:"bytes,2,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"` + Weight uint32 `protobuf:"varint,3,opt,name=weight,proto3" json:"weight,omitempty"` + Preference uint32 `protobuf:"varint,4,opt,name=preference,proto3" json:"preference,omitempty"` + Dvr bool `protobuf:"varint,5,opt,name=dvr,proto3" json:"dvr,omitempty"` } -func (m *ABF_ForwardingPath) XXX_Merge(src proto.Message) { - xxx_messageInfo_ABF_ForwardingPath.Merge(m, src) + +func (x *ABF_ForwardingPath) Reset() { + *x = ABF_ForwardingPath{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_abf_abf_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ABF_ForwardingPath) XXX_Size() int { - return xxx_messageInfo_ABF_ForwardingPath.Size(m) + +func (x *ABF_ForwardingPath) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ABF_ForwardingPath) XXX_DiscardUnknown() { - xxx_messageInfo_ABF_ForwardingPath.DiscardUnknown(m) + +func (*ABF_ForwardingPath) ProtoMessage() {} + +func (x *ABF_ForwardingPath) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_abf_abf_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ABF_ForwardingPath proto.InternalMessageInfo +// Deprecated: Use ABF_ForwardingPath.ProtoReflect.Descriptor instead. +func (*ABF_ForwardingPath) Descriptor() ([]byte, []int) { + return file_ligato_vpp_abf_abf_proto_rawDescGZIP(), []int{0, 1} +} -func (m *ABF_ForwardingPath) GetNextHopIp() string { - if m != nil { - return m.NextHopIp +func (x *ABF_ForwardingPath) GetNextHopIp() string { + if x != nil { + return x.NextHopIp } return "" } -func (m *ABF_ForwardingPath) GetInterfaceName() string { - if m != nil { - return m.InterfaceName +func (x *ABF_ForwardingPath) GetInterfaceName() string { + if x != nil { + return x.InterfaceName } return "" } -func (m *ABF_ForwardingPath) GetWeight() uint32 { - if m != nil { - return m.Weight +func (x *ABF_ForwardingPath) GetWeight() uint32 { + if x != nil { + return x.Weight } return 0 } -func (m *ABF_ForwardingPath) GetPreference() uint32 { - if m != nil { - return m.Preference +func (x *ABF_ForwardingPath) GetPreference() uint32 { + if x != nil { + return x.Preference } return 0 } -func (m *ABF_ForwardingPath) GetDvr() bool { - if m != nil { - return m.Dvr +func (x *ABF_ForwardingPath) GetDvr() bool { + if x != nil { + return x.Dvr } return false } -func init() { - proto.RegisterType((*ABF)(nil), "ligato.vpp.abf.ABF") - proto.RegisterType((*ABF_AttachedInterface)(nil), "ligato.vpp.abf.ABF.AttachedInterface") - proto.RegisterType((*ABF_ForwardingPath)(nil), "ligato.vpp.abf.ABF.ForwardingPath") -} - -func init() { proto.RegisterFile("ligato/vpp/abf/abf.proto", fileDescriptor_1535b8ce2775e25e) } - -var fileDescriptor_1535b8ce2775e25e = []byte{ - // 385 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x52, 0xc1, 0x6e, 0xd3, 0x40, - 0x10, 0x95, 0x71, 0x9b, 0x26, 0x53, 0x25, 0x2d, 0x0b, 0x82, 0x25, 0x87, 0xca, 0xaa, 0x54, 0xe1, - 0x0b, 0xb6, 0x44, 0xa5, 0x08, 0x89, 0x53, 0x72, 0x88, 0xc8, 0x01, 0x84, 0xf6, 0xc0, 0x81, 0x8b, - 0x35, 0xb6, 0xd7, 0xf6, 0x4a, 0xe9, 0xee, 0xb0, 0x5e, 0xdc, 0xf2, 0x39, 0xfc, 0x23, 0x1f, 0x80, - 0xb2, 0x4d, 0xdd, 0x18, 0x7a, 0x58, 0x69, 0xdf, 0x9b, 0xa7, 0x79, 0x6f, 0x46, 0x03, 0x7c, 0xab, - 0x6a, 0x74, 0x26, 0xed, 0x88, 0x52, 0xcc, 0xab, 0xdd, 0x4b, 0xc8, 0x1a, 0x67, 0xd8, 0xec, 0xbe, - 0x92, 0x74, 0x44, 0x09, 0xe6, 0xd5, 0xe5, 0x9f, 0x10, 0xc2, 0xe5, 0x6a, 0xcd, 0x5e, 0xc2, 0xb1, - 0xd2, 0xa5, 0xbc, 0xe3, 0x41, 0x14, 0xc4, 0x53, 0x71, 0x0f, 0xd8, 0x1b, 0x18, 0x63, 0xb1, 0xcd, - 0x34, 0xde, 0x48, 0xfe, 0x2c, 0x0a, 0xe2, 0x89, 0x38, 0xc1, 0x62, 0xfb, 0x05, 0x6f, 0x24, 0xfb, - 0x06, 0x2f, 0xd0, 0x39, 0x2c, 0x1a, 0x59, 0x66, 0x4a, 0x3b, 0x69, 0x2b, 0x2c, 0x64, 0xcb, 0xc3, - 0x28, 0x8c, 0x4f, 0xdf, 0x5f, 0x25, 0x43, 0x9b, 0x64, 0xb9, 0x5a, 0x27, 0xcb, 0xbd, 0x7c, 0xf3, - 0xa0, 0x16, 0x0c, 0xff, 0xa5, 0x5a, 0xf6, 0x19, 0xce, 0x2b, 0x63, 0x6f, 0xd1, 0x96, 0x4a, 0xd7, - 0x19, 0xa1, 0x6b, 0x5a, 0x7e, 0xe4, 0x9b, 0x5e, 0x3e, 0xd5, 0x74, 0xdd, 0x6b, 0xbf, 0xa2, 0x6b, - 0xc4, 0x59, 0x35, 0xc0, 0xed, 0xfc, 0x07, 0x3c, 0xff, 0xcf, 0x97, 0xbd, 0x85, 0x33, 0xa5, 0xe9, - 0xa7, 0x7b, 0x0c, 0xee, 0xc7, 0x9e, 0x88, 0x99, 0xa7, 0x1f, 0x85, 0x73, 0x18, 0x93, 0x55, 0xc6, - 0x2a, 0xf7, 0xcb, 0xcf, 0x3f, 0x15, 0x3d, 0x66, 0xaf, 0xe1, 0x44, 0xb5, 0x99, 0xa2, 0x6e, 0xc1, - 0xc3, 0x28, 0x88, 0xc7, 0x62, 0xa4, 0xda, 0x0d, 0x75, 0x8b, 0xf9, 0xef, 0x00, 0x66, 0xc3, 0x58, - 0xec, 0x02, 0x4e, 0xb5, 0xbc, 0x73, 0x59, 0x63, 0x28, 0x53, 0xb4, 0x37, 0x9b, 0xec, 0xa8, 0x4f, - 0x86, 0x36, 0xc4, 0xae, 0x60, 0xd6, 0x47, 0x39, 0xdc, 0xf6, 0xb4, 0x67, 0xfd, 0xce, 0x5f, 0xc1, - 0xe8, 0x56, 0xaa, 0xba, 0x71, 0xde, 0x71, 0x2a, 0xf6, 0x88, 0x5d, 0x00, 0x90, 0x95, 0x95, 0xb4, - 0x52, 0x17, 0x92, 0x1f, 0xf9, 0xda, 0x01, 0xc3, 0xce, 0x21, 0x2c, 0x3b, 0xcb, 0x8f, 0x7d, 0xcc, - 0xdd, 0x77, 0xf5, 0xe1, 0xfb, 0xa2, 0x36, 0x0f, 0xfb, 0x54, 0xfe, 0x50, 0xde, 0x61, 0x2d, 0xb5, - 0x4b, 0xbb, 0xeb, 0xd4, 0x5f, 0x4a, 0x3a, 0x3c, 0xa1, 0x8f, 0x1d, 0x51, 0x86, 0x79, 0x95, 0x8f, - 0x7c, 0xf5, 0xfa, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x68, 0xfc, 0xc7, 0xd3, 0x63, 0x02, 0x00, - 0x00, +var File_ligato_vpp_abf_abf_proto protoreflect.FileDescriptor + +var file_ligato_vpp_abf_abf_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x61, 0x62, 0x66, + 0x2f, 0x61, 0x62, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x62, 0x66, 0x22, 0xf4, 0x03, 0x0a, 0x03, 0x41, + 0x42, 0x46, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x63, 0x6c, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x6c, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x5f, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x25, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x62, + 0x66, 0x2e, 0x41, 0x42, 0x46, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x12, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, + 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x10, 0x66, + 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, + 0x70, 0x70, 0x2e, 0x61, 0x62, 0x66, 0x2e, 0x41, 0x42, 0x46, 0x2e, 0x46, 0x6f, 0x72, 0x77, 0x61, + 0x72, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x74, 0x68, 0x52, 0x0f, 0x66, 0x6f, 0x72, 0x77, 0x61, + 0x72, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x74, 0x68, 0x73, 0x1a, 0x71, 0x0a, 0x11, 0x41, 0x74, + 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, + 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, + 0x72, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, + 0x72, 0x69, 0x74, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x69, 0x70, 0x76, 0x36, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x49, 0x70, 0x76, 0x36, 0x1a, 0xa1, 0x01, + 0x0a, 0x0e, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x74, 0x68, + 0x12, 0x1e, 0x0a, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x68, 0x6f, 0x70, 0x5f, 0x69, 0x70, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x78, 0x74, 0x48, 0x6f, 0x70, 0x49, 0x70, + 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, + 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, + 0x10, 0x0a, 0x03, 0x64, 0x76, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x64, 0x76, + 0x72, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, + 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, + 0x61, 0x62, 0x66, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x61, 0x62, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_abf_abf_proto_rawDescOnce sync.Once + file_ligato_vpp_abf_abf_proto_rawDescData = file_ligato_vpp_abf_abf_proto_rawDesc +) + +func file_ligato_vpp_abf_abf_proto_rawDescGZIP() []byte { + file_ligato_vpp_abf_abf_proto_rawDescOnce.Do(func() { + file_ligato_vpp_abf_abf_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_abf_abf_proto_rawDescData) + }) + return file_ligato_vpp_abf_abf_proto_rawDescData +} + +var file_ligato_vpp_abf_abf_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_ligato_vpp_abf_abf_proto_goTypes = []interface{}{ + (*ABF)(nil), // 0: ligato.vpp.abf.ABF + (*ABF_AttachedInterface)(nil), // 1: ligato.vpp.abf.ABF.AttachedInterface + (*ABF_ForwardingPath)(nil), // 2: ligato.vpp.abf.ABF.ForwardingPath +} +var file_ligato_vpp_abf_abf_proto_depIdxs = []int32{ + 1, // 0: ligato.vpp.abf.ABF.attached_interfaces:type_name -> ligato.vpp.abf.ABF.AttachedInterface + 2, // 1: ligato.vpp.abf.ABF.forwarding_paths:type_name -> ligato.vpp.abf.ABF.ForwardingPath + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_abf_abf_proto_init() } +func file_ligato_vpp_abf_abf_proto_init() { + if File_ligato_vpp_abf_abf_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_abf_abf_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ABF); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_abf_abf_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ABF_AttachedInterface); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_abf_abf_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ABF_ForwardingPath); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_abf_abf_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_abf_abf_proto_goTypes, + DependencyIndexes: file_ligato_vpp_abf_abf_proto_depIdxs, + MessageInfos: file_ligato_vpp_abf_abf_proto_msgTypes, + }.Build() + File_ligato_vpp_abf_abf_proto = out.File + file_ligato_vpp_abf_abf_proto_rawDesc = nil + file_ligato_vpp_abf_abf_proto_goTypes = nil + file_ligato_vpp_abf_abf_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/acl/acl.pb.go b/proto/ligato/vpp/acl/acl.pb.go index 50bcc9751b..bca56b032b 100644 --- a/proto/ligato/vpp/acl/acl.pb.go +++ b/proto/ligato/vpp/acl/acl.pb.go @@ -1,24 +1,29 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/acl/acl.proto package vpp_acl import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type ACL_Rule_Action int32 @@ -28,81 +33,110 @@ const ( ACL_Rule_REFLECT ACL_Rule_Action = 2 ) -var ACL_Rule_Action_name = map[int32]string{ - 0: "DENY", - 1: "PERMIT", - 2: "REFLECT", -} +// Enum value maps for ACL_Rule_Action. +var ( + ACL_Rule_Action_name = map[int32]string{ + 0: "DENY", + 1: "PERMIT", + 2: "REFLECT", + } + ACL_Rule_Action_value = map[string]int32{ + "DENY": 0, + "PERMIT": 1, + "REFLECT": 2, + } +) -var ACL_Rule_Action_value = map[string]int32{ - "DENY": 0, - "PERMIT": 1, - "REFLECT": 2, +func (x ACL_Rule_Action) Enum() *ACL_Rule_Action { + p := new(ACL_Rule_Action) + *p = x + return p } func (x ACL_Rule_Action) String() string { - return proto.EnumName(ACL_Rule_Action_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ACL_Rule_Action) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_acl_acl_proto_enumTypes[0].Descriptor() +} + +func (ACL_Rule_Action) Type() protoreflect.EnumType { + return &file_ligato_vpp_acl_acl_proto_enumTypes[0] } +func (x ACL_Rule_Action) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ACL_Rule_Action.Descriptor instead. func (ACL_Rule_Action) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7ad565c8fb2f0c94, []int{0, 0, 0} + return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0, 0} } // ACL defines Access Control List. type ACL struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The name of an access list. A device MAY restrict the length // and value of this name, possibly spaces and special // characters are not allowed. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Rules []*ACL_Rule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"` - Interfaces *ACL_Interfaces `protobuf:"bytes,3,opt,name=interfaces,proto3" json:"interfaces,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Rules []*ACL_Rule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"` + Interfaces *ACL_Interfaces `protobuf:"bytes,3,opt,name=interfaces,proto3" json:"interfaces,omitempty"` } -func (m *ACL) Reset() { *m = ACL{} } -func (m *ACL) String() string { return proto.CompactTextString(m) } -func (*ACL) ProtoMessage() {} -func (*ACL) Descriptor() ([]byte, []int) { - return fileDescriptor_7ad565c8fb2f0c94, []int{0} +func (x *ACL) Reset() { + *x = ACL{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ACL) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ACL.Unmarshal(m, b) -} -func (m *ACL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ACL.Marshal(b, m, deterministic) -} -func (m *ACL) XXX_Merge(src proto.Message) { - xxx_messageInfo_ACL.Merge(m, src) -} -func (m *ACL) XXX_Size() int { - return xxx_messageInfo_ACL.Size(m) +func (x *ACL) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ACL) XXX_DiscardUnknown() { - xxx_messageInfo_ACL.DiscardUnknown(m) + +func (*ACL) ProtoMessage() {} + +func (x *ACL) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ACL proto.InternalMessageInfo +// Deprecated: Use ACL.ProtoReflect.Descriptor instead. +func (*ACL) Descriptor() ([]byte, []int) { + return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0} +} -func (m *ACL) GetName() string { - if m != nil { - return m.Name +func (x *ACL) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *ACL) GetRules() []*ACL_Rule { - if m != nil { - return m.Rules +func (x *ACL) GetRules() []*ACL_Rule { + if x != nil { + return x.Rules } return nil } -func (m *ACL) GetInterfaces() *ACL_Interfaces { - if m != nil { - return m.Interfaces +func (x *ACL) GetInterfaces() *ACL_Interfaces { + if x != nil { + return x.Interfaces } return nil } @@ -115,329 +149,458 @@ func (m *ACL) GetInterfaces() *ACL_Interfaces { // - src MAC address value // - can be used only for static ACLs. type ACL_Rule struct { - Action ACL_Rule_Action `protobuf:"varint,1,opt,name=action,proto3,enum=ligato.vpp.acl.ACL_Rule_Action" json:"action,omitempty"` - IpRule *ACL_Rule_IpRule `protobuf:"bytes,2,opt,name=ip_rule,json=ipRule,proto3" json:"ip_rule,omitempty"` - MacipRule *ACL_Rule_MacIpRule `protobuf:"bytes,3,opt,name=macip_rule,json=macipRule,proto3" json:"macip_rule,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Action ACL_Rule_Action `protobuf:"varint,1,opt,name=action,proto3,enum=ligato.vpp.acl.ACL_Rule_Action" json:"action,omitempty"` + IpRule *ACL_Rule_IpRule `protobuf:"bytes,2,opt,name=ip_rule,json=ipRule,proto3" json:"ip_rule,omitempty"` + MacipRule *ACL_Rule_MacIpRule `protobuf:"bytes,3,opt,name=macip_rule,json=macipRule,proto3" json:"macip_rule,omitempty"` +} + +func (x *ACL_Rule) Reset() { + *x = ACL_Rule{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ACL_Rule) Reset() { *m = ACL_Rule{} } -func (m *ACL_Rule) String() string { return proto.CompactTextString(m) } -func (*ACL_Rule) ProtoMessage() {} +func (x *ACL_Rule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ACL_Rule) ProtoMessage() {} + +func (x *ACL_Rule) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ACL_Rule.ProtoReflect.Descriptor instead. func (*ACL_Rule) Descriptor() ([]byte, []int) { - return fileDescriptor_7ad565c8fb2f0c94, []int{0, 0} + return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0} } -func (m *ACL_Rule) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ACL_Rule.Unmarshal(m, b) +func (x *ACL_Rule) GetAction() ACL_Rule_Action { + if x != nil { + return x.Action + } + return ACL_Rule_DENY } -func (m *ACL_Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ACL_Rule.Marshal(b, m, deterministic) + +func (x *ACL_Rule) GetIpRule() *ACL_Rule_IpRule { + if x != nil { + return x.IpRule + } + return nil } -func (m *ACL_Rule) XXX_Merge(src proto.Message) { - xxx_messageInfo_ACL_Rule.Merge(m, src) + +func (x *ACL_Rule) GetMacipRule() *ACL_Rule_MacIpRule { + if x != nil { + return x.MacipRule + } + return nil } -func (m *ACL_Rule) XXX_Size() int { - return xxx_messageInfo_ACL_Rule.Size(m) + +// The set of interfaces that has assigned this ACL on ingres or egress. +type ACL_Interfaces struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Egress []string `protobuf:"bytes,1,rep,name=egress,proto3" json:"egress,omitempty"` + Ingress []string `protobuf:"bytes,2,rep,name=ingress,proto3" json:"ingress,omitempty"` } -func (m *ACL_Rule) XXX_DiscardUnknown() { - xxx_messageInfo_ACL_Rule.DiscardUnknown(m) + +func (x *ACL_Interfaces) Reset() { + *x = ACL_Interfaces{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -var xxx_messageInfo_ACL_Rule proto.InternalMessageInfo +func (x *ACL_Interfaces) String() string { + return protoimpl.X.MessageStringOf(x) +} -func (m *ACL_Rule) GetAction() ACL_Rule_Action { - if m != nil { - return m.Action +func (*ACL_Interfaces) ProtoMessage() {} + +func (x *ACL_Interfaces) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return ACL_Rule_DENY + return mi.MessageOf(x) +} + +// Deprecated: Use ACL_Interfaces.ProtoReflect.Descriptor instead. +func (*ACL_Interfaces) Descriptor() ([]byte, []int) { + return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 1} } -func (m *ACL_Rule) GetIpRule() *ACL_Rule_IpRule { - if m != nil { - return m.IpRule +func (x *ACL_Interfaces) GetEgress() []string { + if x != nil { + return x.Egress } return nil } -func (m *ACL_Rule) GetMacipRule() *ACL_Rule_MacIpRule { - if m != nil { - return m.MacipRule +func (x *ACL_Interfaces) GetIngress() []string { + if x != nil { + return x.Ingress } return nil } type ACL_Rule_IpRule struct { - Ip *ACL_Rule_IpRule_Ip `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` - Icmp *ACL_Rule_IpRule_Icmp `protobuf:"bytes,2,opt,name=icmp,proto3" json:"icmp,omitempty"` - Tcp *ACL_Rule_IpRule_Tcp `protobuf:"bytes,3,opt,name=tcp,proto3" json:"tcp,omitempty"` - Udp *ACL_Rule_IpRule_Udp `protobuf:"bytes,4,opt,name=udp,proto3" json:"udp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ACL_Rule_IpRule) Reset() { *m = ACL_Rule_IpRule{} } -func (m *ACL_Rule_IpRule) String() string { return proto.CompactTextString(m) } -func (*ACL_Rule_IpRule) ProtoMessage() {} -func (*ACL_Rule_IpRule) Descriptor() ([]byte, []int) { - return fileDescriptor_7ad565c8fb2f0c94, []int{0, 0, 0} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ip *ACL_Rule_IpRule_Ip `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` + Icmp *ACL_Rule_IpRule_Icmp `protobuf:"bytes,2,opt,name=icmp,proto3" json:"icmp,omitempty"` + Tcp *ACL_Rule_IpRule_Tcp `protobuf:"bytes,3,opt,name=tcp,proto3" json:"tcp,omitempty"` + Udp *ACL_Rule_IpRule_Udp `protobuf:"bytes,4,opt,name=udp,proto3" json:"udp,omitempty"` +} + +func (x *ACL_Rule_IpRule) Reset() { + *x = ACL_Rule_IpRule{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ACL_Rule_IpRule) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ACL_Rule_IpRule.Unmarshal(m, b) -} -func (m *ACL_Rule_IpRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ACL_Rule_IpRule.Marshal(b, m, deterministic) -} -func (m *ACL_Rule_IpRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_ACL_Rule_IpRule.Merge(m, src) -} -func (m *ACL_Rule_IpRule) XXX_Size() int { - return xxx_messageInfo_ACL_Rule_IpRule.Size(m) +func (x *ACL_Rule_IpRule) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ACL_Rule_IpRule) XXX_DiscardUnknown() { - xxx_messageInfo_ACL_Rule_IpRule.DiscardUnknown(m) + +func (*ACL_Rule_IpRule) ProtoMessage() {} + +func (x *ACL_Rule_IpRule) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ACL_Rule_IpRule proto.InternalMessageInfo +// Deprecated: Use ACL_Rule_IpRule.ProtoReflect.Descriptor instead. +func (*ACL_Rule_IpRule) Descriptor() ([]byte, []int) { + return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0, 0} +} -func (m *ACL_Rule_IpRule) GetIp() *ACL_Rule_IpRule_Ip { - if m != nil { - return m.Ip +func (x *ACL_Rule_IpRule) GetIp() *ACL_Rule_IpRule_Ip { + if x != nil { + return x.Ip } return nil } -func (m *ACL_Rule_IpRule) GetIcmp() *ACL_Rule_IpRule_Icmp { - if m != nil { - return m.Icmp +func (x *ACL_Rule_IpRule) GetIcmp() *ACL_Rule_IpRule_Icmp { + if x != nil { + return x.Icmp } return nil } -func (m *ACL_Rule_IpRule) GetTcp() *ACL_Rule_IpRule_Tcp { - if m != nil { - return m.Tcp +func (x *ACL_Rule_IpRule) GetTcp() *ACL_Rule_IpRule_Tcp { + if x != nil { + return x.Tcp } return nil } -func (m *ACL_Rule_IpRule) GetUdp() *ACL_Rule_IpRule_Udp { - if m != nil { - return m.Udp +func (x *ACL_Rule_IpRule) GetUdp() *ACL_Rule_IpRule_Udp { + if x != nil { + return x.Udp } return nil } -// IP used in this Access List Entry. -type ACL_Rule_IpRule_Ip struct { - // Destination IPv4/IPv6 network address (/) - DestinationNetwork string `protobuf:"bytes,1,opt,name=destination_network,json=destinationNetwork,proto3" json:"destination_network,omitempty"` - // Destination IPv4/IPv6 network address (/) - SourceNetwork string `protobuf:"bytes,2,opt,name=source_network,json=sourceNetwork,proto3" json:"source_network,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type ACL_Rule_MacIpRule struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ACL_Rule_IpRule_Ip) Reset() { *m = ACL_Rule_IpRule_Ip{} } -func (m *ACL_Rule_IpRule_Ip) String() string { return proto.CompactTextString(m) } -func (*ACL_Rule_IpRule_Ip) ProtoMessage() {} -func (*ACL_Rule_IpRule_Ip) Descriptor() ([]byte, []int) { - return fileDescriptor_7ad565c8fb2f0c94, []int{0, 0, 0, 0} + SourceAddress string `protobuf:"bytes,1,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` + SourceAddressPrefix uint32 `protobuf:"varint,2,opt,name=source_address_prefix,json=sourceAddressPrefix,proto3" json:"source_address_prefix,omitempty"` + // Before source-mac-address is compared with source mac address field of the packet + // being matched, source-mac-address-mask is applied to packet field value. + SourceMacAddress string `protobuf:"bytes,3,opt,name=source_mac_address,json=sourceMacAddress,proto3" json:"source_mac_address,omitempty"` + // Source MAC address mask. + // Applied as logical AND with source mac address field of the packet being matched, + // before it is compared with source-mac-address. + SourceMacAddressMask string `protobuf:"bytes,4,opt,name=source_mac_address_mask,json=sourceMacAddressMask,proto3" json:"source_mac_address_mask,omitempty"` } -func (m *ACL_Rule_IpRule_Ip) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ACL_Rule_IpRule_Ip.Unmarshal(m, b) +func (x *ACL_Rule_MacIpRule) Reset() { + *x = ACL_Rule_MacIpRule{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ACL_Rule_IpRule_Ip) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ACL_Rule_IpRule_Ip.Marshal(b, m, deterministic) + +func (x *ACL_Rule_MacIpRule) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ACL_Rule_IpRule_Ip) XXX_Merge(src proto.Message) { - xxx_messageInfo_ACL_Rule_IpRule_Ip.Merge(m, src) + +func (*ACL_Rule_MacIpRule) ProtoMessage() {} + +func (x *ACL_Rule_MacIpRule) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ACL_Rule_IpRule_Ip) XXX_Size() int { - return xxx_messageInfo_ACL_Rule_IpRule_Ip.Size(m) + +// Deprecated: Use ACL_Rule_MacIpRule.ProtoReflect.Descriptor instead. +func (*ACL_Rule_MacIpRule) Descriptor() ([]byte, []int) { + return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0, 1} } -func (m *ACL_Rule_IpRule_Ip) XXX_DiscardUnknown() { - xxx_messageInfo_ACL_Rule_IpRule_Ip.DiscardUnknown(m) + +func (x *ACL_Rule_MacIpRule) GetSourceAddress() string { + if x != nil { + return x.SourceAddress + } + return "" } -var xxx_messageInfo_ACL_Rule_IpRule_Ip proto.InternalMessageInfo +func (x *ACL_Rule_MacIpRule) GetSourceAddressPrefix() uint32 { + if x != nil { + return x.SourceAddressPrefix + } + return 0 +} -func (m *ACL_Rule_IpRule_Ip) GetDestinationNetwork() string { - if m != nil { - return m.DestinationNetwork +func (x *ACL_Rule_MacIpRule) GetSourceMacAddress() string { + if x != nil { + return x.SourceMacAddress } return "" } -func (m *ACL_Rule_IpRule_Ip) GetSourceNetwork() string { - if m != nil { - return m.SourceNetwork +func (x *ACL_Rule_MacIpRule) GetSourceMacAddressMask() string { + if x != nil { + return x.SourceMacAddressMask } return "" } -type ACL_Rule_IpRule_Icmp struct { - // ICMPv6 flag, if false ICMPv4 will be used - Icmpv6 bool `protobuf:"varint,1,opt,name=icmpv6,proto3" json:"icmpv6,omitempty"` - // Inclusive range representing icmp codes to be used. - IcmpCodeRange *ACL_Rule_IpRule_Icmp_Range `protobuf:"bytes,2,opt,name=icmp_code_range,json=icmpCodeRange,proto3" json:"icmp_code_range,omitempty"` - IcmpTypeRange *ACL_Rule_IpRule_Icmp_Range `protobuf:"bytes,3,opt,name=icmp_type_range,json=icmpTypeRange,proto3" json:"icmp_type_range,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +// IP used in this Access List Entry. +type ACL_Rule_IpRule_Ip struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ACL_Rule_IpRule_Icmp) Reset() { *m = ACL_Rule_IpRule_Icmp{} } -func (m *ACL_Rule_IpRule_Icmp) String() string { return proto.CompactTextString(m) } -func (*ACL_Rule_IpRule_Icmp) ProtoMessage() {} -func (*ACL_Rule_IpRule_Icmp) Descriptor() ([]byte, []int) { - return fileDescriptor_7ad565c8fb2f0c94, []int{0, 0, 0, 1} + // Destination IPv4/IPv6 network address (/) + DestinationNetwork string `protobuf:"bytes,1,opt,name=destination_network,json=destinationNetwork,proto3" json:"destination_network,omitempty"` + // Destination IPv4/IPv6 network address (/) + SourceNetwork string `protobuf:"bytes,2,opt,name=source_network,json=sourceNetwork,proto3" json:"source_network,omitempty"` } -func (m *ACL_Rule_IpRule_Icmp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ACL_Rule_IpRule_Icmp.Unmarshal(m, b) -} -func (m *ACL_Rule_IpRule_Icmp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ACL_Rule_IpRule_Icmp.Marshal(b, m, deterministic) -} -func (m *ACL_Rule_IpRule_Icmp) XXX_Merge(src proto.Message) { - xxx_messageInfo_ACL_Rule_IpRule_Icmp.Merge(m, src) -} -func (m *ACL_Rule_IpRule_Icmp) XXX_Size() int { - return xxx_messageInfo_ACL_Rule_IpRule_Icmp.Size(m) +func (x *ACL_Rule_IpRule_Ip) Reset() { + *x = ACL_Rule_IpRule_Ip{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ACL_Rule_IpRule_Icmp) XXX_DiscardUnknown() { - xxx_messageInfo_ACL_Rule_IpRule_Icmp.DiscardUnknown(m) + +func (x *ACL_Rule_IpRule_Ip) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ACL_Rule_IpRule_Icmp proto.InternalMessageInfo +func (*ACL_Rule_IpRule_Ip) ProtoMessage() {} -func (m *ACL_Rule_IpRule_Icmp) GetIcmpv6() bool { - if m != nil { - return m.Icmpv6 +func (x *ACL_Rule_IpRule_Ip) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return false + return mi.MessageOf(x) } -func (m *ACL_Rule_IpRule_Icmp) GetIcmpCodeRange() *ACL_Rule_IpRule_Icmp_Range { - if m != nil { - return m.IcmpCodeRange - } - return nil +// Deprecated: Use ACL_Rule_IpRule_Ip.ProtoReflect.Descriptor instead. +func (*ACL_Rule_IpRule_Ip) Descriptor() ([]byte, []int) { + return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0, 0, 0} } -func (m *ACL_Rule_IpRule_Icmp) GetIcmpTypeRange() *ACL_Rule_IpRule_Icmp_Range { - if m != nil { - return m.IcmpTypeRange +func (x *ACL_Rule_IpRule_Ip) GetDestinationNetwork() string { + if x != nil { + return x.DestinationNetwork } - return nil + return "" } -type ACL_Rule_IpRule_Icmp_Range struct { - First uint32 `protobuf:"varint,1,opt,name=first,proto3" json:"first,omitempty"` - Last uint32 `protobuf:"varint,2,opt,name=last,proto3" json:"last,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ACL_Rule_IpRule_Ip) GetSourceNetwork() string { + if x != nil { + return x.SourceNetwork + } + return "" } -func (m *ACL_Rule_IpRule_Icmp_Range) Reset() { *m = ACL_Rule_IpRule_Icmp_Range{} } -func (m *ACL_Rule_IpRule_Icmp_Range) String() string { return proto.CompactTextString(m) } -func (*ACL_Rule_IpRule_Icmp_Range) ProtoMessage() {} -func (*ACL_Rule_IpRule_Icmp_Range) Descriptor() ([]byte, []int) { - return fileDescriptor_7ad565c8fb2f0c94, []int{0, 0, 0, 1, 0} -} +type ACL_Rule_IpRule_Icmp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ACL_Rule_IpRule_Icmp_Range) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ACL_Rule_IpRule_Icmp_Range.Unmarshal(m, b) + // ICMPv6 flag, if false ICMPv4 will be used + Icmpv6 bool `protobuf:"varint,1,opt,name=icmpv6,proto3" json:"icmpv6,omitempty"` + // Inclusive range representing icmp codes to be used. + IcmpCodeRange *ACL_Rule_IpRule_Icmp_Range `protobuf:"bytes,2,opt,name=icmp_code_range,json=icmpCodeRange,proto3" json:"icmp_code_range,omitempty"` + IcmpTypeRange *ACL_Rule_IpRule_Icmp_Range `protobuf:"bytes,3,opt,name=icmp_type_range,json=icmpTypeRange,proto3" json:"icmp_type_range,omitempty"` } -func (m *ACL_Rule_IpRule_Icmp_Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ACL_Rule_IpRule_Icmp_Range.Marshal(b, m, deterministic) + +func (x *ACL_Rule_IpRule_Icmp) Reset() { + *x = ACL_Rule_IpRule_Icmp{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ACL_Rule_IpRule_Icmp_Range) XXX_Merge(src proto.Message) { - xxx_messageInfo_ACL_Rule_IpRule_Icmp_Range.Merge(m, src) + +func (x *ACL_Rule_IpRule_Icmp) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ACL_Rule_IpRule_Icmp_Range) XXX_Size() int { - return xxx_messageInfo_ACL_Rule_IpRule_Icmp_Range.Size(m) + +func (*ACL_Rule_IpRule_Icmp) ProtoMessage() {} + +func (x *ACL_Rule_IpRule_Icmp) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ACL_Rule_IpRule_Icmp_Range) XXX_DiscardUnknown() { - xxx_messageInfo_ACL_Rule_IpRule_Icmp_Range.DiscardUnknown(m) + +// Deprecated: Use ACL_Rule_IpRule_Icmp.ProtoReflect.Descriptor instead. +func (*ACL_Rule_IpRule_Icmp) Descriptor() ([]byte, []int) { + return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0, 0, 1} } -var xxx_messageInfo_ACL_Rule_IpRule_Icmp_Range proto.InternalMessageInfo +func (x *ACL_Rule_IpRule_Icmp) GetIcmpv6() bool { + if x != nil { + return x.Icmpv6 + } + return false +} -func (m *ACL_Rule_IpRule_Icmp_Range) GetFirst() uint32 { - if m != nil { - return m.First +func (x *ACL_Rule_IpRule_Icmp) GetIcmpCodeRange() *ACL_Rule_IpRule_Icmp_Range { + if x != nil { + return x.IcmpCodeRange } - return 0 + return nil } -func (m *ACL_Rule_IpRule_Icmp_Range) GetLast() uint32 { - if m != nil { - return m.Last +func (x *ACL_Rule_IpRule_Icmp) GetIcmpTypeRange() *ACL_Rule_IpRule_Icmp_Range { + if x != nil { + return x.IcmpTypeRange } - return 0 + return nil } // Inclusive range representing destination ports to be used. When // only lower-port is present, it represents a single port. type ACL_Rule_IpRule_PortRange struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + LowerPort uint32 `protobuf:"varint,1,opt,name=lower_port,json=lowerPort,proto3" json:"lower_port,omitempty"` // If upper port is set, it must // be greater or equal to lower port - UpperPort uint32 `protobuf:"varint,2,opt,name=upper_port,json=upperPort,proto3" json:"upper_port,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + UpperPort uint32 `protobuf:"varint,2,opt,name=upper_port,json=upperPort,proto3" json:"upper_port,omitempty"` } -func (m *ACL_Rule_IpRule_PortRange) Reset() { *m = ACL_Rule_IpRule_PortRange{} } -func (m *ACL_Rule_IpRule_PortRange) String() string { return proto.CompactTextString(m) } -func (*ACL_Rule_IpRule_PortRange) ProtoMessage() {} -func (*ACL_Rule_IpRule_PortRange) Descriptor() ([]byte, []int) { - return fileDescriptor_7ad565c8fb2f0c94, []int{0, 0, 0, 2} +func (x *ACL_Rule_IpRule_PortRange) Reset() { + *x = ACL_Rule_IpRule_PortRange{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ACL_Rule_IpRule_PortRange) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ACL_Rule_IpRule_PortRange.Unmarshal(m, b) -} -func (m *ACL_Rule_IpRule_PortRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ACL_Rule_IpRule_PortRange.Marshal(b, m, deterministic) +func (x *ACL_Rule_IpRule_PortRange) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ACL_Rule_IpRule_PortRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_ACL_Rule_IpRule_PortRange.Merge(m, src) -} -func (m *ACL_Rule_IpRule_PortRange) XXX_Size() int { - return xxx_messageInfo_ACL_Rule_IpRule_PortRange.Size(m) -} -func (m *ACL_Rule_IpRule_PortRange) XXX_DiscardUnknown() { - xxx_messageInfo_ACL_Rule_IpRule_PortRange.DiscardUnknown(m) + +func (*ACL_Rule_IpRule_PortRange) ProtoMessage() {} + +func (x *ACL_Rule_IpRule_PortRange) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ACL_Rule_IpRule_PortRange proto.InternalMessageInfo +// Deprecated: Use ACL_Rule_IpRule_PortRange.ProtoReflect.Descriptor instead. +func (*ACL_Rule_IpRule_PortRange) Descriptor() ([]byte, []int) { + return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0, 0, 2} +} -func (m *ACL_Rule_IpRule_PortRange) GetLowerPort() uint32 { - if m != nil { - return m.LowerPort +func (x *ACL_Rule_IpRule_PortRange) GetLowerPort() uint32 { + if x != nil { + return x.LowerPort } return 0 } -func (m *ACL_Rule_IpRule_PortRange) GetUpperPort() uint32 { - if m != nil { - return m.UpperPort +func (x *ACL_Rule_IpRule_PortRange) GetUpperPort() uint32 { + if x != nil { + return x.UpperPort } return 0 } type ACL_Rule_IpRule_Tcp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DestinationPortRange *ACL_Rule_IpRule_PortRange `protobuf:"bytes,1,opt,name=destination_port_range,json=destinationPortRange,proto3" json:"destination_port_range,omitempty"` SourcePortRange *ACL_Rule_IpRule_PortRange `protobuf:"bytes,2,opt,name=source_port_range,json=sourcePortRange,proto3" json:"source_port_range,omitempty"` // Binary mask for tcp flags to match. MSB order (FIN at position 0). @@ -447,292 +610,508 @@ type ACL_Rule_IpRule_Tcp struct { // Binary value for tcp flags to match. MSB order (FIN at position 0). // Before tcp-flags-value is compared with tcp flags field of the packet being matched, // tcp-flags-mask is applied to packet field value. - TcpFlagsValue uint32 `protobuf:"varint,4,opt,name=tcp_flags_value,json=tcpFlagsValue,proto3" json:"tcp_flags_value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + TcpFlagsValue uint32 `protobuf:"varint,4,opt,name=tcp_flags_value,json=tcpFlagsValue,proto3" json:"tcp_flags_value,omitempty"` } -func (m *ACL_Rule_IpRule_Tcp) Reset() { *m = ACL_Rule_IpRule_Tcp{} } -func (m *ACL_Rule_IpRule_Tcp) String() string { return proto.CompactTextString(m) } -func (*ACL_Rule_IpRule_Tcp) ProtoMessage() {} -func (*ACL_Rule_IpRule_Tcp) Descriptor() ([]byte, []int) { - return fileDescriptor_7ad565c8fb2f0c94, []int{0, 0, 0, 3} +func (x *ACL_Rule_IpRule_Tcp) Reset() { + *x = ACL_Rule_IpRule_Tcp{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ACL_Rule_IpRule_Tcp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ACL_Rule_IpRule_Tcp.Unmarshal(m, b) -} -func (m *ACL_Rule_IpRule_Tcp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ACL_Rule_IpRule_Tcp.Marshal(b, m, deterministic) +func (x *ACL_Rule_IpRule_Tcp) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ACL_Rule_IpRule_Tcp) XXX_Merge(src proto.Message) { - xxx_messageInfo_ACL_Rule_IpRule_Tcp.Merge(m, src) -} -func (m *ACL_Rule_IpRule_Tcp) XXX_Size() int { - return xxx_messageInfo_ACL_Rule_IpRule_Tcp.Size(m) -} -func (m *ACL_Rule_IpRule_Tcp) XXX_DiscardUnknown() { - xxx_messageInfo_ACL_Rule_IpRule_Tcp.DiscardUnknown(m) + +func (*ACL_Rule_IpRule_Tcp) ProtoMessage() {} + +func (x *ACL_Rule_IpRule_Tcp) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ACL_Rule_IpRule_Tcp proto.InternalMessageInfo +// Deprecated: Use ACL_Rule_IpRule_Tcp.ProtoReflect.Descriptor instead. +func (*ACL_Rule_IpRule_Tcp) Descriptor() ([]byte, []int) { + return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0, 0, 3} +} -func (m *ACL_Rule_IpRule_Tcp) GetDestinationPortRange() *ACL_Rule_IpRule_PortRange { - if m != nil { - return m.DestinationPortRange +func (x *ACL_Rule_IpRule_Tcp) GetDestinationPortRange() *ACL_Rule_IpRule_PortRange { + if x != nil { + return x.DestinationPortRange } return nil } -func (m *ACL_Rule_IpRule_Tcp) GetSourcePortRange() *ACL_Rule_IpRule_PortRange { - if m != nil { - return m.SourcePortRange +func (x *ACL_Rule_IpRule_Tcp) GetSourcePortRange() *ACL_Rule_IpRule_PortRange { + if x != nil { + return x.SourcePortRange } return nil } -func (m *ACL_Rule_IpRule_Tcp) GetTcpFlagsMask() uint32 { - if m != nil { - return m.TcpFlagsMask +func (x *ACL_Rule_IpRule_Tcp) GetTcpFlagsMask() uint32 { + if x != nil { + return x.TcpFlagsMask } return 0 } -func (m *ACL_Rule_IpRule_Tcp) GetTcpFlagsValue() uint32 { - if m != nil { - return m.TcpFlagsValue +func (x *ACL_Rule_IpRule_Tcp) GetTcpFlagsValue() uint32 { + if x != nil { + return x.TcpFlagsValue } return 0 } type ACL_Rule_IpRule_Udp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DestinationPortRange *ACL_Rule_IpRule_PortRange `protobuf:"bytes,1,opt,name=destination_port_range,json=destinationPortRange,proto3" json:"destination_port_range,omitempty"` SourcePortRange *ACL_Rule_IpRule_PortRange `protobuf:"bytes,2,opt,name=source_port_range,json=sourcePortRange,proto3" json:"source_port_range,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *ACL_Rule_IpRule_Udp) Reset() { *m = ACL_Rule_IpRule_Udp{} } -func (m *ACL_Rule_IpRule_Udp) String() string { return proto.CompactTextString(m) } -func (*ACL_Rule_IpRule_Udp) ProtoMessage() {} -func (*ACL_Rule_IpRule_Udp) Descriptor() ([]byte, []int) { - return fileDescriptor_7ad565c8fb2f0c94, []int{0, 0, 0, 4} +func (x *ACL_Rule_IpRule_Udp) Reset() { + *x = ACL_Rule_IpRule_Udp{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ACL_Rule_IpRule_Udp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ACL_Rule_IpRule_Udp.Unmarshal(m, b) -} -func (m *ACL_Rule_IpRule_Udp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ACL_Rule_IpRule_Udp.Marshal(b, m, deterministic) -} -func (m *ACL_Rule_IpRule_Udp) XXX_Merge(src proto.Message) { - xxx_messageInfo_ACL_Rule_IpRule_Udp.Merge(m, src) -} -func (m *ACL_Rule_IpRule_Udp) XXX_Size() int { - return xxx_messageInfo_ACL_Rule_IpRule_Udp.Size(m) -} -func (m *ACL_Rule_IpRule_Udp) XXX_DiscardUnknown() { - xxx_messageInfo_ACL_Rule_IpRule_Udp.DiscardUnknown(m) +func (x *ACL_Rule_IpRule_Udp) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ACL_Rule_IpRule_Udp proto.InternalMessageInfo +func (*ACL_Rule_IpRule_Udp) ProtoMessage() {} -func (m *ACL_Rule_IpRule_Udp) GetDestinationPortRange() *ACL_Rule_IpRule_PortRange { - if m != nil { - return m.DestinationPortRange +func (x *ACL_Rule_IpRule_Udp) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) +} + +// Deprecated: Use ACL_Rule_IpRule_Udp.ProtoReflect.Descriptor instead. +func (*ACL_Rule_IpRule_Udp) Descriptor() ([]byte, []int) { + return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0, 0, 4} } -func (m *ACL_Rule_IpRule_Udp) GetSourcePortRange() *ACL_Rule_IpRule_PortRange { - if m != nil { - return m.SourcePortRange +func (x *ACL_Rule_IpRule_Udp) GetDestinationPortRange() *ACL_Rule_IpRule_PortRange { + if x != nil { + return x.DestinationPortRange } return nil } -type ACL_Rule_MacIpRule struct { - SourceAddress string `protobuf:"bytes,1,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` - SourceAddressPrefix uint32 `protobuf:"varint,2,opt,name=source_address_prefix,json=sourceAddressPrefix,proto3" json:"source_address_prefix,omitempty"` - // Before source-mac-address is compared with source mac address field of the packet - // being matched, source-mac-address-mask is applied to packet field value. - SourceMacAddress string `protobuf:"bytes,3,opt,name=source_mac_address,json=sourceMacAddress,proto3" json:"source_mac_address,omitempty"` - // Source MAC address mask. - // Applied as logical AND with source mac address field of the packet being matched, - // before it is compared with source-mac-address. - SourceMacAddressMask string `protobuf:"bytes,4,opt,name=source_mac_address_mask,json=sourceMacAddressMask,proto3" json:"source_mac_address_mask,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ACL_Rule_IpRule_Udp) GetSourcePortRange() *ACL_Rule_IpRule_PortRange { + if x != nil { + return x.SourcePortRange + } + return nil } -func (m *ACL_Rule_MacIpRule) Reset() { *m = ACL_Rule_MacIpRule{} } -func (m *ACL_Rule_MacIpRule) String() string { return proto.CompactTextString(m) } -func (*ACL_Rule_MacIpRule) ProtoMessage() {} -func (*ACL_Rule_MacIpRule) Descriptor() ([]byte, []int) { - return fileDescriptor_7ad565c8fb2f0c94, []int{0, 0, 1} -} +type ACL_Rule_IpRule_Icmp_Range struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ACL_Rule_MacIpRule) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ACL_Rule_MacIpRule.Unmarshal(m, b) -} -func (m *ACL_Rule_MacIpRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ACL_Rule_MacIpRule.Marshal(b, m, deterministic) -} -func (m *ACL_Rule_MacIpRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_ACL_Rule_MacIpRule.Merge(m, src) -} -func (m *ACL_Rule_MacIpRule) XXX_Size() int { - return xxx_messageInfo_ACL_Rule_MacIpRule.Size(m) -} -func (m *ACL_Rule_MacIpRule) XXX_DiscardUnknown() { - xxx_messageInfo_ACL_Rule_MacIpRule.DiscardUnknown(m) + First uint32 `protobuf:"varint,1,opt,name=first,proto3" json:"first,omitempty"` + Last uint32 `protobuf:"varint,2,opt,name=last,proto3" json:"last,omitempty"` } -var xxx_messageInfo_ACL_Rule_MacIpRule proto.InternalMessageInfo - -func (m *ACL_Rule_MacIpRule) GetSourceAddress() string { - if m != nil { - return m.SourceAddress +func (x *ACL_Rule_IpRule_Icmp_Range) Reset() { + *x = ACL_Rule_IpRule_Icmp_Range{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (m *ACL_Rule_MacIpRule) GetSourceAddressPrefix() uint32 { - if m != nil { - return m.SourceAddressPrefix - } - return 0 +func (x *ACL_Rule_IpRule_Icmp_Range) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ACL_Rule_MacIpRule) GetSourceMacAddress() string { - if m != nil { - return m.SourceMacAddress - } - return "" -} +func (*ACL_Rule_IpRule_Icmp_Range) ProtoMessage() {} -func (m *ACL_Rule_MacIpRule) GetSourceMacAddressMask() string { - if m != nil { - return m.SourceMacAddressMask +func (x *ACL_Rule_IpRule_Icmp_Range) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_acl_acl_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -// The set of interfaces that has assigned this ACL on ingres or egress. -type ACL_Interfaces struct { - Egress []string `protobuf:"bytes,1,rep,name=egress,proto3" json:"egress,omitempty"` - Ingress []string `protobuf:"bytes,2,rep,name=ingress,proto3" json:"ingress,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use ACL_Rule_IpRule_Icmp_Range.ProtoReflect.Descriptor instead. +func (*ACL_Rule_IpRule_Icmp_Range) Descriptor() ([]byte, []int) { + return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0, 0, 1, 0} } -func (m *ACL_Interfaces) Reset() { *m = ACL_Interfaces{} } -func (m *ACL_Interfaces) String() string { return proto.CompactTextString(m) } -func (*ACL_Interfaces) ProtoMessage() {} -func (*ACL_Interfaces) Descriptor() ([]byte, []int) { - return fileDescriptor_7ad565c8fb2f0c94, []int{0, 1} +func (x *ACL_Rule_IpRule_Icmp_Range) GetFirst() uint32 { + if x != nil { + return x.First + } + return 0 } -func (m *ACL_Interfaces) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ACL_Interfaces.Unmarshal(m, b) -} -func (m *ACL_Interfaces) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ACL_Interfaces.Marshal(b, m, deterministic) -} -func (m *ACL_Interfaces) XXX_Merge(src proto.Message) { - xxx_messageInfo_ACL_Interfaces.Merge(m, src) -} -func (m *ACL_Interfaces) XXX_Size() int { - return xxx_messageInfo_ACL_Interfaces.Size(m) -} -func (m *ACL_Interfaces) XXX_DiscardUnknown() { - xxx_messageInfo_ACL_Interfaces.DiscardUnknown(m) +func (x *ACL_Rule_IpRule_Icmp_Range) GetLast() uint32 { + if x != nil { + return x.Last + } + return 0 } -var xxx_messageInfo_ACL_Interfaces proto.InternalMessageInfo +var File_ligato_vpp_acl_acl_proto protoreflect.FileDescriptor + +var file_ligato_vpp_acl_acl_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x61, 0x63, 0x6c, + 0x2f, 0x61, 0x63, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x22, 0xdd, 0x0d, 0x0a, 0x03, 0x41, + 0x43, 0x4c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, + 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x52, + 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x69, 0x67, + 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x1a, 0x91, 0x0c, 0x0a, 0x04, 0x52, 0x75, 0x6c, 0x65, 0x12, + 0x37, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x1f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, + 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x38, 0x0a, 0x07, 0x69, 0x70, 0x5f, 0x72, + 0x75, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, + 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x06, 0x69, 0x70, 0x52, 0x75, + 0x6c, 0x65, 0x12, 0x41, 0x0a, 0x0a, 0x6d, 0x61, 0x63, 0x69, 0x70, 0x5f, 0x72, 0x75, 0x6c, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, + 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, + 0x2e, 0x4d, 0x61, 0x63, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x09, 0x6d, 0x61, 0x63, 0x69, + 0x70, 0x52, 0x75, 0x6c, 0x65, 0x1a, 0xd7, 0x08, 0x0a, 0x06, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, + 0x12, 0x32, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, + 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x70, + 0x52, 0x02, 0x69, 0x70, 0x12, 0x38, 0x0a, 0x04, 0x69, 0x63, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, + 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x70, 0x52, + 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x63, 0x6d, 0x70, 0x52, 0x04, 0x69, 0x63, 0x6d, 0x70, 0x12, 0x35, + 0x0a, 0x03, 0x74, 0x63, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, + 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x54, 0x63, 0x70, + 0x52, 0x03, 0x74, 0x63, 0x70, 0x12, 0x35, 0x0a, 0x03, 0x75, 0x64, 0x70, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, + 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x70, 0x52, + 0x75, 0x6c, 0x65, 0x2e, 0x55, 0x64, 0x70, 0x52, 0x03, 0x75, 0x64, 0x70, 0x1a, 0x5c, 0x0a, 0x02, + 0x49, 0x70, 0x12, 0x2f, 0x0a, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x12, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x1a, 0xf9, 0x01, 0x0a, 0x04, 0x49, + 0x63, 0x6d, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x63, 0x6d, 0x70, 0x76, 0x36, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x63, 0x6d, 0x70, 0x76, 0x36, 0x12, 0x52, 0x0a, 0x0f, 0x69, + 0x63, 0x6d, 0x70, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, + 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x49, + 0x70, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x63, 0x6d, 0x70, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, + 0x52, 0x0d, 0x69, 0x63, 0x6d, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, + 0x52, 0x0a, 0x0f, 0x69, 0x63, 0x6d, 0x70, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x72, 0x61, 0x6e, + 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, + 0x6c, 0x65, 0x2e, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x63, 0x6d, 0x70, 0x2e, 0x52, + 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0d, 0x69, 0x63, 0x6d, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x61, + 0x6e, 0x67, 0x65, 0x1a, 0x31, 0x0a, 0x05, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x66, 0x69, 0x72, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x66, 0x69, 0x72, + 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x61, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x04, 0x6c, 0x61, 0x73, 0x74, 0x1a, 0x49, 0x0a, 0x09, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, + 0x6e, 0x67, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x50, 0x6f, + 0x72, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x70, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x70, 0x70, 0x65, 0x72, 0x50, 0x6f, 0x72, + 0x74, 0x1a, 0x8b, 0x02, 0x0a, 0x03, 0x54, 0x63, 0x70, 0x12, 0x5f, 0x0a, 0x16, 0x64, 0x65, 0x73, + 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x61, + 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, + 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, + 0x61, 0x6e, 0x67, 0x65, 0x52, 0x14, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x55, 0x0a, 0x11, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, + 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x2e, + 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, + 0x52, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, + 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x74, 0x63, 0x70, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x5f, 0x6d, + 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x74, 0x63, 0x70, 0x46, 0x6c, + 0x61, 0x67, 0x73, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x63, 0x70, 0x5f, 0x66, + 0x6c, 0x61, 0x67, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x0d, 0x74, 0x63, 0x70, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, + 0xbd, 0x01, 0x0a, 0x03, 0x55, 0x64, 0x70, 0x12, 0x5f, 0x0a, 0x16, 0x64, 0x65, 0x73, 0x74, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x61, 0x6e, 0x67, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, 0x6c, + 0x65, 0x2e, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, + 0x67, 0x65, 0x52, 0x14, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, + 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x55, 0x0a, 0x11, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, + 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x70, + 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0f, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x1a, + 0xcb, 0x01, 0x0a, 0x09, 0x4d, 0x61, 0x63, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x25, 0x0a, + 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x13, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x6d, 0x61, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x61, 0x63, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x35, 0x0a, 0x17, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x6d, 0x61, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x6d, 0x61, 0x73, + 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, + 0x61, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x2b, 0x0a, + 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x45, 0x4e, 0x59, 0x10, + 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x54, 0x10, 0x01, 0x12, 0x0b, 0x0a, + 0x07, 0x52, 0x45, 0x46, 0x4c, 0x45, 0x43, 0x54, 0x10, 0x02, 0x1a, 0x3e, 0x0a, 0x0a, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x67, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, + 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x07, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x6f, + 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x61, 0x63, 0x6c, 0x3b, 0x76, 0x70, 0x70, + 0x5f, 0x61, 0x63, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_acl_acl_proto_rawDescOnce sync.Once + file_ligato_vpp_acl_acl_proto_rawDescData = file_ligato_vpp_acl_acl_proto_rawDesc +) -func (m *ACL_Interfaces) GetEgress() []string { - if m != nil { - return m.Egress +func file_ligato_vpp_acl_acl_proto_rawDescGZIP() []byte { + file_ligato_vpp_acl_acl_proto_rawDescOnce.Do(func() { + file_ligato_vpp_acl_acl_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_acl_acl_proto_rawDescData) + }) + return file_ligato_vpp_acl_acl_proto_rawDescData +} + +var file_ligato_vpp_acl_acl_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_ligato_vpp_acl_acl_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_ligato_vpp_acl_acl_proto_goTypes = []interface{}{ + (ACL_Rule_Action)(0), // 0: ligato.vpp.acl.ACL.Rule.Action + (*ACL)(nil), // 1: ligato.vpp.acl.ACL + (*ACL_Rule)(nil), // 2: ligato.vpp.acl.ACL.Rule + (*ACL_Interfaces)(nil), // 3: ligato.vpp.acl.ACL.Interfaces + (*ACL_Rule_IpRule)(nil), // 4: ligato.vpp.acl.ACL.Rule.IpRule + (*ACL_Rule_MacIpRule)(nil), // 5: ligato.vpp.acl.ACL.Rule.MacIpRule + (*ACL_Rule_IpRule_Ip)(nil), // 6: ligato.vpp.acl.ACL.Rule.IpRule.Ip + (*ACL_Rule_IpRule_Icmp)(nil), // 7: ligato.vpp.acl.ACL.Rule.IpRule.Icmp + (*ACL_Rule_IpRule_PortRange)(nil), // 8: ligato.vpp.acl.ACL.Rule.IpRule.PortRange + (*ACL_Rule_IpRule_Tcp)(nil), // 9: ligato.vpp.acl.ACL.Rule.IpRule.Tcp + (*ACL_Rule_IpRule_Udp)(nil), // 10: ligato.vpp.acl.ACL.Rule.IpRule.Udp + (*ACL_Rule_IpRule_Icmp_Range)(nil), // 11: ligato.vpp.acl.ACL.Rule.IpRule.Icmp.Range +} +var file_ligato_vpp_acl_acl_proto_depIdxs = []int32{ + 2, // 0: ligato.vpp.acl.ACL.rules:type_name -> ligato.vpp.acl.ACL.Rule + 3, // 1: ligato.vpp.acl.ACL.interfaces:type_name -> ligato.vpp.acl.ACL.Interfaces + 0, // 2: ligato.vpp.acl.ACL.Rule.action:type_name -> ligato.vpp.acl.ACL.Rule.Action + 4, // 3: ligato.vpp.acl.ACL.Rule.ip_rule:type_name -> ligato.vpp.acl.ACL.Rule.IpRule + 5, // 4: ligato.vpp.acl.ACL.Rule.macip_rule:type_name -> ligato.vpp.acl.ACL.Rule.MacIpRule + 6, // 5: ligato.vpp.acl.ACL.Rule.IpRule.ip:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.Ip + 7, // 6: ligato.vpp.acl.ACL.Rule.IpRule.icmp:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.Icmp + 9, // 7: ligato.vpp.acl.ACL.Rule.IpRule.tcp:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.Tcp + 10, // 8: ligato.vpp.acl.ACL.Rule.IpRule.udp:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.Udp + 11, // 9: ligato.vpp.acl.ACL.Rule.IpRule.Icmp.icmp_code_range:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.Icmp.Range + 11, // 10: ligato.vpp.acl.ACL.Rule.IpRule.Icmp.icmp_type_range:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.Icmp.Range + 8, // 11: ligato.vpp.acl.ACL.Rule.IpRule.Tcp.destination_port_range:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.PortRange + 8, // 12: ligato.vpp.acl.ACL.Rule.IpRule.Tcp.source_port_range:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.PortRange + 8, // 13: ligato.vpp.acl.ACL.Rule.IpRule.Udp.destination_port_range:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.PortRange + 8, // 14: ligato.vpp.acl.ACL.Rule.IpRule.Udp.source_port_range:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.PortRange + 15, // [15:15] is the sub-list for method output_type + 15, // [15:15] is the sub-list for method input_type + 15, // [15:15] is the sub-list for extension type_name + 15, // [15:15] is the sub-list for extension extendee + 0, // [0:15] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_acl_acl_proto_init() } +func file_ligato_vpp_acl_acl_proto_init() { + if File_ligato_vpp_acl_acl_proto != nil { + return } - return nil -} - -func (m *ACL_Interfaces) GetIngress() []string { - if m != nil { - return m.Ingress + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_acl_acl_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ACL); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_acl_acl_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ACL_Rule); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_acl_acl_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ACL_Interfaces); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_acl_acl_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ACL_Rule_IpRule); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_acl_acl_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ACL_Rule_MacIpRule); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_acl_acl_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ACL_Rule_IpRule_Ip); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_acl_acl_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ACL_Rule_IpRule_Icmp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_acl_acl_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ACL_Rule_IpRule_PortRange); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_acl_acl_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ACL_Rule_IpRule_Tcp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_acl_acl_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ACL_Rule_IpRule_Udp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_acl_acl_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ACL_Rule_IpRule_Icmp_Range); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - return nil -} - -func init() { - proto.RegisterEnum("ligato.vpp.acl.ACL_Rule_Action", ACL_Rule_Action_name, ACL_Rule_Action_value) - proto.RegisterType((*ACL)(nil), "ligato.vpp.acl.ACL") - proto.RegisterType((*ACL_Rule)(nil), "ligato.vpp.acl.ACL.Rule") - proto.RegisterType((*ACL_Rule_IpRule)(nil), "ligato.vpp.acl.ACL.Rule.IpRule") - proto.RegisterType((*ACL_Rule_IpRule_Ip)(nil), "ligato.vpp.acl.ACL.Rule.IpRule.Ip") - proto.RegisterType((*ACL_Rule_IpRule_Icmp)(nil), "ligato.vpp.acl.ACL.Rule.IpRule.Icmp") - proto.RegisterType((*ACL_Rule_IpRule_Icmp_Range)(nil), "ligato.vpp.acl.ACL.Rule.IpRule.Icmp.Range") - proto.RegisterType((*ACL_Rule_IpRule_PortRange)(nil), "ligato.vpp.acl.ACL.Rule.IpRule.PortRange") - proto.RegisterType((*ACL_Rule_IpRule_Tcp)(nil), "ligato.vpp.acl.ACL.Rule.IpRule.Tcp") - proto.RegisterType((*ACL_Rule_IpRule_Udp)(nil), "ligato.vpp.acl.ACL.Rule.IpRule.Udp") - proto.RegisterType((*ACL_Rule_MacIpRule)(nil), "ligato.vpp.acl.ACL.Rule.MacIpRule") - proto.RegisterType((*ACL_Interfaces)(nil), "ligato.vpp.acl.ACL.Interfaces") -} - -func init() { proto.RegisterFile("ligato/vpp/acl/acl.proto", fileDescriptor_7ad565c8fb2f0c94) } - -var fileDescriptor_7ad565c8fb2f0c94 = []byte{ - // 747 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x55, 0xdb, 0x6a, 0x13, 0x4f, - 0x18, 0xff, 0x67, 0x37, 0x4d, 0x9b, 0xaf, 0xdd, 0x34, 0xff, 0x69, 0xad, 0xcb, 0x82, 0x5a, 0x6a, - 0x95, 0x78, 0xda, 0x60, 0x4a, 0x6b, 0x41, 0x28, 0xc4, 0x98, 0x42, 0xa0, 0x29, 0x65, 0x48, 0x05, - 0x45, 0x58, 0xc6, 0xd9, 0x49, 0x58, 0xba, 0xd9, 0x1d, 0x76, 0x37, 0xa9, 0x7d, 0x06, 0xaf, 0x7c, - 0x20, 0x9f, 0xc0, 0x07, 0xf0, 0xca, 0x07, 0xf1, 0x4e, 0xe6, 0xb0, 0x39, 0xa8, 0xb5, 0xd5, 0x3b, - 0x2f, 0x42, 0x66, 0xbe, 0xdf, 0x61, 0xbf, 0x6f, 0xbe, 0x39, 0x80, 0x1d, 0x06, 0x03, 0x92, 0xc5, - 0xf5, 0x31, 0xe7, 0x75, 0x42, 0x43, 0xf1, 0x73, 0x79, 0x12, 0x67, 0x31, 0xaa, 0x28, 0xc4, 0x1d, - 0x73, 0xee, 0x12, 0x1a, 0x6e, 0x7d, 0xb5, 0xc0, 0x6c, 0xb6, 0x8e, 0x10, 0x82, 0x62, 0x44, 0x86, - 0xcc, 0x2e, 0x6c, 0x16, 0x6a, 0x65, 0x2c, 0xc7, 0xc8, 0x85, 0x85, 0x64, 0x14, 0xb2, 0xd4, 0x36, - 0x36, 0xcd, 0xda, 0x72, 0xc3, 0x76, 0xe7, 0xb5, 0x6e, 0xb3, 0x75, 0xe4, 0xe2, 0x51, 0xc8, 0xb0, - 0xa2, 0xa1, 0x03, 0x80, 0x20, 0xca, 0x58, 0xd2, 0x27, 0x94, 0xa5, 0xb6, 0xb9, 0x59, 0xa8, 0x2d, - 0x37, 0x6e, 0xff, 0x4a, 0xd4, 0x99, 0xb0, 0xf0, 0x8c, 0xc2, 0xf9, 0xb8, 0x02, 0x45, 0xe1, 0x87, - 0x9e, 0x41, 0x89, 0xd0, 0x2c, 0x88, 0x23, 0x99, 0x4e, 0xa5, 0x71, 0xe7, 0xb2, 0x2f, 0xbb, 0x4d, - 0x49, 0xc3, 0x9a, 0x8e, 0xf6, 0x61, 0x31, 0xe0, 0x9e, 0xc8, 0xc6, 0x36, 0xe4, 0xe7, 0x2f, 0x57, - 0x76, 0xb8, 0x4c, 0xbd, 0x14, 0xc8, 0x7f, 0xd4, 0x04, 0x18, 0x12, 0x9a, 0x8b, 0x55, 0xee, 0x5b, - 0x97, 0x8a, 0xbb, 0x84, 0x6a, 0x7d, 0x59, 0xaa, 0xc4, 0xd0, 0xf9, 0xb2, 0x04, 0x25, 0x15, 0x45, - 0x0d, 0x30, 0x02, 0x2e, 0x93, 0xff, 0x9d, 0x8b, 0x22, 0x8b, 0x3f, 0x23, 0xe0, 0x68, 0x1f, 0x8a, - 0x01, 0x1d, 0x72, 0x9d, 0xf8, 0xf6, 0x95, 0x2a, 0x3a, 0xe4, 0x58, 0x2a, 0xd0, 0x2e, 0x98, 0x19, - 0xe5, 0x3a, 0xe9, 0xbb, 0x57, 0x09, 0x7b, 0x94, 0x63, 0xc1, 0x17, 0xb2, 0x91, 0xcf, 0xed, 0xe2, - 0xf5, 0x64, 0xa7, 0x3e, 0xc7, 0x82, 0xef, 0xbc, 0x05, 0xa3, 0xc3, 0x51, 0x1d, 0xd6, 0x7c, 0x96, - 0x66, 0x41, 0x44, 0xc4, 0xc2, 0x7b, 0x11, 0xcb, 0xce, 0xe3, 0xe4, 0x4c, 0x6f, 0x1f, 0x34, 0x03, - 0x1d, 0x2b, 0x04, 0xdd, 0x83, 0x4a, 0x1a, 0x8f, 0x12, 0xca, 0x26, 0x5c, 0x43, 0x72, 0x2d, 0x15, - 0xd5, 0x34, 0xe7, 0x5b, 0x01, 0x8a, 0xa2, 0x34, 0xb4, 0x01, 0x25, 0x51, 0xdc, 0x78, 0x4f, 0x7a, - 0x2e, 0x61, 0x3d, 0x43, 0x18, 0x56, 0xc5, 0xc8, 0xa3, 0xb1, 0xcf, 0xbc, 0x84, 0x44, 0x83, 0xbc, - 0xd5, 0x0f, 0xaf, 0xb3, 0x62, 0x2e, 0x16, 0x0a, 0x6c, 0x09, 0x8b, 0x56, 0xec, 0x33, 0x39, 0x9d, - 0x78, 0x66, 0x17, 0x3c, 0xf7, 0x34, 0xff, 0xce, 0xb3, 0x77, 0xc1, 0x95, 0xa7, 0xf3, 0x14, 0x16, - 0x94, 0xf9, 0x3a, 0x2c, 0xf4, 0x83, 0x24, 0xcd, 0x64, 0x1d, 0x16, 0x56, 0x13, 0x71, 0xde, 0x42, - 0x92, 0x66, 0x32, 0x77, 0x0b, 0xcb, 0xb1, 0xd3, 0x81, 0xf2, 0x49, 0x9c, 0x64, 0x4a, 0x76, 0x0b, - 0x20, 0x8c, 0xcf, 0x59, 0xe2, 0xf1, 0x38, 0xc9, 0xb5, 0x65, 0x19, 0x11, 0x1c, 0x01, 0x8f, 0x38, - 0xcf, 0x61, 0xe5, 0x52, 0x96, 0x11, 0x01, 0x3b, 0x1f, 0x0c, 0x30, 0x7b, 0x94, 0x23, 0x0f, 0x36, - 0x66, 0xdb, 0x24, 0xc8, 0xba, 0x40, 0xb5, 0x39, 0x1f, 0x5c, 0x55, 0xe0, 0x24, 0x21, 0xbc, 0x3e, - 0x63, 0x34, 0x4d, 0xf3, 0x14, 0xfe, 0xd7, 0x6d, 0x9d, 0xf1, 0x36, 0xfe, 0xd4, 0x7b, 0x55, 0x79, - 0x4c, 0x6d, 0xb7, 0xa1, 0x92, 0x51, 0xee, 0xf5, 0x43, 0x32, 0x48, 0xbd, 0x21, 0x49, 0xcf, 0x64, - 0x43, 0x2c, 0xbc, 0x92, 0x51, 0x7e, 0x28, 0x82, 0x5d, 0x92, 0x9e, 0xa1, 0xfb, 0xb0, 0x3a, 0x65, - 0x8d, 0x49, 0x38, 0x62, 0x72, 0x37, 0x5b, 0xd8, 0xca, 0x69, 0xaf, 0x44, 0xd0, 0xf9, 0x54, 0x00, - 0xf3, 0xd4, 0xff, 0x67, 0x57, 0xc3, 0xf9, 0x5c, 0x80, 0xf2, 0xe4, 0xca, 0x99, 0x39, 0x49, 0xc4, - 0xf7, 0x13, 0x96, 0xa6, 0xfa, 0xd4, 0xe9, 0x93, 0xd4, 0x54, 0x41, 0xd4, 0x80, 0x1b, 0xf3, 0x34, - 0x8f, 0x27, 0xac, 0x1f, 0xbc, 0xd7, 0x9b, 0x65, 0x6d, 0x8e, 0x7d, 0x22, 0x21, 0xf4, 0x18, 0x90, - 0xd6, 0x0c, 0x09, 0x9d, 0xd8, 0x9b, 0xd2, 0xbe, 0xaa, 0x90, 0x2e, 0xa1, 0xf9, 0x17, 0x76, 0xe1, - 0xe6, 0xcf, 0x6c, 0xd5, 0xad, 0xa2, 0x94, 0xac, 0xff, 0x28, 0x11, 0x5d, 0xdb, 0x7a, 0x04, 0x25, - 0x75, 0x6d, 0xa3, 0x25, 0x28, 0xbe, 0x6c, 0x1f, 0xbf, 0xae, 0xfe, 0x87, 0x00, 0x4a, 0x27, 0x6d, - 0xdc, 0xed, 0xf4, 0xaa, 0x05, 0xb4, 0x0c, 0x8b, 0xb8, 0x7d, 0x78, 0xd4, 0x6e, 0xf5, 0xaa, 0x86, - 0x73, 0x00, 0x30, 0x7d, 0x2d, 0xc4, 0xa5, 0xc0, 0x06, 0xba, 0x64, 0xb3, 0x56, 0xc6, 0x7a, 0x86, - 0x6c, 0x58, 0x0c, 0x22, 0x05, 0x18, 0x12, 0xc8, 0xa7, 0x2f, 0xf6, 0xdf, 0xec, 0x0d, 0xe2, 0x7c, - 0xe9, 0x03, 0xf9, 0x22, 0x3e, 0x21, 0x03, 0x16, 0x65, 0xf5, 0xf1, 0x4e, 0x5d, 0x3e, 0x89, 0xf5, - 0xf9, 0xb7, 0xf2, 0xf9, 0x98, 0x73, 0x8f, 0xd0, 0xf0, 0x5d, 0x49, 0xa2, 0x3b, 0xdf, 0x03, 0x00, - 0x00, 0xff, 0xff, 0xa7, 0x91, 0x19, 0x43, 0x4c, 0x07, 0x00, 0x00, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_acl_acl_proto_rawDesc, + NumEnums: 1, + NumMessages: 11, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_acl_acl_proto_goTypes, + DependencyIndexes: file_ligato_vpp_acl_acl_proto_depIdxs, + EnumInfos: file_ligato_vpp_acl_acl_proto_enumTypes, + MessageInfos: file_ligato_vpp_acl_acl_proto_msgTypes, + }.Build() + File_ligato_vpp_acl_acl_proto = out.File + file_ligato_vpp_acl_acl_proto_rawDesc = nil + file_ligato_vpp_acl_acl_proto_goTypes = nil + file_ligato_vpp_acl_acl_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/interfaces/dhcp.pb.go b/proto/ligato/vpp/interfaces/dhcp.pb.go index 6edec2afee..5515987aa3 100644 --- a/proto/ligato/vpp/interfaces/dhcp.pb.go +++ b/proto/ligato/vpp/interfaces/dhcp.pb.go @@ -1,127 +1,206 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/interfaces/dhcp.proto package vpp_interfaces import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 // DHCPLease is a notification, i.e. flows from SB upwards type DHCPLease struct { - InterfaceName string `protobuf:"bytes,1,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"` - HostName string `protobuf:"bytes,2,opt,name=host_name,json=hostName,proto3" json:"host_name,omitempty"` - IsIpv6 bool `protobuf:"varint,3,opt,name=is_ipv6,json=isIpv6,proto3" json:"is_ipv6,omitempty"` - HostPhysAddress string `protobuf:"bytes,4,opt,name=host_phys_address,json=hostPhysAddress,proto3" json:"host_phys_address,omitempty"` - HostIpAddress string `protobuf:"bytes,5,opt,name=host_ip_address,json=hostIpAddress,proto3" json:"host_ip_address,omitempty"` - RouterIpAddress string `protobuf:"bytes,6,opt,name=router_ip_address,json=routerIpAddress,proto3" json:"router_ip_address,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DHCPLease) Reset() { *m = DHCPLease{} } -func (m *DHCPLease) String() string { return proto.CompactTextString(m) } -func (*DHCPLease) ProtoMessage() {} -func (*DHCPLease) Descriptor() ([]byte, []int) { - return fileDescriptor_3ad2cb57ecd179e8, []int{0} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + InterfaceName string `protobuf:"bytes,1,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"` + HostName string `protobuf:"bytes,2,opt,name=host_name,json=hostName,proto3" json:"host_name,omitempty"` + IsIpv6 bool `protobuf:"varint,3,opt,name=is_ipv6,json=isIpv6,proto3" json:"is_ipv6,omitempty"` + HostPhysAddress string `protobuf:"bytes,4,opt,name=host_phys_address,json=hostPhysAddress,proto3" json:"host_phys_address,omitempty"` + HostIpAddress string `protobuf:"bytes,5,opt,name=host_ip_address,json=hostIpAddress,proto3" json:"host_ip_address,omitempty"` // IP addresses in the format / + RouterIpAddress string `protobuf:"bytes,6,opt,name=router_ip_address,json=routerIpAddress,proto3" json:"router_ip_address,omitempty"` // IP addresses in the format / } -func (m *DHCPLease) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DHCPLease.Unmarshal(m, b) -} -func (m *DHCPLease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DHCPLease.Marshal(b, m, deterministic) -} -func (m *DHCPLease) XXX_Merge(src proto.Message) { - xxx_messageInfo_DHCPLease.Merge(m, src) +func (x *DHCPLease) Reset() { + *x = DHCPLease{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_dhcp_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DHCPLease) XXX_Size() int { - return xxx_messageInfo_DHCPLease.Size(m) + +func (x *DHCPLease) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DHCPLease) XXX_DiscardUnknown() { - xxx_messageInfo_DHCPLease.DiscardUnknown(m) + +func (*DHCPLease) ProtoMessage() {} + +func (x *DHCPLease) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_dhcp_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DHCPLease proto.InternalMessageInfo +// Deprecated: Use DHCPLease.ProtoReflect.Descriptor instead. +func (*DHCPLease) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_dhcp_proto_rawDescGZIP(), []int{0} +} -func (m *DHCPLease) GetInterfaceName() string { - if m != nil { - return m.InterfaceName +func (x *DHCPLease) GetInterfaceName() string { + if x != nil { + return x.InterfaceName } return "" } -func (m *DHCPLease) GetHostName() string { - if m != nil { - return m.HostName +func (x *DHCPLease) GetHostName() string { + if x != nil { + return x.HostName } return "" } -func (m *DHCPLease) GetIsIpv6() bool { - if m != nil { - return m.IsIpv6 +func (x *DHCPLease) GetIsIpv6() bool { + if x != nil { + return x.IsIpv6 } return false } -func (m *DHCPLease) GetHostPhysAddress() string { - if m != nil { - return m.HostPhysAddress +func (x *DHCPLease) GetHostPhysAddress() string { + if x != nil { + return x.HostPhysAddress } return "" } -func (m *DHCPLease) GetHostIpAddress() string { - if m != nil { - return m.HostIpAddress +func (x *DHCPLease) GetHostIpAddress() string { + if x != nil { + return x.HostIpAddress } return "" } -func (m *DHCPLease) GetRouterIpAddress() string { - if m != nil { - return m.RouterIpAddress +func (x *DHCPLease) GetRouterIpAddress() string { + if x != nil { + return x.RouterIpAddress } return "" } -func init() { - proto.RegisterType((*DHCPLease)(nil), "ligato.vpp.interfaces.DHCPLease") -} - -func init() { proto.RegisterFile("ligato/vpp/interfaces/dhcp.proto", fileDescriptor_3ad2cb57ecd179e8) } - -var fileDescriptor_3ad2cb57ecd179e8 = []byte{ - // 255 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x4f, 0x4b, 0xc3, 0x30, - 0x18, 0xc6, 0xa9, 0x7f, 0xea, 0x1a, 0x50, 0x59, 0x40, 0x2c, 0x78, 0x29, 0x82, 0x32, 0x06, 0x36, - 0x87, 0xc1, 0x2e, 0x9e, 0xd4, 0x21, 0x0e, 0x44, 0xc6, 0x8e, 0x5e, 0x42, 0x5c, 0x5f, 0xdb, 0x80, - 0x6b, 0x5e, 0xf2, 0xc6, 0xc0, 0xbe, 0xb1, 0x1f, 0x43, 0x9a, 0x68, 0xeb, 0xc1, 0x63, 0x7e, 0xcf, - 0xef, 0x09, 0x2f, 0x0f, 0x2b, 0x3e, 0x74, 0xad, 0x9c, 0x11, 0x1e, 0x51, 0xe8, 0xd6, 0x81, 0x7d, - 0x57, 0x1b, 0x20, 0x51, 0x35, 0x1b, 0x2c, 0xd1, 0x1a, 0x67, 0xf8, 0x59, 0x34, 0x4a, 0x8f, 0x58, - 0x0e, 0xc6, 0xe5, 0x57, 0xc2, 0xb2, 0xc5, 0xd3, 0xc3, 0xea, 0x19, 0x14, 0x01, 0xbf, 0x62, 0x27, - 0x7d, 0x26, 0x5b, 0xb5, 0x85, 0x3c, 0x29, 0x92, 0x49, 0xb6, 0x3e, 0xee, 0xe9, 0x8b, 0xda, 0x02, - 0xbf, 0x60, 0x59, 0x63, 0xc8, 0x45, 0x63, 0x2f, 0x18, 0xa3, 0x0e, 0x84, 0xf0, 0x9c, 0x1d, 0x69, - 0x92, 0x1a, 0xfd, 0x3c, 0xdf, 0x2f, 0x92, 0xc9, 0x68, 0x9d, 0x6a, 0x5a, 0xa2, 0x9f, 0xf3, 0x29, - 0x1b, 0x87, 0x16, 0x36, 0x3b, 0x92, 0xaa, 0xaa, 0x2c, 0x10, 0xe5, 0x07, 0xa1, 0x7d, 0xda, 0x05, - 0xab, 0x66, 0x47, 0x77, 0x11, 0xf3, 0x6b, 0x16, 0x90, 0xd4, 0xd8, 0x9b, 0x87, 0xf1, 0x92, 0x0e, - 0x2f, 0xf1, 0xd7, 0x9b, 0xb2, 0xb1, 0x35, 0x9f, 0x0e, 0xec, 0x5f, 0x33, 0x8d, 0x7f, 0xc6, 0xa0, - 0x77, 0xef, 0x1f, 0x5f, 0x17, 0xb5, 0x29, 0x7f, 0x66, 0xd0, 0x61, 0xab, 0x1b, 0x55, 0x43, 0xeb, - 0x84, 0x9f, 0x89, 0x30, 0x92, 0xf8, 0x77, 0xc5, 0x5b, 0x8f, 0x28, 0x87, 0xe7, 0x5b, 0x1a, 0xdc, - 0xd9, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2e, 0x5a, 0x97, 0x9c, 0x74, 0x01, 0x00, 0x00, +var File_ligato_vpp_interfaces_dhcp_proto protoreflect.FileDescriptor + +var file_ligato_vpp_interfaces_dhcp_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x64, 0x68, 0x63, 0x70, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x22, 0xe8, 0x01, 0x0a, 0x09, 0x44, 0x48, + 0x43, 0x50, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x66, 0x61, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, + 0x0a, 0x09, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x69, + 0x73, 0x5f, 0x69, 0x70, 0x76, 0x36, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, + 0x49, 0x70, 0x76, 0x36, 0x12, 0x2a, 0x0a, 0x11, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x70, 0x68, 0x79, + 0x73, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0f, 0x68, 0x6f, 0x73, 0x74, 0x50, 0x68, 0x79, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x12, 0x26, 0x0a, 0x0f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x68, 0x6f, 0x73, 0x74, 0x49, + 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x6f, 0x75, 0x74, + 0x65, 0x72, 0x5f, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x49, 0x70, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x42, 0x46, 0x5a, 0x44, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, + 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, + 0x70, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x3b, 0x76, 0x70, + 0x70, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_interfaces_dhcp_proto_rawDescOnce sync.Once + file_ligato_vpp_interfaces_dhcp_proto_rawDescData = file_ligato_vpp_interfaces_dhcp_proto_rawDesc +) + +func file_ligato_vpp_interfaces_dhcp_proto_rawDescGZIP() []byte { + file_ligato_vpp_interfaces_dhcp_proto_rawDescOnce.Do(func() { + file_ligato_vpp_interfaces_dhcp_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_interfaces_dhcp_proto_rawDescData) + }) + return file_ligato_vpp_interfaces_dhcp_proto_rawDescData +} + +var file_ligato_vpp_interfaces_dhcp_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_ligato_vpp_interfaces_dhcp_proto_goTypes = []interface{}{ + (*DHCPLease)(nil), // 0: ligato.vpp.interfaces.DHCPLease +} +var file_ligato_vpp_interfaces_dhcp_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_interfaces_dhcp_proto_init() } +func file_ligato_vpp_interfaces_dhcp_proto_init() { + if File_ligato_vpp_interfaces_dhcp_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_interfaces_dhcp_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DHCPLease); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_interfaces_dhcp_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_interfaces_dhcp_proto_goTypes, + DependencyIndexes: file_ligato_vpp_interfaces_dhcp_proto_depIdxs, + MessageInfos: file_ligato_vpp_interfaces_dhcp_proto_msgTypes, + }.Build() + File_ligato_vpp_interfaces_dhcp_proto = out.File + file_ligato_vpp_interfaces_dhcp_proto_rawDesc = nil + file_ligato_vpp_interfaces_dhcp_proto_goTypes = nil + file_ligato_vpp_interfaces_dhcp_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/interfaces/interface.pb.go b/proto/ligato/vpp/interfaces/interface.pb.go index e1cd4a7955..37df443fda 100644 --- a/proto/ligato/vpp/interfaces/interface.pb.go +++ b/proto/ligato/vpp/interfaces/interface.pb.go @@ -1,25 +1,30 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/interfaces/interface.proto package vpp_interfaces import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" ipsec "go.ligato.io/vpp-agent/v3/proto/ligato/vpp/ipsec" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 // Type defines VPP interface types. type Interface_Type int32 @@ -33,7 +38,8 @@ const ( Interface_TAP Interface_Type = 5 Interface_AF_PACKET Interface_Type = 6 Interface_VXLAN_TUNNEL Interface_Type = 7 - Interface_IPSEC_TUNNEL Interface_Type = 8 // Deprecated: Do not use. + // Deprecated: Do not use. + Interface_IPSEC_TUNNEL Interface_Type = 8 // Deprecated in VPP 20.01+. Use IPIP_TUNNEL + ipsec.TunnelProtection instead. Interface_VMXNET3_INTERFACE Interface_Type = 9 Interface_BOND_INTERFACE Interface_Type = 10 Interface_GRE_TUNNEL Interface_Type = 11 @@ -41,46 +47,67 @@ const ( Interface_IPIP_TUNNEL Interface_Type = 13 ) -var Interface_Type_name = map[int32]string{ - 0: "UNDEFINED_TYPE", - 1: "SUB_INTERFACE", - 2: "SOFTWARE_LOOPBACK", - 3: "DPDK", - 4: "MEMIF", - 5: "TAP", - 6: "AF_PACKET", - 7: "VXLAN_TUNNEL", - 8: "IPSEC_TUNNEL", - 9: "VMXNET3_INTERFACE", - 10: "BOND_INTERFACE", - 11: "GRE_TUNNEL", - 12: "GTPU_TUNNEL", - 13: "IPIP_TUNNEL", -} - -var Interface_Type_value = map[string]int32{ - "UNDEFINED_TYPE": 0, - "SUB_INTERFACE": 1, - "SOFTWARE_LOOPBACK": 2, - "DPDK": 3, - "MEMIF": 4, - "TAP": 5, - "AF_PACKET": 6, - "VXLAN_TUNNEL": 7, - "IPSEC_TUNNEL": 8, - "VMXNET3_INTERFACE": 9, - "BOND_INTERFACE": 10, - "GRE_TUNNEL": 11, - "GTPU_TUNNEL": 12, - "IPIP_TUNNEL": 13, +// Enum value maps for Interface_Type. +var ( + Interface_Type_name = map[int32]string{ + 0: "UNDEFINED_TYPE", + 1: "SUB_INTERFACE", + 2: "SOFTWARE_LOOPBACK", + 3: "DPDK", + 4: "MEMIF", + 5: "TAP", + 6: "AF_PACKET", + 7: "VXLAN_TUNNEL", + 8: "IPSEC_TUNNEL", + 9: "VMXNET3_INTERFACE", + 10: "BOND_INTERFACE", + 11: "GRE_TUNNEL", + 12: "GTPU_TUNNEL", + 13: "IPIP_TUNNEL", + } + Interface_Type_value = map[string]int32{ + "UNDEFINED_TYPE": 0, + "SUB_INTERFACE": 1, + "SOFTWARE_LOOPBACK": 2, + "DPDK": 3, + "MEMIF": 4, + "TAP": 5, + "AF_PACKET": 6, + "VXLAN_TUNNEL": 7, + "IPSEC_TUNNEL": 8, + "VMXNET3_INTERFACE": 9, + "BOND_INTERFACE": 10, + "GRE_TUNNEL": 11, + "GTPU_TUNNEL": 12, + "IPIP_TUNNEL": 13, + } +) + +func (x Interface_Type) Enum() *Interface_Type { + p := new(Interface_Type) + *p = x + return p } func (x Interface_Type) String() string { - return proto.EnumName(Interface_Type_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Interface_Type) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_interfaces_interface_proto_enumTypes[0].Descriptor() +} + +func (Interface_Type) Type() protoreflect.EnumType { + return &file_ligato_vpp_interfaces_interface_proto_enumTypes[0] +} + +func (x Interface_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use Interface_Type.Descriptor instead. func (Interface_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{0, 0} + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{0, 0} } // Type definition is from: vpp/include/vnet/interface.h @@ -94,28 +121,49 @@ const ( Interface_RxMode_DEFAULT Interface_RxMode_Type = 4 ) -var Interface_RxMode_Type_name = map[int32]string{ - 0: "UNKNOWN", - 1: "POLLING", - 2: "INTERRUPT", - 3: "ADAPTIVE", - 4: "DEFAULT", -} +// Enum value maps for Interface_RxMode_Type. +var ( + Interface_RxMode_Type_name = map[int32]string{ + 0: "UNKNOWN", + 1: "POLLING", + 2: "INTERRUPT", + 3: "ADAPTIVE", + 4: "DEFAULT", + } + Interface_RxMode_Type_value = map[string]int32{ + "UNKNOWN": 0, + "POLLING": 1, + "INTERRUPT": 2, + "ADAPTIVE": 3, + "DEFAULT": 4, + } +) -var Interface_RxMode_Type_value = map[string]int32{ - "UNKNOWN": 0, - "POLLING": 1, - "INTERRUPT": 2, - "ADAPTIVE": 3, - "DEFAULT": 4, +func (x Interface_RxMode_Type) Enum() *Interface_RxMode_Type { + p := new(Interface_RxMode_Type) + *p = x + return p } func (x Interface_RxMode_Type) String() string { - return proto.EnumName(Interface_RxMode_Type_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Interface_RxMode_Type) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_interfaces_interface_proto_enumTypes[1].Descriptor() } +func (Interface_RxMode_Type) Type() protoreflect.EnumType { + return &file_ligato_vpp_interfaces_interface_proto_enumTypes[1] +} + +func (x Interface_RxMode_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Interface_RxMode_Type.Descriptor instead. func (Interface_RxMode_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{0, 2, 0} + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{0, 2, 0} } type SubInterface_TagRewriteOptions int32 @@ -132,36 +180,57 @@ const ( SubInterface_TRANSLATE22 SubInterface_TagRewriteOptions = 8 ) -var SubInterface_TagRewriteOptions_name = map[int32]string{ - 0: "DISABLED", - 1: "PUSH1", - 2: "PUSH2", - 3: "POP1", - 4: "POP2", - 5: "TRANSLATE11", - 6: "TRANSLATE12", - 7: "TRANSLATE21", - 8: "TRANSLATE22", -} - -var SubInterface_TagRewriteOptions_value = map[string]int32{ - "DISABLED": 0, - "PUSH1": 1, - "PUSH2": 2, - "POP1": 3, - "POP2": 4, - "TRANSLATE11": 5, - "TRANSLATE12": 6, - "TRANSLATE21": 7, - "TRANSLATE22": 8, +// Enum value maps for SubInterface_TagRewriteOptions. +var ( + SubInterface_TagRewriteOptions_name = map[int32]string{ + 0: "DISABLED", + 1: "PUSH1", + 2: "PUSH2", + 3: "POP1", + 4: "POP2", + 5: "TRANSLATE11", + 6: "TRANSLATE12", + 7: "TRANSLATE21", + 8: "TRANSLATE22", + } + SubInterface_TagRewriteOptions_value = map[string]int32{ + "DISABLED": 0, + "PUSH1": 1, + "PUSH2": 2, + "POP1": 3, + "POP2": 4, + "TRANSLATE11": 5, + "TRANSLATE12": 6, + "TRANSLATE21": 7, + "TRANSLATE22": 8, + } +) + +func (x SubInterface_TagRewriteOptions) Enum() *SubInterface_TagRewriteOptions { + p := new(SubInterface_TagRewriteOptions) + *p = x + return p } func (x SubInterface_TagRewriteOptions) String() string { - return proto.EnumName(SubInterface_TagRewriteOptions_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SubInterface_TagRewriteOptions) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_interfaces_interface_proto_enumTypes[2].Descriptor() +} + +func (SubInterface_TagRewriteOptions) Type() protoreflect.EnumType { + return &file_ligato_vpp_interfaces_interface_proto_enumTypes[2] +} + +func (x SubInterface_TagRewriteOptions) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use SubInterface_TagRewriteOptions.Descriptor instead. func (SubInterface_TagRewriteOptions) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{1, 0} + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{1, 0} } type MemifLink_MemifMode int32 @@ -172,24 +241,45 @@ const ( MemifLink_PUNT_INJECT MemifLink_MemifMode = 2 ) -var MemifLink_MemifMode_name = map[int32]string{ - 0: "ETHERNET", - 1: "IP", - 2: "PUNT_INJECT", -} +// Enum value maps for MemifLink_MemifMode. +var ( + MemifLink_MemifMode_name = map[int32]string{ + 0: "ETHERNET", + 1: "IP", + 2: "PUNT_INJECT", + } + MemifLink_MemifMode_value = map[string]int32{ + "ETHERNET": 0, + "IP": 1, + "PUNT_INJECT": 2, + } +) -var MemifLink_MemifMode_value = map[string]int32{ - "ETHERNET": 0, - "IP": 1, - "PUNT_INJECT": 2, +func (x MemifLink_MemifMode) Enum() *MemifLink_MemifMode { + p := new(MemifLink_MemifMode) + *p = x + return p } func (x MemifLink_MemifMode) String() string { - return proto.EnumName(MemifLink_MemifMode_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MemifLink_MemifMode) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_interfaces_interface_proto_enumTypes[3].Descriptor() +} + +func (MemifLink_MemifMode) Type() protoreflect.EnumType { + return &file_ligato_vpp_interfaces_interface_proto_enumTypes[3] +} + +func (x MemifLink_MemifMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use MemifLink_MemifMode.Descriptor instead. func (MemifLink_MemifMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{2, 0} + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{2, 0} } type VxlanLink_Gpe_Protocol int32 @@ -202,28 +292,49 @@ const ( VxlanLink_Gpe_NSH VxlanLink_Gpe_Protocol = 4 ) -var VxlanLink_Gpe_Protocol_name = map[int32]string{ - 0: "UNKNOWN", - 1: "IP4", - 2: "IP6", - 3: "ETHERNET", - 4: "NSH", -} +// Enum value maps for VxlanLink_Gpe_Protocol. +var ( + VxlanLink_Gpe_Protocol_name = map[int32]string{ + 0: "UNKNOWN", + 1: "IP4", + 2: "IP6", + 3: "ETHERNET", + 4: "NSH", + } + VxlanLink_Gpe_Protocol_value = map[string]int32{ + "UNKNOWN": 0, + "IP4": 1, + "IP6": 2, + "ETHERNET": 3, + "NSH": 4, + } +) -var VxlanLink_Gpe_Protocol_value = map[string]int32{ - "UNKNOWN": 0, - "IP4": 1, - "IP6": 2, - "ETHERNET": 3, - "NSH": 4, +func (x VxlanLink_Gpe_Protocol) Enum() *VxlanLink_Gpe_Protocol { + p := new(VxlanLink_Gpe_Protocol) + *p = x + return p } func (x VxlanLink_Gpe_Protocol) String() string { - return proto.EnumName(VxlanLink_Gpe_Protocol_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (VxlanLink_Gpe_Protocol) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_interfaces_interface_proto_enumTypes[4].Descriptor() +} + +func (VxlanLink_Gpe_Protocol) Type() protoreflect.EnumType { + return &file_ligato_vpp_interfaces_interface_proto_enumTypes[4] +} + +func (x VxlanLink_Gpe_Protocol) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use VxlanLink_Gpe_Protocol.Descriptor instead. func (VxlanLink_Gpe_Protocol) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{3, 0, 0} + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{3, 0, 0} } type BondLink_Mode int32 @@ -237,30 +348,51 @@ const ( BondLink_LACP BondLink_Mode = 5 ) -var BondLink_Mode_name = map[int32]string{ - 0: "UNKNOWN", - 1: "ROUND_ROBIN", - 2: "ACTIVE_BACKUP", - 3: "XOR", - 4: "BROADCAST", - 5: "LACP", -} +// Enum value maps for BondLink_Mode. +var ( + BondLink_Mode_name = map[int32]string{ + 0: "UNKNOWN", + 1: "ROUND_ROBIN", + 2: "ACTIVE_BACKUP", + 3: "XOR", + 4: "BROADCAST", + 5: "LACP", + } + BondLink_Mode_value = map[string]int32{ + "UNKNOWN": 0, + "ROUND_ROBIN": 1, + "ACTIVE_BACKUP": 2, + "XOR": 3, + "BROADCAST": 4, + "LACP": 5, + } +) -var BondLink_Mode_value = map[string]int32{ - "UNKNOWN": 0, - "ROUND_ROBIN": 1, - "ACTIVE_BACKUP": 2, - "XOR": 3, - "BROADCAST": 4, - "LACP": 5, +func (x BondLink_Mode) Enum() *BondLink_Mode { + p := new(BondLink_Mode) + *p = x + return p } func (x BondLink_Mode) String() string { - return proto.EnumName(BondLink_Mode_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BondLink_Mode) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_interfaces_interface_proto_enumTypes[5].Descriptor() +} + +func (BondLink_Mode) Type() protoreflect.EnumType { + return &file_ligato_vpp_interfaces_interface_proto_enumTypes[5] +} + +func (x BondLink_Mode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use BondLink_Mode.Descriptor instead. func (BondLink_Mode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{8, 0} + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{8, 0} } type BondLink_LoadBalance int32 @@ -277,30 +409,51 @@ const ( BondLink_AB BondLink_LoadBalance = 5 ) -var BondLink_LoadBalance_name = map[int32]string{ - 0: "L2", - 1: "L34", - 2: "L23", - 3: "RR", - 4: "BC", - 5: "AB", -} +// Enum value maps for BondLink_LoadBalance. +var ( + BondLink_LoadBalance_name = map[int32]string{ + 0: "L2", + 1: "L34", + 2: "L23", + 3: "RR", + 4: "BC", + 5: "AB", + } + BondLink_LoadBalance_value = map[string]int32{ + "L2": 0, + "L34": 1, + "L23": 2, + "RR": 3, + "BC": 4, + "AB": 5, + } +) -var BondLink_LoadBalance_value = map[string]int32{ - "L2": 0, - "L34": 1, - "L23": 2, - "RR": 3, - "BC": 4, - "AB": 5, +func (x BondLink_LoadBalance) Enum() *BondLink_LoadBalance { + p := new(BondLink_LoadBalance) + *p = x + return p } func (x BondLink_LoadBalance) String() string { - return proto.EnumName(BondLink_LoadBalance_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BondLink_LoadBalance) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_interfaces_interface_proto_enumTypes[6].Descriptor() +} + +func (BondLink_LoadBalance) Type() protoreflect.EnumType { + return &file_ligato_vpp_interfaces_interface_proto_enumTypes[6] } +func (x BondLink_LoadBalance) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use BondLink_LoadBalance.Descriptor instead. func (BondLink_LoadBalance) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{8, 1} + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{8, 1} } type GreLink_Type int32 @@ -315,26 +468,47 @@ const ( GreLink_ERSPAN GreLink_Type = 3 ) -var GreLink_Type_name = map[int32]string{ - 0: "UNKNOWN", - 1: "L3", - 2: "TEB", - 3: "ERSPAN", -} +// Enum value maps for GreLink_Type. +var ( + GreLink_Type_name = map[int32]string{ + 0: "UNKNOWN", + 1: "L3", + 2: "TEB", + 3: "ERSPAN", + } + GreLink_Type_value = map[string]int32{ + "UNKNOWN": 0, + "L3": 1, + "TEB": 2, + "ERSPAN": 3, + } +) -var GreLink_Type_value = map[string]int32{ - "UNKNOWN": 0, - "L3": 1, - "TEB": 2, - "ERSPAN": 3, +func (x GreLink_Type) Enum() *GreLink_Type { + p := new(GreLink_Type) + *p = x + return p } func (x GreLink_Type) String() string { - return proto.EnumName(GreLink_Type_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GreLink_Type) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_interfaces_interface_proto_enumTypes[7].Descriptor() } +func (GreLink_Type) Type() protoreflect.EnumType { + return &file_ligato_vpp_interfaces_interface_proto_enumTypes[7] +} + +func (x GreLink_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use GreLink_Type.Descriptor instead. func (GreLink_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{9, 0} + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{9, 0} } type GtpuLink_NextNode int32 @@ -350,26 +524,47 @@ const ( GtpuLink_IP6 GtpuLink_NextNode = 3 ) -var GtpuLink_NextNode_name = map[int32]string{ - 0: "DEFAULT", - 1: "L2", - 2: "IP4", - 3: "IP6", -} +// Enum value maps for GtpuLink_NextNode. +var ( + GtpuLink_NextNode_name = map[int32]string{ + 0: "DEFAULT", + 1: "L2", + 2: "IP4", + 3: "IP6", + } + GtpuLink_NextNode_value = map[string]int32{ + "DEFAULT": 0, + "L2": 1, + "IP4": 2, + "IP6": 3, + } +) -var GtpuLink_NextNode_value = map[string]int32{ - "DEFAULT": 0, - "L2": 1, - "IP4": 2, - "IP6": 3, +func (x GtpuLink_NextNode) Enum() *GtpuLink_NextNode { + p := new(GtpuLink_NextNode) + *p = x + return p } func (x GtpuLink_NextNode) String() string { - return proto.EnumName(GtpuLink_NextNode_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (GtpuLink_NextNode) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_interfaces_interface_proto_enumTypes[8].Descriptor() +} + +func (GtpuLink_NextNode) Type() protoreflect.EnumType { + return &file_ligato_vpp_interfaces_interface_proto_enumTypes[8] +} + +func (x GtpuLink_NextNode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use GtpuLink_NextNode.Descriptor instead. func (GtpuLink_NextNode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{10, 0} + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{10, 0} } type IPIPLink_Mode int32 @@ -381,26 +576,51 @@ const ( IPIPLink_POINT_TO_MULTIPOINT IPIPLink_Mode = 1 ) -var IPIPLink_Mode_name = map[int32]string{ - 0: "POINT_TO_POINT", - 1: "POINT_TO_MULTIPOINT", -} +// Enum value maps for IPIPLink_Mode. +var ( + IPIPLink_Mode_name = map[int32]string{ + 0: "POINT_TO_POINT", + 1: "POINT_TO_MULTIPOINT", + } + IPIPLink_Mode_value = map[string]int32{ + "POINT_TO_POINT": 0, + "POINT_TO_MULTIPOINT": 1, + } +) -var IPIPLink_Mode_value = map[string]int32{ - "POINT_TO_POINT": 0, - "POINT_TO_MULTIPOINT": 1, +func (x IPIPLink_Mode) Enum() *IPIPLink_Mode { + p := new(IPIPLink_Mode) + *p = x + return p } func (x IPIPLink_Mode) String() string { - return proto.EnumName(IPIPLink_Mode_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (IPIPLink_Mode) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_interfaces_interface_proto_enumTypes[9].Descriptor() +} + +func (IPIPLink_Mode) Type() protoreflect.EnumType { + return &file_ligato_vpp_interfaces_interface_proto_enumTypes[9] +} + +func (x IPIPLink_Mode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use IPIPLink_Mode.Descriptor instead. func (IPIPLink_Mode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{11, 0} + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{11, 0} } // Interface defines a VPP interface. type Interface struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Name is mandatory field representing logical name for the interface. // It must be unique across all configured VPP interfaces. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` @@ -433,7 +653,7 @@ type Interface struct { // Link defines configuration for specific interface types. // It can be nil for some interfaces types like: loopback and DPDK. // - // Types that are valid to be assigned to Link: + // Types that are assignable to Link: // *Interface_Sub // *Interface_Memif // *Interface_Afpacket @@ -445,117 +665,206 @@ type Interface struct { // *Interface_Gre // *Interface_Gtpu // *Interface_Ipip - Link isInterface_Link `protobuf_oneof:"link"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Link isInterface_Link `protobuf_oneof:"link"` } -func (m *Interface) Reset() { *m = Interface{} } -func (m *Interface) String() string { return proto.CompactTextString(m) } -func (*Interface) ProtoMessage() {} -func (*Interface) Descriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{0} +func (x *Interface) Reset() { + *x = Interface{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Interface) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Interface.Unmarshal(m, b) -} -func (m *Interface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Interface.Marshal(b, m, deterministic) +func (x *Interface) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Interface) XXX_Merge(src proto.Message) { - xxx_messageInfo_Interface.Merge(m, src) -} -func (m *Interface) XXX_Size() int { - return xxx_messageInfo_Interface.Size(m) -} -func (m *Interface) XXX_DiscardUnknown() { - xxx_messageInfo_Interface.DiscardUnknown(m) + +func (*Interface) ProtoMessage() {} + +func (x *Interface) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Interface proto.InternalMessageInfo +// Deprecated: Use Interface.ProtoReflect.Descriptor instead. +func (*Interface) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{0} +} -func (m *Interface) GetName() string { - if m != nil { - return m.Name +func (x *Interface) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *Interface) GetType() Interface_Type { - if m != nil { - return m.Type +func (x *Interface) GetType() Interface_Type { + if x != nil { + return x.Type } return Interface_UNDEFINED_TYPE } -func (m *Interface) GetEnabled() bool { - if m != nil { - return m.Enabled +func (x *Interface) GetEnabled() bool { + if x != nil { + return x.Enabled } return false } -func (m *Interface) GetPhysAddress() string { - if m != nil { - return m.PhysAddress +func (x *Interface) GetPhysAddress() string { + if x != nil { + return x.PhysAddress } return "" } -func (m *Interface) GetIpAddresses() []string { - if m != nil { - return m.IpAddresses +func (x *Interface) GetIpAddresses() []string { + if x != nil { + return x.IpAddresses } return nil } -func (m *Interface) GetVrf() uint32 { - if m != nil { - return m.Vrf +func (x *Interface) GetVrf() uint32 { + if x != nil { + return x.Vrf } return 0 } -func (m *Interface) GetSetDhcpClient() bool { - if m != nil { - return m.SetDhcpClient +func (x *Interface) GetSetDhcpClient() bool { + if x != nil { + return x.SetDhcpClient } return false } -func (m *Interface) GetIp6Nd() *Interface_IP6ND { - if m != nil { - return m.Ip6Nd +func (x *Interface) GetIp6Nd() *Interface_IP6ND { + if x != nil { + return x.Ip6Nd } return nil } -func (m *Interface) GetMtu() uint32 { - if m != nil { - return m.Mtu +func (x *Interface) GetMtu() uint32 { + if x != nil { + return x.Mtu } return 0 } -func (m *Interface) GetUnnumbered() *Interface_Unnumbered { - if m != nil { - return m.Unnumbered +func (x *Interface) GetUnnumbered() *Interface_Unnumbered { + if x != nil { + return x.Unnumbered } return nil } -func (m *Interface) GetRxModes() []*Interface_RxMode { - if m != nil { - return m.RxModes +func (x *Interface) GetRxModes() []*Interface_RxMode { + if x != nil { + return x.RxModes + } + return nil +} + +func (x *Interface) GetRxPlacements() []*Interface_RxPlacement { + if x != nil { + return x.RxPlacements } return nil } -func (m *Interface) GetRxPlacements() []*Interface_RxPlacement { +func (m *Interface) GetLink() isInterface_Link { if m != nil { - return m.RxPlacements + return m.Link + } + return nil +} + +func (x *Interface) GetSub() *SubInterface { + if x, ok := x.GetLink().(*Interface_Sub); ok { + return x.Sub + } + return nil +} + +func (x *Interface) GetMemif() *MemifLink { + if x, ok := x.GetLink().(*Interface_Memif); ok { + return x.Memif + } + return nil +} + +func (x *Interface) GetAfpacket() *AfpacketLink { + if x, ok := x.GetLink().(*Interface_Afpacket); ok { + return x.Afpacket + } + return nil +} + +func (x *Interface) GetTap() *TapLink { + if x, ok := x.GetLink().(*Interface_Tap); ok { + return x.Tap + } + return nil +} + +func (x *Interface) GetVxlan() *VxlanLink { + if x, ok := x.GetLink().(*Interface_Vxlan); ok { + return x.Vxlan + } + return nil +} + +// Deprecated: Do not use. +func (x *Interface) GetIpsec() *IPSecLink { + if x, ok := x.GetLink().(*Interface_Ipsec); ok { + return x.Ipsec + } + return nil +} + +func (x *Interface) GetVmxNet3() *VmxNet3Link { + if x, ok := x.GetLink().(*Interface_VmxNet3); ok { + return x.VmxNet3 + } + return nil +} + +func (x *Interface) GetBond() *BondLink { + if x, ok := x.GetLink().(*Interface_Bond); ok { + return x.Bond + } + return nil +} + +func (x *Interface) GetGre() *GreLink { + if x, ok := x.GetLink().(*Interface_Gre); ok { + return x.Gre + } + return nil +} + +func (x *Interface) GetGtpu() *GtpuLink { + if x, ok := x.GetLink().(*Interface_Gtpu); ok { + return x.Gtpu + } + return nil +} + +func (x *Interface) GetIpip() *IPIPLink { + if x, ok := x.GetLink().(*Interface_Ipip); ok { + return x.Ipip } return nil } @@ -585,7 +894,8 @@ type Interface_Vxlan struct { } type Interface_Ipsec struct { - Ipsec *IPSecLink `protobuf:"bytes,105,opt,name=ipsec,proto3,oneof"` + // Deprecated: Do not use. + Ipsec *IPSecLink `protobuf:"bytes,105,opt,name=ipsec,proto3,oneof"` // Deprecated in VPP 20.01+. Use IPIP_TUNNEL + ipsec.TunnelProtection instead. } type Interface_VmxNet3 struct { @@ -630,1521 +940,2048 @@ func (*Interface_Gtpu) isInterface_Link() {} func (*Interface_Ipip) isInterface_Link() {} -func (m *Interface) GetLink() isInterface_Link { - if m != nil { - return m.Link - } - return nil +// SubInterface defines configuration for interface type: SUB_INTERFACE +type SubInterface struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Name of the parent (super) interface + ParentName string `protobuf:"bytes,1,opt,name=parent_name,json=parentName,proto3" json:"parent_name,omitempty"` + // SubInterface ID, used as VLAN + SubId uint32 `protobuf:"varint,2,opt,name=sub_id,json=subId,proto3" json:"sub_id,omitempty"` + // VLAN tag rewrite rule applied for given tag for sub-interface + TagRwOption SubInterface_TagRewriteOptions `protobuf:"varint,3,opt,name=tag_rw_option,json=tagRwOption,proto3,enum=ligato.vpp.interfaces.SubInterface_TagRewriteOptions" json:"tag_rw_option,omitempty"` + // Set ether-type of the first tag to dot1q if true, dot1ad otherwise + PushDot1Q bool `protobuf:"varint,4,opt,name=push_dot1q,json=pushDot1q,proto3" json:"push_dot1q,omitempty"` + // First tag (required for PUSH1 and any TRANSLATE) + Tag1 uint32 `protobuf:"varint,5,opt,name=tag1,proto3" json:"tag1,omitempty"` + // Second tag (required for PUSH2 and any TRANSLATE) + Tag2 uint32 `protobuf:"varint,6,opt,name=tag2,proto3" json:"tag2,omitempty"` } -func (m *Interface) GetSub() *SubInterface { - if x, ok := m.GetLink().(*Interface_Sub); ok { - return x.Sub +func (x *SubInterface) Reset() { + *x = SubInterface{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *Interface) GetMemif() *MemifLink { - if x, ok := m.GetLink().(*Interface_Memif); ok { - return x.Memif - } - return nil +func (x *SubInterface) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Interface) GetAfpacket() *AfpacketLink { - if x, ok := m.GetLink().(*Interface_Afpacket); ok { - return x.Afpacket +func (*SubInterface) ProtoMessage() {} + +func (x *SubInterface) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *Interface) GetTap() *TapLink { - if x, ok := m.GetLink().(*Interface_Tap); ok { - return x.Tap +// Deprecated: Use SubInterface.ProtoReflect.Descriptor instead. +func (*SubInterface) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{1} +} + +func (x *SubInterface) GetParentName() string { + if x != nil { + return x.ParentName } - return nil + return "" } -func (m *Interface) GetVxlan() *VxlanLink { - if x, ok := m.GetLink().(*Interface_Vxlan); ok { - return x.Vxlan +func (x *SubInterface) GetSubId() uint32 { + if x != nil { + return x.SubId } - return nil + return 0 } -// Deprecated: Do not use. -func (m *Interface) GetIpsec() *IPSecLink { - if x, ok := m.GetLink().(*Interface_Ipsec); ok { - return x.Ipsec +func (x *SubInterface) GetTagRwOption() SubInterface_TagRewriteOptions { + if x != nil { + return x.TagRwOption } - return nil + return SubInterface_DISABLED } -func (m *Interface) GetVmxNet3() *VmxNet3Link { - if x, ok := m.GetLink().(*Interface_VmxNet3); ok { - return x.VmxNet3 +func (x *SubInterface) GetPushDot1Q() bool { + if x != nil { + return x.PushDot1Q } - return nil + return false } -func (m *Interface) GetBond() *BondLink { - if x, ok := m.GetLink().(*Interface_Bond); ok { - return x.Bond +func (x *SubInterface) GetTag1() uint32 { + if x != nil { + return x.Tag1 } - return nil + return 0 } -func (m *Interface) GetGre() *GreLink { - if x, ok := m.GetLink().(*Interface_Gre); ok { - return x.Gre +func (x *SubInterface) GetTag2() uint32 { + if x != nil { + return x.Tag2 } - return nil + return 0 } -func (m *Interface) GetGtpu() *GtpuLink { - if x, ok := m.GetLink().(*Interface_Gtpu); ok { - return x.Gtpu +// MemifLink defines configuration for interface type: MEMIF +type MemifLink struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Mode MemifLink_MemifMode `protobuf:"varint,1,opt,name=mode,proto3,enum=ligato.vpp.interfaces.MemifLink_MemifMode" json:"mode,omitempty"` + Master bool `protobuf:"varint,2,opt,name=master,proto3" json:"master,omitempty"` + // Id is a 32bit integer used to authenticate and match opposite sides of the connection + Id uint32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` + // Filename of the socket used for connection establishment + SocketFilename string `protobuf:"bytes,4,opt,name=socket_filename,json=socketFilename,proto3" json:"socket_filename,omitempty"` + Secret string `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"` + // The number of entries of RX/TX rings + RingSize uint32 `protobuf:"varint,6,opt,name=ring_size,json=ringSize,proto3" json:"ring_size,omitempty"` + // Size of the buffer allocated for each ring entry + BufferSize uint32 `protobuf:"varint,7,opt,name=buffer_size,json=bufferSize,proto3" json:"buffer_size,omitempty"` + // Number of rx queues (only valid for slave) + RxQueues uint32 `protobuf:"varint,8,opt,name=rx_queues,json=rxQueues,proto3" json:"rx_queues,omitempty"` + // Number of tx queues (only valid for slave) + TxQueues uint32 `protobuf:"varint,9,opt,name=tx_queues,json=txQueues,proto3" json:"tx_queues,omitempty"` +} + +func (x *MemifLink) Reset() { + *x = MemifLink{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *Interface) GetIpip() *IPIPLink { - if x, ok := m.GetLink().(*Interface_Ipip); ok { - return x.Ipip +func (x *MemifLink) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MemifLink) ProtoMessage() {} + +func (x *MemifLink) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Interface) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Interface_Sub)(nil), - (*Interface_Memif)(nil), - (*Interface_Afpacket)(nil), - (*Interface_Tap)(nil), - (*Interface_Vxlan)(nil), - (*Interface_Ipsec)(nil), - (*Interface_VmxNet3)(nil), - (*Interface_Bond)(nil), - (*Interface_Gre)(nil), - (*Interface_Gtpu)(nil), - (*Interface_Ipip)(nil), - } +// Deprecated: Use MemifLink.ProtoReflect.Descriptor instead. +func (*MemifLink) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{2} } -// Ip6Nd is used to enable/disable IPv6 ND address autoconfiguration -// and setting up default routes -type Interface_IP6ND struct { - // Enable IPv6 ND address autoconfiguration. - AddressAutoconfig bool `protobuf:"varint,1,opt,name=address_autoconfig,json=addressAutoconfig,proto3" json:"address_autoconfig,omitempty"` - // Enable installing default routes. - InstallDefaultRoutes bool `protobuf:"varint,2,opt,name=install_default_routes,json=installDefaultRoutes,proto3" json:"install_default_routes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *MemifLink) GetMode() MemifLink_MemifMode { + if x != nil { + return x.Mode + } + return MemifLink_ETHERNET } -func (m *Interface_IP6ND) Reset() { *m = Interface_IP6ND{} } -func (m *Interface_IP6ND) String() string { return proto.CompactTextString(m) } -func (*Interface_IP6ND) ProtoMessage() {} -func (*Interface_IP6ND) Descriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{0, 0} +func (x *MemifLink) GetMaster() bool { + if x != nil { + return x.Master + } + return false } -func (m *Interface_IP6ND) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Interface_IP6ND.Unmarshal(m, b) -} -func (m *Interface_IP6ND) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Interface_IP6ND.Marshal(b, m, deterministic) -} -func (m *Interface_IP6ND) XXX_Merge(src proto.Message) { - xxx_messageInfo_Interface_IP6ND.Merge(m, src) -} -func (m *Interface_IP6ND) XXX_Size() int { - return xxx_messageInfo_Interface_IP6ND.Size(m) -} -func (m *Interface_IP6ND) XXX_DiscardUnknown() { - xxx_messageInfo_Interface_IP6ND.DiscardUnknown(m) +func (x *MemifLink) GetId() uint32 { + if x != nil { + return x.Id + } + return 0 } -var xxx_messageInfo_Interface_IP6ND proto.InternalMessageInfo - -func (m *Interface_IP6ND) GetAddressAutoconfig() bool { - if m != nil { - return m.AddressAutoconfig +func (x *MemifLink) GetSocketFilename() string { + if x != nil { + return x.SocketFilename } - return false + return "" } -func (m *Interface_IP6ND) GetInstallDefaultRoutes() bool { - if m != nil { - return m.InstallDefaultRoutes +func (x *MemifLink) GetSecret() string { + if x != nil { + return x.Secret } - return false + return "" } -// Unnumbered is used for inheriting IP address from another interface. -type Interface_Unnumbered struct { - // InterfaceWithIp is the name of interface to inherit IP address from. - InterfaceWithIp string `protobuf:"bytes,1,opt,name=interface_with_ip,json=interfaceWithIp,proto3" json:"interface_with_ip,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *MemifLink) GetRingSize() uint32 { + if x != nil { + return x.RingSize + } + return 0 } -func (m *Interface_Unnumbered) Reset() { *m = Interface_Unnumbered{} } -func (m *Interface_Unnumbered) String() string { return proto.CompactTextString(m) } -func (*Interface_Unnumbered) ProtoMessage() {} -func (*Interface_Unnumbered) Descriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{0, 1} +func (x *MemifLink) GetBufferSize() uint32 { + if x != nil { + return x.BufferSize + } + return 0 } -func (m *Interface_Unnumbered) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Interface_Unnumbered.Unmarshal(m, b) +func (x *MemifLink) GetRxQueues() uint32 { + if x != nil { + return x.RxQueues + } + return 0 } -func (m *Interface_Unnumbered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Interface_Unnumbered.Marshal(b, m, deterministic) + +func (x *MemifLink) GetTxQueues() uint32 { + if x != nil { + return x.TxQueues + } + return 0 } -func (m *Interface_Unnumbered) XXX_Merge(src proto.Message) { - xxx_messageInfo_Interface_Unnumbered.Merge(m, src) + +// VxlanLink defines configuration for interface type: VXLAN_TUNNEL +type VxlanLink struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // SrcAddress is source VTEP address + SrcAddress string `protobuf:"bytes,1,opt,name=src_address,json=srcAddress,proto3" json:"src_address,omitempty"` + // DstAddress is destination VTEP address + DstAddress string `protobuf:"bytes,2,opt,name=dst_address,json=dstAddress,proto3" json:"dst_address,omitempty"` + // Vni stands for VXLAN Network Identifier + Vni uint32 `protobuf:"varint,3,opt,name=vni,proto3" json:"vni,omitempty"` + // Multicast defines name of multicast interface + Multicast string `protobuf:"bytes,4,opt,name=multicast,proto3" json:"multicast,omitempty"` + Gpe *VxlanLink_Gpe `protobuf:"bytes,5,opt,name=gpe,proto3" json:"gpe,omitempty"` } -func (m *Interface_Unnumbered) XXX_Size() int { - return xxx_messageInfo_Interface_Unnumbered.Size(m) + +func (x *VxlanLink) Reset() { + *x = VxlanLink{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Interface_Unnumbered) XXX_DiscardUnknown() { - xxx_messageInfo_Interface_Unnumbered.DiscardUnknown(m) + +func (x *VxlanLink) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Interface_Unnumbered proto.InternalMessageInfo +func (*VxlanLink) ProtoMessage() {} -func (m *Interface_Unnumbered) GetInterfaceWithIp() string { - if m != nil { - return m.InterfaceWithIp +func (x *VxlanLink) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -type Interface_RxMode struct { - Queue uint32 `protobuf:"varint,1,opt,name=queue,proto3" json:"queue,omitempty"` - Mode Interface_RxMode_Type `protobuf:"varint,2,opt,name=mode,proto3,enum=ligato.vpp.interfaces.Interface_RxMode_Type" json:"mode,omitempty"` - // DefaultMode, if set to true, the field will be ignored - // and the will be used as a default for all the queues. - DefaultMode bool `protobuf:"varint,3,opt,name=default_mode,json=defaultMode,proto3" json:"default_mode,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use VxlanLink.ProtoReflect.Descriptor instead. +func (*VxlanLink) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{3} } -func (m *Interface_RxMode) Reset() { *m = Interface_RxMode{} } -func (m *Interface_RxMode) String() string { return proto.CompactTextString(m) } -func (*Interface_RxMode) ProtoMessage() {} -func (*Interface_RxMode) Descriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{0, 2} +func (x *VxlanLink) GetSrcAddress() string { + if x != nil { + return x.SrcAddress + } + return "" } -func (m *Interface_RxMode) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Interface_RxMode.Unmarshal(m, b) -} -func (m *Interface_RxMode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Interface_RxMode.Marshal(b, m, deterministic) -} -func (m *Interface_RxMode) XXX_Merge(src proto.Message) { - xxx_messageInfo_Interface_RxMode.Merge(m, src) -} -func (m *Interface_RxMode) XXX_Size() int { - return xxx_messageInfo_Interface_RxMode.Size(m) -} -func (m *Interface_RxMode) XXX_DiscardUnknown() { - xxx_messageInfo_Interface_RxMode.DiscardUnknown(m) +func (x *VxlanLink) GetDstAddress() string { + if x != nil { + return x.DstAddress + } + return "" } -var xxx_messageInfo_Interface_RxMode proto.InternalMessageInfo - -func (m *Interface_RxMode) GetQueue() uint32 { - if m != nil { - return m.Queue +func (x *VxlanLink) GetVni() uint32 { + if x != nil { + return x.Vni } return 0 } -func (m *Interface_RxMode) GetMode() Interface_RxMode_Type { - if m != nil { - return m.Mode +func (x *VxlanLink) GetMulticast() string { + if x != nil { + return x.Multicast } - return Interface_RxMode_UNKNOWN + return "" } -func (m *Interface_RxMode) GetDefaultMode() bool { - if m != nil { - return m.DefaultMode +func (x *VxlanLink) GetGpe() *VxlanLink_Gpe { + if x != nil { + return x.Gpe } - return false + return nil } -type Interface_RxPlacement struct { - // Select from interval <0, number-of-queues) - Queue uint32 `protobuf:"varint,1,opt,name=queue,proto3" json:"queue,omitempty"` - // Select from interval <0, number-of-workers) - Worker uint32 `protobuf:"varint,2,opt,name=worker,proto3" json:"worker,omitempty"` - // Let the main thread to process the given queue - // - if enabled, value of is ignored - MainThread bool `protobuf:"varint,3,opt,name=main_thread,json=mainThread,proto3" json:"main_thread,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +// AfpacketLink defines configuration for interface type: AF_PACKET +type AfpacketLink struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Interface_RxPlacement) Reset() { *m = Interface_RxPlacement{} } -func (m *Interface_RxPlacement) String() string { return proto.CompactTextString(m) } -func (*Interface_RxPlacement) ProtoMessage() {} -func (*Interface_RxPlacement) Descriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{0, 3} + // Name of the host (Linux) interface to bind to. + // This field is DEPRECATED. The logical reference should be used instead. + // Target Linux interface which is not configured by the same (or any) vpp-agent can be assigned + // a logical name using a Linux interface configuration entry of type EXISTING + // (see proto/ligato/linux/interfaces/interface.proto). + // It is mandatory to define either or . + // + // Deprecated: Do not use. + HostIfName string `protobuf:"bytes,1,opt,name=host_if_name,json=hostIfName,proto3" json:"host_if_name,omitempty"` + // Logical name of the Linux interface to bind to. + // This is an alternative (and preferred) interface reference to . + // It is mandatory to define either or . + LinuxInterface string `protobuf:"bytes,2,opt,name=linux_interface,json=linuxInterface,proto3" json:"linux_interface,omitempty"` } -func (m *Interface_RxPlacement) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Interface_RxPlacement.Unmarshal(m, b) -} -func (m *Interface_RxPlacement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Interface_RxPlacement.Marshal(b, m, deterministic) -} -func (m *Interface_RxPlacement) XXX_Merge(src proto.Message) { - xxx_messageInfo_Interface_RxPlacement.Merge(m, src) -} -func (m *Interface_RxPlacement) XXX_Size() int { - return xxx_messageInfo_Interface_RxPlacement.Size(m) +func (x *AfpacketLink) Reset() { + *x = AfpacketLink{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Interface_RxPlacement) XXX_DiscardUnknown() { - xxx_messageInfo_Interface_RxPlacement.DiscardUnknown(m) + +func (x *AfpacketLink) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Interface_RxPlacement proto.InternalMessageInfo +func (*AfpacketLink) ProtoMessage() {} -func (m *Interface_RxPlacement) GetQueue() uint32 { - if m != nil { - return m.Queue +func (x *AfpacketLink) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (m *Interface_RxPlacement) GetWorker() uint32 { - if m != nil { - return m.Worker - } - return 0 +// Deprecated: Use AfpacketLink.ProtoReflect.Descriptor instead. +func (*AfpacketLink) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{4} } -func (m *Interface_RxPlacement) GetMainThread() bool { - if m != nil { - return m.MainThread +// Deprecated: Do not use. +func (x *AfpacketLink) GetHostIfName() string { + if x != nil { + return x.HostIfName } - return false + return "" } -// SubInterface defines configuration for interface type: SUB_INTERFACE -type SubInterface struct { - // Name of the parent (super) interface - ParentName string `protobuf:"bytes,1,opt,name=parent_name,json=parentName,proto3" json:"parent_name,omitempty"` - // SubInterface ID, used as VLAN - SubId uint32 `protobuf:"varint,2,opt,name=sub_id,json=subId,proto3" json:"sub_id,omitempty"` - // VLAN tag rewrite rule applied for given tag for sub-interface - TagRwOption SubInterface_TagRewriteOptions `protobuf:"varint,3,opt,name=tag_rw_option,json=tagRwOption,proto3,enum=ligato.vpp.interfaces.SubInterface_TagRewriteOptions" json:"tag_rw_option,omitempty"` - // Set ether-type of the first tag to dot1q if true, dot1ad otherwise - PushDot1Q bool `protobuf:"varint,4,opt,name=push_dot1q,json=pushDot1q,proto3" json:"push_dot1q,omitempty"` - // First tag (required for PUSH1 and any TRANSLATE) - Tag1 uint32 `protobuf:"varint,5,opt,name=tag1,proto3" json:"tag1,omitempty"` - // Second tag (required for PUSH2 and any TRANSLATE) - Tag2 uint32 `protobuf:"varint,6,opt,name=tag2,proto3" json:"tag2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *AfpacketLink) GetLinuxInterface() string { + if x != nil { + return x.LinuxInterface + } + return "" } -func (m *SubInterface) Reset() { *m = SubInterface{} } -func (m *SubInterface) String() string { return proto.CompactTextString(m) } -func (*SubInterface) ProtoMessage() {} -func (*SubInterface) Descriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{1} -} +// TapLink defines configuration for interface type: TAP +type TapLink struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SubInterface) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SubInterface.Unmarshal(m, b) -} -func (m *SubInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SubInterface.Marshal(b, m, deterministic) -} -func (m *SubInterface) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubInterface.Merge(m, src) + // 1 / unset = use the original TAP interface; 2 = use a fast virtio-based TAP + Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + // Name of the TAP interface in the host OS; + // if empty, it will be auto-generated (suitable for combination with TAP_TO_VPP + // interface from Linux ifplugin, because then this name is only temporary anyway) + HostIfName string `protobuf:"bytes,2,opt,name=host_if_name,json=hostIfName,proto3" json:"host_if_name,omitempty"` + // If TAP connects VPP with microservice, fill this parameter with the target + // microservice name - should match with the namespace reference of the associated + // TAP_TO_VPP interface (it is still moved to the namespace by Linux-ifplugin but + // VPP-ifplugin needs to be aware of this dependency) + ToMicroservice string `protobuf:"bytes,3,opt,name=to_microservice,json=toMicroservice,proto3" json:"to_microservice,omitempty"` + // Rx ring buffer size; must be power of 2; default is 256; only for TAP v.2 + RxRingSize uint32 `protobuf:"varint,4,opt,name=rx_ring_size,json=rxRingSize,proto3" json:"rx_ring_size,omitempty"` + // Tx ring buffer size; must be power of 2; default is 256; only for TAP v.2 + TxRingSize uint32 `protobuf:"varint,5,opt,name=tx_ring_size,json=txRingSize,proto3" json:"tx_ring_size,omitempty"` + // EnableGso enables GSO mode for TAP interface. + EnableGso bool `protobuf:"varint,6,opt,name=enable_gso,json=enableGso,proto3" json:"enable_gso,omitempty"` + // EnableTunnel enables tunnel mode for TAP interface. + EnableTunnel bool `protobuf:"varint,7,opt,name=enable_tunnel,json=enableTunnel,proto3" json:"enable_tunnel,omitempty"` } -func (m *SubInterface) XXX_Size() int { - return xxx_messageInfo_SubInterface.Size(m) + +func (x *TapLink) Reset() { + *x = TapLink{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SubInterface) XXX_DiscardUnknown() { - xxx_messageInfo_SubInterface.DiscardUnknown(m) + +func (x *TapLink) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_SubInterface proto.InternalMessageInfo +func (*TapLink) ProtoMessage() {} -func (m *SubInterface) GetParentName() string { - if m != nil { - return m.ParentName +func (x *TapLink) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *SubInterface) GetSubId() uint32 { - if m != nil { - return m.SubId +// Deprecated: Use TapLink.ProtoReflect.Descriptor instead. +func (*TapLink) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{5} +} + +func (x *TapLink) GetVersion() uint32 { + if x != nil { + return x.Version } return 0 } -func (m *SubInterface) GetTagRwOption() SubInterface_TagRewriteOptions { - if m != nil { - return m.TagRwOption +func (x *TapLink) GetHostIfName() string { + if x != nil { + return x.HostIfName } - return SubInterface_DISABLED + return "" } -func (m *SubInterface) GetPushDot1Q() bool { - if m != nil { - return m.PushDot1Q +func (x *TapLink) GetToMicroservice() string { + if x != nil { + return x.ToMicroservice } - return false + return "" } -func (m *SubInterface) GetTag1() uint32 { - if m != nil { - return m.Tag1 +func (x *TapLink) GetRxRingSize() uint32 { + if x != nil { + return x.RxRingSize } return 0 } -func (m *SubInterface) GetTag2() uint32 { - if m != nil { - return m.Tag2 +func (x *TapLink) GetTxRingSize() uint32 { + if x != nil { + return x.TxRingSize } return 0 } -// MemifLink defines configuration for interface type: MEMIF -type MemifLink struct { - Mode MemifLink_MemifMode `protobuf:"varint,1,opt,name=mode,proto3,enum=ligato.vpp.interfaces.MemifLink_MemifMode" json:"mode,omitempty"` - Master bool `protobuf:"varint,2,opt,name=master,proto3" json:"master,omitempty"` - // Id is a 32bit integer used to authenticate and match opposite sides of the connection - Id uint32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` - // Filename of the socket used for connection establishment - SocketFilename string `protobuf:"bytes,4,opt,name=socket_filename,json=socketFilename,proto3" json:"socket_filename,omitempty"` - Secret string `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"` - // The number of entries of RX/TX rings - RingSize uint32 `protobuf:"varint,6,opt,name=ring_size,json=ringSize,proto3" json:"ring_size,omitempty"` - // Size of the buffer allocated for each ring entry - BufferSize uint32 `protobuf:"varint,7,opt,name=buffer_size,json=bufferSize,proto3" json:"buffer_size,omitempty"` - // Number of rx queues (only valid for slave) - RxQueues uint32 `protobuf:"varint,8,opt,name=rx_queues,json=rxQueues,proto3" json:"rx_queues,omitempty"` - // Number of tx queues (only valid for slave) - TxQueues uint32 `protobuf:"varint,9,opt,name=tx_queues,json=txQueues,proto3" json:"tx_queues,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *TapLink) GetEnableGso() bool { + if x != nil { + return x.EnableGso + } + return false } -func (m *MemifLink) Reset() { *m = MemifLink{} } -func (m *MemifLink) String() string { return proto.CompactTextString(m) } -func (*MemifLink) ProtoMessage() {} -func (*MemifLink) Descriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{2} +func (x *TapLink) GetEnableTunnel() bool { + if x != nil { + return x.EnableTunnel + } + return false } -func (m *MemifLink) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MemifLink.Unmarshal(m, b) -} -func (m *MemifLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MemifLink.Marshal(b, m, deterministic) -} -func (m *MemifLink) XXX_Merge(src proto.Message) { - xxx_messageInfo_MemifLink.Merge(m, src) +// IPSecLink defines configuration for interface type: IPSEC_TUNNEL +type IPSecLink struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Extended sequence number + Esn bool `protobuf:"varint,2,opt,name=esn,proto3" json:"esn,omitempty"` + // Anti replay option + AntiReplay bool `protobuf:"varint,3,opt,name=anti_replay,json=antiReplay,proto3" json:"anti_replay,omitempty"` + // Local IP address + LocalIp string `protobuf:"bytes,4,opt,name=local_ip,json=localIp,proto3" json:"local_ip,omitempty"` + // Remote IP address + RemoteIp string `protobuf:"bytes,5,opt,name=remote_ip,json=remoteIp,proto3" json:"remote_ip,omitempty"` + // Local security parameter index + LocalSpi uint32 `protobuf:"varint,6,opt,name=local_spi,json=localSpi,proto3" json:"local_spi,omitempty"` + // Remote security parameter index + RemoteSpi uint32 `protobuf:"varint,7,opt,name=remote_spi,json=remoteSpi,proto3" json:"remote_spi,omitempty"` + // Cryptographic algorithm for encryption + CryptoAlg ipsec.CryptoAlg `protobuf:"varint,8,opt,name=crypto_alg,json=cryptoAlg,proto3,enum=ligato.vpp.ipsec.CryptoAlg" json:"crypto_alg,omitempty"` + LocalCryptoKey string `protobuf:"bytes,9,opt,name=local_crypto_key,json=localCryptoKey,proto3" json:"local_crypto_key,omitempty"` + RemoteCryptoKey string `protobuf:"bytes,10,opt,name=remote_crypto_key,json=remoteCryptoKey,proto3" json:"remote_crypto_key,omitempty"` + // Cryptographic algorithm for authentication + IntegAlg ipsec.IntegAlg `protobuf:"varint,11,opt,name=integ_alg,json=integAlg,proto3,enum=ligato.vpp.ipsec.IntegAlg" json:"integ_alg,omitempty"` + LocalIntegKey string `protobuf:"bytes,12,opt,name=local_integ_key,json=localIntegKey,proto3" json:"local_integ_key,omitempty"` + RemoteIntegKey string `protobuf:"bytes,13,opt,name=remote_integ_key,json=remoteIntegKey,proto3" json:"remote_integ_key,omitempty"` + EnableUdpEncap bool `protobuf:"varint,14,opt,name=enable_udp_encap,json=enableUdpEncap,proto3" json:"enable_udp_encap,omitempty"` } -func (m *MemifLink) XXX_Size() int { - return xxx_messageInfo_MemifLink.Size(m) + +func (x *IPSecLink) Reset() { + *x = IPSecLink{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MemifLink) XXX_DiscardUnknown() { - xxx_messageInfo_MemifLink.DiscardUnknown(m) + +func (x *IPSecLink) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_MemifLink proto.InternalMessageInfo +func (*IPSecLink) ProtoMessage() {} -func (m *MemifLink) GetMode() MemifLink_MemifMode { - if m != nil { - return m.Mode +func (x *IPSecLink) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return MemifLink_ETHERNET + return mi.MessageOf(x) } -func (m *MemifLink) GetMaster() bool { - if m != nil { - return m.Master +// Deprecated: Use IPSecLink.ProtoReflect.Descriptor instead. +func (*IPSecLink) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{6} +} + +func (x *IPSecLink) GetEsn() bool { + if x != nil { + return x.Esn } return false } -func (m *MemifLink) GetId() uint32 { - if m != nil { - return m.Id +func (x *IPSecLink) GetAntiReplay() bool { + if x != nil { + return x.AntiReplay } - return 0 + return false } -func (m *MemifLink) GetSocketFilename() string { - if m != nil { - return m.SocketFilename +func (x *IPSecLink) GetLocalIp() string { + if x != nil { + return x.LocalIp } return "" } -func (m *MemifLink) GetSecret() string { - if m != nil { - return m.Secret +func (x *IPSecLink) GetRemoteIp() string { + if x != nil { + return x.RemoteIp } return "" } -func (m *MemifLink) GetRingSize() uint32 { - if m != nil { - return m.RingSize +func (x *IPSecLink) GetLocalSpi() uint32 { + if x != nil { + return x.LocalSpi } return 0 } -func (m *MemifLink) GetBufferSize() uint32 { - if m != nil { - return m.BufferSize +func (x *IPSecLink) GetRemoteSpi() uint32 { + if x != nil { + return x.RemoteSpi } return 0 } -func (m *MemifLink) GetRxQueues() uint32 { - if m != nil { - return m.RxQueues +func (x *IPSecLink) GetCryptoAlg() ipsec.CryptoAlg { + if x != nil { + return x.CryptoAlg } - return 0 + return ipsec.CryptoAlg_NONE_CRYPTO } -func (m *MemifLink) GetTxQueues() uint32 { - if m != nil { - return m.TxQueues +func (x *IPSecLink) GetLocalCryptoKey() string { + if x != nil { + return x.LocalCryptoKey } - return 0 -} - -// VxlanLink defines configuration for interface type: VXLAN_TUNNEL -type VxlanLink struct { - // SrcAddress is source VTEP address - SrcAddress string `protobuf:"bytes,1,opt,name=src_address,json=srcAddress,proto3" json:"src_address,omitempty"` - // DstAddress is destination VTEP address - DstAddress string `protobuf:"bytes,2,opt,name=dst_address,json=dstAddress,proto3" json:"dst_address,omitempty"` - // Vni stands for VXLAN Network Identifier - Vni uint32 `protobuf:"varint,3,opt,name=vni,proto3" json:"vni,omitempty"` - // Multicast defines name of multicast interface - Multicast string `protobuf:"bytes,4,opt,name=multicast,proto3" json:"multicast,omitempty"` - Gpe *VxlanLink_Gpe `protobuf:"bytes,5,opt,name=gpe,proto3" json:"gpe,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VxlanLink) Reset() { *m = VxlanLink{} } -func (m *VxlanLink) String() string { return proto.CompactTextString(m) } -func (*VxlanLink) ProtoMessage() {} -func (*VxlanLink) Descriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{3} -} - -func (m *VxlanLink) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VxlanLink.Unmarshal(m, b) -} -func (m *VxlanLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VxlanLink.Marshal(b, m, deterministic) -} -func (m *VxlanLink) XXX_Merge(src proto.Message) { - xxx_messageInfo_VxlanLink.Merge(m, src) -} -func (m *VxlanLink) XXX_Size() int { - return xxx_messageInfo_VxlanLink.Size(m) -} -func (m *VxlanLink) XXX_DiscardUnknown() { - xxx_messageInfo_VxlanLink.DiscardUnknown(m) + return "" } -var xxx_messageInfo_VxlanLink proto.InternalMessageInfo - -func (m *VxlanLink) GetSrcAddress() string { - if m != nil { - return m.SrcAddress +func (x *IPSecLink) GetRemoteCryptoKey() string { + if x != nil { + return x.RemoteCryptoKey } return "" } -func (m *VxlanLink) GetDstAddress() string { - if m != nil { - return m.DstAddress +func (x *IPSecLink) GetIntegAlg() ipsec.IntegAlg { + if x != nil { + return x.IntegAlg } - return "" + return ipsec.IntegAlg_NONE_INTEG } -func (m *VxlanLink) GetVni() uint32 { - if m != nil { - return m.Vni +func (x *IPSecLink) GetLocalIntegKey() string { + if x != nil { + return x.LocalIntegKey } - return 0 + return "" } -func (m *VxlanLink) GetMulticast() string { - if m != nil { - return m.Multicast +func (x *IPSecLink) GetRemoteIntegKey() string { + if x != nil { + return x.RemoteIntegKey } return "" } -func (m *VxlanLink) GetGpe() *VxlanLink_Gpe { - if m != nil { - return m.Gpe +func (x *IPSecLink) GetEnableUdpEncap() bool { + if x != nil { + return x.EnableUdpEncap } - return nil + return false } -// Gpe (Generic Protocol Extension) allows encapsulating not only Ethernet frame payload. -type VxlanLink_Gpe struct { - DecapVrfId uint32 `protobuf:"varint,1,opt,name=decap_vrf_id,json=decapVrfId,proto3" json:"decap_vrf_id,omitempty"` - // Protocol defines encapsulated protocol - Protocol VxlanLink_Gpe_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=ligato.vpp.interfaces.VxlanLink_Gpe_Protocol" json:"protocol,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +// VmxNet3Link defines configuration for interface type: VMXNET3_INTERFACE +// PCI address (unsigned 32bit int) is derived from vmxnet3 interface name. It is expected that the interface +// name is in format "vmxnet3-///", where 'd' stands for domain (max ffff), 'b' is bus (max ff), +// 's' is slot (max 1f) and 'f is function' (max 7). All values are base 16 +type VmxNet3Link struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *VxlanLink_Gpe) Reset() { *m = VxlanLink_Gpe{} } -func (m *VxlanLink_Gpe) String() string { return proto.CompactTextString(m) } -func (*VxlanLink_Gpe) ProtoMessage() {} -func (*VxlanLink_Gpe) Descriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{3, 0} + // Turn on elog + EnableElog bool `protobuf:"varint,2,opt,name=enable_elog,json=enableElog,proto3" json:"enable_elog,omitempty"` + // Receive queue size (default is 1024) + RxqSize uint32 `protobuf:"varint,3,opt,name=rxq_size,json=rxqSize,proto3" json:"rxq_size,omitempty"` + // Transmit queue size (default is 1024) + TxqSize uint32 `protobuf:"varint,4,opt,name=txq_size,json=txqSize,proto3" json:"txq_size,omitempty"` } -func (m *VxlanLink_Gpe) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VxlanLink_Gpe.Unmarshal(m, b) -} -func (m *VxlanLink_Gpe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VxlanLink_Gpe.Marshal(b, m, deterministic) -} -func (m *VxlanLink_Gpe) XXX_Merge(src proto.Message) { - xxx_messageInfo_VxlanLink_Gpe.Merge(m, src) -} -func (m *VxlanLink_Gpe) XXX_Size() int { - return xxx_messageInfo_VxlanLink_Gpe.Size(m) +func (x *VmxNet3Link) Reset() { + *x = VmxNet3Link{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *VxlanLink_Gpe) XXX_DiscardUnknown() { - xxx_messageInfo_VxlanLink_Gpe.DiscardUnknown(m) + +func (x *VmxNet3Link) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_VxlanLink_Gpe proto.InternalMessageInfo +func (*VmxNet3Link) ProtoMessage() {} -func (m *VxlanLink_Gpe) GetDecapVrfId() uint32 { - if m != nil { - return m.DecapVrfId +func (x *VmxNet3Link) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (m *VxlanLink_Gpe) GetProtocol() VxlanLink_Gpe_Protocol { - if m != nil { - return m.Protocol - } - return VxlanLink_Gpe_UNKNOWN +// Deprecated: Use VmxNet3Link.ProtoReflect.Descriptor instead. +func (*VmxNet3Link) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{7} } -// AfpacketLink defines configuration for interface type: AF_PACKET -type AfpacketLink struct { - // Name of the host (Linux) interface to bind to. - // This field is DEPRECATED. The logical reference should be used instead. - // Target Linux interface which is not configured by the same (or any) vpp-agent can be assigned - // a logical name using a Linux interface configuration entry of type EXISTING - // (see proto/ligato/linux/interfaces/interface.proto). - // It is mandatory to define either or . - HostIfName string `protobuf:"bytes,1,opt,name=host_if_name,json=hostIfName,proto3" json:"host_if_name,omitempty"` // Deprecated: Do not use. - // Logical name of the Linux interface to bind to. - // This is an alternative (and preferred) interface reference to . - // It is mandatory to define either or . - LinuxInterface string `protobuf:"bytes,2,opt,name=linux_interface,json=linuxInterface,proto3" json:"linux_interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *VmxNet3Link) GetEnableElog() bool { + if x != nil { + return x.EnableElog + } + return false } -func (m *AfpacketLink) Reset() { *m = AfpacketLink{} } -func (m *AfpacketLink) String() string { return proto.CompactTextString(m) } -func (*AfpacketLink) ProtoMessage() {} -func (*AfpacketLink) Descriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{4} +func (x *VmxNet3Link) GetRxqSize() uint32 { + if x != nil { + return x.RxqSize + } + return 0 } -func (m *AfpacketLink) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AfpacketLink.Unmarshal(m, b) -} -func (m *AfpacketLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AfpacketLink.Marshal(b, m, deterministic) -} -func (m *AfpacketLink) XXX_Merge(src proto.Message) { - xxx_messageInfo_AfpacketLink.Merge(m, src) -} -func (m *AfpacketLink) XXX_Size() int { - return xxx_messageInfo_AfpacketLink.Size(m) -} -func (m *AfpacketLink) XXX_DiscardUnknown() { - xxx_messageInfo_AfpacketLink.DiscardUnknown(m) +func (x *VmxNet3Link) GetTxqSize() uint32 { + if x != nil { + return x.TxqSize + } + return 0 } -var xxx_messageInfo_AfpacketLink proto.InternalMessageInfo +// BondLink defines configuration for interface type: BOND_INTERFACE +type BondLink struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -// Deprecated: Do not use. -func (m *AfpacketLink) GetHostIfName() string { - if m != nil { - return m.HostIfName - } - return "" + Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Mode BondLink_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=ligato.vpp.interfaces.BondLink_Mode" json:"mode,omitempty"` + // Load balance is optional and valid only for XOR and LACP modes + Lb BondLink_LoadBalance `protobuf:"varint,4,opt,name=lb,proto3,enum=ligato.vpp.interfaces.BondLink_LoadBalance" json:"lb,omitempty"` + BondedInterfaces []*BondLink_BondedInterface `protobuf:"bytes,12,rep,name=bonded_interfaces,json=bondedInterfaces,proto3" json:"bonded_interfaces,omitempty"` } -func (m *AfpacketLink) GetLinuxInterface() string { - if m != nil { - return m.LinuxInterface +func (x *BondLink) Reset() { + *x = BondLink{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -// TapLink defines configuration for interface type: TAP -type TapLink struct { - // 1 / unset = use the original TAP interface; 2 = use a fast virtio-based TAP - Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - // Name of the TAP interface in the host OS; - // if empty, it will be auto-generated (suitable for combination with TAP_TO_VPP - // interface from Linux ifplugin, because then this name is only temporary anyway) - HostIfName string `protobuf:"bytes,2,opt,name=host_if_name,json=hostIfName,proto3" json:"host_if_name,omitempty"` - // If TAP connects VPP with microservice, fill this parameter with the target - // microservice name - should match with the namespace reference of the associated - // TAP_TO_VPP interface (it is still moved to the namespace by Linux-ifplugin but - // VPP-ifplugin needs to be aware of this dependency) - ToMicroservice string `protobuf:"bytes,3,opt,name=to_microservice,json=toMicroservice,proto3" json:"to_microservice,omitempty"` - // Rx ring buffer size; must be power of 2; default is 256; only for TAP v.2 - RxRingSize uint32 `protobuf:"varint,4,opt,name=rx_ring_size,json=rxRingSize,proto3" json:"rx_ring_size,omitempty"` - // Tx ring buffer size; must be power of 2; default is 256; only for TAP v.2 - TxRingSize uint32 `protobuf:"varint,5,opt,name=tx_ring_size,json=txRingSize,proto3" json:"tx_ring_size,omitempty"` - // EnableGso enables GSO mode for TAP interface. - EnableGso bool `protobuf:"varint,6,opt,name=enable_gso,json=enableGso,proto3" json:"enable_gso,omitempty"` - // EnableTunnel enables tunnel mode for TAP interface. - EnableTunnel bool `protobuf:"varint,7,opt,name=enable_tunnel,json=enableTunnel,proto3" json:"enable_tunnel,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *BondLink) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TapLink) Reset() { *m = TapLink{} } -func (m *TapLink) String() string { return proto.CompactTextString(m) } -func (*TapLink) ProtoMessage() {} -func (*TapLink) Descriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{5} -} +func (*BondLink) ProtoMessage() {} -func (m *TapLink) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TapLink.Unmarshal(m, b) -} -func (m *TapLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TapLink.Marshal(b, m, deterministic) -} -func (m *TapLink) XXX_Merge(src proto.Message) { - xxx_messageInfo_TapLink.Merge(m, src) -} -func (m *TapLink) XXX_Size() int { - return xxx_messageInfo_TapLink.Size(m) -} -func (m *TapLink) XXX_DiscardUnknown() { - xxx_messageInfo_TapLink.DiscardUnknown(m) +func (x *BondLink) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TapLink proto.InternalMessageInfo +// Deprecated: Use BondLink.ProtoReflect.Descriptor instead. +func (*BondLink) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{8} +} -func (m *TapLink) GetVersion() uint32 { - if m != nil { - return m.Version +func (x *BondLink) GetId() uint32 { + if x != nil { + return x.Id } return 0 } -func (m *TapLink) GetHostIfName() string { - if m != nil { - return m.HostIfName +func (x *BondLink) GetMode() BondLink_Mode { + if x != nil { + return x.Mode } - return "" + return BondLink_UNKNOWN } -func (m *TapLink) GetToMicroservice() string { - if m != nil { - return m.ToMicroservice +func (x *BondLink) GetLb() BondLink_LoadBalance { + if x != nil { + return x.Lb } - return "" + return BondLink_L2 } -func (m *TapLink) GetRxRingSize() uint32 { - if m != nil { - return m.RxRingSize +func (x *BondLink) GetBondedInterfaces() []*BondLink_BondedInterface { + if x != nil { + return x.BondedInterfaces } - return 0 + return nil } -func (m *TapLink) GetTxRingSize() uint32 { - if m != nil { - return m.TxRingSize - } - return 0 -} +type GreLink struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TapLink) GetEnableGso() bool { - if m != nil { - return m.EnableGso - } - return false + TunnelType GreLink_Type `protobuf:"varint,1,opt,name=tunnel_type,json=tunnelType,proto3,enum=ligato.vpp.interfaces.GreLink_Type" json:"tunnel_type,omitempty"` + SrcAddr string `protobuf:"bytes,2,opt,name=src_addr,json=srcAddr,proto3" json:"src_addr,omitempty"` + DstAddr string `protobuf:"bytes,3,opt,name=dst_addr,json=dstAddr,proto3" json:"dst_addr,omitempty"` + OuterFibId uint32 `protobuf:"varint,4,opt,name=outer_fib_id,json=outerFibId,proto3" json:"outer_fib_id,omitempty"` + SessionId uint32 `protobuf:"varint,5,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` } -func (m *TapLink) GetEnableTunnel() bool { - if m != nil { - return m.EnableTunnel +func (x *GreLink) Reset() { + *x = GreLink{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return false -} - -// IPSecLink defines configuration for interface type: IPSEC_TUNNEL -type IPSecLink struct { - // Extended sequence number - Esn bool `protobuf:"varint,2,opt,name=esn,proto3" json:"esn,omitempty"` - // Anti replay option - AntiReplay bool `protobuf:"varint,3,opt,name=anti_replay,json=antiReplay,proto3" json:"anti_replay,omitempty"` - // Local IP address - LocalIp string `protobuf:"bytes,4,opt,name=local_ip,json=localIp,proto3" json:"local_ip,omitempty"` - // Remote IP address - RemoteIp string `protobuf:"bytes,5,opt,name=remote_ip,json=remoteIp,proto3" json:"remote_ip,omitempty"` - // Local security parameter index - LocalSpi uint32 `protobuf:"varint,6,opt,name=local_spi,json=localSpi,proto3" json:"local_spi,omitempty"` - // Remote security parameter index - RemoteSpi uint32 `protobuf:"varint,7,opt,name=remote_spi,json=remoteSpi,proto3" json:"remote_spi,omitempty"` - // Cryptographic algorithm for encryption - CryptoAlg ipsec.CryptoAlg `protobuf:"varint,8,opt,name=crypto_alg,json=cryptoAlg,proto3,enum=ligato.vpp.ipsec.CryptoAlg" json:"crypto_alg,omitempty"` - LocalCryptoKey string `protobuf:"bytes,9,opt,name=local_crypto_key,json=localCryptoKey,proto3" json:"local_crypto_key,omitempty"` - RemoteCryptoKey string `protobuf:"bytes,10,opt,name=remote_crypto_key,json=remoteCryptoKey,proto3" json:"remote_crypto_key,omitempty"` - // Cryptographic algorithm for authentication - IntegAlg ipsec.IntegAlg `protobuf:"varint,11,opt,name=integ_alg,json=integAlg,proto3,enum=ligato.vpp.ipsec.IntegAlg" json:"integ_alg,omitempty"` - LocalIntegKey string `protobuf:"bytes,12,opt,name=local_integ_key,json=localIntegKey,proto3" json:"local_integ_key,omitempty"` - RemoteIntegKey string `protobuf:"bytes,13,opt,name=remote_integ_key,json=remoteIntegKey,proto3" json:"remote_integ_key,omitempty"` - EnableUdpEncap bool `protobuf:"varint,14,opt,name=enable_udp_encap,json=enableUdpEncap,proto3" json:"enable_udp_encap,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IPSecLink) Reset() { *m = IPSecLink{} } -func (m *IPSecLink) String() string { return proto.CompactTextString(m) } -func (*IPSecLink) ProtoMessage() {} -func (*IPSecLink) Descriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{6} } -func (m *IPSecLink) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IPSecLink.Unmarshal(m, b) -} -func (m *IPSecLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IPSecLink.Marshal(b, m, deterministic) -} -func (m *IPSecLink) XXX_Merge(src proto.Message) { - xxx_messageInfo_IPSecLink.Merge(m, src) -} -func (m *IPSecLink) XXX_Size() int { - return xxx_messageInfo_IPSecLink.Size(m) -} -func (m *IPSecLink) XXX_DiscardUnknown() { - xxx_messageInfo_IPSecLink.DiscardUnknown(m) +func (x *GreLink) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_IPSecLink proto.InternalMessageInfo +func (*GreLink) ProtoMessage() {} -func (m *IPSecLink) GetEsn() bool { - if m != nil { - return m.Esn +func (x *GreLink) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return false + return mi.MessageOf(x) +} + +// Deprecated: Use GreLink.ProtoReflect.Descriptor instead. +func (*GreLink) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{9} } -func (m *IPSecLink) GetAntiReplay() bool { - if m != nil { - return m.AntiReplay +func (x *GreLink) GetTunnelType() GreLink_Type { + if x != nil { + return x.TunnelType } - return false + return GreLink_UNKNOWN } -func (m *IPSecLink) GetLocalIp() string { - if m != nil { - return m.LocalIp +func (x *GreLink) GetSrcAddr() string { + if x != nil { + return x.SrcAddr } return "" } -func (m *IPSecLink) GetRemoteIp() string { - if m != nil { - return m.RemoteIp +func (x *GreLink) GetDstAddr() string { + if x != nil { + return x.DstAddr } return "" } -func (m *IPSecLink) GetLocalSpi() uint32 { - if m != nil { - return m.LocalSpi +func (x *GreLink) GetOuterFibId() uint32 { + if x != nil { + return x.OuterFibId } return 0 } -func (m *IPSecLink) GetRemoteSpi() uint32 { - if m != nil { - return m.RemoteSpi +func (x *GreLink) GetSessionId() uint32 { + if x != nil { + return x.SessionId } return 0 } -func (m *IPSecLink) GetCryptoAlg() ipsec.CryptoAlg { - if m != nil { - return m.CryptoAlg - } - return ipsec.CryptoAlg_NONE_CRYPTO +type GtpuLink struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Source VTEP address + SrcAddr string `protobuf:"bytes,1,opt,name=src_addr,json=srcAddr,proto3" json:"src_addr,omitempty"` + // Destination VTEP address + DstAddr string `protobuf:"bytes,2,opt,name=dst_addr,json=dstAddr,proto3" json:"dst_addr,omitempty"` + // Name of multicast interface + Multicast string `protobuf:"bytes,3,opt,name=multicast,proto3" json:"multicast,omitempty"` + // Tunnel endpoint identifier + Teid uint32 `protobuf:"varint,4,opt,name=teid,proto3" json:"teid,omitempty"` + // VRF id for the encapsulated packets + EncapVrfId uint32 `protobuf:"varint,5,opt,name=encap_vrf_id,json=encapVrfId,proto3" json:"encap_vrf_id,omitempty"` + // Next VPP node after decapsulation + DecapNext GtpuLink_NextNode `protobuf:"varint,6,opt,name=decap_next,json=decapNext,proto3,enum=ligato.vpp.interfaces.GtpuLink_NextNode" json:"decap_next,omitempty"` } -func (m *IPSecLink) GetLocalCryptoKey() string { - if m != nil { - return m.LocalCryptoKey +func (x *GtpuLink) Reset() { + *x = GtpuLink{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (m *IPSecLink) GetRemoteCryptoKey() string { - if m != nil { - return m.RemoteCryptoKey - } - return "" +func (x *GtpuLink) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *IPSecLink) GetIntegAlg() ipsec.IntegAlg { - if m != nil { - return m.IntegAlg +func (*GtpuLink) ProtoMessage() {} + +func (x *GtpuLink) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return ipsec.IntegAlg_NONE_INTEG + return mi.MessageOf(x) } -func (m *IPSecLink) GetLocalIntegKey() string { - if m != nil { - return m.LocalIntegKey +// Deprecated: Use GtpuLink.ProtoReflect.Descriptor instead. +func (*GtpuLink) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{10} +} + +func (x *GtpuLink) GetSrcAddr() string { + if x != nil { + return x.SrcAddr } return "" } -func (m *IPSecLink) GetRemoteIntegKey() string { - if m != nil { - return m.RemoteIntegKey +func (x *GtpuLink) GetDstAddr() string { + if x != nil { + return x.DstAddr } return "" } -func (m *IPSecLink) GetEnableUdpEncap() bool { - if m != nil { - return m.EnableUdpEncap +func (x *GtpuLink) GetMulticast() string { + if x != nil { + return x.Multicast } - return false + return "" } -// VmxNet3Link defines configuration for interface type: VMXNET3_INTERFACE -// PCI address (unsigned 32bit int) is derived from vmxnet3 interface name. It is expected that the interface -// name is in format "vmxnet3-///", where 'd' stands for domain (max ffff), 'b' is bus (max ff), -// 's' is slot (max 1f) and 'f is function' (max 7). All values are base 16 -type VmxNet3Link struct { - // Turn on elog - EnableElog bool `protobuf:"varint,2,opt,name=enable_elog,json=enableElog,proto3" json:"enable_elog,omitempty"` - // Receive queue size (default is 1024) - RxqSize uint32 `protobuf:"varint,3,opt,name=rxq_size,json=rxqSize,proto3" json:"rxq_size,omitempty"` - // Transmit queue size (default is 1024) - TxqSize uint32 `protobuf:"varint,4,opt,name=txq_size,json=txqSize,proto3" json:"txq_size,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *GtpuLink) GetTeid() uint32 { + if x != nil { + return x.Teid + } + return 0 } -func (m *VmxNet3Link) Reset() { *m = VmxNet3Link{} } -func (m *VmxNet3Link) String() string { return proto.CompactTextString(m) } -func (*VmxNet3Link) ProtoMessage() {} -func (*VmxNet3Link) Descriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{7} +func (x *GtpuLink) GetEncapVrfId() uint32 { + if x != nil { + return x.EncapVrfId + } + return 0 } -func (m *VmxNet3Link) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VmxNet3Link.Unmarshal(m, b) +func (x *GtpuLink) GetDecapNext() GtpuLink_NextNode { + if x != nil { + return x.DecapNext + } + return GtpuLink_DEFAULT } -func (m *VmxNet3Link) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VmxNet3Link.Marshal(b, m, deterministic) + +type IPIPLink struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Mode of the IPIP tunnel + TunnelMode IPIPLink_Mode `protobuf:"varint,1,opt,name=tunnel_mode,json=tunnelMode,proto3,enum=ligato.vpp.interfaces.IPIPLink_Mode" json:"tunnel_mode,omitempty"` + // Source VTEP IP address + SrcAddr string `protobuf:"bytes,2,opt,name=src_addr,json=srcAddr,proto3" json:"src_addr,omitempty"` + // Destination VTEP IP address + DstAddr string `protobuf:"bytes,3,opt,name=dst_addr,json=dstAddr,proto3" json:"dst_addr,omitempty"` } -func (m *VmxNet3Link) XXX_Merge(src proto.Message) { - xxx_messageInfo_VmxNet3Link.Merge(m, src) + +func (x *IPIPLink) Reset() { + *x = IPIPLink{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *VmxNet3Link) XXX_Size() int { - return xxx_messageInfo_VmxNet3Link.Size(m) + +func (x *IPIPLink) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VmxNet3Link) XXX_DiscardUnknown() { - xxx_messageInfo_VmxNet3Link.DiscardUnknown(m) + +func (*IPIPLink) ProtoMessage() {} + +func (x *IPIPLink) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_VmxNet3Link proto.InternalMessageInfo +// Deprecated: Use IPIPLink.ProtoReflect.Descriptor instead. +func (*IPIPLink) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{11} +} -func (m *VmxNet3Link) GetEnableElog() bool { - if m != nil { - return m.EnableElog +func (x *IPIPLink) GetTunnelMode() IPIPLink_Mode { + if x != nil { + return x.TunnelMode } - return false + return IPIPLink_POINT_TO_POINT } -func (m *VmxNet3Link) GetRxqSize() uint32 { - if m != nil { - return m.RxqSize +func (x *IPIPLink) GetSrcAddr() string { + if x != nil { + return x.SrcAddr } - return 0 + return "" } -func (m *VmxNet3Link) GetTxqSize() uint32 { - if m != nil { - return m.TxqSize +func (x *IPIPLink) GetDstAddr() string { + if x != nil { + return x.DstAddr } - return 0 + return "" } -// BondLink defines configuration for interface type: BOND_INTERFACE -type BondLink struct { - Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Mode BondLink_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=ligato.vpp.interfaces.BondLink_Mode" json:"mode,omitempty"` - // Load balance is optional and valid only for XOR and LACP modes - Lb BondLink_LoadBalance `protobuf:"varint,4,opt,name=lb,proto3,enum=ligato.vpp.interfaces.BondLink_LoadBalance" json:"lb,omitempty"` - BondedInterfaces []*BondLink_BondedInterface `protobuf:"bytes,12,rep,name=bonded_interfaces,json=bondedInterfaces,proto3" json:"bonded_interfaces,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Ip6Nd is used to enable/disable IPv6 ND address autoconfiguration +// and setting up default routes +type Interface_IP6ND struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Enable IPv6 ND address autoconfiguration. + AddressAutoconfig bool `protobuf:"varint,1,opt,name=address_autoconfig,json=addressAutoconfig,proto3" json:"address_autoconfig,omitempty"` + // Enable installing default routes. + InstallDefaultRoutes bool `protobuf:"varint,2,opt,name=install_default_routes,json=installDefaultRoutes,proto3" json:"install_default_routes,omitempty"` } -func (m *BondLink) Reset() { *m = BondLink{} } -func (m *BondLink) String() string { return proto.CompactTextString(m) } -func (*BondLink) ProtoMessage() {} -func (*BondLink) Descriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{8} +func (x *Interface_IP6ND) Reset() { + *x = Interface_IP6ND{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BondLink) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BondLink.Unmarshal(m, b) +func (x *Interface_IP6ND) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BondLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BondLink.Marshal(b, m, deterministic) + +func (*Interface_IP6ND) ProtoMessage() {} + +func (x *Interface_IP6ND) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *BondLink) XXX_Merge(src proto.Message) { - xxx_messageInfo_BondLink.Merge(m, src) + +// Deprecated: Use Interface_IP6ND.ProtoReflect.Descriptor instead. +func (*Interface_IP6ND) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{0, 0} } -func (m *BondLink) XXX_Size() int { - return xxx_messageInfo_BondLink.Size(m) + +func (x *Interface_IP6ND) GetAddressAutoconfig() bool { + if x != nil { + return x.AddressAutoconfig + } + return false } -func (m *BondLink) XXX_DiscardUnknown() { - xxx_messageInfo_BondLink.DiscardUnknown(m) + +func (x *Interface_IP6ND) GetInstallDefaultRoutes() bool { + if x != nil { + return x.InstallDefaultRoutes + } + return false } -var xxx_messageInfo_BondLink proto.InternalMessageInfo +// Unnumbered is used for inheriting IP address from another interface. +type Interface_Unnumbered struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BondLink) GetId() uint32 { - if m != nil { - return m.Id - } - return 0 + // InterfaceWithIp is the name of interface to inherit IP address from. + InterfaceWithIp string `protobuf:"bytes,1,opt,name=interface_with_ip,json=interfaceWithIp,proto3" json:"interface_with_ip,omitempty"` } -func (m *BondLink) GetMode() BondLink_Mode { - if m != nil { - return m.Mode +func (x *Interface_Unnumbered) Reset() { + *x = Interface_Unnumbered{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return BondLink_UNKNOWN } -func (m *BondLink) GetLb() BondLink_LoadBalance { - if m != nil { - return m.Lb - } - return BondLink_L2 +func (x *Interface_Unnumbered) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BondLink) GetBondedInterfaces() []*BondLink_BondedInterface { - if m != nil { - return m.BondedInterfaces +func (*Interface_Unnumbered) ProtoMessage() {} + +func (x *Interface_Unnumbered) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type BondLink_BondedInterface struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - IsPassive bool `protobuf:"varint,2,opt,name=is_passive,json=isPassive,proto3" json:"is_passive,omitempty"` - IsLongTimeout bool `protobuf:"varint,3,opt,name=is_long_timeout,json=isLongTimeout,proto3" json:"is_long_timeout,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use Interface_Unnumbered.ProtoReflect.Descriptor instead. +func (*Interface_Unnumbered) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{0, 1} } -func (m *BondLink_BondedInterface) Reset() { *m = BondLink_BondedInterface{} } -func (m *BondLink_BondedInterface) String() string { return proto.CompactTextString(m) } -func (*BondLink_BondedInterface) ProtoMessage() {} -func (*BondLink_BondedInterface) Descriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{8, 0} +func (x *Interface_Unnumbered) GetInterfaceWithIp() string { + if x != nil { + return x.InterfaceWithIp + } + return "" } -func (m *BondLink_BondedInterface) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BondLink_BondedInterface.Unmarshal(m, b) -} -func (m *BondLink_BondedInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BondLink_BondedInterface.Marshal(b, m, deterministic) +type Interface_RxMode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Queue uint32 `protobuf:"varint,1,opt,name=queue,proto3" json:"queue,omitempty"` + Mode Interface_RxMode_Type `protobuf:"varint,2,opt,name=mode,proto3,enum=ligato.vpp.interfaces.Interface_RxMode_Type" json:"mode,omitempty"` + // DefaultMode, if set to true, the field will be ignored + // and the will be used as a default for all the queues. + DefaultMode bool `protobuf:"varint,3,opt,name=default_mode,json=defaultMode,proto3" json:"default_mode,omitempty"` } -func (m *BondLink_BondedInterface) XXX_Merge(src proto.Message) { - xxx_messageInfo_BondLink_BondedInterface.Merge(m, src) + +func (x *Interface_RxMode) Reset() { + *x = Interface_RxMode{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BondLink_BondedInterface) XXX_Size() int { - return xxx_messageInfo_BondLink_BondedInterface.Size(m) + +func (x *Interface_RxMode) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BondLink_BondedInterface) XXX_DiscardUnknown() { - xxx_messageInfo_BondLink_BondedInterface.DiscardUnknown(m) + +func (*Interface_RxMode) ProtoMessage() {} + +func (x *Interface_RxMode) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BondLink_BondedInterface proto.InternalMessageInfo +// Deprecated: Use Interface_RxMode.ProtoReflect.Descriptor instead. +func (*Interface_RxMode) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{0, 2} +} -func (m *BondLink_BondedInterface) GetName() string { - if m != nil { - return m.Name +func (x *Interface_RxMode) GetQueue() uint32 { + if x != nil { + return x.Queue } - return "" + return 0 } -func (m *BondLink_BondedInterface) GetIsPassive() bool { - if m != nil { - return m.IsPassive +func (x *Interface_RxMode) GetMode() Interface_RxMode_Type { + if x != nil { + return x.Mode } - return false + return Interface_RxMode_UNKNOWN } -func (m *BondLink_BondedInterface) GetIsLongTimeout() bool { - if m != nil { - return m.IsLongTimeout +func (x *Interface_RxMode) GetDefaultMode() bool { + if x != nil { + return x.DefaultMode } return false } -type GreLink struct { - TunnelType GreLink_Type `protobuf:"varint,1,opt,name=tunnel_type,json=tunnelType,proto3,enum=ligato.vpp.interfaces.GreLink_Type" json:"tunnel_type,omitempty"` - SrcAddr string `protobuf:"bytes,2,opt,name=src_addr,json=srcAddr,proto3" json:"src_addr,omitempty"` - DstAddr string `protobuf:"bytes,3,opt,name=dst_addr,json=dstAddr,proto3" json:"dst_addr,omitempty"` - OuterFibId uint32 `protobuf:"varint,4,opt,name=outer_fib_id,json=outerFibId,proto3" json:"outer_fib_id,omitempty"` - SessionId uint32 `protobuf:"varint,5,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GreLink) Reset() { *m = GreLink{} } -func (m *GreLink) String() string { return proto.CompactTextString(m) } -func (*GreLink) ProtoMessage() {} -func (*GreLink) Descriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{9} -} +type Interface_RxPlacement struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GreLink) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GreLink.Unmarshal(m, b) -} -func (m *GreLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GreLink.Marshal(b, m, deterministic) -} -func (m *GreLink) XXX_Merge(src proto.Message) { - xxx_messageInfo_GreLink.Merge(m, src) + // Select from interval <0, number-of-queues) + Queue uint32 `protobuf:"varint,1,opt,name=queue,proto3" json:"queue,omitempty"` + // Select from interval <0, number-of-workers) + Worker uint32 `protobuf:"varint,2,opt,name=worker,proto3" json:"worker,omitempty"` + // Let the main thread to process the given queue + // - if enabled, value of is ignored + MainThread bool `protobuf:"varint,3,opt,name=main_thread,json=mainThread,proto3" json:"main_thread,omitempty"` } -func (m *GreLink) XXX_Size() int { - return xxx_messageInfo_GreLink.Size(m) + +func (x *Interface_RxPlacement) Reset() { + *x = Interface_RxPlacement{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GreLink) XXX_DiscardUnknown() { - xxx_messageInfo_GreLink.DiscardUnknown(m) + +func (x *Interface_RxPlacement) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_GreLink proto.InternalMessageInfo +func (*Interface_RxPlacement) ProtoMessage() {} -func (m *GreLink) GetTunnelType() GreLink_Type { - if m != nil { - return m.TunnelType +func (x *Interface_RxPlacement) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return GreLink_UNKNOWN + return mi.MessageOf(x) } -func (m *GreLink) GetSrcAddr() string { - if m != nil { - return m.SrcAddr - } - return "" +// Deprecated: Use Interface_RxPlacement.ProtoReflect.Descriptor instead. +func (*Interface_RxPlacement) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{0, 3} } -func (m *GreLink) GetDstAddr() string { - if m != nil { - return m.DstAddr +func (x *Interface_RxPlacement) GetQueue() uint32 { + if x != nil { + return x.Queue } - return "" + return 0 } -func (m *GreLink) GetOuterFibId() uint32 { - if m != nil { - return m.OuterFibId +func (x *Interface_RxPlacement) GetWorker() uint32 { + if x != nil { + return x.Worker } return 0 } -func (m *GreLink) GetSessionId() uint32 { - if m != nil { - return m.SessionId +func (x *Interface_RxPlacement) GetMainThread() bool { + if x != nil { + return x.MainThread } - return 0 + return false } -type GtpuLink struct { - // Source VTEP address - SrcAddr string `protobuf:"bytes,1,opt,name=src_addr,json=srcAddr,proto3" json:"src_addr,omitempty"` - // Destination VTEP address - DstAddr string `protobuf:"bytes,2,opt,name=dst_addr,json=dstAddr,proto3" json:"dst_addr,omitempty"` - // Name of multicast interface - Multicast string `protobuf:"bytes,3,opt,name=multicast,proto3" json:"multicast,omitempty"` - // Tunnel endpoint identifier - Teid uint32 `protobuf:"varint,4,opt,name=teid,proto3" json:"teid,omitempty"` - // VRF id for the encapsulated packets - EncapVrfId uint32 `protobuf:"varint,5,opt,name=encap_vrf_id,json=encapVrfId,proto3" json:"encap_vrf_id,omitempty"` - // Next VPP node after decapsulation - DecapNext GtpuLink_NextNode `protobuf:"varint,6,opt,name=decap_next,json=decapNext,proto3,enum=ligato.vpp.interfaces.GtpuLink_NextNode" json:"decap_next,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +// Gpe (Generic Protocol Extension) allows encapsulating not only Ethernet frame payload. +type VxlanLink_Gpe struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GtpuLink) Reset() { *m = GtpuLink{} } -func (m *GtpuLink) String() string { return proto.CompactTextString(m) } -func (*GtpuLink) ProtoMessage() {} -func (*GtpuLink) Descriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{10} + DecapVrfId uint32 `protobuf:"varint,1,opt,name=decap_vrf_id,json=decapVrfId,proto3" json:"decap_vrf_id,omitempty"` + // Protocol defines encapsulated protocol + Protocol VxlanLink_Gpe_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=ligato.vpp.interfaces.VxlanLink_Gpe_Protocol" json:"protocol,omitempty"` } -func (m *GtpuLink) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GtpuLink.Unmarshal(m, b) -} -func (m *GtpuLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GtpuLink.Marshal(b, m, deterministic) -} -func (m *GtpuLink) XXX_Merge(src proto.Message) { - xxx_messageInfo_GtpuLink.Merge(m, src) -} -func (m *GtpuLink) XXX_Size() int { - return xxx_messageInfo_GtpuLink.Size(m) +func (x *VxlanLink_Gpe) Reset() { + *x = VxlanLink_Gpe{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GtpuLink) XXX_DiscardUnknown() { - xxx_messageInfo_GtpuLink.DiscardUnknown(m) + +func (x *VxlanLink_Gpe) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_GtpuLink proto.InternalMessageInfo +func (*VxlanLink_Gpe) ProtoMessage() {} -func (m *GtpuLink) GetSrcAddr() string { - if m != nil { - return m.SrcAddr +func (x *VxlanLink_Gpe) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *GtpuLink) GetDstAddr() string { - if m != nil { - return m.DstAddr - } - return "" +// Deprecated: Use VxlanLink_Gpe.ProtoReflect.Descriptor instead. +func (*VxlanLink_Gpe) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{3, 0} } -func (m *GtpuLink) GetMulticast() string { - if m != nil { - return m.Multicast +func (x *VxlanLink_Gpe) GetDecapVrfId() uint32 { + if x != nil { + return x.DecapVrfId } - return "" + return 0 } -func (m *GtpuLink) GetTeid() uint32 { - if m != nil { - return m.Teid +func (x *VxlanLink_Gpe) GetProtocol() VxlanLink_Gpe_Protocol { + if x != nil { + return x.Protocol } - return 0 + return VxlanLink_Gpe_UNKNOWN } -func (m *GtpuLink) GetEncapVrfId() uint32 { - if m != nil { - return m.EncapVrfId - } - return 0 +type BondLink_BondedInterface struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + IsPassive bool `protobuf:"varint,2,opt,name=is_passive,json=isPassive,proto3" json:"is_passive,omitempty"` + IsLongTimeout bool `protobuf:"varint,3,opt,name=is_long_timeout,json=isLongTimeout,proto3" json:"is_long_timeout,omitempty"` } -func (m *GtpuLink) GetDecapNext() GtpuLink_NextNode { - if m != nil { - return m.DecapNext +func (x *BondLink_BondedInterface) Reset() { + *x = BondLink_BondedInterface{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return GtpuLink_DEFAULT } -type IPIPLink struct { - // Mode of the IPIP tunnel - TunnelMode IPIPLink_Mode `protobuf:"varint,1,opt,name=tunnel_mode,json=tunnelMode,proto3,enum=ligato.vpp.interfaces.IPIPLink_Mode" json:"tunnel_mode,omitempty"` - // Source VTEP IP address - SrcAddr string `protobuf:"bytes,2,opt,name=src_addr,json=srcAddr,proto3" json:"src_addr,omitempty"` - // Destination VTEP IP address - DstAddr string `protobuf:"bytes,3,opt,name=dst_addr,json=dstAddr,proto3" json:"dst_addr,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *BondLink_BondedInterface) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *IPIPLink) Reset() { *m = IPIPLink{} } -func (m *IPIPLink) String() string { return proto.CompactTextString(m) } -func (*IPIPLink) ProtoMessage() {} -func (*IPIPLink) Descriptor() ([]byte, []int) { - return fileDescriptor_8b053108eedee97b, []int{11} -} +func (*BondLink_BondedInterface) ProtoMessage() {} -func (m *IPIPLink) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IPIPLink.Unmarshal(m, b) -} -func (m *IPIPLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IPIPLink.Marshal(b, m, deterministic) -} -func (m *IPIPLink) XXX_Merge(src proto.Message) { - xxx_messageInfo_IPIPLink.Merge(m, src) -} -func (m *IPIPLink) XXX_Size() int { - return xxx_messageInfo_IPIPLink.Size(m) -} -func (m *IPIPLink) XXX_DiscardUnknown() { - xxx_messageInfo_IPIPLink.DiscardUnknown(m) +func (x *BondLink_BondedInterface) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_interface_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_IPIPLink proto.InternalMessageInfo +// Deprecated: Use BondLink_BondedInterface.ProtoReflect.Descriptor instead. +func (*BondLink_BondedInterface) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_interface_proto_rawDescGZIP(), []int{8, 0} +} -func (m *IPIPLink) GetTunnelMode() IPIPLink_Mode { - if m != nil { - return m.TunnelMode +func (x *BondLink_BondedInterface) GetName() string { + if x != nil { + return x.Name } - return IPIPLink_POINT_TO_POINT + return "" } -func (m *IPIPLink) GetSrcAddr() string { - if m != nil { - return m.SrcAddr +func (x *BondLink_BondedInterface) GetIsPassive() bool { + if x != nil { + return x.IsPassive } - return "" + return false } -func (m *IPIPLink) GetDstAddr() string { - if m != nil { - return m.DstAddr +func (x *BondLink_BondedInterface) GetIsLongTimeout() bool { + if x != nil { + return x.IsLongTimeout } - return "" + return false } -func init() { - proto.RegisterEnum("ligato.vpp.interfaces.Interface_Type", Interface_Type_name, Interface_Type_value) - proto.RegisterEnum("ligato.vpp.interfaces.Interface_RxMode_Type", Interface_RxMode_Type_name, Interface_RxMode_Type_value) - proto.RegisterEnum("ligato.vpp.interfaces.SubInterface_TagRewriteOptions", SubInterface_TagRewriteOptions_name, SubInterface_TagRewriteOptions_value) - proto.RegisterEnum("ligato.vpp.interfaces.MemifLink_MemifMode", MemifLink_MemifMode_name, MemifLink_MemifMode_value) - proto.RegisterEnum("ligato.vpp.interfaces.VxlanLink_Gpe_Protocol", VxlanLink_Gpe_Protocol_name, VxlanLink_Gpe_Protocol_value) - proto.RegisterEnum("ligato.vpp.interfaces.BondLink_Mode", BondLink_Mode_name, BondLink_Mode_value) - proto.RegisterEnum("ligato.vpp.interfaces.BondLink_LoadBalance", BondLink_LoadBalance_name, BondLink_LoadBalance_value) - proto.RegisterEnum("ligato.vpp.interfaces.GreLink_Type", GreLink_Type_name, GreLink_Type_value) - proto.RegisterEnum("ligato.vpp.interfaces.GtpuLink_NextNode", GtpuLink_NextNode_name, GtpuLink_NextNode_value) - proto.RegisterEnum("ligato.vpp.interfaces.IPIPLink_Mode", IPIPLink_Mode_name, IPIPLink_Mode_value) - proto.RegisterType((*Interface)(nil), "ligato.vpp.interfaces.Interface") - proto.RegisterType((*Interface_IP6ND)(nil), "ligato.vpp.interfaces.Interface.IP6ND") - proto.RegisterType((*Interface_Unnumbered)(nil), "ligato.vpp.interfaces.Interface.Unnumbered") - proto.RegisterType((*Interface_RxMode)(nil), "ligato.vpp.interfaces.Interface.RxMode") - proto.RegisterType((*Interface_RxPlacement)(nil), "ligato.vpp.interfaces.Interface.RxPlacement") - proto.RegisterType((*SubInterface)(nil), "ligato.vpp.interfaces.SubInterface") - proto.RegisterType((*MemifLink)(nil), "ligato.vpp.interfaces.MemifLink") - proto.RegisterType((*VxlanLink)(nil), "ligato.vpp.interfaces.VxlanLink") - proto.RegisterType((*VxlanLink_Gpe)(nil), "ligato.vpp.interfaces.VxlanLink.Gpe") - proto.RegisterType((*AfpacketLink)(nil), "ligato.vpp.interfaces.AfpacketLink") - proto.RegisterType((*TapLink)(nil), "ligato.vpp.interfaces.TapLink") - proto.RegisterType((*IPSecLink)(nil), "ligato.vpp.interfaces.IPSecLink") - proto.RegisterType((*VmxNet3Link)(nil), "ligato.vpp.interfaces.VmxNet3Link") - proto.RegisterType((*BondLink)(nil), "ligato.vpp.interfaces.BondLink") - proto.RegisterType((*BondLink_BondedInterface)(nil), "ligato.vpp.interfaces.BondLink.BondedInterface") - proto.RegisterType((*GreLink)(nil), "ligato.vpp.interfaces.GreLink") - proto.RegisterType((*GtpuLink)(nil), "ligato.vpp.interfaces.GtpuLink") - proto.RegisterType((*IPIPLink)(nil), "ligato.vpp.interfaces.IPIPLink") -} - -func init() { - proto.RegisterFile("ligato/vpp/interfaces/interface.proto", fileDescriptor_8b053108eedee97b) -} - -var fileDescriptor_8b053108eedee97b = []byte{ - // 2410 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0xdd, 0x72, 0xdb, 0xc6, - 0x15, 0x16, 0xff, 0xc1, 0xc3, 0x1f, 0xc3, 0xdb, 0x24, 0x45, 0x94, 0xb8, 0x51, 0x19, 0x27, 0xd1, - 0xa4, 0x89, 0x5c, 0x51, 0x89, 0x93, 0x36, 0x6d, 0x13, 0x52, 0x84, 0x64, 0xc4, 0x14, 0x88, 0x80, - 0xa0, 0x93, 0x74, 0xd2, 0xc1, 0x40, 0xc4, 0x92, 0x42, 0x0d, 0x02, 0x30, 0xb0, 0x94, 0xa9, 0xbc, - 0x44, 0xfb, 0x30, 0xbd, 0xec, 0x3b, 0xf4, 0x15, 0xfa, 0x00, 0xbd, 0xee, 0xb4, 0xbd, 0xe8, 0x74, - 0xce, 0xee, 0x82, 0xa2, 0x12, 0x4b, 0xf2, 0xf4, 0x46, 0xda, 0xfd, 0xce, 0xf9, 0xf6, 0xe7, 0xe0, - 0xfc, 0x2d, 0xe1, 0x9d, 0x30, 0x98, 0x7b, 0x2c, 0x7e, 0x70, 0x9e, 0x24, 0x0f, 0x82, 0x88, 0xd1, - 0x74, 0xe6, 0x4d, 0x69, 0x76, 0x39, 0xdc, 0x4b, 0xd2, 0x98, 0xc5, 0xe4, 0x55, 0xa1, 0xb6, 0x77, - 0x9e, 0x24, 0x7b, 0x97, 0x6a, 0xdb, 0x6f, 0x6e, 0xb2, 0x93, 0x8c, 0x4e, 0xc5, 0x5f, 0x41, 0xea, - 0xfc, 0xb7, 0x0d, 0x75, 0x23, 0x57, 0x26, 0x04, 0xca, 0x91, 0xb7, 0xa0, 0x5a, 0x61, 0xa7, 0xb0, - 0x5b, 0xb7, 0xf9, 0x98, 0xfc, 0x0a, 0xca, 0xec, 0x22, 0xa1, 0x5a, 0x71, 0xa7, 0xb0, 0xdb, 0xee, - 0xbe, 0xb3, 0xf7, 0xc2, 0x5d, 0xf6, 0xd6, 0x6b, 0xec, 0x39, 0x17, 0x09, 0xb5, 0x39, 0x85, 0x68, - 0x50, 0xa3, 0x91, 0x77, 0x1a, 0x52, 0x5f, 0x2b, 0xed, 0x14, 0x76, 0x15, 0x3b, 0x9f, 0x92, 0x9f, - 0x43, 0x33, 0x39, 0xbb, 0xc8, 0x5c, 0xcf, 0xf7, 0x53, 0x9a, 0x65, 0x5a, 0x99, 0x6f, 0xd8, 0x40, - 0xac, 0x27, 0x20, 0x54, 0x09, 0x92, 0x5c, 0x81, 0x66, 0x5a, 0x65, 0xa7, 0x84, 0x2a, 0x41, 0xd2, - 0xcb, 0x21, 0xa2, 0x42, 0xe9, 0x3c, 0x9d, 0x69, 0xd5, 0x9d, 0xc2, 0x6e, 0xcb, 0xc6, 0x21, 0x79, - 0x17, 0xee, 0x64, 0x94, 0xb9, 0xfe, 0xd9, 0x34, 0x71, 0xa7, 0x61, 0x40, 0x23, 0xa6, 0xd5, 0xf8, - 0xce, 0xad, 0x8c, 0xb2, 0xc1, 0xd9, 0x34, 0x39, 0xe4, 0x20, 0xf9, 0x2d, 0x54, 0x83, 0xe4, 0xa1, - 0x1b, 0xf9, 0x5a, 0x7b, 0xa7, 0xb0, 0xdb, 0xe8, 0xbe, 0x7b, 0xeb, 0xb5, 0x0c, 0xeb, 0xa1, 0x39, - 0xb0, 0x2b, 0x41, 0xf2, 0xd0, 0xf4, 0x71, 0xe3, 0x05, 0x5b, 0x6a, 0x8a, 0xd8, 0x78, 0xc1, 0x96, - 0xe4, 0x31, 0xc0, 0x32, 0x8a, 0x96, 0x8b, 0x53, 0x9a, 0x52, 0x5f, 0xab, 0xf3, 0x45, 0x7f, 0x71, - 0xeb, 0xa2, 0x93, 0x35, 0xc5, 0xde, 0xa0, 0x93, 0x3e, 0x28, 0xe9, 0xca, 0x5d, 0xc4, 0x3e, 0xcd, - 0xb4, 0xe6, 0x4e, 0x69, 0xb7, 0xd1, 0x7d, 0xef, 0xd6, 0xa5, 0xec, 0xd5, 0x49, 0xec, 0x53, 0xbb, - 0x96, 0xf2, 0xff, 0x19, 0xf9, 0x0a, 0x5a, 0xe9, 0xca, 0x4d, 0x42, 0x6f, 0x4a, 0x17, 0x34, 0x62, - 0x99, 0xd6, 0xe2, 0x0b, 0x7d, 0xf0, 0x12, 0x0b, 0x59, 0x39, 0xc9, 0x6e, 0xa6, 0x97, 0x93, 0x8c, - 0x7c, 0x02, 0xa5, 0x6c, 0x79, 0xaa, 0xf9, 0xfc, 0x72, 0x6f, 0x5f, 0xb3, 0xd0, 0x78, 0x79, 0xba, - 0x5e, 0xeb, 0xd1, 0x96, 0x8d, 0x0c, 0xf2, 0x29, 0x54, 0x16, 0x74, 0x11, 0xcc, 0x34, 0xca, 0xa9, - 0x3b, 0xd7, 0x50, 0x4f, 0x50, 0x67, 0x18, 0x44, 0x4f, 0x1f, 0x6d, 0xd9, 0x82, 0x40, 0x7a, 0xa0, - 0x78, 0xb3, 0xc4, 0x9b, 0x3e, 0xa5, 0x4c, 0x9b, 0xdd, 0xb8, 0x6f, 0x4f, 0xaa, 0x49, 0xfe, 0x9a, - 0x46, 0xba, 0x50, 0x62, 0x5e, 0xa2, 0xcd, 0x39, 0xfb, 0x67, 0xd7, 0xb0, 0x1d, 0x2f, 0x91, 0x44, - 0x54, 0xc6, 0x03, 0x9f, 0xaf, 0x42, 0x2f, 0xd2, 0xce, 0x6e, 0x3c, 0xf0, 0x13, 0xd4, 0xc9, 0x0f, - 0xcc, 0x09, 0xe4, 0x37, 0x50, 0xe1, 0xe1, 0xa5, 0x05, 0x37, 0x32, 0x0d, 0x6b, 0x4c, 0xa7, 0xc8, - 0xec, 0x17, 0xb5, 0x02, 0xb2, 0x39, 0x89, 0x7c, 0x0e, 0xca, 0xf9, 0x62, 0xe5, 0x46, 0x94, 0x1d, - 0x68, 0x7f, 0xe4, 0x0b, 0x74, 0xae, 0xdb, 0x7a, 0xb1, 0x32, 0x29, 0x3b, 0x90, 0x9b, 0xd7, 0xce, - 0xc5, 0x94, 0x7c, 0x0c, 0xe5, 0xd3, 0x38, 0xf2, 0xb5, 0xa7, 0x9c, 0xfc, 0xd6, 0x35, 0xe4, 0x7e, - 0x1c, 0xf9, 0x92, 0xc9, 0xd5, 0xd1, 0x46, 0xf3, 0x94, 0x6a, 0xe1, 0x8d, 0x36, 0x3a, 0x4e, 0x69, - 0x6e, 0xa3, 0x79, 0x4a, 0x71, 0xab, 0x39, 0x4b, 0x96, 0xda, 0xe2, 0xc6, 0xad, 0x8e, 0x59, 0xb2, - 0xcc, 0xb7, 0x42, 0x75, 0xa4, 0x05, 0x49, 0x90, 0x68, 0xd1, 0x8d, 0x34, 0xc3, 0x32, 0xac, 0x9c, - 0x86, 0xea, 0xdb, 0x21, 0x54, 0x78, 0x04, 0x92, 0x0f, 0x81, 0xc8, 0x9c, 0xe0, 0x7a, 0x4b, 0x16, - 0x4f, 0xe3, 0x68, 0x16, 0xcc, 0x79, 0xc2, 0x52, 0xec, 0xbb, 0x52, 0xd2, 0x5b, 0x0b, 0xc8, 0x47, - 0xf0, 0x5a, 0x10, 0x65, 0xcc, 0x0b, 0x43, 0xd7, 0xa7, 0x33, 0x6f, 0x19, 0x32, 0x37, 0x8d, 0x97, - 0x8c, 0x66, 0x3c, 0x9f, 0x29, 0xf6, 0x2b, 0x52, 0x3a, 0x10, 0x42, 0x9b, 0xcb, 0xb6, 0x3f, 0x05, - 0xb8, 0x0c, 0x4d, 0xf2, 0x3e, 0xdc, 0x5d, 0x1f, 0xcd, 0x7d, 0x1e, 0xb0, 0x33, 0x37, 0x48, 0x64, - 0x8a, 0xbc, 0xb3, 0x16, 0x7c, 0x1d, 0xb0, 0x33, 0x23, 0xd9, 0xfe, 0x5b, 0x01, 0xaa, 0x22, 0x14, - 0xc9, 0x2b, 0x50, 0x79, 0xb6, 0xa4, 0x4b, 0x91, 0x4d, 0x5b, 0xb6, 0x98, 0x90, 0x2f, 0xa0, 0x8c, - 0x81, 0x2d, 0xd3, 0xe9, 0x07, 0x2f, 0x19, 0xd7, 0x32, 0xab, 0x22, 0x13, 0x13, 0x63, 0x7e, 0x15, - 0xbe, 0x92, 0x48, 0xad, 0x0d, 0x89, 0xa1, 0x76, 0xe7, 0x4b, 0x28, 0x23, 0x81, 0x34, 0xa0, 0x36, - 0x31, 0x1f, 0x9b, 0xa3, 0xaf, 0x4d, 0x75, 0x0b, 0x27, 0xd6, 0x68, 0x38, 0x34, 0xcc, 0x63, 0xb5, - 0x40, 0x5a, 0x50, 0x37, 0x4c, 0x47, 0xb7, 0xed, 0x89, 0xe5, 0xa8, 0x45, 0xd2, 0x04, 0xa5, 0x37, - 0xe8, 0x59, 0x8e, 0xf1, 0x44, 0x57, 0x4b, 0xa8, 0x39, 0xd0, 0x8f, 0x7a, 0x93, 0xa1, 0xa3, 0x96, - 0xb7, 0xbf, 0x83, 0xc6, 0x46, 0x4a, 0xb8, 0xe6, 0x56, 0xaf, 0x41, 0xf5, 0x79, 0x9c, 0x3e, 0xa5, - 0x29, 0xbf, 0x57, 0xcb, 0x96, 0x33, 0xf2, 0x16, 0x34, 0x16, 0x5e, 0x10, 0xb9, 0xec, 0x2c, 0xa5, - 0x5e, 0x5e, 0x05, 0x00, 0x21, 0x87, 0x23, 0x9d, 0x7f, 0x16, 0xe4, 0x51, 0x09, 0xb4, 0x27, 0xe6, - 0x40, 0x3f, 0x32, 0x4c, 0x7d, 0xe0, 0x3a, 0xdf, 0x5a, 0xba, 0xba, 0x45, 0xee, 0x42, 0x6b, 0x3c, - 0xe9, 0xbb, 0xfc, 0xa0, 0x47, 0xbd, 0x43, 0x5d, 0x2d, 0x90, 0x57, 0xe1, 0xee, 0x78, 0x74, 0xe4, - 0x7c, 0xdd, 0xb3, 0x75, 0x77, 0x38, 0x1a, 0x59, 0xfd, 0xde, 0xe1, 0x63, 0xb5, 0x48, 0x14, 0x28, - 0x0f, 0xac, 0xc1, 0x63, 0xb5, 0x44, 0xea, 0x50, 0x39, 0xd1, 0x4f, 0x8c, 0x23, 0xb5, 0x4c, 0x6a, - 0x50, 0x72, 0x7a, 0x96, 0x5a, 0xc1, 0xcb, 0xf6, 0x8e, 0x5c, 0xab, 0x77, 0xf8, 0x58, 0x77, 0xd4, - 0x2a, 0x51, 0xa1, 0xf9, 0xe4, 0x9b, 0x61, 0xcf, 0x74, 0x9d, 0x89, 0x69, 0xea, 0x43, 0xb5, 0x46, - 0x5e, 0x81, 0xa6, 0x61, 0x8d, 0xf5, 0xc3, 0x1c, 0x51, 0xb6, 0x8b, 0x0a, 0xdf, 0xeb, 0xc9, 0xc9, - 0x37, 0xa6, 0xee, 0x1c, 0x6c, 0x1c, 0xa1, 0x8e, 0x27, 0xed, 0x8f, 0xcc, 0xc1, 0x06, 0x06, 0xa4, - 0x0d, 0x70, 0x6c, 0xeb, 0x39, 0xbd, 0x41, 0xee, 0x40, 0xe3, 0xd8, 0xb1, 0x26, 0x39, 0xd0, 0x44, - 0x00, 0x7d, 0x3a, 0x07, 0x5a, 0xfd, 0x2a, 0x94, 0xc3, 0x20, 0x7a, 0xda, 0xf9, 0x4f, 0x11, 0x9a, - 0x9b, 0x39, 0x13, 0x4d, 0x96, 0x78, 0x29, 0x8d, 0x98, 0xbb, 0x51, 0x8a, 0x41, 0x40, 0x26, 0x16, - 0xe4, 0x57, 0xa1, 0x9a, 0x2d, 0x4f, 0xdd, 0xc0, 0x97, 0xb6, 0xae, 0x64, 0xcb, 0x53, 0xc3, 0x27, - 0xdf, 0x42, 0x8b, 0x79, 0x73, 0x37, 0x7d, 0xee, 0xc6, 0x09, 0x0b, 0xe2, 0x88, 0x1b, 0xbb, 0xdd, - 0xfd, 0xf8, 0x25, 0xf2, 0xf4, 0x9e, 0xe3, 0xcd, 0x6d, 0xfa, 0x3c, 0x0d, 0x18, 0x1d, 0x71, 0x6e, - 0x66, 0x37, 0x98, 0x37, 0xb7, 0x9f, 0x8b, 0x19, 0xb9, 0x07, 0x90, 0x2c, 0xb3, 0x33, 0xd7, 0x8f, - 0xd9, 0xfe, 0x33, 0x5e, 0xab, 0x15, 0xbb, 0x8e, 0xc8, 0x00, 0x01, 0xec, 0x1a, 0x98, 0x37, 0xdf, - 0xd7, 0x2a, 0xfc, 0x38, 0x7c, 0x2c, 0xb1, 0xae, 0xac, 0xcd, 0x7c, 0xdc, 0xf9, 0x53, 0x01, 0xee, - 0xfe, 0x68, 0x27, 0x74, 0xbd, 0x81, 0x31, 0xee, 0xf5, 0x87, 0xfa, 0x40, 0xdd, 0xc2, 0xcf, 0x67, - 0x4d, 0xc6, 0x8f, 0xf6, 0xd5, 0x42, 0x3e, 0xec, 0x8a, 0xcf, 0x6b, 0x8d, 0xac, 0x7d, 0xb5, 0x24, - 0x47, 0x5d, 0xb5, 0x8c, 0x16, 0x75, 0xec, 0x9e, 0x39, 0x1e, 0xf6, 0x1c, 0x7d, 0x7f, 0x5f, 0xad, - 0x5c, 0x05, 0xba, 0x6a, 0xf5, 0x0a, 0xd0, 0xdd, 0x57, 0x6b, 0x57, 0x81, 0xae, 0xaa, 0x74, 0xfe, - 0x5e, 0x84, 0xfa, 0xba, 0xea, 0x90, 0xdf, 0xc9, 0xd0, 0x2c, 0x70, 0xc3, 0xbd, 0x7f, 0x5b, 0x95, - 0x12, 0x23, 0x5e, 0x75, 0x45, 0x60, 0xbe, 0x06, 0xd5, 0x85, 0x97, 0x31, 0x19, 0x04, 0x8a, 0x2d, - 0x67, 0xa4, 0x0d, 0xc5, 0x40, 0xf8, 0x7e, 0xcb, 0x2e, 0x06, 0x3e, 0x79, 0x0f, 0xee, 0x64, 0x31, - 0xd6, 0x26, 0x77, 0x16, 0x84, 0x94, 0x7f, 0x65, 0xd1, 0xff, 0xb4, 0x05, 0x7c, 0x24, 0x51, 0x5c, - 0x30, 0xa3, 0xd3, 0x94, 0x32, 0x6e, 0xda, 0xba, 0x2d, 0x67, 0xe4, 0x0d, 0xa8, 0xa7, 0x41, 0x34, - 0x77, 0xb3, 0xe0, 0x7b, 0x2a, 0x2d, 0xac, 0x20, 0x30, 0x0e, 0xbe, 0xe7, 0xfe, 0x73, 0xba, 0x9c, - 0xcd, 0x68, 0x2a, 0xc4, 0x35, 0x2e, 0x06, 0x01, 0x71, 0x05, 0x64, 0xaf, 0x5c, 0x1e, 0xb7, 0x99, - 0x6c, 0x61, 0x94, 0x74, 0xf5, 0x15, 0x9f, 0xa3, 0x90, 0xad, 0x85, 0x75, 0x21, 0x64, 0x52, 0xd8, - 0xe9, 0x4a, 0x6b, 0xf1, 0xf4, 0xd6, 0x04, 0x45, 0x77, 0x1e, 0xe9, 0xb6, 0xa9, 0x3b, 0xea, 0x16, - 0xa9, 0x42, 0xd1, 0xb0, 0xd4, 0x02, 0x9a, 0xd8, 0x9a, 0x98, 0x8e, 0x6b, 0x98, 0x5f, 0xea, 0x87, - 0x8e, 0x5a, 0xec, 0xfc, 0xa3, 0x08, 0xf5, 0x75, 0x9d, 0xc4, 0xc3, 0x65, 0xe9, 0x74, 0xdd, 0xf6, - 0x49, 0xe7, 0xce, 0xd2, 0x69, 0xde, 0xf5, 0xbd, 0x05, 0x0d, 0x3f, 0x63, 0x6b, 0x85, 0xa2, 0x50, - 0xf0, 0x33, 0x96, 0x2b, 0x60, 0xcf, 0x17, 0x05, 0xd2, 0x9a, 0x38, 0x24, 0x6f, 0x42, 0x7d, 0xb1, - 0x0c, 0x59, 0x30, 0xf5, 0x32, 0x26, 0x0d, 0x79, 0x09, 0x90, 0x87, 0x50, 0x9a, 0x27, 0x94, 0x1b, - 0xb0, 0xd1, 0xbd, 0x7f, 0x5b, 0x21, 0xdf, 0x3b, 0x4e, 0xa8, 0x8d, 0x84, 0xed, 0xbf, 0x14, 0xa0, - 0x74, 0x9c, 0x50, 0xb2, 0x83, 0xd9, 0x76, 0xea, 0x25, 0xee, 0x79, 0x3a, 0xc3, 0x98, 0x13, 0x69, - 0x0f, 0x38, 0xf6, 0x24, 0x9d, 0x19, 0x3e, 0x31, 0x40, 0xe1, 0xbd, 0xf4, 0x34, 0x0e, 0x65, 0x56, - 0xff, 0xf0, 0x65, 0xb6, 0xd9, 0xb3, 0x24, 0xc9, 0x5e, 0xd3, 0x3b, 0x5f, 0x80, 0x92, 0xa3, 0x57, - 0x73, 0x77, 0x0d, 0x4a, 0x86, 0xf5, 0x91, 0x5a, 0x10, 0x83, 0x87, 0x22, 0x63, 0xaf, 0xcd, 0x5f, - 0x42, 0xd8, 0x1c, 0x3f, 0x52, 0xcb, 0x9d, 0x3f, 0x40, 0x73, 0xb3, 0x13, 0x22, 0xf7, 0xa1, 0x79, - 0x16, 0x67, 0xcc, 0x0d, 0x66, 0x1b, 0xe9, 0x04, 0x9b, 0x0e, 0x1b, 0x10, 0x37, 0x66, 0x3c, 0xa5, - 0xbc, 0x07, 0x77, 0xc2, 0x20, 0x5a, 0xae, 0xdc, 0xf5, 0x61, 0xa5, 0xe5, 0xdb, 0x1c, 0x5e, 0x27, - 0x0a, 0x4c, 0xd7, 0x35, 0xd9, 0x2b, 0x61, 0x77, 0x7f, 0x4e, 0xd3, 0x0c, 0x53, 0x8d, 0x30, 0x4a, - 0x3e, 0x45, 0x9b, 0x5d, 0xd9, 0x54, 0x7e, 0xc5, 0xab, 0x1b, 0xb2, 0xd8, 0x5d, 0x04, 0xd3, 0x34, - 0xce, 0x68, 0x7a, 0x1e, 0x4c, 0x45, 0x19, 0xab, 0xdb, 0x6d, 0x16, 0x9f, 0x6c, 0xa0, 0xb8, 0x54, - 0xba, 0x72, 0x2f, 0xbd, 0xbd, 0x2c, 0xcc, 0x9f, 0xae, 0xec, 0xdc, 0xdf, 0x77, 0xa0, 0xc9, 0x36, - 0x35, 0x44, 0x16, 0x02, 0x76, 0xa9, 0x71, 0x0f, 0x40, 0xbc, 0x3b, 0xdc, 0x79, 0x16, 0xf3, 0x78, - 0x51, 0xec, 0xba, 0x40, 0x8e, 0xb3, 0x98, 0xbc, 0x0d, 0x2d, 0x29, 0x66, 0xcb, 0x28, 0xa2, 0xa1, - 0x7c, 0x31, 0x34, 0x05, 0xe8, 0x70, 0xac, 0xf3, 0xef, 0x12, 0xd4, 0xd7, 0x4d, 0x1b, 0x3a, 0x21, - 0xcd, 0x22, 0x19, 0xe6, 0x38, 0x44, 0xbf, 0xf5, 0x22, 0x16, 0xb8, 0x29, 0x4d, 0x42, 0xef, 0x22, - 0x2f, 0x74, 0x08, 0xd9, 0x1c, 0x21, 0xaf, 0x83, 0x12, 0xc6, 0x53, 0x2f, 0xc4, 0xde, 0x41, 0x38, - 0x69, 0x8d, 0xcf, 0x8d, 0x84, 0x07, 0x24, 0x5d, 0xc4, 0x8c, 0xa2, 0x4c, 0x44, 0xba, 0x22, 0x00, - 0x21, 0x14, 0xbc, 0x2c, 0x09, 0xf2, 0x58, 0xe7, 0xc0, 0x38, 0x09, 0xf0, 0x66, 0x92, 0x89, 0x52, - 0x11, 0xea, 0x72, 0x2d, 0x14, 0xff, 0x1a, 0x60, 0x9a, 0x5e, 0x24, 0x2c, 0x76, 0xbd, 0x70, 0xce, - 0x43, 0xbd, 0xdd, 0x7d, 0xe3, 0x8a, 0x6f, 0xf2, 0x97, 0xe0, 0x21, 0xd7, 0xe9, 0x85, 0x73, 0xbb, - 0x3e, 0xcd, 0x87, 0x64, 0x17, 0x54, 0xb1, 0xaf, 0x5c, 0xe1, 0x29, 0xbd, 0xe0, 0xf9, 0x00, 0x7d, - 0x02, 0x71, 0x41, 0x7a, 0x4c, 0x2f, 0xb0, 0x3d, 0x92, 0x87, 0xd8, 0x50, 0x05, 0xd1, 0x1e, 0x09, - 0xc1, 0xa5, 0xee, 0x27, 0x50, 0x47, 0x17, 0x9b, 0xf3, 0x03, 0x35, 0xf8, 0x81, 0xb6, 0x7f, 0x7c, - 0x20, 0xf4, 0xb7, 0x39, 0x9e, 0x47, 0x09, 0xe4, 0x08, 0x1f, 0x76, 0xd2, 0x7c, 0x9c, 0x8e, 0x5b, - 0x34, 0xf9, 0x16, 0x2d, 0x61, 0x45, 0x44, 0x71, 0x83, 0x5d, 0x50, 0x73, 0x5b, 0xae, 0x15, 0x5b, - 0xe2, 0xd8, 0xd2, 0xa4, 0x1b, 0x9a, 0xf2, 0xb3, 0x2f, 0xfd, 0xc4, 0xa5, 0xd1, 0xd4, 0x4b, 0xf8, - 0x63, 0x50, 0xb1, 0xdb, 0x02, 0x9f, 0xf8, 0x89, 0x8e, 0x68, 0xc7, 0x87, 0xc6, 0x46, 0xbb, 0x8d, - 0x9f, 0x5a, 0x12, 0x69, 0x18, 0xcf, 0xa5, 0x13, 0x48, 0x0f, 0xd3, 0xc3, 0x78, 0x8e, 0x9f, 0x3a, - 0x5d, 0x3d, 0x13, 0xde, 0x28, 0xf2, 0x54, 0x2d, 0x5d, 0x3d, 0xe3, 0xae, 0xf8, 0x3a, 0x28, 0x2c, - 0x17, 0x09, 0x57, 0xae, 0x31, 0x21, 0x42, 0x0f, 0x53, 0xf2, 0xc6, 0x5c, 0x96, 0x8c, 0xc2, 0xba, - 0x64, 0x7c, 0x2a, 0x4b, 0x93, 0xa8, 0xe9, 0xf7, 0x6f, 0xe9, 0xeb, 0xf7, 0x36, 0x8a, 0xd2, 0x67, - 0x50, 0x0c, 0x4f, 0xf9, 0x5e, 0xed, 0x6b, 0x1f, 0xa4, 0x6b, 0xde, 0x30, 0xf6, 0xfc, 0xbe, 0x17, - 0x7a, 0xd1, 0x94, 0xda, 0xc5, 0xf0, 0x94, 0x7c, 0x07, 0x77, 0xf1, 0x7d, 0x40, 0xfd, 0xcb, 0xc4, - 0x90, 0xbf, 0x48, 0x1f, 0xdc, 0xb6, 0x56, 0x9f, 0x13, 0xd7, 0xa9, 0xc3, 0x56, 0x4f, 0xaf, 0x02, - 0xd9, 0x76, 0x08, 0x77, 0x7e, 0xa0, 0xf4, 0xc2, 0x1f, 0x20, 0xee, 0x01, 0x04, 0x99, 0x9b, 0x78, - 0x59, 0x16, 0x9c, 0x53, 0x69, 0xee, 0x7a, 0x90, 0x59, 0x02, 0x40, 0xcf, 0x08, 0x32, 0x37, 0x8c, - 0xa3, 0xb9, 0xcb, 0x82, 0x05, 0x8d, 0x97, 0x4c, 0x46, 0x5f, 0x2b, 0xc8, 0x86, 0x71, 0x34, 0x77, - 0x04, 0xd8, 0xf9, 0x16, 0xca, 0xbc, 0x6e, 0x5d, 0xc9, 0xab, 0x77, 0xa0, 0x61, 0x8f, 0x26, 0xe6, - 0xc0, 0xb5, 0x47, 0x7d, 0xc3, 0x54, 0x0b, 0xd8, 0x72, 0xf6, 0x0e, 0xb1, 0x0d, 0x76, 0xb1, 0xb3, - 0x9c, 0x58, 0x6a, 0x11, 0x73, 0xeb, 0x37, 0x23, 0x5b, 0x2d, 0x61, 0x1b, 0xd9, 0xb7, 0x47, 0xbd, - 0xc1, 0x61, 0x6f, 0xec, 0xa8, 0x65, 0x6c, 0x45, 0x86, 0xbd, 0x43, 0x4b, 0xad, 0x74, 0x3e, 0x87, - 0xc6, 0x86, 0xe5, 0xb0, 0x16, 0x0e, 0xbb, 0x22, 0x69, 0x0f, 0x0f, 0x64, 0xd2, 0x1e, 0x76, 0x0f, - 0xd4, 0x22, 0x4a, 0x6c, 0x5c, 0xa9, 0x0a, 0xc5, 0xfe, 0xa1, 0x5a, 0xc6, 0xff, 0xbd, 0xbe, 0x5a, - 0xe9, 0xfc, 0xab, 0x00, 0x35, 0xf9, 0xbc, 0x22, 0x03, 0x68, 0x88, 0x3c, 0xe4, 0xf2, 0x9f, 0x5d, - 0x44, 0x33, 0xf2, 0xf6, 0xcd, 0x6f, 0x32, 0xf1, 0x3c, 0x00, 0xc1, 0xe3, 0xed, 0xf4, 0xeb, 0xa0, - 0xe4, 0x85, 0x56, 0xa6, 0xdf, 0x9a, 0xac, 0xb2, 0x28, 0xca, 0x4b, 0xac, 0x4c, 0xba, 0x35, 0x59, - 0x5f, 0x31, 0x97, 0xe2, 0x03, 0x28, 0x75, 0x67, 0x01, 0x6f, 0x30, 0x65, 0xb6, 0xe5, 0xd8, 0x51, - 0x80, 0x5d, 0xe6, 0x3d, 0x80, 0x8c, 0x66, 0x98, 0xe5, 0x51, 0x2e, 0x72, 0x6d, 0x5d, 0x22, 0x86, - 0xdf, 0xf9, 0xe5, 0x8b, 0x1e, 0x1e, 0x68, 0x8f, 0x03, 0x61, 0x06, 0x47, 0xef, 0xab, 0x45, 0x02, - 0x50, 0xd5, 0xed, 0xb1, 0xd5, 0x33, 0xd5, 0x52, 0xe7, 0xcf, 0x45, 0x50, 0xf2, 0x47, 0xe2, 0x95, - 0x53, 0x17, 0xae, 0x3f, 0x75, 0xf1, 0xea, 0xa9, 0xaf, 0x34, 0x00, 0xa5, 0x1f, 0x36, 0x00, 0xd8, - 0x89, 0xd2, 0xf5, 0x5d, 0xf8, 0x18, 0xef, 0xc9, 0x03, 0x3e, 0x2f, 0xea, 0xb2, 0x66, 0x70, 0x4c, - 0x14, 0xf5, 0x63, 0x10, 0x25, 0xde, 0x8d, 0xe8, 0x8a, 0xf1, 0xbc, 0xdb, 0xee, 0xee, 0xde, 0xf2, - 0xc6, 0xdd, 0x33, 0xe9, 0x8a, 0x99, 0x18, 0x7a, 0x75, 0xce, 0xc5, 0x69, 0x67, 0x1f, 0x94, 0x1c, - 0xde, 0x7c, 0x57, 0x6d, 0x49, 0x2f, 0x29, 0xe4, 0xa5, 0xbd, 0x98, 0x97, 0xf6, 0x52, 0xe7, 0xaf, - 0x05, 0x50, 0xf2, 0x07, 0x30, 0xd1, 0xd7, 0xee, 0xb0, 0xd1, 0x9b, 0xde, 0xbf, 0xe5, 0xd9, 0x2c, - 0x12, 0x80, 0xf4, 0x07, 0xee, 0xf5, 0xff, 0x97, 0x3f, 0x74, 0x0e, 0x64, 0xcc, 0x10, 0x68, 0x5b, - 0x23, 0xc3, 0x74, 0x5c, 0x67, 0xe4, 0xf2, 0x81, 0xba, 0x45, 0x7e, 0x0a, 0x3f, 0x59, 0x63, 0x27, - 0x93, 0xa1, 0x63, 0x08, 0x41, 0xa1, 0x7f, 0xf4, 0xfb, 0xc1, 0x3c, 0xce, 0x0f, 0x18, 0xf0, 0x1f, - 0x1e, 0x3f, 0xf4, 0xe6, 0x34, 0x62, 0x0f, 0xce, 0x0f, 0x1e, 0xf0, 0x56, 0xe7, 0xc1, 0x0b, 0x7f, - 0xd0, 0xfc, 0xec, 0x3c, 0x49, 0x36, 0xf2, 0xcc, 0x69, 0x95, 0xeb, 0x1e, 0xfc, 0x2f, 0x00, 0x00, - 0xff, 0xff, 0xa2, 0xff, 0xc1, 0x19, 0xff, 0x14, 0x00, 0x00, +var File_ligato_vpp_interfaces_interface_proto protoreflect.FileDescriptor + +var file_ligato_vpp_interfaces_interface_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, + 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x1a, 0x1c, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x69, 0x70, 0x73, 0x65, 0x63, + 0x2f, 0x69, 0x70, 0x73, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfe, 0x0e, 0x0a, + 0x09, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x39, + 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x79, 0x73, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x68, 0x79, 0x73, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x70, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x72, 0x66, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x76, 0x72, 0x66, 0x12, 0x26, 0x0a, 0x0f, 0x73, + 0x65, 0x74, 0x5f, 0x64, 0x68, 0x63, 0x70, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x65, 0x74, 0x44, 0x68, 0x63, 0x70, 0x43, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x12, 0x3d, 0x0a, 0x06, 0x69, 0x70, 0x36, 0x5f, 0x6e, 0x64, 0x18, 0x0e, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, + 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x49, 0x50, 0x36, 0x4e, 0x44, 0x52, 0x05, 0x69, 0x70, 0x36, + 0x4e, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x74, 0x75, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x03, 0x6d, 0x74, 0x75, 0x12, 0x4b, 0x0a, 0x0a, 0x75, 0x6e, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, + 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x55, 0x6e, 0x6e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x65, 0x64, 0x52, 0x0a, 0x75, 0x6e, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x65, + 0x64, 0x12, 0x42, 0x0a, 0x08, 0x72, 0x78, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x0c, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, + 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x52, 0x78, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x72, 0x78, + 0x4d, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x51, 0x0a, 0x0d, 0x72, 0x78, 0x5f, 0x70, 0x6c, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x52, + 0x78, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0c, 0x72, 0x78, 0x50, 0x6c, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x03, 0x73, 0x75, 0x62, 0x18, + 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, + 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x53, 0x75, + 0x62, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x48, 0x00, 0x52, 0x03, 0x73, 0x75, + 0x62, 0x12, 0x38, 0x0a, 0x05, 0x6d, 0x65, 0x6d, 0x69, 0x66, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x20, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x4d, 0x65, 0x6d, 0x69, 0x66, 0x4c, 0x69, + 0x6e, 0x6b, 0x48, 0x00, 0x52, 0x05, 0x6d, 0x65, 0x6d, 0x69, 0x66, 0x12, 0x41, 0x0a, 0x08, 0x61, + 0x66, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x41, 0x66, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x69, + 0x6e, 0x6b, 0x48, 0x00, 0x52, 0x08, 0x61, 0x66, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x32, + 0x0a, 0x03, 0x74, 0x61, 0x70, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x73, 0x2e, 0x54, 0x61, 0x70, 0x4c, 0x69, 0x6e, 0x6b, 0x48, 0x00, 0x52, 0x03, 0x74, + 0x61, 0x70, 0x12, 0x38, 0x0a, 0x05, 0x76, 0x78, 0x6c, 0x61, 0x6e, 0x18, 0x68, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x56, 0x78, 0x6c, 0x61, 0x6e, 0x4c, + 0x69, 0x6e, 0x6b, 0x48, 0x00, 0x52, 0x05, 0x76, 0x78, 0x6c, 0x61, 0x6e, 0x12, 0x3c, 0x0a, 0x05, + 0x69, 0x70, 0x73, 0x65, 0x63, 0x18, 0x69, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x73, 0x2e, 0x49, 0x50, 0x53, 0x65, 0x63, 0x4c, 0x69, 0x6e, 0x6b, 0x42, 0x02, 0x18, + 0x01, 0x48, 0x00, 0x52, 0x05, 0x69, 0x70, 0x73, 0x65, 0x63, 0x12, 0x3f, 0x0a, 0x08, 0x76, 0x6d, + 0x78, 0x5f, 0x6e, 0x65, 0x74, 0x33, 0x18, 0x6a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x73, 0x2e, 0x56, 0x6d, 0x78, 0x4e, 0x65, 0x74, 0x33, 0x4c, 0x69, 0x6e, 0x6b, + 0x48, 0x00, 0x52, 0x07, 0x76, 0x6d, 0x78, 0x4e, 0x65, 0x74, 0x33, 0x12, 0x35, 0x0a, 0x04, 0x62, + 0x6f, 0x6e, 0x64, 0x18, 0x6b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x73, 0x2e, 0x42, 0x6f, 0x6e, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, + 0x6e, 0x64, 0x12, 0x32, 0x0a, 0x03, 0x67, 0x72, 0x65, 0x18, 0x6c, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1e, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x47, 0x72, 0x65, 0x4c, 0x69, 0x6e, 0x6b, 0x48, + 0x00, 0x52, 0x03, 0x67, 0x72, 0x65, 0x12, 0x35, 0x0a, 0x04, 0x67, 0x74, 0x70, 0x75, 0x18, 0x6d, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, + 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x47, 0x74, 0x70, + 0x75, 0x4c, 0x69, 0x6e, 0x6b, 0x48, 0x00, 0x52, 0x04, 0x67, 0x74, 0x70, 0x75, 0x12, 0x35, 0x0a, + 0x04, 0x69, 0x70, 0x69, 0x70, 0x18, 0x6e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x73, 0x2e, 0x49, 0x50, 0x49, 0x50, 0x4c, 0x69, 0x6e, 0x6b, 0x48, 0x00, 0x52, 0x04, + 0x69, 0x70, 0x69, 0x70, 0x1a, 0x6c, 0x0a, 0x05, 0x49, 0x50, 0x36, 0x4e, 0x44, 0x12, 0x2d, 0x0a, + 0x12, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x41, 0x75, 0x74, 0x6f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a, 0x16, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, + 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x69, 0x6e, + 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x6f, 0x75, 0x74, + 0x65, 0x73, 0x1a, 0x38, 0x0a, 0x0a, 0x55, 0x6e, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x65, 0x64, + 0x12, 0x2a, 0x0a, 0x11, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x5f, 0x77, 0x69, + 0x74, 0x68, 0x5f, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x49, 0x70, 0x1a, 0xcf, 0x01, 0x0a, + 0x06, 0x52, 0x78, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x40, 0x0a, + 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x52, 0x78, + 0x4d, 0x6f, 0x64, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, + 0x21, 0x0a, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4d, 0x6f, + 0x64, 0x65, 0x22, 0x4a, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, + 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x4f, 0x4c, 0x4c, 0x49, + 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x52, 0x55, 0x50, + 0x54, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x44, 0x41, 0x50, 0x54, 0x49, 0x56, 0x45, 0x10, + 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x04, 0x1a, 0x5c, + 0x0a, 0x0b, 0x52, 0x78, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, + 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x71, 0x75, + 0x65, 0x75, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, + 0x61, 0x69, 0x6e, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0a, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x22, 0xf6, 0x01, 0x0a, + 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, + 0x45, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x55, 0x42, + 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x46, 0x41, 0x43, 0x45, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, + 0x53, 0x4f, 0x46, 0x54, 0x57, 0x41, 0x52, 0x45, 0x5f, 0x4c, 0x4f, 0x4f, 0x50, 0x42, 0x41, 0x43, + 0x4b, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x50, 0x44, 0x4b, 0x10, 0x03, 0x12, 0x09, 0x0a, + 0x05, 0x4d, 0x45, 0x4d, 0x49, 0x46, 0x10, 0x04, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x50, 0x10, + 0x05, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x46, 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x10, 0x06, + 0x12, 0x10, 0x0a, 0x0c, 0x56, 0x58, 0x4c, 0x41, 0x4e, 0x5f, 0x54, 0x55, 0x4e, 0x4e, 0x45, 0x4c, + 0x10, 0x07, 0x12, 0x14, 0x0a, 0x0c, 0x49, 0x50, 0x53, 0x45, 0x43, 0x5f, 0x54, 0x55, 0x4e, 0x4e, + 0x45, 0x4c, 0x10, 0x08, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x56, 0x4d, 0x58, 0x4e, + 0x45, 0x54, 0x33, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x46, 0x41, 0x43, 0x45, 0x10, 0x09, 0x12, + 0x12, 0x0a, 0x0e, 0x42, 0x4f, 0x4e, 0x44, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x46, 0x41, 0x43, + 0x45, 0x10, 0x0a, 0x12, 0x0e, 0x0a, 0x0a, 0x47, 0x52, 0x45, 0x5f, 0x54, 0x55, 0x4e, 0x4e, 0x45, + 0x4c, 0x10, 0x0b, 0x12, 0x0f, 0x0a, 0x0b, 0x47, 0x54, 0x50, 0x55, 0x5f, 0x54, 0x55, 0x4e, 0x4e, + 0x45, 0x4c, 0x10, 0x0c, 0x12, 0x0f, 0x0a, 0x0b, 0x49, 0x50, 0x49, 0x50, 0x5f, 0x54, 0x55, 0x4e, + 0x4e, 0x45, 0x4c, 0x10, 0x0d, 0x42, 0x06, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x22, 0xfa, 0x02, + 0x0a, 0x0c, 0x53, 0x75, 0x62, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x1f, + 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x15, 0x0a, 0x06, 0x73, 0x75, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x05, 0x73, 0x75, 0x62, 0x49, 0x64, 0x12, 0x59, 0x0a, 0x0d, 0x74, 0x61, 0x67, 0x5f, 0x72, 0x77, + 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x53, 0x75, 0x62, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x67, 0x52, 0x77, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x64, 0x6f, 0x74, 0x31, 0x71, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x70, 0x75, 0x73, 0x68, 0x44, 0x6f, 0x74, 0x31, 0x71, + 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x31, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, + 0x74, 0x61, 0x67, 0x31, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x32, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x04, 0x74, 0x61, 0x67, 0x32, 0x22, 0x8f, 0x01, 0x0a, 0x11, 0x54, 0x61, 0x67, + 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x0c, + 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, + 0x50, 0x55, 0x53, 0x48, 0x31, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x55, 0x53, 0x48, 0x32, + 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x4f, 0x50, 0x31, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, + 0x50, 0x4f, 0x50, 0x32, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x4c, + 0x41, 0x54, 0x45, 0x31, 0x31, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x52, 0x41, 0x4e, 0x53, + 0x4c, 0x41, 0x54, 0x45, 0x31, 0x32, 0x10, 0x06, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x52, 0x41, 0x4e, + 0x53, 0x4c, 0x41, 0x54, 0x45, 0x32, 0x31, 0x10, 0x07, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x52, 0x41, + 0x4e, 0x53, 0x4c, 0x41, 0x54, 0x45, 0x32, 0x32, 0x10, 0x08, 0x22, 0xe0, 0x02, 0x0a, 0x09, 0x4d, + 0x65, 0x6d, 0x69, 0x66, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x3e, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, + 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x4d, + 0x65, 0x6d, 0x69, 0x66, 0x4c, 0x69, 0x6e, 0x6b, 0x2e, 0x4d, 0x65, 0x6d, 0x69, 0x66, 0x4d, 0x6f, + 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x73, 0x74, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x63, 0x6b, 0x65, + 0x74, 0x46, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, + 0x72, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, + 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1f, + 0x0a, 0x0b, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x53, 0x69, 0x7a, 0x65, 0x12, + 0x1b, 0x0a, 0x09, 0x72, 0x78, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x08, 0x72, 0x78, 0x51, 0x75, 0x65, 0x75, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, + 0x74, 0x78, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x08, 0x74, 0x78, 0x51, 0x75, 0x65, 0x75, 0x65, 0x73, 0x22, 0x32, 0x0a, 0x09, 0x4d, 0x65, 0x6d, + 0x69, 0x66, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x54, 0x48, 0x45, 0x52, 0x4e, + 0x45, 0x54, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x49, 0x50, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, + 0x50, 0x55, 0x4e, 0x54, 0x5f, 0x49, 0x4e, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x02, 0x22, 0xec, 0x02, + 0x0a, 0x09, 0x56, 0x78, 0x6c, 0x61, 0x6e, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x1f, 0x0a, 0x0b, 0x73, + 0x72, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x73, 0x72, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1f, 0x0a, 0x0b, + 0x64, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x64, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x10, 0x0a, + 0x03, 0x76, 0x6e, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x76, 0x6e, 0x69, 0x12, + 0x1c, 0x0a, 0x09, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x61, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x61, 0x73, 0x74, 0x12, 0x36, 0x0a, + 0x03, 0x67, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6c, 0x69, 0x67, + 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x73, 0x2e, 0x56, 0x78, 0x6c, 0x61, 0x6e, 0x4c, 0x69, 0x6e, 0x6b, 0x2e, 0x47, 0x70, 0x65, + 0x52, 0x03, 0x67, 0x70, 0x65, 0x1a, 0xb4, 0x01, 0x0a, 0x03, 0x47, 0x70, 0x65, 0x12, 0x20, 0x0a, + 0x0c, 0x64, 0x65, 0x63, 0x61, 0x70, 0x5f, 0x76, 0x72, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x64, 0x65, 0x63, 0x61, 0x70, 0x56, 0x72, 0x66, 0x49, 0x64, 0x12, + 0x49, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x2d, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x56, 0x78, 0x6c, 0x61, 0x6e, 0x4c, + 0x69, 0x6e, 0x6b, 0x2e, 0x47, 0x70, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, + 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x40, 0x0a, 0x08, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, + 0x4e, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x49, 0x50, 0x34, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, + 0x49, 0x50, 0x36, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x54, 0x48, 0x45, 0x52, 0x4e, 0x45, + 0x54, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x4e, 0x53, 0x48, 0x10, 0x04, 0x22, 0x5d, 0x0a, 0x0c, + 0x41, 0x66, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x24, 0x0a, 0x0c, + 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0a, 0x68, 0x6f, 0x73, 0x74, 0x49, 0x66, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x5f, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6c, 0x69, 0x6e, + 0x75, 0x78, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x22, 0xf6, 0x01, 0x0a, 0x07, + 0x54, 0x61, 0x70, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x20, 0x0a, 0x0c, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x68, 0x6f, 0x73, 0x74, 0x49, 0x66, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x6f, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x6f, + 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0c, + 0x72, 0x78, 0x5f, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x0a, 0x72, 0x78, 0x52, 0x69, 0x6e, 0x67, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x20, + 0x0a, 0x0c, 0x74, 0x78, 0x5f, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x74, 0x78, 0x52, 0x69, 0x6e, 0x67, 0x53, 0x69, 0x7a, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x67, 0x73, 0x6f, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x47, 0x73, 0x6f, 0x12, + 0x23, 0x0a, 0x0d, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x75, + 0x6e, 0x6e, 0x65, 0x6c, 0x22, 0xf9, 0x03, 0x0a, 0x09, 0x49, 0x50, 0x53, 0x65, 0x63, 0x4c, 0x69, + 0x6e, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x73, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x03, 0x65, 0x73, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x6e, 0x74, 0x69, 0x5f, 0x72, 0x65, 0x70, + 0x6c, 0x61, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x6e, 0x74, 0x69, 0x52, + 0x65, 0x70, 0x6c, 0x61, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x69, + 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x49, 0x70, + 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x69, 0x70, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x49, 0x70, 0x12, 0x1b, 0x0a, + 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x73, 0x70, 0x69, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x53, 0x70, 0x69, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, + 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x73, 0x70, 0x69, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, + 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x53, 0x70, 0x69, 0x12, 0x3a, 0x0a, 0x0a, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x6f, 0x5f, 0x61, 0x6c, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x70, 0x73, 0x65, 0x63, + 0x2e, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x41, 0x6c, 0x67, 0x52, 0x09, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x6f, 0x41, 0x6c, 0x67, 0x12, 0x28, 0x0a, 0x10, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0e, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x12, + 0x2a, 0x0a, 0x11, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, + 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x6d, 0x6f, + 0x74, 0x65, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x12, 0x37, 0x0a, 0x09, 0x69, + 0x6e, 0x74, 0x65, 0x67, 0x5f, 0x61, 0x6c, 0x67, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, + 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x70, 0x73, 0x65, + 0x63, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x41, 0x6c, 0x67, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, + 0x67, 0x41, 0x6c, 0x67, 0x12, 0x26, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x69, 0x6e, + 0x74, 0x65, 0x67, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6c, + 0x6f, 0x63, 0x61, 0x6c, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x4b, 0x65, 0x79, 0x12, 0x28, 0x0a, 0x10, + 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x5f, 0x6b, 0x65, 0x79, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x49, 0x6e, + 0x74, 0x65, 0x67, 0x4b, 0x65, 0x79, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x5f, 0x75, 0x64, 0x70, 0x5f, 0x65, 0x6e, 0x63, 0x61, 0x70, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0e, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x55, 0x64, 0x70, 0x45, 0x6e, 0x63, 0x61, 0x70, + 0x22, 0x64, 0x0a, 0x0b, 0x56, 0x6d, 0x78, 0x4e, 0x65, 0x74, 0x33, 0x4c, 0x69, 0x6e, 0x6b, 0x12, + 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x6c, 0x6f, 0x67, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6c, 0x6f, 0x67, + 0x12, 0x19, 0x0a, 0x08, 0x72, 0x78, 0x71, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x07, 0x72, 0x78, 0x71, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74, + 0x78, 0x71, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x74, + 0x78, 0x71, 0x53, 0x69, 0x7a, 0x65, 0x22, 0xf9, 0x03, 0x0a, 0x08, 0x42, 0x6f, 0x6e, 0x64, 0x4c, + 0x69, 0x6e, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x38, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x24, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x42, 0x6f, 0x6e, 0x64, 0x4c, 0x69, + 0x6e, 0x6b, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x3b, 0x0a, + 0x02, 0x6c, 0x62, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x73, 0x2e, 0x42, 0x6f, 0x6e, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x42, + 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x02, 0x6c, 0x62, 0x12, 0x5c, 0x0a, 0x11, 0x62, 0x6f, + 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x18, + 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, + 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x42, 0x6f, + 0x6e, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x2e, 0x42, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x10, 0x62, 0x6f, 0x6e, 0x64, 0x65, 0x64, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x1a, 0x6c, 0x0a, 0x0f, 0x42, 0x6f, 0x6e, 0x64, + 0x65, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x69, 0x76, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x50, 0x61, 0x73, 0x73, 0x69, 0x76, 0x65, 0x12, 0x26, + 0x0a, 0x0f, 0x69, 0x73, 0x5f, 0x6c, 0x6f, 0x6e, 0x67, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x69, 0x73, 0x4c, 0x6f, 0x6e, 0x67, 0x54, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x22, 0x59, 0x0a, 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0b, + 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x52, + 0x4f, 0x55, 0x4e, 0x44, 0x5f, 0x52, 0x4f, 0x42, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, + 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50, 0x10, 0x02, 0x12, + 0x07, 0x0a, 0x03, 0x58, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x42, 0x52, 0x4f, 0x41, + 0x44, 0x43, 0x41, 0x53, 0x54, 0x10, 0x04, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x41, 0x43, 0x50, 0x10, + 0x05, 0x22, 0x3f, 0x0a, 0x0b, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, + 0x12, 0x06, 0x0a, 0x02, 0x4c, 0x32, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x33, 0x34, 0x10, + 0x01, 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x32, 0x33, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x52, 0x52, + 0x10, 0x03, 0x12, 0x06, 0x0a, 0x02, 0x42, 0x43, 0x10, 0x04, 0x12, 0x06, 0x0a, 0x02, 0x41, 0x42, + 0x10, 0x05, 0x22, 0xf8, 0x01, 0x0a, 0x07, 0x47, 0x72, 0x65, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x44, + 0x0a, 0x0b, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, + 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x47, 0x72, 0x65, 0x4c, + 0x69, 0x6e, 0x6b, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x72, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x72, 0x63, 0x41, 0x64, 0x64, 0x72, 0x12, + 0x19, 0x0a, 0x08, 0x64, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x64, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x20, 0x0a, 0x0c, 0x6f, 0x75, + 0x74, 0x65, 0x72, 0x5f, 0x66, 0x69, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x46, 0x69, 0x62, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, + 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x30, 0x0a, 0x04, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, + 0x12, 0x06, 0x0a, 0x02, 0x4c, 0x33, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x42, 0x10, + 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x52, 0x53, 0x50, 0x41, 0x4e, 0x10, 0x03, 0x22, 0x90, 0x02, + 0x0a, 0x08, 0x47, 0x74, 0x70, 0x75, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x72, + 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x72, + 0x63, 0x41, 0x64, 0x64, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, + 0x12, 0x1c, 0x0a, 0x09, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x61, 0x73, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x61, 0x73, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x74, 0x65, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x74, 0x65, + 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0c, 0x65, 0x6e, 0x63, 0x61, 0x70, 0x5f, 0x76, 0x72, 0x66, 0x5f, + 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x65, 0x6e, 0x63, 0x61, 0x70, 0x56, + 0x72, 0x66, 0x49, 0x64, 0x12, 0x47, 0x0a, 0x0a, 0x64, 0x65, 0x63, 0x61, 0x70, 0x5f, 0x6e, 0x65, + 0x78, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, + 0x2e, 0x47, 0x74, 0x70, 0x75, 0x4c, 0x69, 0x6e, 0x6b, 0x2e, 0x4e, 0x65, 0x78, 0x74, 0x4e, 0x6f, + 0x64, 0x65, 0x52, 0x09, 0x64, 0x65, 0x63, 0x61, 0x70, 0x4e, 0x65, 0x78, 0x74, 0x22, 0x31, 0x0a, + 0x08, 0x4e, 0x65, 0x78, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46, + 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x4c, 0x32, 0x10, 0x01, 0x12, 0x07, + 0x0a, 0x03, 0x49, 0x50, 0x34, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x49, 0x50, 0x36, 0x10, 0x03, + 0x22, 0xbc, 0x01, 0x0a, 0x08, 0x49, 0x50, 0x49, 0x50, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x45, 0x0a, + 0x0b, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x50, 0x49, 0x50, 0x4c, + 0x69, 0x6e, 0x6b, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, + 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x72, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x72, 0x63, 0x41, 0x64, 0x64, 0x72, 0x12, + 0x19, 0x0a, 0x08, 0x64, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x64, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x22, 0x33, 0x0a, 0x04, 0x4d, 0x6f, + 0x64, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f, 0x54, 0x4f, 0x5f, 0x50, + 0x4f, 0x49, 0x4e, 0x54, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f, + 0x54, 0x4f, 0x5f, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x10, 0x01, 0x42, + 0x46, 0x5a, 0x44, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, + 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_interfaces_interface_proto_rawDescOnce sync.Once + file_ligato_vpp_interfaces_interface_proto_rawDescData = file_ligato_vpp_interfaces_interface_proto_rawDesc +) + +func file_ligato_vpp_interfaces_interface_proto_rawDescGZIP() []byte { + file_ligato_vpp_interfaces_interface_proto_rawDescOnce.Do(func() { + file_ligato_vpp_interfaces_interface_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_interfaces_interface_proto_rawDescData) + }) + return file_ligato_vpp_interfaces_interface_proto_rawDescData +} + +var file_ligato_vpp_interfaces_interface_proto_enumTypes = make([]protoimpl.EnumInfo, 10) +var file_ligato_vpp_interfaces_interface_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_ligato_vpp_interfaces_interface_proto_goTypes = []interface{}{ + (Interface_Type)(0), // 0: ligato.vpp.interfaces.Interface.Type + (Interface_RxMode_Type)(0), // 1: ligato.vpp.interfaces.Interface.RxMode.Type + (SubInterface_TagRewriteOptions)(0), // 2: ligato.vpp.interfaces.SubInterface.TagRewriteOptions + (MemifLink_MemifMode)(0), // 3: ligato.vpp.interfaces.MemifLink.MemifMode + (VxlanLink_Gpe_Protocol)(0), // 4: ligato.vpp.interfaces.VxlanLink.Gpe.Protocol + (BondLink_Mode)(0), // 5: ligato.vpp.interfaces.BondLink.Mode + (BondLink_LoadBalance)(0), // 6: ligato.vpp.interfaces.BondLink.LoadBalance + (GreLink_Type)(0), // 7: ligato.vpp.interfaces.GreLink.Type + (GtpuLink_NextNode)(0), // 8: ligato.vpp.interfaces.GtpuLink.NextNode + (IPIPLink_Mode)(0), // 9: ligato.vpp.interfaces.IPIPLink.Mode + (*Interface)(nil), // 10: ligato.vpp.interfaces.Interface + (*SubInterface)(nil), // 11: ligato.vpp.interfaces.SubInterface + (*MemifLink)(nil), // 12: ligato.vpp.interfaces.MemifLink + (*VxlanLink)(nil), // 13: ligato.vpp.interfaces.VxlanLink + (*AfpacketLink)(nil), // 14: ligato.vpp.interfaces.AfpacketLink + (*TapLink)(nil), // 15: ligato.vpp.interfaces.TapLink + (*IPSecLink)(nil), // 16: ligato.vpp.interfaces.IPSecLink + (*VmxNet3Link)(nil), // 17: ligato.vpp.interfaces.VmxNet3Link + (*BondLink)(nil), // 18: ligato.vpp.interfaces.BondLink + (*GreLink)(nil), // 19: ligato.vpp.interfaces.GreLink + (*GtpuLink)(nil), // 20: ligato.vpp.interfaces.GtpuLink + (*IPIPLink)(nil), // 21: ligato.vpp.interfaces.IPIPLink + (*Interface_IP6ND)(nil), // 22: ligato.vpp.interfaces.Interface.IP6ND + (*Interface_Unnumbered)(nil), // 23: ligato.vpp.interfaces.Interface.Unnumbered + (*Interface_RxMode)(nil), // 24: ligato.vpp.interfaces.Interface.RxMode + (*Interface_RxPlacement)(nil), // 25: ligato.vpp.interfaces.Interface.RxPlacement + (*VxlanLink_Gpe)(nil), // 26: ligato.vpp.interfaces.VxlanLink.Gpe + (*BondLink_BondedInterface)(nil), // 27: ligato.vpp.interfaces.BondLink.BondedInterface + (ipsec.CryptoAlg)(0), // 28: ligato.vpp.ipsec.CryptoAlg + (ipsec.IntegAlg)(0), // 29: ligato.vpp.ipsec.IntegAlg +} +var file_ligato_vpp_interfaces_interface_proto_depIdxs = []int32{ + 0, // 0: ligato.vpp.interfaces.Interface.type:type_name -> ligato.vpp.interfaces.Interface.Type + 22, // 1: ligato.vpp.interfaces.Interface.ip6_nd:type_name -> ligato.vpp.interfaces.Interface.IP6ND + 23, // 2: ligato.vpp.interfaces.Interface.unnumbered:type_name -> ligato.vpp.interfaces.Interface.Unnumbered + 24, // 3: ligato.vpp.interfaces.Interface.rx_modes:type_name -> ligato.vpp.interfaces.Interface.RxMode + 25, // 4: ligato.vpp.interfaces.Interface.rx_placements:type_name -> ligato.vpp.interfaces.Interface.RxPlacement + 11, // 5: ligato.vpp.interfaces.Interface.sub:type_name -> ligato.vpp.interfaces.SubInterface + 12, // 6: ligato.vpp.interfaces.Interface.memif:type_name -> ligato.vpp.interfaces.MemifLink + 14, // 7: ligato.vpp.interfaces.Interface.afpacket:type_name -> ligato.vpp.interfaces.AfpacketLink + 15, // 8: ligato.vpp.interfaces.Interface.tap:type_name -> ligato.vpp.interfaces.TapLink + 13, // 9: ligato.vpp.interfaces.Interface.vxlan:type_name -> ligato.vpp.interfaces.VxlanLink + 16, // 10: ligato.vpp.interfaces.Interface.ipsec:type_name -> ligato.vpp.interfaces.IPSecLink + 17, // 11: ligato.vpp.interfaces.Interface.vmx_net3:type_name -> ligato.vpp.interfaces.VmxNet3Link + 18, // 12: ligato.vpp.interfaces.Interface.bond:type_name -> ligato.vpp.interfaces.BondLink + 19, // 13: ligato.vpp.interfaces.Interface.gre:type_name -> ligato.vpp.interfaces.GreLink + 20, // 14: ligato.vpp.interfaces.Interface.gtpu:type_name -> ligato.vpp.interfaces.GtpuLink + 21, // 15: ligato.vpp.interfaces.Interface.ipip:type_name -> ligato.vpp.interfaces.IPIPLink + 2, // 16: ligato.vpp.interfaces.SubInterface.tag_rw_option:type_name -> ligato.vpp.interfaces.SubInterface.TagRewriteOptions + 3, // 17: ligato.vpp.interfaces.MemifLink.mode:type_name -> ligato.vpp.interfaces.MemifLink.MemifMode + 26, // 18: ligato.vpp.interfaces.VxlanLink.gpe:type_name -> ligato.vpp.interfaces.VxlanLink.Gpe + 28, // 19: ligato.vpp.interfaces.IPSecLink.crypto_alg:type_name -> ligato.vpp.ipsec.CryptoAlg + 29, // 20: ligato.vpp.interfaces.IPSecLink.integ_alg:type_name -> ligato.vpp.ipsec.IntegAlg + 5, // 21: ligato.vpp.interfaces.BondLink.mode:type_name -> ligato.vpp.interfaces.BondLink.Mode + 6, // 22: ligato.vpp.interfaces.BondLink.lb:type_name -> ligato.vpp.interfaces.BondLink.LoadBalance + 27, // 23: ligato.vpp.interfaces.BondLink.bonded_interfaces:type_name -> ligato.vpp.interfaces.BondLink.BondedInterface + 7, // 24: ligato.vpp.interfaces.GreLink.tunnel_type:type_name -> ligato.vpp.interfaces.GreLink.Type + 8, // 25: ligato.vpp.interfaces.GtpuLink.decap_next:type_name -> ligato.vpp.interfaces.GtpuLink.NextNode + 9, // 26: ligato.vpp.interfaces.IPIPLink.tunnel_mode:type_name -> ligato.vpp.interfaces.IPIPLink.Mode + 1, // 27: ligato.vpp.interfaces.Interface.RxMode.mode:type_name -> ligato.vpp.interfaces.Interface.RxMode.Type + 4, // 28: ligato.vpp.interfaces.VxlanLink.Gpe.protocol:type_name -> ligato.vpp.interfaces.VxlanLink.Gpe.Protocol + 29, // [29:29] is the sub-list for method output_type + 29, // [29:29] is the sub-list for method input_type + 29, // [29:29] is the sub-list for extension type_name + 29, // [29:29] is the sub-list for extension extendee + 0, // [0:29] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_interfaces_interface_proto_init() } +func file_ligato_vpp_interfaces_interface_proto_init() { + if File_ligato_vpp_interfaces_interface_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_interfaces_interface_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Interface); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_interface_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubInterface); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_interface_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MemifLink); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_interface_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VxlanLink); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_interface_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AfpacketLink); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_interface_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TapLink); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_interface_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IPSecLink); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_interface_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VmxNet3Link); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_interface_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BondLink); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_interface_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GreLink); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_interface_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GtpuLink); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_interface_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IPIPLink); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_interface_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Interface_IP6ND); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_interface_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Interface_Unnumbered); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_interface_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Interface_RxMode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_interface_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Interface_RxPlacement); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_interface_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VxlanLink_Gpe); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_interface_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BondLink_BondedInterface); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_ligato_vpp_interfaces_interface_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*Interface_Sub)(nil), + (*Interface_Memif)(nil), + (*Interface_Afpacket)(nil), + (*Interface_Tap)(nil), + (*Interface_Vxlan)(nil), + (*Interface_Ipsec)(nil), + (*Interface_VmxNet3)(nil), + (*Interface_Bond)(nil), + (*Interface_Gre)(nil), + (*Interface_Gtpu)(nil), + (*Interface_Ipip)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_interfaces_interface_proto_rawDesc, + NumEnums: 10, + NumMessages: 18, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_interfaces_interface_proto_goTypes, + DependencyIndexes: file_ligato_vpp_interfaces_interface_proto_depIdxs, + EnumInfos: file_ligato_vpp_interfaces_interface_proto_enumTypes, + MessageInfos: file_ligato_vpp_interfaces_interface_proto_msgTypes, + }.Build() + File_ligato_vpp_interfaces_interface_proto = out.File + file_ligato_vpp_interfaces_interface_proto_rawDesc = nil + file_ligato_vpp_interfaces_interface_proto_goTypes = nil + file_ligato_vpp_interfaces_interface_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/interfaces/span.pb.go b/proto/ligato/vpp/interfaces/span.pb.go index 138bc3b433..068eb4ef72 100644 --- a/proto/ligato/vpp/interfaces/span.pb.go +++ b/proto/ligato/vpp/interfaces/span.pb.go @@ -1,24 +1,29 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/interfaces/span.proto package vpp_interfaces import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type Span_Direction int32 @@ -29,114 +34,211 @@ const ( Span_BOTH Span_Direction = 3 ) -var Span_Direction_name = map[int32]string{ - 0: "UNKNOWN", - 1: "RX", - 2: "TX", - 3: "BOTH", -} +// Enum value maps for Span_Direction. +var ( + Span_Direction_name = map[int32]string{ + 0: "UNKNOWN", + 1: "RX", + 2: "TX", + 3: "BOTH", + } + Span_Direction_value = map[string]int32{ + "UNKNOWN": 0, + "RX": 1, + "TX": 2, + "BOTH": 3, + } +) -var Span_Direction_value = map[string]int32{ - "UNKNOWN": 0, - "RX": 1, - "TX": 2, - "BOTH": 3, +func (x Span_Direction) Enum() *Span_Direction { + p := new(Span_Direction) + *p = x + return p } func (x Span_Direction) String() string { - return proto.EnumName(Span_Direction_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (Span_Direction) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_3db2120d57515158, []int{0, 0} +func (Span_Direction) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_interfaces_span_proto_enumTypes[0].Descriptor() } -type Span struct { - InterfaceFrom string `protobuf:"bytes,1,opt,name=interface_from,json=interfaceFrom,proto3" json:"interface_from,omitempty"` - InterfaceTo string `protobuf:"bytes,2,opt,name=interface_to,json=interfaceTo,proto3" json:"interface_to,omitempty"` - Direction Span_Direction `protobuf:"varint,3,opt,name=direction,proto3,enum=ligato.vpp.interfaces.Span_Direction" json:"direction,omitempty"` - IsL2 bool `protobuf:"varint,4,opt,name=is_l2,json=isL2,proto3" json:"is_l2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Span) Reset() { *m = Span{} } -func (m *Span) String() string { return proto.CompactTextString(m) } -func (*Span) ProtoMessage() {} -func (*Span) Descriptor() ([]byte, []int) { - return fileDescriptor_3db2120d57515158, []int{0} +func (Span_Direction) Type() protoreflect.EnumType { + return &file_ligato_vpp_interfaces_span_proto_enumTypes[0] } -func (m *Span) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Span.Unmarshal(m, b) +func (x Span_Direction) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *Span) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Span.Marshal(b, m, deterministic) + +// Deprecated: Use Span_Direction.Descriptor instead. +func (Span_Direction) EnumDescriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_span_proto_rawDescGZIP(), []int{0, 0} } -func (m *Span) XXX_Merge(src proto.Message) { - xxx_messageInfo_Span.Merge(m, src) + +type Span struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + InterfaceFrom string `protobuf:"bytes,1,opt,name=interface_from,json=interfaceFrom,proto3" json:"interface_from,omitempty"` + InterfaceTo string `protobuf:"bytes,2,opt,name=interface_to,json=interfaceTo,proto3" json:"interface_to,omitempty"` + Direction Span_Direction `protobuf:"varint,3,opt,name=direction,proto3,enum=ligato.vpp.interfaces.Span_Direction" json:"direction,omitempty"` + IsL2 bool `protobuf:"varint,4,opt,name=is_l2,json=isL2,proto3" json:"is_l2,omitempty"` +} + +func (x *Span) Reset() { + *x = Span{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_span_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Span) XXX_Size() int { - return xxx_messageInfo_Span.Size(m) + +func (x *Span) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Span) XXX_DiscardUnknown() { - xxx_messageInfo_Span.DiscardUnknown(m) + +func (*Span) ProtoMessage() {} + +func (x *Span) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_span_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Span proto.InternalMessageInfo +// Deprecated: Use Span.ProtoReflect.Descriptor instead. +func (*Span) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_span_proto_rawDescGZIP(), []int{0} +} -func (m *Span) GetInterfaceFrom() string { - if m != nil { - return m.InterfaceFrom +func (x *Span) GetInterfaceFrom() string { + if x != nil { + return x.InterfaceFrom } return "" } -func (m *Span) GetInterfaceTo() string { - if m != nil { - return m.InterfaceTo +func (x *Span) GetInterfaceTo() string { + if x != nil { + return x.InterfaceTo } return "" } -func (m *Span) GetDirection() Span_Direction { - if m != nil { - return m.Direction +func (x *Span) GetDirection() Span_Direction { + if x != nil { + return x.Direction } return Span_UNKNOWN } -func (m *Span) GetIsL2() bool { - if m != nil { - return m.IsL2 +func (x *Span) GetIsL2() bool { + if x != nil { + return x.IsL2 } return false } -func init() { - proto.RegisterEnum("ligato.vpp.interfaces.Span_Direction", Span_Direction_name, Span_Direction_value) - proto.RegisterType((*Span)(nil), "ligato.vpp.interfaces.Span") -} - -func init() { proto.RegisterFile("ligato/vpp/interfaces/span.proto", fileDescriptor_3db2120d57515158) } - -var fileDescriptor_3db2120d57515158 = []byte{ - // 254 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0xd0, 0xc1, 0x4b, 0xc3, 0x30, - 0x14, 0x06, 0x70, 0xd3, 0xd5, 0xb9, 0xbe, 0xe9, 0x28, 0x11, 0xa1, 0xc7, 0x3a, 0x18, 0xf4, 0x62, - 0x02, 0xdd, 0xd1, 0xdb, 0x1c, 0x43, 0x50, 0x3a, 0xa8, 0x15, 0x87, 0x97, 0x52, 0x67, 0x57, 0x02, - 0x5b, 0xde, 0x23, 0x0d, 0xfd, 0x73, 0xfd, 0x5b, 0x64, 0x1d, 0x6b, 0x2f, 0x3b, 0x85, 0x7c, 0xfc, - 0x1e, 0x1f, 0x7c, 0x10, 0xee, 0x55, 0x55, 0x58, 0x94, 0x0d, 0x91, 0x54, 0xda, 0x96, 0x66, 0x57, - 0x6c, 0xcb, 0x5a, 0xd6, 0x54, 0x68, 0x41, 0x06, 0x2d, 0xf2, 0x87, 0x93, 0x10, 0x0d, 0x91, 0xe8, - 0xc5, 0xf4, 0x8f, 0x81, 0xfb, 0x41, 0x85, 0xe6, 0x33, 0x98, 0x74, 0x71, 0xbe, 0x33, 0x78, 0x08, - 0x58, 0xc8, 0x22, 0x2f, 0xbd, 0xeb, 0xd2, 0x95, 0xc1, 0x03, 0x7f, 0x84, 0xdb, 0x9e, 0x59, 0x0c, - 0x9c, 0x16, 0x8d, 0xbb, 0x2c, 0x43, 0xfe, 0x02, 0xde, 0xaf, 0x32, 0xe5, 0xd6, 0x2a, 0xd4, 0xc1, - 0x20, 0x64, 0xd1, 0x24, 0x9e, 0x89, 0x8b, 0xed, 0xe2, 0xd8, 0x2c, 0x96, 0x67, 0x9c, 0xf6, 0x77, - 0xfc, 0x1e, 0xae, 0x55, 0x9d, 0xef, 0xe3, 0xc0, 0x0d, 0x59, 0x34, 0x4a, 0x5d, 0x55, 0xbf, 0xc7, - 0xd3, 0x18, 0xbc, 0x0e, 0xf3, 0x31, 0xdc, 0x7c, 0x26, 0x6f, 0xc9, 0xfa, 0x2b, 0xf1, 0xaf, 0xf8, - 0x10, 0x9c, 0x74, 0xe3, 0xb3, 0xe3, 0x9b, 0x6d, 0x7c, 0x87, 0x8f, 0xc0, 0x5d, 0xac, 0xb3, 0x57, - 0x7f, 0xb0, 0x58, 0x7d, 0x2f, 0x2b, 0x3c, 0xd7, 0xab, 0x76, 0xa1, 0xa7, 0xa2, 0x2a, 0xb5, 0x95, - 0xcd, 0x5c, 0xb6, 0xd3, 0xc8, 0x8b, 0xdb, 0x3d, 0x37, 0x44, 0x79, 0xff, 0xfd, 0x19, 0xb6, 0x76, - 0xfe, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xed, 0x56, 0xa5, 0x97, 0x6a, 0x01, 0x00, 0x00, +var File_ligato_vpp_interfaces_span_proto protoreflect.FileDescriptor + +var file_ligato_vpp_interfaces_span_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x73, 0x70, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x22, 0xde, 0x01, 0x0a, 0x04, 0x53, 0x70, + 0x61, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x5f, + 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x5f, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x54, 0x6f, 0x12, 0x43, 0x0a, 0x09, + 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x25, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x2e, 0x44, 0x69, 0x72, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x13, 0x0a, 0x05, 0x69, 0x73, 0x5f, 0x6c, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x04, 0x69, 0x73, 0x4c, 0x32, 0x22, 0x32, 0x0a, 0x09, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, + 0x12, 0x06, 0x0a, 0x02, 0x52, 0x58, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02, 0x54, 0x58, 0x10, 0x02, + 0x12, 0x08, 0x0a, 0x04, 0x42, 0x4f, 0x54, 0x48, 0x10, 0x03, 0x42, 0x46, 0x5a, 0x44, 0x67, 0x6f, + 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x73, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_interfaces_span_proto_rawDescOnce sync.Once + file_ligato_vpp_interfaces_span_proto_rawDescData = file_ligato_vpp_interfaces_span_proto_rawDesc +) + +func file_ligato_vpp_interfaces_span_proto_rawDescGZIP() []byte { + file_ligato_vpp_interfaces_span_proto_rawDescOnce.Do(func() { + file_ligato_vpp_interfaces_span_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_interfaces_span_proto_rawDescData) + }) + return file_ligato_vpp_interfaces_span_proto_rawDescData +} + +var file_ligato_vpp_interfaces_span_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_ligato_vpp_interfaces_span_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_ligato_vpp_interfaces_span_proto_goTypes = []interface{}{ + (Span_Direction)(0), // 0: ligato.vpp.interfaces.Span.Direction + (*Span)(nil), // 1: ligato.vpp.interfaces.Span +} +var file_ligato_vpp_interfaces_span_proto_depIdxs = []int32{ + 0, // 0: ligato.vpp.interfaces.Span.direction:type_name -> ligato.vpp.interfaces.Span.Direction + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_interfaces_span_proto_init() } +func file_ligato_vpp_interfaces_span_proto_init() { + if File_ligato_vpp_interfaces_span_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_interfaces_span_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Span); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_interfaces_span_proto_rawDesc, + NumEnums: 1, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_interfaces_span_proto_goTypes, + DependencyIndexes: file_ligato_vpp_interfaces_span_proto_depIdxs, + EnumInfos: file_ligato_vpp_interfaces_span_proto_enumTypes, + MessageInfos: file_ligato_vpp_interfaces_span_proto_msgTypes, + }.Build() + File_ligato_vpp_interfaces_span_proto = out.File + file_ligato_vpp_interfaces_span_proto_rawDesc = nil + file_ligato_vpp_interfaces_span_proto_goTypes = nil + file_ligato_vpp_interfaces_span_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/interfaces/state.pb.go b/proto/ligato/vpp/interfaces/state.pb.go index 6d9a74d66b..48ac7f6849 100644 --- a/proto/ligato/vpp/interfaces/state.pb.go +++ b/proto/ligato/vpp/interfaces/state.pb.go @@ -1,24 +1,29 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/interfaces/state.proto package vpp_interfaces import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type InterfaceState_Status int32 @@ -29,26 +34,47 @@ const ( InterfaceState_DELETED InterfaceState_Status = 3 ) -var InterfaceState_Status_name = map[int32]string{ - 0: "UNKNOWN_STATUS", - 1: "UP", - 2: "DOWN", - 3: "DELETED", -} +// Enum value maps for InterfaceState_Status. +var ( + InterfaceState_Status_name = map[int32]string{ + 0: "UNKNOWN_STATUS", + 1: "UP", + 2: "DOWN", + 3: "DELETED", + } + InterfaceState_Status_value = map[string]int32{ + "UNKNOWN_STATUS": 0, + "UP": 1, + "DOWN": 2, + "DELETED": 3, + } +) -var InterfaceState_Status_value = map[string]int32{ - "UNKNOWN_STATUS": 0, - "UP": 1, - "DOWN": 2, - "DELETED": 3, +func (x InterfaceState_Status) Enum() *InterfaceState_Status { + p := new(InterfaceState_Status) + *p = x + return p } func (x InterfaceState_Status) String() string { - return proto.EnumName(InterfaceState_Status_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (InterfaceState_Status) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_interfaces_state_proto_enumTypes[0].Descriptor() } +func (InterfaceState_Status) Type() protoreflect.EnumType { + return &file_ligato_vpp_interfaces_state_proto_enumTypes[0] +} + +func (x InterfaceState_Status) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use InterfaceState_Status.Descriptor instead. func (InterfaceState_Status) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_89357752b24c297d, []int{1, 0} + return file_ligato_vpp_interfaces_state_proto_rawDescGZIP(), []int{1, 0} } type InterfaceState_Duplex int32 @@ -59,24 +85,45 @@ const ( InterfaceState_FULL InterfaceState_Duplex = 2 ) -var InterfaceState_Duplex_name = map[int32]string{ - 0: "UNKNOWN_DUPLEX", - 1: "HALF", - 2: "FULL", -} +// Enum value maps for InterfaceState_Duplex. +var ( + InterfaceState_Duplex_name = map[int32]string{ + 0: "UNKNOWN_DUPLEX", + 1: "HALF", + 2: "FULL", + } + InterfaceState_Duplex_value = map[string]int32{ + "UNKNOWN_DUPLEX": 0, + "HALF": 1, + "FULL": 2, + } +) -var InterfaceState_Duplex_value = map[string]int32{ - "UNKNOWN_DUPLEX": 0, - "HALF": 1, - "FULL": 2, +func (x InterfaceState_Duplex) Enum() *InterfaceState_Duplex { + p := new(InterfaceState_Duplex) + *p = x + return p } func (x InterfaceState_Duplex) String() string { - return proto.EnumName(InterfaceState_Duplex_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (InterfaceState_Duplex) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_interfaces_state_proto_enumTypes[1].Descriptor() +} + +func (InterfaceState_Duplex) Type() protoreflect.EnumType { + return &file_ligato_vpp_interfaces_state_proto_enumTypes[1] +} + +func (x InterfaceState_Duplex) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use InterfaceState_Duplex.Descriptor instead. func (InterfaceState_Duplex) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_89357752b24c297d, []int{1, 1} + return file_ligato_vpp_interfaces_state_proto_rawDescGZIP(), []int{1, 1} } type InterfaceNotification_NotifType int32 @@ -87,623 +134,906 @@ const ( InterfaceNotification_COUNTERS InterfaceNotification_NotifType = 2 ) -var InterfaceNotification_NotifType_name = map[int32]string{ - 0: "UNKNOWN", - 1: "UPDOWN", - 2: "COUNTERS", -} +// Enum value maps for InterfaceNotification_NotifType. +var ( + InterfaceNotification_NotifType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "UPDOWN", + 2: "COUNTERS", + } + InterfaceNotification_NotifType_value = map[string]int32{ + "UNKNOWN": 0, + "UPDOWN": 1, + "COUNTERS": 2, + } +) -var InterfaceNotification_NotifType_value = map[string]int32{ - "UNKNOWN": 0, - "UPDOWN": 1, - "COUNTERS": 2, +func (x InterfaceNotification_NotifType) Enum() *InterfaceNotification_NotifType { + p := new(InterfaceNotification_NotifType) + *p = x + return p } func (x InterfaceNotification_NotifType) String() string { - return proto.EnumName(InterfaceNotification_NotifType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (InterfaceNotification_NotifType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_89357752b24c297d, []int{2, 0} +func (InterfaceNotification_NotifType) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_interfaces_state_proto_enumTypes[2].Descriptor() } -type InterfaceStats struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Rx *InterfaceStats_CombinedCounter `protobuf:"bytes,2,opt,name=rx,proto3" json:"rx,omitempty"` - Tx *InterfaceStats_CombinedCounter `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"` - RxUnicast *InterfaceStats_CombinedCounter `protobuf:"bytes,4,opt,name=rx_unicast,json=rxUnicast,proto3" json:"rx_unicast,omitempty"` - RxMulticast *InterfaceStats_CombinedCounter `protobuf:"bytes,5,opt,name=rx_multicast,json=rxMulticast,proto3" json:"rx_multicast,omitempty"` - RxBroadcast *InterfaceStats_CombinedCounter `protobuf:"bytes,6,opt,name=rx_broadcast,json=rxBroadcast,proto3" json:"rx_broadcast,omitempty"` - TxUnicast *InterfaceStats_CombinedCounter `protobuf:"bytes,7,opt,name=tx_unicast,json=txUnicast,proto3" json:"tx_unicast,omitempty"` - TxMulticast *InterfaceStats_CombinedCounter `protobuf:"bytes,8,opt,name=tx_multicast,json=txMulticast,proto3" json:"tx_multicast,omitempty"` - TxBroadcast *InterfaceStats_CombinedCounter `protobuf:"bytes,9,opt,name=tx_broadcast,json=txBroadcast,proto3" json:"tx_broadcast,omitempty"` - RxError uint64 `protobuf:"varint,12,opt,name=rx_error,json=rxError,proto3" json:"rx_error,omitempty"` - TxError uint64 `protobuf:"varint,13,opt,name=tx_error,json=txError,proto3" json:"tx_error,omitempty"` - RxNoBuf uint64 `protobuf:"varint,10,opt,name=rx_no_buf,json=rxNoBuf,proto3" json:"rx_no_buf,omitempty"` - RxMiss uint64 `protobuf:"varint,11,opt,name=rx_miss,json=rxMiss,proto3" json:"rx_miss,omitempty"` - Drops uint64 `protobuf:"varint,14,opt,name=drops,proto3" json:"drops,omitempty"` - Punts uint64 `protobuf:"varint,15,opt,name=punts,proto3" json:"punts,omitempty"` - Ip4 uint64 `protobuf:"varint,16,opt,name=ip4,proto3" json:"ip4,omitempty"` - Ip6 uint64 `protobuf:"varint,17,opt,name=ip6,proto3" json:"ip6,omitempty"` - Mpls uint64 `protobuf:"varint,18,opt,name=mpls,proto3" json:"mpls,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InterfaceStats) Reset() { *m = InterfaceStats{} } -func (m *InterfaceStats) String() string { return proto.CompactTextString(m) } -func (*InterfaceStats) ProtoMessage() {} -func (*InterfaceStats) Descriptor() ([]byte, []int) { - return fileDescriptor_89357752b24c297d, []int{0} +func (InterfaceNotification_NotifType) Type() protoreflect.EnumType { + return &file_ligato_vpp_interfaces_state_proto_enumTypes[2] } -func (m *InterfaceStats) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InterfaceStats.Unmarshal(m, b) +func (x InterfaceNotification_NotifType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *InterfaceStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InterfaceStats.Marshal(b, m, deterministic) + +// Deprecated: Use InterfaceNotification_NotifType.Descriptor instead. +func (InterfaceNotification_NotifType) EnumDescriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_state_proto_rawDescGZIP(), []int{2, 0} } -func (m *InterfaceStats) XXX_Merge(src proto.Message) { - xxx_messageInfo_InterfaceStats.Merge(m, src) + +type InterfaceStats struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Rx *InterfaceStats_CombinedCounter `protobuf:"bytes,2,opt,name=rx,proto3" json:"rx,omitempty"` + Tx *InterfaceStats_CombinedCounter `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"` + RxUnicast *InterfaceStats_CombinedCounter `protobuf:"bytes,4,opt,name=rx_unicast,json=rxUnicast,proto3" json:"rx_unicast,omitempty"` + RxMulticast *InterfaceStats_CombinedCounter `protobuf:"bytes,5,opt,name=rx_multicast,json=rxMulticast,proto3" json:"rx_multicast,omitempty"` + RxBroadcast *InterfaceStats_CombinedCounter `protobuf:"bytes,6,opt,name=rx_broadcast,json=rxBroadcast,proto3" json:"rx_broadcast,omitempty"` + TxUnicast *InterfaceStats_CombinedCounter `protobuf:"bytes,7,opt,name=tx_unicast,json=txUnicast,proto3" json:"tx_unicast,omitempty"` + TxMulticast *InterfaceStats_CombinedCounter `protobuf:"bytes,8,opt,name=tx_multicast,json=txMulticast,proto3" json:"tx_multicast,omitempty"` + TxBroadcast *InterfaceStats_CombinedCounter `protobuf:"bytes,9,opt,name=tx_broadcast,json=txBroadcast,proto3" json:"tx_broadcast,omitempty"` + RxError uint64 `protobuf:"varint,12,opt,name=rx_error,json=rxError,proto3" json:"rx_error,omitempty"` + TxError uint64 `protobuf:"varint,13,opt,name=tx_error,json=txError,proto3" json:"tx_error,omitempty"` + RxNoBuf uint64 `protobuf:"varint,10,opt,name=rx_no_buf,json=rxNoBuf,proto3" json:"rx_no_buf,omitempty"` + RxMiss uint64 `protobuf:"varint,11,opt,name=rx_miss,json=rxMiss,proto3" json:"rx_miss,omitempty"` + Drops uint64 `protobuf:"varint,14,opt,name=drops,proto3" json:"drops,omitempty"` + Punts uint64 `protobuf:"varint,15,opt,name=punts,proto3" json:"punts,omitempty"` + Ip4 uint64 `protobuf:"varint,16,opt,name=ip4,proto3" json:"ip4,omitempty"` + Ip6 uint64 `protobuf:"varint,17,opt,name=ip6,proto3" json:"ip6,omitempty"` + Mpls uint64 `protobuf:"varint,18,opt,name=mpls,proto3" json:"mpls,omitempty"` +} + +func (x *InterfaceStats) Reset() { + *x = InterfaceStats{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_state_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *InterfaceStats) XXX_Size() int { - return xxx_messageInfo_InterfaceStats.Size(m) + +func (x *InterfaceStats) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InterfaceStats) XXX_DiscardUnknown() { - xxx_messageInfo_InterfaceStats.DiscardUnknown(m) + +func (*InterfaceStats) ProtoMessage() {} + +func (x *InterfaceStats) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_state_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_InterfaceStats proto.InternalMessageInfo +// Deprecated: Use InterfaceStats.ProtoReflect.Descriptor instead. +func (*InterfaceStats) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_state_proto_rawDescGZIP(), []int{0} +} -func (m *InterfaceStats) GetName() string { - if m != nil { - return m.Name +func (x *InterfaceStats) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *InterfaceStats) GetRx() *InterfaceStats_CombinedCounter { - if m != nil { - return m.Rx +func (x *InterfaceStats) GetRx() *InterfaceStats_CombinedCounter { + if x != nil { + return x.Rx } return nil } -func (m *InterfaceStats) GetTx() *InterfaceStats_CombinedCounter { - if m != nil { - return m.Tx +func (x *InterfaceStats) GetTx() *InterfaceStats_CombinedCounter { + if x != nil { + return x.Tx } return nil } -func (m *InterfaceStats) GetRxUnicast() *InterfaceStats_CombinedCounter { - if m != nil { - return m.RxUnicast +func (x *InterfaceStats) GetRxUnicast() *InterfaceStats_CombinedCounter { + if x != nil { + return x.RxUnicast } return nil } -func (m *InterfaceStats) GetRxMulticast() *InterfaceStats_CombinedCounter { - if m != nil { - return m.RxMulticast +func (x *InterfaceStats) GetRxMulticast() *InterfaceStats_CombinedCounter { + if x != nil { + return x.RxMulticast } return nil } -func (m *InterfaceStats) GetRxBroadcast() *InterfaceStats_CombinedCounter { - if m != nil { - return m.RxBroadcast +func (x *InterfaceStats) GetRxBroadcast() *InterfaceStats_CombinedCounter { + if x != nil { + return x.RxBroadcast } return nil } -func (m *InterfaceStats) GetTxUnicast() *InterfaceStats_CombinedCounter { - if m != nil { - return m.TxUnicast +func (x *InterfaceStats) GetTxUnicast() *InterfaceStats_CombinedCounter { + if x != nil { + return x.TxUnicast } return nil } -func (m *InterfaceStats) GetTxMulticast() *InterfaceStats_CombinedCounter { - if m != nil { - return m.TxMulticast +func (x *InterfaceStats) GetTxMulticast() *InterfaceStats_CombinedCounter { + if x != nil { + return x.TxMulticast } return nil } -func (m *InterfaceStats) GetTxBroadcast() *InterfaceStats_CombinedCounter { - if m != nil { - return m.TxBroadcast +func (x *InterfaceStats) GetTxBroadcast() *InterfaceStats_CombinedCounter { + if x != nil { + return x.TxBroadcast } return nil } -func (m *InterfaceStats) GetRxError() uint64 { - if m != nil { - return m.RxError +func (x *InterfaceStats) GetRxError() uint64 { + if x != nil { + return x.RxError } return 0 } -func (m *InterfaceStats) GetTxError() uint64 { - if m != nil { - return m.TxError +func (x *InterfaceStats) GetTxError() uint64 { + if x != nil { + return x.TxError } return 0 } -func (m *InterfaceStats) GetRxNoBuf() uint64 { - if m != nil { - return m.RxNoBuf +func (x *InterfaceStats) GetRxNoBuf() uint64 { + if x != nil { + return x.RxNoBuf } return 0 } -func (m *InterfaceStats) GetRxMiss() uint64 { - if m != nil { - return m.RxMiss +func (x *InterfaceStats) GetRxMiss() uint64 { + if x != nil { + return x.RxMiss } return 0 } -func (m *InterfaceStats) GetDrops() uint64 { - if m != nil { - return m.Drops +func (x *InterfaceStats) GetDrops() uint64 { + if x != nil { + return x.Drops } return 0 } -func (m *InterfaceStats) GetPunts() uint64 { - if m != nil { - return m.Punts +func (x *InterfaceStats) GetPunts() uint64 { + if x != nil { + return x.Punts } return 0 } -func (m *InterfaceStats) GetIp4() uint64 { - if m != nil { - return m.Ip4 +func (x *InterfaceStats) GetIp4() uint64 { + if x != nil { + return x.Ip4 } return 0 } -func (m *InterfaceStats) GetIp6() uint64 { - if m != nil { - return m.Ip6 +func (x *InterfaceStats) GetIp6() uint64 { + if x != nil { + return x.Ip6 } return 0 } -func (m *InterfaceStats) GetMpls() uint64 { - if m != nil { - return m.Mpls +func (x *InterfaceStats) GetMpls() uint64 { + if x != nil { + return x.Mpls } return 0 } -type InterfaceStats_CombinedCounter struct { - Packets uint64 `protobuf:"varint,1,opt,name=packets,proto3" json:"packets,omitempty"` - Bytes uint64 `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InterfaceState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + InternalName string `protobuf:"bytes,2,opt,name=internal_name,json=internalName,proto3" json:"internal_name,omitempty"` + Type Interface_Type `protobuf:"varint,3,opt,name=type,proto3,enum=ligato.vpp.interfaces.Interface_Type" json:"type,omitempty"` + IfIndex uint32 `protobuf:"varint,4,opt,name=if_index,json=ifIndex,proto3" json:"if_index,omitempty"` + AdminStatus InterfaceState_Status `protobuf:"varint,5,opt,name=admin_status,json=adminStatus,proto3,enum=ligato.vpp.interfaces.InterfaceState_Status" json:"admin_status,omitempty"` + OperStatus InterfaceState_Status `protobuf:"varint,6,opt,name=oper_status,json=operStatus,proto3,enum=ligato.vpp.interfaces.InterfaceState_Status" json:"oper_status,omitempty"` + LastChange int64 `protobuf:"varint,7,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` + PhysAddress string `protobuf:"bytes,8,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"` + Speed uint64 `protobuf:"varint,9,opt,name=speed,proto3" json:"speed,omitempty"` + Mtu uint32 `protobuf:"varint,10,opt,name=mtu,proto3" json:"mtu,omitempty"` + Duplex InterfaceState_Duplex `protobuf:"varint,11,opt,name=duplex,proto3,enum=ligato.vpp.interfaces.InterfaceState_Duplex" json:"duplex,omitempty"` + Statistics *InterfaceState_Statistics `protobuf:"bytes,100,opt,name=statistics,proto3" json:"statistics,omitempty"` +} + +func (x *InterfaceState) Reset() { + *x = InterfaceState{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_state_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *InterfaceStats_CombinedCounter) Reset() { *m = InterfaceStats_CombinedCounter{} } -func (m *InterfaceStats_CombinedCounter) String() string { return proto.CompactTextString(m) } -func (*InterfaceStats_CombinedCounter) ProtoMessage() {} -func (*InterfaceStats_CombinedCounter) Descriptor() ([]byte, []int) { - return fileDescriptor_89357752b24c297d, []int{0, 0} +func (x *InterfaceState) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InterfaceStats_CombinedCounter) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InterfaceStats_CombinedCounter.Unmarshal(m, b) -} -func (m *InterfaceStats_CombinedCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InterfaceStats_CombinedCounter.Marshal(b, m, deterministic) -} -func (m *InterfaceStats_CombinedCounter) XXX_Merge(src proto.Message) { - xxx_messageInfo_InterfaceStats_CombinedCounter.Merge(m, src) -} -func (m *InterfaceStats_CombinedCounter) XXX_Size() int { - return xxx_messageInfo_InterfaceStats_CombinedCounter.Size(m) -} -func (m *InterfaceStats_CombinedCounter) XXX_DiscardUnknown() { - xxx_messageInfo_InterfaceStats_CombinedCounter.DiscardUnknown(m) -} - -var xxx_messageInfo_InterfaceStats_CombinedCounter proto.InternalMessageInfo - -func (m *InterfaceStats_CombinedCounter) GetPackets() uint64 { - if m != nil { - return m.Packets - } - return 0 -} +func (*InterfaceState) ProtoMessage() {} -func (m *InterfaceStats_CombinedCounter) GetBytes() uint64 { - if m != nil { - return m.Bytes +func (x *InterfaceState) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_state_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -type InterfaceState struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - InternalName string `protobuf:"bytes,2,opt,name=internal_name,json=internalName,proto3" json:"internal_name,omitempty"` - Type Interface_Type `protobuf:"varint,3,opt,name=type,proto3,enum=ligato.vpp.interfaces.Interface_Type" json:"type,omitempty"` - IfIndex uint32 `protobuf:"varint,4,opt,name=if_index,json=ifIndex,proto3" json:"if_index,omitempty"` - AdminStatus InterfaceState_Status `protobuf:"varint,5,opt,name=admin_status,json=adminStatus,proto3,enum=ligato.vpp.interfaces.InterfaceState_Status" json:"admin_status,omitempty"` - OperStatus InterfaceState_Status `protobuf:"varint,6,opt,name=oper_status,json=operStatus,proto3,enum=ligato.vpp.interfaces.InterfaceState_Status" json:"oper_status,omitempty"` - LastChange int64 `protobuf:"varint,7,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` - PhysAddress string `protobuf:"bytes,8,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"` - Speed uint64 `protobuf:"varint,9,opt,name=speed,proto3" json:"speed,omitempty"` - Mtu uint32 `protobuf:"varint,10,opt,name=mtu,proto3" json:"mtu,omitempty"` - Duplex InterfaceState_Duplex `protobuf:"varint,11,opt,name=duplex,proto3,enum=ligato.vpp.interfaces.InterfaceState_Duplex" json:"duplex,omitempty"` - Statistics *InterfaceState_Statistics `protobuf:"bytes,100,opt,name=statistics,proto3" json:"statistics,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InterfaceState) Reset() { *m = InterfaceState{} } -func (m *InterfaceState) String() string { return proto.CompactTextString(m) } -func (*InterfaceState) ProtoMessage() {} +// Deprecated: Use InterfaceState.ProtoReflect.Descriptor instead. func (*InterfaceState) Descriptor() ([]byte, []int) { - return fileDescriptor_89357752b24c297d, []int{1} -} - -func (m *InterfaceState) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InterfaceState.Unmarshal(m, b) -} -func (m *InterfaceState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InterfaceState.Marshal(b, m, deterministic) -} -func (m *InterfaceState) XXX_Merge(src proto.Message) { - xxx_messageInfo_InterfaceState.Merge(m, src) -} -func (m *InterfaceState) XXX_Size() int { - return xxx_messageInfo_InterfaceState.Size(m) -} -func (m *InterfaceState) XXX_DiscardUnknown() { - xxx_messageInfo_InterfaceState.DiscardUnknown(m) + return file_ligato_vpp_interfaces_state_proto_rawDescGZIP(), []int{1} } -var xxx_messageInfo_InterfaceState proto.InternalMessageInfo - -func (m *InterfaceState) GetName() string { - if m != nil { - return m.Name +func (x *InterfaceState) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *InterfaceState) GetInternalName() string { - if m != nil { - return m.InternalName +func (x *InterfaceState) GetInternalName() string { + if x != nil { + return x.InternalName } return "" } -func (m *InterfaceState) GetType() Interface_Type { - if m != nil { - return m.Type +func (x *InterfaceState) GetType() Interface_Type { + if x != nil { + return x.Type } return Interface_UNDEFINED_TYPE } -func (m *InterfaceState) GetIfIndex() uint32 { - if m != nil { - return m.IfIndex +func (x *InterfaceState) GetIfIndex() uint32 { + if x != nil { + return x.IfIndex } return 0 } -func (m *InterfaceState) GetAdminStatus() InterfaceState_Status { - if m != nil { - return m.AdminStatus +func (x *InterfaceState) GetAdminStatus() InterfaceState_Status { + if x != nil { + return x.AdminStatus } return InterfaceState_UNKNOWN_STATUS } -func (m *InterfaceState) GetOperStatus() InterfaceState_Status { - if m != nil { - return m.OperStatus +func (x *InterfaceState) GetOperStatus() InterfaceState_Status { + if x != nil { + return x.OperStatus } return InterfaceState_UNKNOWN_STATUS } -func (m *InterfaceState) GetLastChange() int64 { - if m != nil { - return m.LastChange +func (x *InterfaceState) GetLastChange() int64 { + if x != nil { + return x.LastChange } return 0 } -func (m *InterfaceState) GetPhysAddress() string { - if m != nil { - return m.PhysAddress +func (x *InterfaceState) GetPhysAddress() string { + if x != nil { + return x.PhysAddress } return "" } -func (m *InterfaceState) GetSpeed() uint64 { - if m != nil { - return m.Speed +func (x *InterfaceState) GetSpeed() uint64 { + if x != nil { + return x.Speed } return 0 } -func (m *InterfaceState) GetMtu() uint32 { - if m != nil { - return m.Mtu +func (x *InterfaceState) GetMtu() uint32 { + if x != nil { + return x.Mtu } return 0 } -func (m *InterfaceState) GetDuplex() InterfaceState_Duplex { - if m != nil { - return m.Duplex +func (x *InterfaceState) GetDuplex() InterfaceState_Duplex { + if x != nil { + return x.Duplex } return InterfaceState_UNKNOWN_DUPLEX } -func (m *InterfaceState) GetStatistics() *InterfaceState_Statistics { - if m != nil { - return m.Statistics +func (x *InterfaceState) GetStatistics() *InterfaceState_Statistics { + if x != nil { + return x.Statistics } return nil } -type InterfaceState_Statistics struct { - InPackets uint64 `protobuf:"varint,1,opt,name=in_packets,json=inPackets,proto3" json:"in_packets,omitempty"` - InBytes uint64 `protobuf:"varint,2,opt,name=in_bytes,json=inBytes,proto3" json:"in_bytes,omitempty"` - OutPackets uint64 `protobuf:"varint,3,opt,name=out_packets,json=outPackets,proto3" json:"out_packets,omitempty"` - OutBytes uint64 `protobuf:"varint,4,opt,name=out_bytes,json=outBytes,proto3" json:"out_bytes,omitempty"` - DropPackets uint64 `protobuf:"varint,5,opt,name=drop_packets,json=dropPackets,proto3" json:"drop_packets,omitempty"` - PuntPackets uint64 `protobuf:"varint,6,opt,name=punt_packets,json=puntPackets,proto3" json:"punt_packets,omitempty"` - Ipv4Packets uint64 `protobuf:"varint,7,opt,name=ipv4_packets,json=ipv4Packets,proto3" json:"ipv4_packets,omitempty"` - Ipv6Packets uint64 `protobuf:"varint,8,opt,name=ipv6_packets,json=ipv6Packets,proto3" json:"ipv6_packets,omitempty"` - InNobufPackets uint64 `protobuf:"varint,9,opt,name=in_nobuf_packets,json=inNobufPackets,proto3" json:"in_nobuf_packets,omitempty"` - InMissPackets uint64 `protobuf:"varint,10,opt,name=in_miss_packets,json=inMissPackets,proto3" json:"in_miss_packets,omitempty"` - InErrorPackets uint64 `protobuf:"varint,11,opt,name=in_error_packets,json=inErrorPackets,proto3" json:"in_error_packets,omitempty"` - OutErrorPackets uint64 `protobuf:"varint,12,opt,name=out_error_packets,json=outErrorPackets,proto3" json:"out_error_packets,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InterfaceState_Statistics) Reset() { *m = InterfaceState_Statistics{} } -func (m *InterfaceState_Statistics) String() string { return proto.CompactTextString(m) } -func (*InterfaceState_Statistics) ProtoMessage() {} -func (*InterfaceState_Statistics) Descriptor() ([]byte, []int) { - return fileDescriptor_89357752b24c297d, []int{1, 0} +type InterfaceNotification struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type InterfaceNotification_NotifType `protobuf:"varint,1,opt,name=type,proto3,enum=ligato.vpp.interfaces.InterfaceNotification_NotifType" json:"type,omitempty"` + State *InterfaceState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` } -func (m *InterfaceState_Statistics) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InterfaceState_Statistics.Unmarshal(m, b) +func (x *InterfaceNotification) Reset() { + *x = InterfaceNotification{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_state_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *InterfaceState_Statistics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InterfaceState_Statistics.Marshal(b, m, deterministic) + +func (x *InterfaceNotification) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InterfaceState_Statistics) XXX_Merge(src proto.Message) { - xxx_messageInfo_InterfaceState_Statistics.Merge(m, src) + +func (*InterfaceNotification) ProtoMessage() {} + +func (x *InterfaceNotification) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_state_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *InterfaceState_Statistics) XXX_Size() int { - return xxx_messageInfo_InterfaceState_Statistics.Size(m) + +// Deprecated: Use InterfaceNotification.ProtoReflect.Descriptor instead. +func (*InterfaceNotification) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_state_proto_rawDescGZIP(), []int{2} } -func (m *InterfaceState_Statistics) XXX_DiscardUnknown() { - xxx_messageInfo_InterfaceState_Statistics.DiscardUnknown(m) + +func (x *InterfaceNotification) GetType() InterfaceNotification_NotifType { + if x != nil { + return x.Type + } + return InterfaceNotification_UNKNOWN } -var xxx_messageInfo_InterfaceState_Statistics proto.InternalMessageInfo +func (x *InterfaceNotification) GetState() *InterfaceState { + if x != nil { + return x.State + } + return nil +} + +type InterfaceStats_CombinedCounter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *InterfaceState_Statistics) GetInPackets() uint64 { - if m != nil { - return m.InPackets + Packets uint64 `protobuf:"varint,1,opt,name=packets,proto3" json:"packets,omitempty"` + Bytes uint64 `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"` +} + +func (x *InterfaceStats_CombinedCounter) Reset() { + *x = InterfaceStats_CombinedCounter{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_state_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -func (m *InterfaceState_Statistics) GetInBytes() uint64 { - if m != nil { - return m.InBytes +func (x *InterfaceStats_CombinedCounter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InterfaceStats_CombinedCounter) ProtoMessage() {} + +func (x *InterfaceStats_CombinedCounter) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_state_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (m *InterfaceState_Statistics) GetOutPackets() uint64 { - if m != nil { - return m.OutPackets +// Deprecated: Use InterfaceStats_CombinedCounter.ProtoReflect.Descriptor instead. +func (*InterfaceStats_CombinedCounter) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_state_proto_rawDescGZIP(), []int{0, 0} +} + +func (x *InterfaceStats_CombinedCounter) GetPackets() uint64 { + if x != nil { + return x.Packets } return 0 } -func (m *InterfaceState_Statistics) GetOutBytes() uint64 { - if m != nil { - return m.OutBytes +func (x *InterfaceStats_CombinedCounter) GetBytes() uint64 { + if x != nil { + return x.Bytes } return 0 } -func (m *InterfaceState_Statistics) GetDropPackets() uint64 { - if m != nil { - return m.DropPackets +type InterfaceState_Statistics struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + InPackets uint64 `protobuf:"varint,1,opt,name=in_packets,json=inPackets,proto3" json:"in_packets,omitempty"` + InBytes uint64 `protobuf:"varint,2,opt,name=in_bytes,json=inBytes,proto3" json:"in_bytes,omitempty"` + OutPackets uint64 `protobuf:"varint,3,opt,name=out_packets,json=outPackets,proto3" json:"out_packets,omitempty"` + OutBytes uint64 `protobuf:"varint,4,opt,name=out_bytes,json=outBytes,proto3" json:"out_bytes,omitempty"` + DropPackets uint64 `protobuf:"varint,5,opt,name=drop_packets,json=dropPackets,proto3" json:"drop_packets,omitempty"` + PuntPackets uint64 `protobuf:"varint,6,opt,name=punt_packets,json=puntPackets,proto3" json:"punt_packets,omitempty"` + Ipv4Packets uint64 `protobuf:"varint,7,opt,name=ipv4_packets,json=ipv4Packets,proto3" json:"ipv4_packets,omitempty"` + Ipv6Packets uint64 `protobuf:"varint,8,opt,name=ipv6_packets,json=ipv6Packets,proto3" json:"ipv6_packets,omitempty"` + InNobufPackets uint64 `protobuf:"varint,9,opt,name=in_nobuf_packets,json=inNobufPackets,proto3" json:"in_nobuf_packets,omitempty"` + InMissPackets uint64 `protobuf:"varint,10,opt,name=in_miss_packets,json=inMissPackets,proto3" json:"in_miss_packets,omitempty"` + InErrorPackets uint64 `protobuf:"varint,11,opt,name=in_error_packets,json=inErrorPackets,proto3" json:"in_error_packets,omitempty"` + OutErrorPackets uint64 `protobuf:"varint,12,opt,name=out_error_packets,json=outErrorPackets,proto3" json:"out_error_packets,omitempty"` +} + +func (x *InterfaceState_Statistics) Reset() { + *x = InterfaceState_Statistics{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_interfaces_state_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InterfaceState_Statistics) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InterfaceState_Statistics) ProtoMessage() {} + +func (x *InterfaceState_Statistics) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_interfaces_state_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) +} + +// Deprecated: Use InterfaceState_Statistics.ProtoReflect.Descriptor instead. +func (*InterfaceState_Statistics) Descriptor() ([]byte, []int) { + return file_ligato_vpp_interfaces_state_proto_rawDescGZIP(), []int{1, 0} } -func (m *InterfaceState_Statistics) GetPuntPackets() uint64 { - if m != nil { - return m.PuntPackets +func (x *InterfaceState_Statistics) GetInPackets() uint64 { + if x != nil { + return x.InPackets } return 0 } -func (m *InterfaceState_Statistics) GetIpv4Packets() uint64 { - if m != nil { - return m.Ipv4Packets +func (x *InterfaceState_Statistics) GetInBytes() uint64 { + if x != nil { + return x.InBytes } return 0 } -func (m *InterfaceState_Statistics) GetIpv6Packets() uint64 { - if m != nil { - return m.Ipv6Packets +func (x *InterfaceState_Statistics) GetOutPackets() uint64 { + if x != nil { + return x.OutPackets } return 0 } -func (m *InterfaceState_Statistics) GetInNobufPackets() uint64 { - if m != nil { - return m.InNobufPackets +func (x *InterfaceState_Statistics) GetOutBytes() uint64 { + if x != nil { + return x.OutBytes } return 0 } -func (m *InterfaceState_Statistics) GetInMissPackets() uint64 { - if m != nil { - return m.InMissPackets +func (x *InterfaceState_Statistics) GetDropPackets() uint64 { + if x != nil { + return x.DropPackets } return 0 } -func (m *InterfaceState_Statistics) GetInErrorPackets() uint64 { - if m != nil { - return m.InErrorPackets +func (x *InterfaceState_Statistics) GetPuntPackets() uint64 { + if x != nil { + return x.PuntPackets } return 0 } -func (m *InterfaceState_Statistics) GetOutErrorPackets() uint64 { - if m != nil { - return m.OutErrorPackets +func (x *InterfaceState_Statistics) GetIpv4Packets() uint64 { + if x != nil { + return x.Ipv4Packets } return 0 } -type InterfaceNotification struct { - Type InterfaceNotification_NotifType `protobuf:"varint,1,opt,name=type,proto3,enum=ligato.vpp.interfaces.InterfaceNotification_NotifType" json:"type,omitempty"` - State *InterfaceState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *InterfaceState_Statistics) GetIpv6Packets() uint64 { + if x != nil { + return x.Ipv6Packets + } + return 0 } -func (m *InterfaceNotification) Reset() { *m = InterfaceNotification{} } -func (m *InterfaceNotification) String() string { return proto.CompactTextString(m) } -func (*InterfaceNotification) ProtoMessage() {} -func (*InterfaceNotification) Descriptor() ([]byte, []int) { - return fileDescriptor_89357752b24c297d, []int{2} +func (x *InterfaceState_Statistics) GetInNobufPackets() uint64 { + if x != nil { + return x.InNobufPackets + } + return 0 } -func (m *InterfaceNotification) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InterfaceNotification.Unmarshal(m, b) -} -func (m *InterfaceNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InterfaceNotification.Marshal(b, m, deterministic) -} -func (m *InterfaceNotification) XXX_Merge(src proto.Message) { - xxx_messageInfo_InterfaceNotification.Merge(m, src) -} -func (m *InterfaceNotification) XXX_Size() int { - return xxx_messageInfo_InterfaceNotification.Size(m) -} -func (m *InterfaceNotification) XXX_DiscardUnknown() { - xxx_messageInfo_InterfaceNotification.DiscardUnknown(m) +func (x *InterfaceState_Statistics) GetInMissPackets() uint64 { + if x != nil { + return x.InMissPackets + } + return 0 } -var xxx_messageInfo_InterfaceNotification proto.InternalMessageInfo - -func (m *InterfaceNotification) GetType() InterfaceNotification_NotifType { - if m != nil { - return m.Type +func (x *InterfaceState_Statistics) GetInErrorPackets() uint64 { + if x != nil { + return x.InErrorPackets } - return InterfaceNotification_UNKNOWN + return 0 } -func (m *InterfaceNotification) GetState() *InterfaceState { - if m != nil { - return m.State +func (x *InterfaceState_Statistics) GetOutErrorPackets() uint64 { + if x != nil { + return x.OutErrorPackets } - return nil + return 0 } -func init() { - proto.RegisterEnum("ligato.vpp.interfaces.InterfaceState_Status", InterfaceState_Status_name, InterfaceState_Status_value) - proto.RegisterEnum("ligato.vpp.interfaces.InterfaceState_Duplex", InterfaceState_Duplex_name, InterfaceState_Duplex_value) - proto.RegisterEnum("ligato.vpp.interfaces.InterfaceNotification_NotifType", InterfaceNotification_NotifType_name, InterfaceNotification_NotifType_value) - proto.RegisterType((*InterfaceStats)(nil), "ligato.vpp.interfaces.InterfaceStats") - proto.RegisterType((*InterfaceStats_CombinedCounter)(nil), "ligato.vpp.interfaces.InterfaceStats.CombinedCounter") - proto.RegisterType((*InterfaceState)(nil), "ligato.vpp.interfaces.InterfaceState") - proto.RegisterType((*InterfaceState_Statistics)(nil), "ligato.vpp.interfaces.InterfaceState.Statistics") - proto.RegisterType((*InterfaceNotification)(nil), "ligato.vpp.interfaces.InterfaceNotification") -} - -func init() { proto.RegisterFile("ligato/vpp/interfaces/state.proto", fileDescriptor_89357752b24c297d) } - -var fileDescriptor_89357752b24c297d = []byte{ - // 961 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xdd, 0x6e, 0xe2, 0x46, - 0x14, 0x0e, 0x3f, 0x31, 0x70, 0x0c, 0xc4, 0x3b, 0xea, 0xaa, 0x6e, 0xaa, 0xaa, 0x09, 0x55, 0xaa, - 0xa8, 0x6a, 0x61, 0x95, 0xdd, 0x22, 0x55, 0xb9, 0x4a, 0x02, 0x51, 0xb7, 0x25, 0x04, 0x19, 0xd0, - 0xae, 0x7a, 0x63, 0x19, 0x3c, 0x64, 0x47, 0x85, 0xb1, 0xe5, 0x19, 0x23, 0xe7, 0xcd, 0xfa, 0x20, - 0xbd, 0xe8, 0x4b, 0xf4, 0x1d, 0xaa, 0x39, 0x83, 0x8d, 0x59, 0x45, 0x4a, 0x54, 0xee, 0xe6, 0x7c, - 0xe7, 0xfb, 0x3e, 0x7b, 0xce, 0x9c, 0x33, 0x1a, 0x38, 0x5d, 0xb2, 0x07, 0x4f, 0x06, 0x9d, 0x75, - 0x18, 0x76, 0x18, 0x97, 0x34, 0x5a, 0x78, 0x73, 0x2a, 0x3a, 0x42, 0x7a, 0x92, 0xb6, 0xc3, 0x28, - 0x90, 0x01, 0x79, 0xad, 0x29, 0xed, 0x75, 0x18, 0xb6, 0xb7, 0x94, 0xe3, 0xb3, 0xa7, 0x95, 0xd9, - 0x52, 0xab, 0x5b, 0xff, 0x54, 0xa0, 0xf9, 0x3e, 0xc5, 0xc6, 0xd2, 0x93, 0x82, 0x10, 0x28, 0x73, - 0x6f, 0x45, 0xed, 0xc2, 0x49, 0xe1, 0xbc, 0xe6, 0xe0, 0x9a, 0xf4, 0xa1, 0x18, 0x25, 0x76, 0xf1, - 0xa4, 0x70, 0x6e, 0x5e, 0xfc, 0xdc, 0x7e, 0xf2, 0x8b, 0xed, 0x5d, 0x9b, 0xf6, 0x4d, 0xb0, 0x9a, - 0x31, 0x4e, 0xfd, 0x9b, 0x20, 0x56, 0x09, 0xa7, 0x18, 0x25, 0xca, 0x46, 0x26, 0x76, 0x69, 0x2f, - 0x1b, 0x99, 0x90, 0x09, 0x40, 0x94, 0xb8, 0x31, 0x67, 0x73, 0x4f, 0x48, 0xbb, 0xbc, 0x8f, 0x5d, - 0x2d, 0x4a, 0xa6, 0xda, 0x87, 0x7c, 0x84, 0x7a, 0x94, 0xb8, 0xab, 0x78, 0x29, 0xb5, 0xef, 0xe1, - 0x3e, 0xbe, 0x66, 0x94, 0xdc, 0xa5, 0x4e, 0x1b, 0xe7, 0x59, 0x14, 0x78, 0x3e, 0x3a, 0x1b, 0x7b, - 0x3a, 0x5f, 0xa7, 0x4e, 0xaa, 0x12, 0x72, 0x5b, 0x89, 0xca, 0x5e, 0x95, 0x90, 0xf9, 0x4a, 0xc8, - 0x7c, 0x25, 0xaa, 0x7b, 0xfd, 0xaf, 0xdc, 0xad, 0x84, 0xcc, 0x57, 0xa2, 0xb6, 0xa7, 0xf3, 0xb6, - 0x12, 0x5f, 0x41, 0x35, 0x4a, 0x5c, 0x1a, 0x45, 0x41, 0x64, 0xd7, 0x4f, 0x0a, 0xe7, 0x65, 0xa7, - 0x12, 0x25, 0x7d, 0x15, 0xaa, 0x94, 0x4c, 0x53, 0x0d, 0x9d, 0x92, 0x9b, 0xd4, 0x31, 0xd4, 0xa2, - 0xc4, 0xe5, 0x81, 0x3b, 0x8b, 0x17, 0x36, 0xa4, 0xb2, 0x61, 0x70, 0x1d, 0x2f, 0xc8, 0x97, 0x50, - 0x51, 0xfd, 0xc0, 0x84, 0xb0, 0x4d, 0xcc, 0x18, 0x51, 0x72, 0xc7, 0x84, 0x20, 0x5f, 0xc0, 0xa1, - 0x1f, 0x05, 0xa1, 0xb0, 0x9b, 0x08, 0xeb, 0x40, 0xa1, 0x61, 0xcc, 0xa5, 0xb0, 0x8f, 0x34, 0x8a, - 0x01, 0xb1, 0xa0, 0xc4, 0xc2, 0x77, 0xb6, 0x85, 0x98, 0x5a, 0x6a, 0xa4, 0x6b, 0xbf, 0x4a, 0x91, - 0xae, 0x1a, 0xb8, 0x55, 0xb8, 0x14, 0x36, 0x41, 0x08, 0xd7, 0xc7, 0x57, 0x70, 0xf4, 0xd9, 0x76, - 0x89, 0x0d, 0x95, 0xd0, 0x9b, 0xff, 0x49, 0xa5, 0xc0, 0xd1, 0x2c, 0x3b, 0x69, 0xa8, 0x3e, 0x3d, - 0x7b, 0x94, 0x54, 0xe0, 0x80, 0x96, 0x1d, 0x1d, 0xb4, 0xfe, 0xad, 0x7e, 0x36, 0xda, 0xf4, 0xc9, - 0xd1, 0xfe, 0x0e, 0x1a, 0x58, 0x72, 0xee, 0x2d, 0x5d, 0x4c, 0x16, 0x31, 0x59, 0x4f, 0xc1, 0xa1, - 0x22, 0xfd, 0x02, 0x65, 0xf9, 0x18, 0x52, 0x1c, 0xdd, 0xe6, 0xc5, 0xd9, 0x73, 0xe7, 0xd5, 0x9e, - 0x3c, 0x86, 0xd4, 0x41, 0x89, 0xaa, 0x3e, 0x5b, 0xb8, 0x8c, 0xfb, 0x34, 0xc1, 0x51, 0x6d, 0x38, - 0x15, 0xb6, 0x78, 0xaf, 0x42, 0x72, 0x0f, 0x75, 0xcf, 0x5f, 0x31, 0xee, 0xaa, 0xfb, 0x2c, 0x16, - 0x38, 0x71, 0xcd, 0x8b, 0x1f, 0x5f, 0xd2, 0x0d, 0xb4, 0x3d, 0x46, 0x8d, 0x63, 0xa2, 0x83, 0x0e, - 0xc8, 0x1d, 0x98, 0x41, 0x48, 0xa3, 0xd4, 0xcf, 0xf8, 0x1f, 0x7e, 0xa0, 0x0c, 0x36, 0x76, 0xdf, - 0x82, 0xb9, 0xf4, 0x84, 0x74, 0xe7, 0x9f, 0x3c, 0xfe, 0x40, 0x71, 0xbc, 0x4a, 0x0e, 0x28, 0xe8, - 0x06, 0x11, 0x72, 0x0a, 0xf5, 0xf0, 0xd3, 0xa3, 0x70, 0x3d, 0xdf, 0x8f, 0xa8, 0x10, 0x38, 0x28, - 0x35, 0xc7, 0x54, 0xd8, 0x95, 0x86, 0xd4, 0xd9, 0x88, 0x90, 0x52, 0x1f, 0x5b, 0xbd, 0xec, 0xe8, - 0x40, 0x35, 0xc1, 0x4a, 0xc6, 0xd8, 0x71, 0x0d, 0x47, 0x2d, 0x49, 0x0f, 0x0c, 0x3f, 0x0e, 0x97, - 0x34, 0xc1, 0x66, 0x7b, 0xf1, 0x5f, 0xf7, 0x50, 0xe3, 0x6c, 0xb4, 0x64, 0x04, 0xa0, 0xf6, 0xce, - 0x84, 0x64, 0x73, 0x61, 0xfb, 0x38, 0x5d, 0x6f, 0x5e, 0xbe, 0x7f, 0xad, 0x73, 0x72, 0x1e, 0xc7, - 0x7f, 0x95, 0x00, 0xb6, 0x29, 0xf2, 0x0d, 0x00, 0xe3, 0xee, 0x6e, 0x1f, 0xd6, 0x18, 0x1f, 0x6d, - 0x3a, 0x51, 0x1d, 0x36, 0x77, 0xf3, 0xcd, 0x58, 0x61, 0xfc, 0x5a, 0x85, 0xaa, 0x98, 0x41, 0x2c, - 0x33, 0x69, 0x09, 0xb3, 0x10, 0xc4, 0x32, 0xd5, 0x7e, 0x0d, 0x35, 0x45, 0xd0, 0xe2, 0x32, 0xa6, - 0xab, 0x41, 0x2c, 0xb5, 0xfa, 0x14, 0xea, 0x6a, 0xcc, 0x32, 0xf9, 0x21, 0xe6, 0x4d, 0x85, 0xa5, - 0x7a, 0x75, 0x18, 0x31, 0xdf, 0x7e, 0xc1, 0xd0, 0x14, 0x85, 0xe5, 0x28, 0x2c, 0x5c, 0xbf, 0xcb, - 0x28, 0x15, 0x4d, 0x51, 0xd8, 0x2e, 0xa5, 0x9b, 0x51, 0xaa, 0x19, 0xa5, 0x9b, 0x52, 0xce, 0xc1, - 0x62, 0xdc, 0xe5, 0xc1, 0x2c, 0x5e, 0x64, 0x34, 0x7d, 0xba, 0x4d, 0xc6, 0x87, 0x0a, 0x4e, 0x99, - 0xdf, 0xc3, 0x11, 0xe3, 0x78, 0x85, 0x64, 0x44, 0x7d, 0xc9, 0x34, 0x18, 0x57, 0x57, 0xc9, 0xae, - 0x23, 0xde, 0x50, 0x19, 0xd1, 0x4c, 0x1d, 0xf1, 0xa6, 0x4a, 0x99, 0x3f, 0xc0, 0x2b, 0x55, 0xa4, - 0x5d, 0xaa, 0xbe, 0xef, 0x8e, 0x82, 0x58, 0xe6, 0xb9, 0xad, 0x4b, 0x30, 0x36, 0x8d, 0x4c, 0xa0, - 0x39, 0x1d, 0xfe, 0x3e, 0xbc, 0xff, 0x30, 0x74, 0xc7, 0x93, 0xab, 0xc9, 0x74, 0x6c, 0x1d, 0x10, - 0x03, 0x8a, 0xd3, 0x91, 0x55, 0x20, 0x55, 0x28, 0xf7, 0xee, 0x3f, 0x0c, 0xad, 0x22, 0x31, 0xa1, - 0xd2, 0xeb, 0x0f, 0xfa, 0x93, 0x7e, 0xcf, 0x2a, 0xb5, 0xde, 0x80, 0xa1, 0x7b, 0x2b, 0x2f, 0xee, - 0x4d, 0x47, 0x83, 0xfe, 0x47, 0xeb, 0x40, 0x89, 0x7e, 0xbd, 0x1a, 0xdc, 0x6a, 0xf9, 0xed, 0x74, - 0x30, 0xb0, 0x8a, 0xad, 0xbf, 0x0b, 0xf0, 0x3a, 0xeb, 0xa9, 0x61, 0x20, 0xd9, 0x82, 0xcd, 0x3d, - 0xc9, 0x02, 0x4e, 0x7e, 0xdb, 0xdc, 0x1e, 0x05, 0xec, 0xec, 0xee, 0x73, 0xfd, 0x98, 0xd7, 0xb6, - 0x31, 0xc8, 0x5d, 0x27, 0x97, 0x70, 0x88, 0xaf, 0x9f, 0xcd, 0x63, 0xe4, 0xec, 0x45, 0xcd, 0xed, - 0x68, 0x4d, 0xeb, 0x02, 0x6a, 0x99, 0x9f, 0xda, 0xee, 0x66, 0x5f, 0xd6, 0x01, 0x01, 0x30, 0xa6, - 0x23, 0xac, 0x43, 0x81, 0xd4, 0xa1, 0x7a, 0x73, 0x3f, 0x1d, 0x4e, 0xfa, 0xce, 0xd8, 0x2a, 0x5e, - 0xdf, 0xfe, 0xd1, 0x7b, 0x08, 0xd2, 0xaf, 0x30, 0x7c, 0x50, 0xfd, 0xe4, 0x3d, 0x50, 0x2e, 0x3b, - 0xeb, 0xb7, 0x1d, 0x7c, 0x44, 0x75, 0x9e, 0x7c, 0x6a, 0x5d, 0xae, 0xc3, 0xd0, 0xdd, 0x86, 0x33, - 0x03, 0xb9, 0x6f, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x3a, 0xc8, 0xdd, 0x20, 0xd3, 0x09, 0x00, - 0x00, +var File_ligato_vpp_interfaces_state_proto protoreflect.FileDescriptor + +var file_ligato_vpp_interfaces_state_proto_rawDesc = []byte{ + 0x0a, 0x21, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x1a, 0x25, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0xd8, 0x07, 0x0a, 0x0e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x53, + 0x74, 0x61, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x02, 0x72, 0x78, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, + 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x62, + 0x69, 0x6e, 0x65, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x02, 0x72, 0x78, 0x12, + 0x45, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, + 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x65, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x65, 0x72, 0x52, 0x02, 0x74, 0x78, 0x12, 0x54, 0x0a, 0x0a, 0x72, 0x78, 0x5f, 0x75, 0x6e, 0x69, + 0x63, 0x61, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x6c, 0x69, 0x67, + 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x65, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, + 0x72, 0x52, 0x09, 0x72, 0x78, 0x55, 0x6e, 0x69, 0x63, 0x61, 0x73, 0x74, 0x12, 0x58, 0x0a, 0x0c, + 0x72, 0x78, 0x5f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x61, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, + 0x66, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x62, 0x69, 0x6e, + 0x65, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x0b, 0x72, 0x78, 0x4d, 0x75, 0x6c, + 0x74, 0x69, 0x63, 0x61, 0x73, 0x74, 0x12, 0x58, 0x0a, 0x0c, 0x72, 0x78, 0x5f, 0x62, 0x72, 0x6f, + 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x53, 0x74, + 0x61, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x65, 0x64, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x65, 0x72, 0x52, 0x0b, 0x72, 0x78, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, + 0x12, 0x54, 0x0a, 0x0a, 0x74, 0x78, 0x5f, 0x75, 0x6e, 0x69, 0x63, 0x61, 0x73, 0x74, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, + 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x62, + 0x69, 0x6e, 0x65, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x09, 0x74, 0x78, 0x55, + 0x6e, 0x69, 0x63, 0x61, 0x73, 0x74, 0x12, 0x58, 0x0a, 0x0c, 0x74, 0x78, 0x5f, 0x6d, 0x75, 0x6c, + 0x74, 0x69, 0x63, 0x61, 0x73, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x53, 0x74, + 0x61, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x65, 0x64, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x65, 0x72, 0x52, 0x0b, 0x74, 0x78, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x61, 0x73, 0x74, + 0x12, 0x58, 0x0a, 0x0c, 0x74, 0x78, 0x5f, 0x62, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, + 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x43, 0x6f, + 0x6d, 0x62, 0x69, 0x6e, 0x65, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x0b, 0x74, + 0x78, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x78, + 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x72, 0x78, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x78, 0x5f, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x78, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x12, 0x1a, 0x0a, 0x09, 0x72, 0x78, 0x5f, 0x6e, 0x6f, 0x5f, 0x62, 0x75, 0x66, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x07, 0x72, 0x78, 0x4e, 0x6f, 0x42, 0x75, 0x66, 0x12, 0x17, 0x0a, 0x07, + 0x72, 0x78, 0x5f, 0x6d, 0x69, 0x73, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x72, + 0x78, 0x4d, 0x69, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x72, 0x6f, 0x70, 0x73, 0x18, 0x0e, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x64, 0x72, 0x6f, 0x70, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x70, + 0x75, 0x6e, 0x74, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x70, 0x75, 0x6e, 0x74, + 0x73, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x70, 0x34, 0x18, 0x10, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, + 0x69, 0x70, 0x34, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x70, 0x36, 0x18, 0x11, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x03, 0x69, 0x70, 0x36, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x70, 0x6c, 0x73, 0x18, 0x12, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x04, 0x6d, 0x70, 0x6c, 0x73, 0x1a, 0x41, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, + 0x62, 0x69, 0x6e, 0x65, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, + 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x70, + 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x22, 0xed, 0x08, 0x0a, + 0x0e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x6e, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, + 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x66, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x69, 0x66, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x4f, + 0x0a, 0x0c, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, + 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x4d, 0x0a, 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, + 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, + 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, + 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x79, 0x73, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x68, 0x79, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x70, 0x65, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x05, 0x73, 0x70, 0x65, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x74, 0x75, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6d, 0x74, 0x75, 0x12, 0x44, 0x0a, 0x06, 0x64, 0x75, + 0x70, 0x6c, 0x65, 0x78, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x6c, 0x69, 0x67, + 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x2e, 0x44, 0x75, 0x70, 0x6c, 0x65, 0x78, 0x52, 0x06, 0x64, 0x75, 0x70, 0x6c, 0x65, 0x78, + 0x12, 0x50, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x64, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, + 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, + 0x63, 0x73, 0x1a, 0xb8, 0x03, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, + 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x69, 0x6e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, + 0x12, 0x19, 0x0a, 0x08, 0x69, 0x6e, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x07, 0x69, 0x6e, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, + 0x75, 0x74, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x1b, 0x0a, 0x09, + 0x6f, 0x75, 0x74, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x08, 0x6f, 0x75, 0x74, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x72, 0x6f, + 0x70, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x21, 0x0a, 0x0c, + 0x70, 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0b, 0x70, 0x75, 0x6e, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, + 0x21, 0x0a, 0x0c, 0x69, 0x70, 0x76, 0x34, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x69, 0x70, 0x76, 0x34, 0x50, 0x61, 0x63, 0x6b, 0x65, + 0x74, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x70, 0x76, 0x36, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, + 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x69, 0x70, 0x76, 0x36, 0x50, 0x61, + 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x69, 0x6e, 0x5f, 0x6e, 0x6f, 0x62, 0x75, + 0x66, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x0e, 0x69, 0x6e, 0x4e, 0x6f, 0x62, 0x75, 0x66, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, + 0x26, 0x0a, 0x0f, 0x69, 0x6e, 0x5f, 0x6d, 0x69, 0x73, 0x73, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, + 0x74, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x69, 0x6e, 0x4d, 0x69, 0x73, 0x73, + 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x69, 0x6e, 0x5f, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x0e, 0x69, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, + 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x6f, 0x75, 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x70, + 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x6f, 0x75, + 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x22, 0x3b, 0x0a, + 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x0e, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, + 0x57, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x55, + 0x50, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x12, 0x0b, 0x0a, + 0x07, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x03, 0x22, 0x30, 0x0a, 0x06, 0x44, 0x75, + 0x70, 0x6c, 0x65, 0x78, 0x12, 0x12, 0x0a, 0x0e, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, + 0x44, 0x55, 0x50, 0x4c, 0x45, 0x58, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x41, 0x4c, 0x46, + 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x22, 0xd4, 0x01, 0x0a, + 0x15, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, + 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x12, 0x3b, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x25, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, + 0x32, 0x0a, 0x09, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, + 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x50, 0x44, + 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x45, 0x52, + 0x53, 0x10, 0x02, 0x42, 0x46, 0x5a, 0x44, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, + 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x3b, 0x76, 0x70, 0x70, + 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_interfaces_state_proto_rawDescOnce sync.Once + file_ligato_vpp_interfaces_state_proto_rawDescData = file_ligato_vpp_interfaces_state_proto_rawDesc +) + +func file_ligato_vpp_interfaces_state_proto_rawDescGZIP() []byte { + file_ligato_vpp_interfaces_state_proto_rawDescOnce.Do(func() { + file_ligato_vpp_interfaces_state_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_interfaces_state_proto_rawDescData) + }) + return file_ligato_vpp_interfaces_state_proto_rawDescData +} + +var file_ligato_vpp_interfaces_state_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_ligato_vpp_interfaces_state_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_ligato_vpp_interfaces_state_proto_goTypes = []interface{}{ + (InterfaceState_Status)(0), // 0: ligato.vpp.interfaces.InterfaceState.Status + (InterfaceState_Duplex)(0), // 1: ligato.vpp.interfaces.InterfaceState.Duplex + (InterfaceNotification_NotifType)(0), // 2: ligato.vpp.interfaces.InterfaceNotification.NotifType + (*InterfaceStats)(nil), // 3: ligato.vpp.interfaces.InterfaceStats + (*InterfaceState)(nil), // 4: ligato.vpp.interfaces.InterfaceState + (*InterfaceNotification)(nil), // 5: ligato.vpp.interfaces.InterfaceNotification + (*InterfaceStats_CombinedCounter)(nil), // 6: ligato.vpp.interfaces.InterfaceStats.CombinedCounter + (*InterfaceState_Statistics)(nil), // 7: ligato.vpp.interfaces.InterfaceState.Statistics + (Interface_Type)(0), // 8: ligato.vpp.interfaces.Interface.Type +} +var file_ligato_vpp_interfaces_state_proto_depIdxs = []int32{ + 6, // 0: ligato.vpp.interfaces.InterfaceStats.rx:type_name -> ligato.vpp.interfaces.InterfaceStats.CombinedCounter + 6, // 1: ligato.vpp.interfaces.InterfaceStats.tx:type_name -> ligato.vpp.interfaces.InterfaceStats.CombinedCounter + 6, // 2: ligato.vpp.interfaces.InterfaceStats.rx_unicast:type_name -> ligato.vpp.interfaces.InterfaceStats.CombinedCounter + 6, // 3: ligato.vpp.interfaces.InterfaceStats.rx_multicast:type_name -> ligato.vpp.interfaces.InterfaceStats.CombinedCounter + 6, // 4: ligato.vpp.interfaces.InterfaceStats.rx_broadcast:type_name -> ligato.vpp.interfaces.InterfaceStats.CombinedCounter + 6, // 5: ligato.vpp.interfaces.InterfaceStats.tx_unicast:type_name -> ligato.vpp.interfaces.InterfaceStats.CombinedCounter + 6, // 6: ligato.vpp.interfaces.InterfaceStats.tx_multicast:type_name -> ligato.vpp.interfaces.InterfaceStats.CombinedCounter + 6, // 7: ligato.vpp.interfaces.InterfaceStats.tx_broadcast:type_name -> ligato.vpp.interfaces.InterfaceStats.CombinedCounter + 8, // 8: ligato.vpp.interfaces.InterfaceState.type:type_name -> ligato.vpp.interfaces.Interface.Type + 0, // 9: ligato.vpp.interfaces.InterfaceState.admin_status:type_name -> ligato.vpp.interfaces.InterfaceState.Status + 0, // 10: ligato.vpp.interfaces.InterfaceState.oper_status:type_name -> ligato.vpp.interfaces.InterfaceState.Status + 1, // 11: ligato.vpp.interfaces.InterfaceState.duplex:type_name -> ligato.vpp.interfaces.InterfaceState.Duplex + 7, // 12: ligato.vpp.interfaces.InterfaceState.statistics:type_name -> ligato.vpp.interfaces.InterfaceState.Statistics + 2, // 13: ligato.vpp.interfaces.InterfaceNotification.type:type_name -> ligato.vpp.interfaces.InterfaceNotification.NotifType + 4, // 14: ligato.vpp.interfaces.InterfaceNotification.state:type_name -> ligato.vpp.interfaces.InterfaceState + 15, // [15:15] is the sub-list for method output_type + 15, // [15:15] is the sub-list for method input_type + 15, // [15:15] is the sub-list for extension type_name + 15, // [15:15] is the sub-list for extension extendee + 0, // [0:15] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_interfaces_state_proto_init() } +func file_ligato_vpp_interfaces_state_proto_init() { + if File_ligato_vpp_interfaces_state_proto != nil { + return + } + file_ligato_vpp_interfaces_interface_proto_init() + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_interfaces_state_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InterfaceStats); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_state_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InterfaceState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_state_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InterfaceNotification); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_state_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InterfaceStats_CombinedCounter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_interfaces_state_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InterfaceState_Statistics); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_interfaces_state_proto_rawDesc, + NumEnums: 3, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_interfaces_state_proto_goTypes, + DependencyIndexes: file_ligato_vpp_interfaces_state_proto_depIdxs, + EnumInfos: file_ligato_vpp_interfaces_state_proto_enumTypes, + MessageInfos: file_ligato_vpp_interfaces_state_proto_msgTypes, + }.Build() + File_ligato_vpp_interfaces_state_proto = out.File + file_ligato_vpp_interfaces_state_proto_rawDesc = nil + file_ligato_vpp_interfaces_state_proto_goTypes = nil + file_ligato_vpp_interfaces_state_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/ipfix/flowprobe.pb.go b/proto/ligato/vpp/ipfix/flowprobe.pb.go index 938b864b3c..0478f930e6 100644 --- a/proto/ligato/vpp/ipfix/flowprobe.pb.go +++ b/proto/ligato/vpp/ipfix/flowprobe.pb.go @@ -1,183 +1,283 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/ipfix/flowprobe.proto package vpp_ipfix import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type FlowProbeFeature struct { - Interface string `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - L2 bool `protobuf:"varint,2,opt,name=l2,proto3" json:"l2,omitempty"` - Ip4 bool `protobuf:"varint,3,opt,name=ip4,proto3" json:"ip4,omitempty"` - Ip6 bool `protobuf:"varint,4,opt,name=ip6,proto3" json:"ip6,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FlowProbeFeature) Reset() { *m = FlowProbeFeature{} } -func (m *FlowProbeFeature) String() string { return proto.CompactTextString(m) } -func (*FlowProbeFeature) ProtoMessage() {} -func (*FlowProbeFeature) Descriptor() ([]byte, []int) { - return fileDescriptor_a98beb1482001856, []int{0} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FlowProbeFeature) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FlowProbeFeature.Unmarshal(m, b) + Interface string `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + L2 bool `protobuf:"varint,2,opt,name=l2,proto3" json:"l2,omitempty"` + Ip4 bool `protobuf:"varint,3,opt,name=ip4,proto3" json:"ip4,omitempty"` + Ip6 bool `protobuf:"varint,4,opt,name=ip6,proto3" json:"ip6,omitempty"` } -func (m *FlowProbeFeature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FlowProbeFeature.Marshal(b, m, deterministic) -} -func (m *FlowProbeFeature) XXX_Merge(src proto.Message) { - xxx_messageInfo_FlowProbeFeature.Merge(m, src) + +func (x *FlowProbeFeature) Reset() { + *x = FlowProbeFeature{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_ipfix_flowprobe_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FlowProbeFeature) XXX_Size() int { - return xxx_messageInfo_FlowProbeFeature.Size(m) + +func (x *FlowProbeFeature) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FlowProbeFeature) XXX_DiscardUnknown() { - xxx_messageInfo_FlowProbeFeature.DiscardUnknown(m) + +func (*FlowProbeFeature) ProtoMessage() {} + +func (x *FlowProbeFeature) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_ipfix_flowprobe_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FlowProbeFeature proto.InternalMessageInfo +// Deprecated: Use FlowProbeFeature.ProtoReflect.Descriptor instead. +func (*FlowProbeFeature) Descriptor() ([]byte, []int) { + return file_ligato_vpp_ipfix_flowprobe_proto_rawDescGZIP(), []int{0} +} -func (m *FlowProbeFeature) GetInterface() string { - if m != nil { - return m.Interface +func (x *FlowProbeFeature) GetInterface() string { + if x != nil { + return x.Interface } return "" } -func (m *FlowProbeFeature) GetL2() bool { - if m != nil { - return m.L2 +func (x *FlowProbeFeature) GetL2() bool { + if x != nil { + return x.L2 } return false } -func (m *FlowProbeFeature) GetIp4() bool { - if m != nil { - return m.Ip4 +func (x *FlowProbeFeature) GetIp4() bool { + if x != nil { + return x.Ip4 } return false } -func (m *FlowProbeFeature) GetIp6() bool { - if m != nil { - return m.Ip6 +func (x *FlowProbeFeature) GetIp6() bool { + if x != nil { + return x.Ip6 } return false } type FlowProbeParams struct { - ActiveTimer uint32 `protobuf:"varint,1,opt,name=active_timer,json=activeTimer,proto3" json:"active_timer,omitempty"` - PassiveTimer uint32 `protobuf:"varint,2,opt,name=passive_timer,json=passiveTimer,proto3" json:"passive_timer,omitempty"` - RecordL2 bool `protobuf:"varint,3,opt,name=record_l2,json=recordL2,proto3" json:"record_l2,omitempty"` - RecordL3 bool `protobuf:"varint,4,opt,name=record_l3,json=recordL3,proto3" json:"record_l3,omitempty"` - RecordL4 bool `protobuf:"varint,5,opt,name=record_l4,json=recordL4,proto3" json:"record_l4,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FlowProbeParams) Reset() { *m = FlowProbeParams{} } -func (m *FlowProbeParams) String() string { return proto.CompactTextString(m) } -func (*FlowProbeParams) ProtoMessage() {} -func (*FlowProbeParams) Descriptor() ([]byte, []int) { - return fileDescriptor_a98beb1482001856, []int{1} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FlowProbeParams) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FlowProbeParams.Unmarshal(m, b) + ActiveTimer uint32 `protobuf:"varint,1,opt,name=active_timer,json=activeTimer,proto3" json:"active_timer,omitempty"` + PassiveTimer uint32 `protobuf:"varint,2,opt,name=passive_timer,json=passiveTimer,proto3" json:"passive_timer,omitempty"` + RecordL2 bool `protobuf:"varint,3,opt,name=record_l2,json=recordL2,proto3" json:"record_l2,omitempty"` + RecordL3 bool `protobuf:"varint,4,opt,name=record_l3,json=recordL3,proto3" json:"record_l3,omitempty"` + RecordL4 bool `protobuf:"varint,5,opt,name=record_l4,json=recordL4,proto3" json:"record_l4,omitempty"` } -func (m *FlowProbeParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FlowProbeParams.Marshal(b, m, deterministic) -} -func (m *FlowProbeParams) XXX_Merge(src proto.Message) { - xxx_messageInfo_FlowProbeParams.Merge(m, src) + +func (x *FlowProbeParams) Reset() { + *x = FlowProbeParams{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_ipfix_flowprobe_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FlowProbeParams) XXX_Size() int { - return xxx_messageInfo_FlowProbeParams.Size(m) + +func (x *FlowProbeParams) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FlowProbeParams) XXX_DiscardUnknown() { - xxx_messageInfo_FlowProbeParams.DiscardUnknown(m) + +func (*FlowProbeParams) ProtoMessage() {} + +func (x *FlowProbeParams) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_ipfix_flowprobe_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FlowProbeParams proto.InternalMessageInfo +// Deprecated: Use FlowProbeParams.ProtoReflect.Descriptor instead. +func (*FlowProbeParams) Descriptor() ([]byte, []int) { + return file_ligato_vpp_ipfix_flowprobe_proto_rawDescGZIP(), []int{1} +} -func (m *FlowProbeParams) GetActiveTimer() uint32 { - if m != nil { - return m.ActiveTimer +func (x *FlowProbeParams) GetActiveTimer() uint32 { + if x != nil { + return x.ActiveTimer } return 0 } -func (m *FlowProbeParams) GetPassiveTimer() uint32 { - if m != nil { - return m.PassiveTimer +func (x *FlowProbeParams) GetPassiveTimer() uint32 { + if x != nil { + return x.PassiveTimer } return 0 } -func (m *FlowProbeParams) GetRecordL2() bool { - if m != nil { - return m.RecordL2 +func (x *FlowProbeParams) GetRecordL2() bool { + if x != nil { + return x.RecordL2 } return false } -func (m *FlowProbeParams) GetRecordL3() bool { - if m != nil { - return m.RecordL3 +func (x *FlowProbeParams) GetRecordL3() bool { + if x != nil { + return x.RecordL3 } return false } -func (m *FlowProbeParams) GetRecordL4() bool { - if m != nil { - return m.RecordL4 +func (x *FlowProbeParams) GetRecordL4() bool { + if x != nil { + return x.RecordL4 } return false } -func init() { - proto.RegisterType((*FlowProbeFeature)(nil), "ligato.vpp.ipfix.FlowProbeFeature") - proto.RegisterType((*FlowProbeParams)(nil), "ligato.vpp.ipfix.FlowProbeParams") -} - -func init() { proto.RegisterFile("ligato/vpp/ipfix/flowprobe.proto", fileDescriptor_a98beb1482001856) } - -var fileDescriptor_a98beb1482001856 = []byte{ - // 269 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xb1, 0x4e, 0xc3, 0x30, - 0x14, 0x45, 0x95, 0x14, 0x50, 0x63, 0x5a, 0x88, 0x3c, 0x59, 0x82, 0x21, 0x94, 0xa5, 0x0b, 0xb1, - 0x94, 0x44, 0x1d, 0x80, 0x89, 0xa1, 0x13, 0x43, 0x15, 0x31, 0xb1, 0x44, 0x6e, 0xea, 0x44, 0x96, - 0xdc, 0xfa, 0xc9, 0x31, 0x2e, 0x9f, 0xc5, 0x27, 0xa2, 0xd8, 0x29, 0x2d, 0xdd, 0x9e, 0xce, 0x3d, - 0xd2, 0xbb, 0xba, 0x28, 0x91, 0xa2, 0x65, 0x46, 0x51, 0x0b, 0x40, 0x05, 0x34, 0xe2, 0x9b, 0x36, - 0x52, 0xed, 0x41, 0xab, 0x35, 0x4f, 0x41, 0x2b, 0xa3, 0x70, 0xec, 0x8d, 0xd4, 0x02, 0xa4, 0xce, - 0x98, 0x6d, 0x50, 0xbc, 0x94, 0x6a, 0xbf, 0xea, 0xa5, 0x25, 0x67, 0xe6, 0x4b, 0x73, 0x7c, 0x8f, - 0x22, 0xb1, 0x33, 0x5c, 0x37, 0xac, 0xe6, 0x24, 0x48, 0x82, 0x79, 0x54, 0x1e, 0x01, 0xbe, 0x41, - 0xa1, 0xcc, 0x48, 0x98, 0x04, 0xf3, 0x71, 0x19, 0xca, 0x0c, 0xc7, 0x68, 0x24, 0xa0, 0x20, 0x23, - 0x07, 0xfa, 0xd3, 0x93, 0x05, 0xb9, 0x38, 0x90, 0xc5, 0xec, 0x27, 0x40, 0xb7, 0x7f, 0x6f, 0x56, - 0x4c, 0xb3, 0x6d, 0x87, 0x1f, 0xd0, 0x84, 0xd5, 0x46, 0x58, 0x5e, 0x19, 0xb1, 0xe5, 0xda, 0x3d, - 0x9a, 0x96, 0xd7, 0x9e, 0x7d, 0xf4, 0x08, 0x3f, 0xa2, 0x29, 0xb0, 0xae, 0x3b, 0x3a, 0xa1, 0x73, - 0x26, 0x03, 0xf4, 0xd2, 0x1d, 0x8a, 0x34, 0xaf, 0x95, 0xde, 0x54, 0x32, 0x1b, 0x5a, 0x8c, 0x3d, - 0x78, 0xcf, 0x4e, 0xc3, 0x7c, 0x28, 0x74, 0x08, 0xf3, 0xd3, 0xb0, 0x20, 0x97, 0xff, 0xc2, 0xe2, - 0xed, 0xf5, 0xf3, 0xb9, 0x55, 0xe9, 0xb0, 0x97, 0x70, 0xa3, 0x3e, 0xb1, 0x96, 0xef, 0x0c, 0xb5, - 0x39, 0x75, 0x6b, 0xd2, 0xf3, 0xb9, 0x5f, 0x2c, 0x40, 0xe5, 0xae, 0xf5, 0x95, 0x33, 0xf2, 0xdf, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x82, 0x3e, 0x5c, 0x93, 0x01, 0x00, 0x00, +var File_ligato_vpp_ipfix_flowprobe_proto protoreflect.FileDescriptor + +var file_ligato_vpp_ipfix_flowprobe_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x69, 0x70, 0x66, + 0x69, 0x78, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x10, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, + 0x70, 0x66, 0x69, 0x78, 0x22, 0x64, 0x0a, 0x10, 0x46, 0x6c, 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x62, + 0x65, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x32, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x02, 0x6c, 0x32, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x70, 0x34, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x03, 0x69, 0x70, 0x34, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x70, 0x36, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x69, 0x70, 0x36, 0x22, 0xb0, 0x01, 0x0a, 0x0f, 0x46, + 0x6c, 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x21, + 0x0a, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x69, 0x6d, 0x65, + 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x61, 0x73, 0x73, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x70, 0x61, 0x73, 0x73, 0x69, 0x76, + 0x65, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x5f, 0x6c, 0x32, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x4c, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x6c, 0x33, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x4c, 0x33, + 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x6c, 0x34, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x4c, 0x34, 0x42, 0x3c, 0x5a, + 0x3a, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, + 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x69, 0x70, 0x66, 0x69, + 0x78, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x69, 0x70, 0x66, 0x69, 0x78, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_ipfix_flowprobe_proto_rawDescOnce sync.Once + file_ligato_vpp_ipfix_flowprobe_proto_rawDescData = file_ligato_vpp_ipfix_flowprobe_proto_rawDesc +) + +func file_ligato_vpp_ipfix_flowprobe_proto_rawDescGZIP() []byte { + file_ligato_vpp_ipfix_flowprobe_proto_rawDescOnce.Do(func() { + file_ligato_vpp_ipfix_flowprobe_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_ipfix_flowprobe_proto_rawDescData) + }) + return file_ligato_vpp_ipfix_flowprobe_proto_rawDescData +} + +var file_ligato_vpp_ipfix_flowprobe_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_ligato_vpp_ipfix_flowprobe_proto_goTypes = []interface{}{ + (*FlowProbeFeature)(nil), // 0: ligato.vpp.ipfix.FlowProbeFeature + (*FlowProbeParams)(nil), // 1: ligato.vpp.ipfix.FlowProbeParams +} +var file_ligato_vpp_ipfix_flowprobe_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_ipfix_flowprobe_proto_init() } +func file_ligato_vpp_ipfix_flowprobe_proto_init() { + if File_ligato_vpp_ipfix_flowprobe_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_ipfix_flowprobe_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FlowProbeFeature); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_ipfix_flowprobe_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FlowProbeParams); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_ipfix_flowprobe_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_ipfix_flowprobe_proto_goTypes, + DependencyIndexes: file_ligato_vpp_ipfix_flowprobe_proto_depIdxs, + MessageInfos: file_ligato_vpp_ipfix_flowprobe_proto_msgTypes, + }.Build() + File_ligato_vpp_ipfix_flowprobe_proto = out.File + file_ligato_vpp_ipfix_flowprobe_proto_rawDesc = nil + file_ligato_vpp_ipfix_flowprobe_proto_goTypes = nil + file_ligato_vpp_ipfix_flowprobe_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/ipfix/ipfix.pb.go b/proto/ligato/vpp/ipfix/ipfix.pb.go index 33eaae3215..a256cdf119 100644 --- a/proto/ligato/vpp/ipfix/ipfix.pb.go +++ b/proto/ligato/vpp/ipfix/ipfix.pb.go @@ -1,169 +1,268 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/ipfix/ipfix.proto package vpp_ipfix import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 // IPFIX defines the IP Flow Information eXport (IPFIX) configuration. type IPFIX struct { - Collector *IPFIX_Collector `protobuf:"bytes,1,opt,name=collector,proto3" json:"collector,omitempty"` - SourceAddress string `protobuf:"bytes,2,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` - VrfId uint32 `protobuf:"varint,3,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` - PathMtu uint32 `protobuf:"varint,4,opt,name=path_mtu,json=pathMtu,proto3" json:"path_mtu,omitempty"` - TemplateInterval uint32 `protobuf:"varint,5,opt,name=template_interval,json=templateInterval,proto3" json:"template_interval,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IPFIX) Reset() { *m = IPFIX{} } -func (m *IPFIX) String() string { return proto.CompactTextString(m) } -func (*IPFIX) ProtoMessage() {} -func (*IPFIX) Descriptor() ([]byte, []int) { - return fileDescriptor_5026bdf499d44457, []int{0} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *IPFIX) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IPFIX.Unmarshal(m, b) + Collector *IPFIX_Collector `protobuf:"bytes,1,opt,name=collector,proto3" json:"collector,omitempty"` + SourceAddress string `protobuf:"bytes,2,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` + VrfId uint32 `protobuf:"varint,3,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` + PathMtu uint32 `protobuf:"varint,4,opt,name=path_mtu,json=pathMtu,proto3" json:"path_mtu,omitempty"` + TemplateInterval uint32 `protobuf:"varint,5,opt,name=template_interval,json=templateInterval,proto3" json:"template_interval,omitempty"` } -func (m *IPFIX) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IPFIX.Marshal(b, m, deterministic) -} -func (m *IPFIX) XXX_Merge(src proto.Message) { - xxx_messageInfo_IPFIX.Merge(m, src) + +func (x *IPFIX) Reset() { + *x = IPFIX{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_ipfix_ipfix_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *IPFIX) XXX_Size() int { - return xxx_messageInfo_IPFIX.Size(m) + +func (x *IPFIX) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *IPFIX) XXX_DiscardUnknown() { - xxx_messageInfo_IPFIX.DiscardUnknown(m) + +func (*IPFIX) ProtoMessage() {} + +func (x *IPFIX) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_ipfix_ipfix_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_IPFIX proto.InternalMessageInfo +// Deprecated: Use IPFIX.ProtoReflect.Descriptor instead. +func (*IPFIX) Descriptor() ([]byte, []int) { + return file_ligato_vpp_ipfix_ipfix_proto_rawDescGZIP(), []int{0} +} -func (m *IPFIX) GetCollector() *IPFIX_Collector { - if m != nil { - return m.Collector +func (x *IPFIX) GetCollector() *IPFIX_Collector { + if x != nil { + return x.Collector } return nil } -func (m *IPFIX) GetSourceAddress() string { - if m != nil { - return m.SourceAddress +func (x *IPFIX) GetSourceAddress() string { + if x != nil { + return x.SourceAddress } return "" } -func (m *IPFIX) GetVrfId() uint32 { - if m != nil { - return m.VrfId +func (x *IPFIX) GetVrfId() uint32 { + if x != nil { + return x.VrfId } return 0 } -func (m *IPFIX) GetPathMtu() uint32 { - if m != nil { - return m.PathMtu +func (x *IPFIX) GetPathMtu() uint32 { + if x != nil { + return x.PathMtu } return 0 } -func (m *IPFIX) GetTemplateInterval() uint32 { - if m != nil { - return m.TemplateInterval +func (x *IPFIX) GetTemplateInterval() uint32 { + if x != nil { + return x.TemplateInterval } return 0 } type IPFIX_Collector struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *IPFIX_Collector) Reset() { *m = IPFIX_Collector{} } -func (m *IPFIX_Collector) String() string { return proto.CompactTextString(m) } -func (*IPFIX_Collector) ProtoMessage() {} -func (*IPFIX_Collector) Descriptor() ([]byte, []int) { - return fileDescriptor_5026bdf499d44457, []int{0, 0} + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` } -func (m *IPFIX_Collector) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IPFIX_Collector.Unmarshal(m, b) -} -func (m *IPFIX_Collector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IPFIX_Collector.Marshal(b, m, deterministic) -} -func (m *IPFIX_Collector) XXX_Merge(src proto.Message) { - xxx_messageInfo_IPFIX_Collector.Merge(m, src) +func (x *IPFIX_Collector) Reset() { + *x = IPFIX_Collector{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_ipfix_ipfix_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *IPFIX_Collector) XXX_Size() int { - return xxx_messageInfo_IPFIX_Collector.Size(m) + +func (x *IPFIX_Collector) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *IPFIX_Collector) XXX_DiscardUnknown() { - xxx_messageInfo_IPFIX_Collector.DiscardUnknown(m) + +func (*IPFIX_Collector) ProtoMessage() {} + +func (x *IPFIX_Collector) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_ipfix_ipfix_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_IPFIX_Collector proto.InternalMessageInfo +// Deprecated: Use IPFIX_Collector.ProtoReflect.Descriptor instead. +func (*IPFIX_Collector) Descriptor() ([]byte, []int) { + return file_ligato_vpp_ipfix_ipfix_proto_rawDescGZIP(), []int{0, 0} +} -func (m *IPFIX_Collector) GetAddress() string { - if m != nil { - return m.Address +func (x *IPFIX_Collector) GetAddress() string { + if x != nil { + return x.Address } return "" } -func (m *IPFIX_Collector) GetPort() uint32 { - if m != nil { - return m.Port +func (x *IPFIX_Collector) GetPort() uint32 { + if x != nil { + return x.Port } return 0 } -func init() { - proto.RegisterType((*IPFIX)(nil), "ligato.vpp.ipfix.IPFIX") - proto.RegisterType((*IPFIX_Collector)(nil), "ligato.vpp.ipfix.IPFIX.Collector") -} - -func init() { proto.RegisterFile("ligato/vpp/ipfix/ipfix.proto", fileDescriptor_5026bdf499d44457) } - -var fileDescriptor_5026bdf499d44457 = []byte{ - // 275 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0x4d, 0x4b, 0xf4, 0x30, - 0x14, 0x85, 0xe9, 0xbc, 0xf3, 0xf1, 0x36, 0x52, 0x19, 0x03, 0x42, 0x14, 0x17, 0x55, 0x10, 0x0a, - 0x62, 0x0a, 0xce, 0xca, 0x0f, 0x10, 0x15, 0x84, 0x2e, 0x04, 0xe9, 0x4a, 0xdc, 0x94, 0xd8, 0xa6, - 0x35, 0xd0, 0x99, 0x5c, 0xd2, 0xdb, 0xe0, 0x5f, 0xf0, 0x5f, 0x8b, 0xb7, 0x56, 0x61, 0x36, 0xe1, - 0xde, 0x73, 0x9e, 0xc0, 0xb9, 0x87, 0x1d, 0xb5, 0xa6, 0x51, 0x68, 0x53, 0x0f, 0x90, 0x1a, 0xa8, - 0xcd, 0xc7, 0xf0, 0x4a, 0x70, 0x16, 0x2d, 0x5f, 0x0e, 0xae, 0xf4, 0x00, 0x92, 0xf4, 0x93, 0xcf, - 0x09, 0x9b, 0x65, 0xcf, 0x8f, 0xd9, 0x0b, 0xbf, 0x65, 0x61, 0x69, 0xdb, 0x56, 0x97, 0x68, 0x9d, - 0x08, 0xe2, 0x20, 0xd9, 0xb9, 0x38, 0x96, 0xdb, 0xbc, 0x24, 0x56, 0x3e, 0x8c, 0x60, 0xfe, 0xf7, - 0x87, 0x9f, 0xb2, 0xdd, 0xce, 0xf6, 0xae, 0xd4, 0x85, 0xaa, 0x2a, 0xa7, 0xbb, 0x4e, 0x4c, 0xe2, - 0x20, 0x09, 0xf3, 0x68, 0x50, 0xef, 0x06, 0x91, 0xef, 0xb3, 0xb9, 0x77, 0x75, 0x61, 0x2a, 0xf1, - 0x2f, 0x0e, 0x92, 0x28, 0x9f, 0x79, 0x57, 0x67, 0x15, 0x3f, 0x60, 0xff, 0x41, 0xe1, 0x7b, 0xb1, - 0xc6, 0x5e, 0x4c, 0xc9, 0x58, 0x7c, 0xef, 0x4f, 0xd8, 0xf3, 0x33, 0xb6, 0x87, 0x7a, 0x0d, 0xad, - 0x42, 0x5d, 0x98, 0x0d, 0x6a, 0xe7, 0x55, 0x2b, 0x66, 0xc4, 0x2c, 0x47, 0x23, 0xfb, 0xd1, 0x0f, - 0x2f, 0x59, 0xf8, 0x9b, 0x8e, 0x0b, 0xb6, 0x18, 0xb3, 0x04, 0x94, 0x65, 0x5c, 0x39, 0x67, 0x53, - 0xb0, 0x0e, 0x29, 0x62, 0x94, 0xd3, 0x7c, 0x7f, 0xf3, 0x7a, 0xd5, 0xd8, 0xf1, 0x64, 0x43, 0x1d, - 0x9e, 0xab, 0x46, 0x6f, 0x30, 0xf5, 0xab, 0x94, 0x0a, 0x4c, 0xb7, 0xdb, 0xbd, 0xf6, 0x00, 0x05, - 0x4d, 0x6f, 0x73, 0x22, 0x56, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x91, 0x5b, 0x87, 0xdc, 0x82, - 0x01, 0x00, 0x00, +var File_ligato_vpp_ipfix_ipfix_proto protoreflect.FileDescriptor + +var file_ligato_vpp_ipfix_ipfix_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x69, 0x70, 0x66, + 0x69, 0x78, 0x2f, 0x69, 0x70, 0x66, 0x69, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x70, 0x66, 0x69, 0x78, + 0x22, 0x89, 0x02, 0x0a, 0x05, 0x49, 0x50, 0x46, 0x49, 0x58, 0x12, 0x3f, 0x0a, 0x09, 0x63, 0x6f, + 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x70, 0x66, 0x69, 0x78, + 0x2e, 0x49, 0x50, 0x46, 0x49, 0x58, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x76, 0x72, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x05, 0x76, 0x72, 0x66, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x74, + 0x68, 0x5f, 0x6d, 0x74, 0x75, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x70, 0x61, 0x74, + 0x68, 0x4d, 0x74, 0x75, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x10, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, + 0x6c, 0x1a, 0x39, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x18, + 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x42, 0x3c, 0x5a, 0x3a, + 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, + 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x69, 0x70, 0x66, 0x69, 0x78, + 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x69, 0x70, 0x66, 0x69, 0x78, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_ligato_vpp_ipfix_ipfix_proto_rawDescOnce sync.Once + file_ligato_vpp_ipfix_ipfix_proto_rawDescData = file_ligato_vpp_ipfix_ipfix_proto_rawDesc +) + +func file_ligato_vpp_ipfix_ipfix_proto_rawDescGZIP() []byte { + file_ligato_vpp_ipfix_ipfix_proto_rawDescOnce.Do(func() { + file_ligato_vpp_ipfix_ipfix_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_ipfix_ipfix_proto_rawDescData) + }) + return file_ligato_vpp_ipfix_ipfix_proto_rawDescData +} + +var file_ligato_vpp_ipfix_ipfix_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_ligato_vpp_ipfix_ipfix_proto_goTypes = []interface{}{ + (*IPFIX)(nil), // 0: ligato.vpp.ipfix.IPFIX + (*IPFIX_Collector)(nil), // 1: ligato.vpp.ipfix.IPFIX.Collector +} +var file_ligato_vpp_ipfix_ipfix_proto_depIdxs = []int32{ + 1, // 0: ligato.vpp.ipfix.IPFIX.collector:type_name -> ligato.vpp.ipfix.IPFIX.Collector + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_ipfix_ipfix_proto_init() } +func file_ligato_vpp_ipfix_ipfix_proto_init() { + if File_ligato_vpp_ipfix_ipfix_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_ipfix_ipfix_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IPFIX); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_ipfix_ipfix_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IPFIX_Collector); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_ipfix_ipfix_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_ipfix_ipfix_proto_goTypes, + DependencyIndexes: file_ligato_vpp_ipfix_ipfix_proto_depIdxs, + MessageInfos: file_ligato_vpp_ipfix_ipfix_proto_msgTypes, + }.Build() + File_ligato_vpp_ipfix_ipfix_proto = out.File + file_ligato_vpp_ipfix_ipfix_proto_rawDesc = nil + file_ligato_vpp_ipfix_ipfix_proto_goTypes = nil + file_ligato_vpp_ipfix_ipfix_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/ipsec/ipsec.pb.go b/proto/ligato/vpp/ipsec/ipsec.pb.go index 3a8c57f66c..99203461eb 100644 --- a/proto/ligato/vpp/ipsec/ipsec.pb.go +++ b/proto/ligato/vpp/ipsec/ipsec.pb.go @@ -1,24 +1,29 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/ipsec/ipsec.proto package vpp_ipsec import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 // Cryptographic algorithm for encryption type CryptoAlg int32 @@ -35,45 +40,66 @@ const ( CryptoAlg_AES_GCM_192 CryptoAlg = 8 CryptoAlg_AES_GCM_256 CryptoAlg = 9 CryptoAlg_DES_CBC CryptoAlg = 10 - CryptoAlg_DES3_CBC CryptoAlg = 11 + CryptoAlg_DES3_CBC CryptoAlg = 11 // 3DES_CBC ) -var CryptoAlg_name = map[int32]string{ - 0: "NONE_CRYPTO", - 1: "AES_CBC_128", - 2: "AES_CBC_192", - 3: "AES_CBC_256", - 4: "AES_CTR_128", - 5: "AES_CTR_192", - 6: "AES_CTR_256", - 7: "AES_GCM_128", - 8: "AES_GCM_192", - 9: "AES_GCM_256", - 10: "DES_CBC", - 11: "DES3_CBC", -} - -var CryptoAlg_value = map[string]int32{ - "NONE_CRYPTO": 0, - "AES_CBC_128": 1, - "AES_CBC_192": 2, - "AES_CBC_256": 3, - "AES_CTR_128": 4, - "AES_CTR_192": 5, - "AES_CTR_256": 6, - "AES_GCM_128": 7, - "AES_GCM_192": 8, - "AES_GCM_256": 9, - "DES_CBC": 10, - "DES3_CBC": 11, +// Enum value maps for CryptoAlg. +var ( + CryptoAlg_name = map[int32]string{ + 0: "NONE_CRYPTO", + 1: "AES_CBC_128", + 2: "AES_CBC_192", + 3: "AES_CBC_256", + 4: "AES_CTR_128", + 5: "AES_CTR_192", + 6: "AES_CTR_256", + 7: "AES_GCM_128", + 8: "AES_GCM_192", + 9: "AES_GCM_256", + 10: "DES_CBC", + 11: "DES3_CBC", + } + CryptoAlg_value = map[string]int32{ + "NONE_CRYPTO": 0, + "AES_CBC_128": 1, + "AES_CBC_192": 2, + "AES_CBC_256": 3, + "AES_CTR_128": 4, + "AES_CTR_192": 5, + "AES_CTR_256": 6, + "AES_GCM_128": 7, + "AES_GCM_192": 8, + "AES_GCM_256": 9, + "DES_CBC": 10, + "DES3_CBC": 11, + } +) + +func (x CryptoAlg) Enum() *CryptoAlg { + p := new(CryptoAlg) + *p = x + return p } func (x CryptoAlg) String() string { - return proto.EnumName(CryptoAlg_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CryptoAlg) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_ipsec_ipsec_proto_enumTypes[0].Descriptor() +} + +func (CryptoAlg) Type() protoreflect.EnumType { + return &file_ligato_vpp_ipsec_ipsec_proto_enumTypes[0] } +func (x CryptoAlg) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use CryptoAlg.Descriptor instead. func (CryptoAlg) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_3aa20672189bf205, []int{0} + return file_ligato_vpp_ipsec_ipsec_proto_rawDescGZIP(), []int{0} } // Cryptographic algorithm for authentication @@ -81,40 +107,61 @@ type IntegAlg int32 const ( IntegAlg_NONE_INTEG IntegAlg = 0 - IntegAlg_MD5_96 IntegAlg = 1 - IntegAlg_SHA1_96 IntegAlg = 2 - IntegAlg_SHA_256_96 IntegAlg = 3 - IntegAlg_SHA_256_128 IntegAlg = 4 - IntegAlg_SHA_384_192 IntegAlg = 5 - IntegAlg_SHA_512_256 IntegAlg = 6 + IntegAlg_MD5_96 IntegAlg = 1 // RFC2403 + IntegAlg_SHA1_96 IntegAlg = 2 // RFC2404 + IntegAlg_SHA_256_96 IntegAlg = 3 // draft-ietf-ipsec-ciph-sha-256-00 + IntegAlg_SHA_256_128 IntegAlg = 4 // RFC4868 + IntegAlg_SHA_384_192 IntegAlg = 5 // RFC4868 + IntegAlg_SHA_512_256 IntegAlg = 6 // RFC4868 ) -var IntegAlg_name = map[int32]string{ - 0: "NONE_INTEG", - 1: "MD5_96", - 2: "SHA1_96", - 3: "SHA_256_96", - 4: "SHA_256_128", - 5: "SHA_384_192", - 6: "SHA_512_256", -} +// Enum value maps for IntegAlg. +var ( + IntegAlg_name = map[int32]string{ + 0: "NONE_INTEG", + 1: "MD5_96", + 2: "SHA1_96", + 3: "SHA_256_96", + 4: "SHA_256_128", + 5: "SHA_384_192", + 6: "SHA_512_256", + } + IntegAlg_value = map[string]int32{ + "NONE_INTEG": 0, + "MD5_96": 1, + "SHA1_96": 2, + "SHA_256_96": 3, + "SHA_256_128": 4, + "SHA_384_192": 5, + "SHA_512_256": 6, + } +) -var IntegAlg_value = map[string]int32{ - "NONE_INTEG": 0, - "MD5_96": 1, - "SHA1_96": 2, - "SHA_256_96": 3, - "SHA_256_128": 4, - "SHA_384_192": 5, - "SHA_512_256": 6, +func (x IntegAlg) Enum() *IntegAlg { + p := new(IntegAlg) + *p = x + return p } func (x IntegAlg) String() string { - return proto.EnumName(IntegAlg_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (IntegAlg) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_ipsec_ipsec_proto_enumTypes[1].Descriptor() } +func (IntegAlg) Type() protoreflect.EnumType { + return &file_ligato_vpp_ipsec_ipsec_proto_enumTypes[1] +} + +func (x IntegAlg) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use IntegAlg.Descriptor instead. func (IntegAlg) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_3aa20672189bf205, []int{1} + return file_ligato_vpp_ipsec_ipsec_proto_rawDescGZIP(), []int{1} } type SecurityPolicyDatabase_PolicyEntry_Action int32 @@ -122,30 +169,51 @@ type SecurityPolicyDatabase_PolicyEntry_Action int32 const ( SecurityPolicyDatabase_PolicyEntry_BYPASS SecurityPolicyDatabase_PolicyEntry_Action = 0 SecurityPolicyDatabase_PolicyEntry_DISCARD SecurityPolicyDatabase_PolicyEntry_Action = 1 - SecurityPolicyDatabase_PolicyEntry_RESOLVE SecurityPolicyDatabase_PolicyEntry_Action = 2 + SecurityPolicyDatabase_PolicyEntry_RESOLVE SecurityPolicyDatabase_PolicyEntry_Action = 2 // Note: this particular action is unused in VPP SecurityPolicyDatabase_PolicyEntry_PROTECT SecurityPolicyDatabase_PolicyEntry_Action = 3 ) -var SecurityPolicyDatabase_PolicyEntry_Action_name = map[int32]string{ - 0: "BYPASS", - 1: "DISCARD", - 2: "RESOLVE", - 3: "PROTECT", -} +// Enum value maps for SecurityPolicyDatabase_PolicyEntry_Action. +var ( + SecurityPolicyDatabase_PolicyEntry_Action_name = map[int32]string{ + 0: "BYPASS", + 1: "DISCARD", + 2: "RESOLVE", + 3: "PROTECT", + } + SecurityPolicyDatabase_PolicyEntry_Action_value = map[string]int32{ + "BYPASS": 0, + "DISCARD": 1, + "RESOLVE": 2, + "PROTECT": 3, + } +) -var SecurityPolicyDatabase_PolicyEntry_Action_value = map[string]int32{ - "BYPASS": 0, - "DISCARD": 1, - "RESOLVE": 2, - "PROTECT": 3, +func (x SecurityPolicyDatabase_PolicyEntry_Action) Enum() *SecurityPolicyDatabase_PolicyEntry_Action { + p := new(SecurityPolicyDatabase_PolicyEntry_Action) + *p = x + return p } func (x SecurityPolicyDatabase_PolicyEntry_Action) String() string { - return proto.EnumName(SecurityPolicyDatabase_PolicyEntry_Action_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SecurityPolicyDatabase_PolicyEntry_Action) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_ipsec_ipsec_proto_enumTypes[2].Descriptor() +} + +func (SecurityPolicyDatabase_PolicyEntry_Action) Type() protoreflect.EnumType { + return &file_ligato_vpp_ipsec_ipsec_proto_enumTypes[2] } +func (x SecurityPolicyDatabase_PolicyEntry_Action) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SecurityPolicyDatabase_PolicyEntry_Action.Descriptor instead. func (SecurityPolicyDatabase_PolicyEntry_Action) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_3aa20672189bf205, []int{0, 1, 0} + return file_ligato_vpp_ipsec_ipsec_proto_rawDescGZIP(), []int{0, 1, 0} } type SecurityPolicy_Action int32 @@ -153,741 +221,1062 @@ type SecurityPolicy_Action int32 const ( SecurityPolicy_BYPASS SecurityPolicy_Action = 0 SecurityPolicy_DISCARD SecurityPolicy_Action = 1 - SecurityPolicy_RESOLVE SecurityPolicy_Action = 2 + SecurityPolicy_RESOLVE SecurityPolicy_Action = 2 // Note: this particular action is unused in VPP SecurityPolicy_PROTECT SecurityPolicy_Action = 3 ) -var SecurityPolicy_Action_name = map[int32]string{ - 0: "BYPASS", - 1: "DISCARD", - 2: "RESOLVE", - 3: "PROTECT", -} +// Enum value maps for SecurityPolicy_Action. +var ( + SecurityPolicy_Action_name = map[int32]string{ + 0: "BYPASS", + 1: "DISCARD", + 2: "RESOLVE", + 3: "PROTECT", + } + SecurityPolicy_Action_value = map[string]int32{ + "BYPASS": 0, + "DISCARD": 1, + "RESOLVE": 2, + "PROTECT": 3, + } +) -var SecurityPolicy_Action_value = map[string]int32{ - "BYPASS": 0, - "DISCARD": 1, - "RESOLVE": 2, - "PROTECT": 3, +func (x SecurityPolicy_Action) Enum() *SecurityPolicy_Action { + p := new(SecurityPolicy_Action) + *p = x + return p } func (x SecurityPolicy_Action) String() string { - return proto.EnumName(SecurityPolicy_Action_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SecurityPolicy_Action) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_ipsec_ipsec_proto_enumTypes[3].Descriptor() } +func (SecurityPolicy_Action) Type() protoreflect.EnumType { + return &file_ligato_vpp_ipsec_ipsec_proto_enumTypes[3] +} + +func (x SecurityPolicy_Action) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SecurityPolicy_Action.Descriptor instead. func (SecurityPolicy_Action) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_3aa20672189bf205, []int{1, 0} + return file_ligato_vpp_ipsec_ipsec_proto_rawDescGZIP(), []int{1, 0} } type SecurityAssociation_IPSecProtocol int32 const ( - SecurityAssociation_AH SecurityAssociation_IPSecProtocol = 0 - SecurityAssociation_ESP SecurityAssociation_IPSecProtocol = 1 + SecurityAssociation_AH SecurityAssociation_IPSecProtocol = 0 // Authentication Header, provides a mechanism for authentication only + SecurityAssociation_ESP SecurityAssociation_IPSecProtocol = 1 // Encapsulating Security Payload is for data confidentiality and authentication ) -var SecurityAssociation_IPSecProtocol_name = map[int32]string{ - 0: "AH", - 1: "ESP", -} +// Enum value maps for SecurityAssociation_IPSecProtocol. +var ( + SecurityAssociation_IPSecProtocol_name = map[int32]string{ + 0: "AH", + 1: "ESP", + } + SecurityAssociation_IPSecProtocol_value = map[string]int32{ + "AH": 0, + "ESP": 1, + } +) -var SecurityAssociation_IPSecProtocol_value = map[string]int32{ - "AH": 0, - "ESP": 1, +func (x SecurityAssociation_IPSecProtocol) Enum() *SecurityAssociation_IPSecProtocol { + p := new(SecurityAssociation_IPSecProtocol) + *p = x + return p } func (x SecurityAssociation_IPSecProtocol) String() string { - return proto.EnumName(SecurityAssociation_IPSecProtocol_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SecurityAssociation_IPSecProtocol) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_ipsec_ipsec_proto_enumTypes[4].Descriptor() } +func (SecurityAssociation_IPSecProtocol) Type() protoreflect.EnumType { + return &file_ligato_vpp_ipsec_ipsec_proto_enumTypes[4] +} + +func (x SecurityAssociation_IPSecProtocol) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SecurityAssociation_IPSecProtocol.Descriptor instead. func (SecurityAssociation_IPSecProtocol) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_3aa20672189bf205, []int{2, 0} + return file_ligato_vpp_ipsec_ipsec_proto_rawDescGZIP(), []int{2, 0} } // Security Policy Database (SPD) type SecurityPolicyDatabase struct { - Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - Interfaces []*SecurityPolicyDatabase_Interface `protobuf:"bytes,2,rep,name=interfaces,proto3" json:"interfaces,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // Numerical security policy database index, serves as a unique identifier + Interfaces []*SecurityPolicyDatabase_Interface `protobuf:"bytes,2,rep,name=interfaces,proto3" json:"interfaces,omitempty"` // List of interfaces belonging to this SPD // List of policy entries belonging to this SPD. // Deprecated and actually trying to use this will return an error. // Use separate model for Security Policy (SP) defined below. - PolicyEntries []*SecurityPolicyDatabase_PolicyEntry `protobuf:"bytes,3,rep,name=policy_entries,json=policyEntries,proto3" json:"policy_entries,omitempty"` // Deprecated: Do not use. - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // + // Deprecated: Do not use. + PolicyEntries []*SecurityPolicyDatabase_PolicyEntry `protobuf:"bytes,3,rep,name=policy_entries,json=policyEntries,proto3" json:"policy_entries,omitempty"` } -func (m *SecurityPolicyDatabase) Reset() { *m = SecurityPolicyDatabase{} } -func (m *SecurityPolicyDatabase) String() string { return proto.CompactTextString(m) } -func (*SecurityPolicyDatabase) ProtoMessage() {} -func (*SecurityPolicyDatabase) Descriptor() ([]byte, []int) { - return fileDescriptor_3aa20672189bf205, []int{0} +func (x *SecurityPolicyDatabase) Reset() { + *x = SecurityPolicyDatabase{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_ipsec_ipsec_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SecurityPolicyDatabase) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecurityPolicyDatabase.Unmarshal(m, b) -} -func (m *SecurityPolicyDatabase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecurityPolicyDatabase.Marshal(b, m, deterministic) -} -func (m *SecurityPolicyDatabase) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecurityPolicyDatabase.Merge(m, src) -} -func (m *SecurityPolicyDatabase) XXX_Size() int { - return xxx_messageInfo_SecurityPolicyDatabase.Size(m) +func (x *SecurityPolicyDatabase) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SecurityPolicyDatabase) XXX_DiscardUnknown() { - xxx_messageInfo_SecurityPolicyDatabase.DiscardUnknown(m) + +func (*SecurityPolicyDatabase) ProtoMessage() {} + +func (x *SecurityPolicyDatabase) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_ipsec_ipsec_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SecurityPolicyDatabase proto.InternalMessageInfo +// Deprecated: Use SecurityPolicyDatabase.ProtoReflect.Descriptor instead. +func (*SecurityPolicyDatabase) Descriptor() ([]byte, []int) { + return file_ligato_vpp_ipsec_ipsec_proto_rawDescGZIP(), []int{0} +} -func (m *SecurityPolicyDatabase) GetIndex() uint32 { - if m != nil { - return m.Index +func (x *SecurityPolicyDatabase) GetIndex() uint32 { + if x != nil { + return x.Index } return 0 } -func (m *SecurityPolicyDatabase) GetInterfaces() []*SecurityPolicyDatabase_Interface { - if m != nil { - return m.Interfaces +func (x *SecurityPolicyDatabase) GetInterfaces() []*SecurityPolicyDatabase_Interface { + if x != nil { + return x.Interfaces } return nil } // Deprecated: Do not use. -func (m *SecurityPolicyDatabase) GetPolicyEntries() []*SecurityPolicyDatabase_PolicyEntry { - if m != nil { - return m.PolicyEntries +func (x *SecurityPolicyDatabase) GetPolicyEntries() []*SecurityPolicyDatabase_PolicyEntry { + if x != nil { + return x.PolicyEntries } return nil } -type SecurityPolicyDatabase_Interface struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SecurityPolicyDatabase_Interface) Reset() { *m = SecurityPolicyDatabase_Interface{} } -func (m *SecurityPolicyDatabase_Interface) String() string { return proto.CompactTextString(m) } -func (*SecurityPolicyDatabase_Interface) ProtoMessage() {} -func (*SecurityPolicyDatabase_Interface) Descriptor() ([]byte, []int) { - return fileDescriptor_3aa20672189bf205, []int{0, 0} +type SecurityPolicy struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SpdIndex uint32 `protobuf:"varint,1,opt,name=spd_index,json=spdIndex,proto3" json:"spd_index,omitempty"` // Security policy database index + SaIndex uint32 `protobuf:"varint,2,opt,name=sa_index,json=saIndex,proto3" json:"sa_index,omitempty"` // Security association index + Priority int32 `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"` + IsOutbound bool `protobuf:"varint,4,opt,name=is_outbound,json=isOutbound,proto3" json:"is_outbound,omitempty"` + RemoteAddrStart string `protobuf:"bytes,5,opt,name=remote_addr_start,json=remoteAddrStart,proto3" json:"remote_addr_start,omitempty"` + RemoteAddrStop string `protobuf:"bytes,6,opt,name=remote_addr_stop,json=remoteAddrStop,proto3" json:"remote_addr_stop,omitempty"` + LocalAddrStart string `protobuf:"bytes,7,opt,name=local_addr_start,json=localAddrStart,proto3" json:"local_addr_start,omitempty"` + LocalAddrStop string `protobuf:"bytes,8,opt,name=local_addr_stop,json=localAddrStop,proto3" json:"local_addr_stop,omitempty"` + Protocol uint32 `protobuf:"varint,9,opt,name=protocol,proto3" json:"protocol,omitempty"` + RemotePortStart uint32 `protobuf:"varint,10,opt,name=remote_port_start,json=remotePortStart,proto3" json:"remote_port_start,omitempty"` + RemotePortStop uint32 `protobuf:"varint,11,opt,name=remote_port_stop,json=remotePortStop,proto3" json:"remote_port_stop,omitempty"` + LocalPortStart uint32 `protobuf:"varint,12,opt,name=local_port_start,json=localPortStart,proto3" json:"local_port_start,omitempty"` + LocalPortStop uint32 `protobuf:"varint,13,opt,name=local_port_stop,json=localPortStop,proto3" json:"local_port_stop,omitempty"` + Action SecurityPolicy_Action `protobuf:"varint,14,opt,name=action,proto3,enum=ligato.vpp.ipsec.SecurityPolicy_Action" json:"action,omitempty"` +} + +func (x *SecurityPolicy) Reset() { + *x = SecurityPolicy{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_ipsec_ipsec_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SecurityPolicyDatabase_Interface) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecurityPolicyDatabase_Interface.Unmarshal(m, b) -} -func (m *SecurityPolicyDatabase_Interface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecurityPolicyDatabase_Interface.Marshal(b, m, deterministic) -} -func (m *SecurityPolicyDatabase_Interface) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecurityPolicyDatabase_Interface.Merge(m, src) -} -func (m *SecurityPolicyDatabase_Interface) XXX_Size() int { - return xxx_messageInfo_SecurityPolicyDatabase_Interface.Size(m) -} -func (m *SecurityPolicyDatabase_Interface) XXX_DiscardUnknown() { - xxx_messageInfo_SecurityPolicyDatabase_Interface.DiscardUnknown(m) +func (x *SecurityPolicy) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_SecurityPolicyDatabase_Interface proto.InternalMessageInfo +func (*SecurityPolicy) ProtoMessage() {} -func (m *SecurityPolicyDatabase_Interface) GetName() string { - if m != nil { - return m.Name +func (x *SecurityPolicy) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_ipsec_ipsec_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -type SecurityPolicyDatabase_PolicyEntry struct { - SaIndex uint32 `protobuf:"varint,1,opt,name=sa_index,json=saIndex,proto3" json:"sa_index,omitempty"` - Priority int32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"` - IsOutbound bool `protobuf:"varint,3,opt,name=is_outbound,json=isOutbound,proto3" json:"is_outbound,omitempty"` - RemoteAddrStart string `protobuf:"bytes,4,opt,name=remote_addr_start,json=remoteAddrStart,proto3" json:"remote_addr_start,omitempty"` - RemoteAddrStop string `protobuf:"bytes,5,opt,name=remote_addr_stop,json=remoteAddrStop,proto3" json:"remote_addr_stop,omitempty"` - LocalAddrStart string `protobuf:"bytes,6,opt,name=local_addr_start,json=localAddrStart,proto3" json:"local_addr_start,omitempty"` - LocalAddrStop string `protobuf:"bytes,7,opt,name=local_addr_stop,json=localAddrStop,proto3" json:"local_addr_stop,omitempty"` - Protocol uint32 `protobuf:"varint,8,opt,name=protocol,proto3" json:"protocol,omitempty"` - RemotePortStart uint32 `protobuf:"varint,9,opt,name=remote_port_start,json=remotePortStart,proto3" json:"remote_port_start,omitempty"` - RemotePortStop uint32 `protobuf:"varint,10,opt,name=remote_port_stop,json=remotePortStop,proto3" json:"remote_port_stop,omitempty"` - LocalPortStart uint32 `protobuf:"varint,11,opt,name=local_port_start,json=localPortStart,proto3" json:"local_port_start,omitempty"` - LocalPortStop uint32 `protobuf:"varint,12,opt,name=local_port_stop,json=localPortStop,proto3" json:"local_port_stop,omitempty"` - Action SecurityPolicyDatabase_PolicyEntry_Action `protobuf:"varint,13,opt,name=action,proto3,enum=ligato.vpp.ipsec.SecurityPolicyDatabase_PolicyEntry_Action" json:"action,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SecurityPolicyDatabase_PolicyEntry) Reset() { *m = SecurityPolicyDatabase_PolicyEntry{} } -func (m *SecurityPolicyDatabase_PolicyEntry) String() string { return proto.CompactTextString(m) } -func (*SecurityPolicyDatabase_PolicyEntry) ProtoMessage() {} -func (*SecurityPolicyDatabase_PolicyEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_3aa20672189bf205, []int{0, 1} +// Deprecated: Use SecurityPolicy.ProtoReflect.Descriptor instead. +func (*SecurityPolicy) Descriptor() ([]byte, []int) { + return file_ligato_vpp_ipsec_ipsec_proto_rawDescGZIP(), []int{1} } -func (m *SecurityPolicyDatabase_PolicyEntry) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecurityPolicyDatabase_PolicyEntry.Unmarshal(m, b) -} -func (m *SecurityPolicyDatabase_PolicyEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecurityPolicyDatabase_PolicyEntry.Marshal(b, m, deterministic) -} -func (m *SecurityPolicyDatabase_PolicyEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecurityPolicyDatabase_PolicyEntry.Merge(m, src) -} -func (m *SecurityPolicyDatabase_PolicyEntry) XXX_Size() int { - return xxx_messageInfo_SecurityPolicyDatabase_PolicyEntry.Size(m) -} -func (m *SecurityPolicyDatabase_PolicyEntry) XXX_DiscardUnknown() { - xxx_messageInfo_SecurityPolicyDatabase_PolicyEntry.DiscardUnknown(m) +func (x *SecurityPolicy) GetSpdIndex() uint32 { + if x != nil { + return x.SpdIndex + } + return 0 } -var xxx_messageInfo_SecurityPolicyDatabase_PolicyEntry proto.InternalMessageInfo - -func (m *SecurityPolicyDatabase_PolicyEntry) GetSaIndex() uint32 { - if m != nil { - return m.SaIndex +func (x *SecurityPolicy) GetSaIndex() uint32 { + if x != nil { + return x.SaIndex } return 0 } -func (m *SecurityPolicyDatabase_PolicyEntry) GetPriority() int32 { - if m != nil { - return m.Priority +func (x *SecurityPolicy) GetPriority() int32 { + if x != nil { + return x.Priority } return 0 } -func (m *SecurityPolicyDatabase_PolicyEntry) GetIsOutbound() bool { - if m != nil { - return m.IsOutbound +func (x *SecurityPolicy) GetIsOutbound() bool { + if x != nil { + return x.IsOutbound } return false } -func (m *SecurityPolicyDatabase_PolicyEntry) GetRemoteAddrStart() string { - if m != nil { - return m.RemoteAddrStart +func (x *SecurityPolicy) GetRemoteAddrStart() string { + if x != nil { + return x.RemoteAddrStart } return "" } -func (m *SecurityPolicyDatabase_PolicyEntry) GetRemoteAddrStop() string { - if m != nil { - return m.RemoteAddrStop +func (x *SecurityPolicy) GetRemoteAddrStop() string { + if x != nil { + return x.RemoteAddrStop } return "" } -func (m *SecurityPolicyDatabase_PolicyEntry) GetLocalAddrStart() string { - if m != nil { - return m.LocalAddrStart +func (x *SecurityPolicy) GetLocalAddrStart() string { + if x != nil { + return x.LocalAddrStart } return "" } -func (m *SecurityPolicyDatabase_PolicyEntry) GetLocalAddrStop() string { - if m != nil { - return m.LocalAddrStop +func (x *SecurityPolicy) GetLocalAddrStop() string { + if x != nil { + return x.LocalAddrStop } return "" } -func (m *SecurityPolicyDatabase_PolicyEntry) GetProtocol() uint32 { - if m != nil { - return m.Protocol +func (x *SecurityPolicy) GetProtocol() uint32 { + if x != nil { + return x.Protocol } return 0 } -func (m *SecurityPolicyDatabase_PolicyEntry) GetRemotePortStart() uint32 { - if m != nil { - return m.RemotePortStart +func (x *SecurityPolicy) GetRemotePortStart() uint32 { + if x != nil { + return x.RemotePortStart } return 0 } -func (m *SecurityPolicyDatabase_PolicyEntry) GetRemotePortStop() uint32 { - if m != nil { - return m.RemotePortStop +func (x *SecurityPolicy) GetRemotePortStop() uint32 { + if x != nil { + return x.RemotePortStop } return 0 } -func (m *SecurityPolicyDatabase_PolicyEntry) GetLocalPortStart() uint32 { - if m != nil { - return m.LocalPortStart +func (x *SecurityPolicy) GetLocalPortStart() uint32 { + if x != nil { + return x.LocalPortStart } return 0 } -func (m *SecurityPolicyDatabase_PolicyEntry) GetLocalPortStop() uint32 { - if m != nil { - return m.LocalPortStop +func (x *SecurityPolicy) GetLocalPortStop() uint32 { + if x != nil { + return x.LocalPortStop } return 0 } -func (m *SecurityPolicyDatabase_PolicyEntry) GetAction() SecurityPolicyDatabase_PolicyEntry_Action { - if m != nil { - return m.Action +func (x *SecurityPolicy) GetAction() SecurityPolicy_Action { + if x != nil { + return x.Action } - return SecurityPolicyDatabase_PolicyEntry_BYPASS + return SecurityPolicy_BYPASS } -type SecurityPolicy struct { - SpdIndex uint32 `protobuf:"varint,1,opt,name=spd_index,json=spdIndex,proto3" json:"spd_index,omitempty"` - SaIndex uint32 `protobuf:"varint,2,opt,name=sa_index,json=saIndex,proto3" json:"sa_index,omitempty"` - Priority int32 `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"` - IsOutbound bool `protobuf:"varint,4,opt,name=is_outbound,json=isOutbound,proto3" json:"is_outbound,omitempty"` - RemoteAddrStart string `protobuf:"bytes,5,opt,name=remote_addr_start,json=remoteAddrStart,proto3" json:"remote_addr_start,omitempty"` - RemoteAddrStop string `protobuf:"bytes,6,opt,name=remote_addr_stop,json=remoteAddrStop,proto3" json:"remote_addr_stop,omitempty"` - LocalAddrStart string `protobuf:"bytes,7,opt,name=local_addr_start,json=localAddrStart,proto3" json:"local_addr_start,omitempty"` - LocalAddrStop string `protobuf:"bytes,8,opt,name=local_addr_stop,json=localAddrStop,proto3" json:"local_addr_stop,omitempty"` - Protocol uint32 `protobuf:"varint,9,opt,name=protocol,proto3" json:"protocol,omitempty"` - RemotePortStart uint32 `protobuf:"varint,10,opt,name=remote_port_start,json=remotePortStart,proto3" json:"remote_port_start,omitempty"` - RemotePortStop uint32 `protobuf:"varint,11,opt,name=remote_port_stop,json=remotePortStop,proto3" json:"remote_port_stop,omitempty"` - LocalPortStart uint32 `protobuf:"varint,12,opt,name=local_port_start,json=localPortStart,proto3" json:"local_port_start,omitempty"` - LocalPortStop uint32 `protobuf:"varint,13,opt,name=local_port_stop,json=localPortStop,proto3" json:"local_port_stop,omitempty"` - Action SecurityPolicy_Action `protobuf:"varint,14,opt,name=action,proto3,enum=ligato.vpp.ipsec.SecurityPolicy_Action" json:"action,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SecurityPolicy) Reset() { *m = SecurityPolicy{} } -func (m *SecurityPolicy) String() string { return proto.CompactTextString(m) } -func (*SecurityPolicy) ProtoMessage() {} -func (*SecurityPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_3aa20672189bf205, []int{1} +// Security Association (SA) +type SecurityAssociation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // Numerical security association index, serves as a unique identifier + Spi uint32 `protobuf:"varint,2,opt,name=spi,proto3" json:"spi,omitempty"` // Security parameter index + Protocol SecurityAssociation_IPSecProtocol `protobuf:"varint,3,opt,name=protocol,proto3,enum=ligato.vpp.ipsec.SecurityAssociation_IPSecProtocol" json:"protocol,omitempty"` + CryptoAlg CryptoAlg `protobuf:"varint,4,opt,name=crypto_alg,json=cryptoAlg,proto3,enum=ligato.vpp.ipsec.CryptoAlg" json:"crypto_alg,omitempty"` // Cryptographic algorithm for encryption + CryptoKey string `protobuf:"bytes,5,opt,name=crypto_key,json=cryptoKey,proto3" json:"crypto_key,omitempty"` + CryptoSalt uint32 `protobuf:"varint,15,opt,name=crypto_salt,json=cryptoSalt,proto3" json:"crypto_salt,omitempty"` + IntegAlg IntegAlg `protobuf:"varint,6,opt,name=integ_alg,json=integAlg,proto3,enum=ligato.vpp.ipsec.IntegAlg" json:"integ_alg,omitempty"` // Cryptographic algorithm for authentication + IntegKey string `protobuf:"bytes,7,opt,name=integ_key,json=integKey,proto3" json:"integ_key,omitempty"` + UseEsn bool `protobuf:"varint,8,opt,name=use_esn,json=useEsn,proto3" json:"use_esn,omitempty"` // Use extended sequence number + UseAntiReplay bool `protobuf:"varint,9,opt,name=use_anti_replay,json=useAntiReplay,proto3" json:"use_anti_replay,omitempty"` // Use anti replay + TunnelSrcAddr string `protobuf:"bytes,10,opt,name=tunnel_src_addr,json=tunnelSrcAddr,proto3" json:"tunnel_src_addr,omitempty"` + TunnelDstAddr string `protobuf:"bytes,11,opt,name=tunnel_dst_addr,json=tunnelDstAddr,proto3" json:"tunnel_dst_addr,omitempty"` + EnableUdpEncap bool `protobuf:"varint,12,opt,name=enable_udp_encap,json=enableUdpEncap,proto3" json:"enable_udp_encap,omitempty"` // Enable UDP encapsulation for NAT traversal + TunnelSrcPort uint32 `protobuf:"varint,13,opt,name=tunnel_src_port,json=tunnelSrcPort,proto3" json:"tunnel_src_port,omitempty"` + TunnelDstPort uint32 `protobuf:"varint,14,opt,name=tunnel_dst_port,json=tunnelDstPort,proto3" json:"tunnel_dst_port,omitempty"` +} + +func (x *SecurityAssociation) Reset() { + *x = SecurityAssociation{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_ipsec_ipsec_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SecurityPolicy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecurityPolicy.Unmarshal(m, b) -} -func (m *SecurityPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecurityPolicy.Marshal(b, m, deterministic) -} -func (m *SecurityPolicy) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecurityPolicy.Merge(m, src) -} -func (m *SecurityPolicy) XXX_Size() int { - return xxx_messageInfo_SecurityPolicy.Size(m) +func (x *SecurityAssociation) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SecurityPolicy) XXX_DiscardUnknown() { - xxx_messageInfo_SecurityPolicy.DiscardUnknown(m) + +func (*SecurityAssociation) ProtoMessage() {} + +func (x *SecurityAssociation) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_ipsec_ipsec_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SecurityPolicy proto.InternalMessageInfo +// Deprecated: Use SecurityAssociation.ProtoReflect.Descriptor instead. +func (*SecurityAssociation) Descriptor() ([]byte, []int) { + return file_ligato_vpp_ipsec_ipsec_proto_rawDescGZIP(), []int{2} +} -func (m *SecurityPolicy) GetSpdIndex() uint32 { - if m != nil { - return m.SpdIndex +func (x *SecurityAssociation) GetIndex() uint32 { + if x != nil { + return x.Index } return 0 } -func (m *SecurityPolicy) GetSaIndex() uint32 { - if m != nil { - return m.SaIndex +func (x *SecurityAssociation) GetSpi() uint32 { + if x != nil { + return x.Spi } return 0 } -func (m *SecurityPolicy) GetPriority() int32 { - if m != nil { - return m.Priority +func (x *SecurityAssociation) GetProtocol() SecurityAssociation_IPSecProtocol { + if x != nil { + return x.Protocol } - return 0 + return SecurityAssociation_AH } -func (m *SecurityPolicy) GetIsOutbound() bool { - if m != nil { - return m.IsOutbound +func (x *SecurityAssociation) GetCryptoAlg() CryptoAlg { + if x != nil { + return x.CryptoAlg } - return false + return CryptoAlg_NONE_CRYPTO } -func (m *SecurityPolicy) GetRemoteAddrStart() string { - if m != nil { - return m.RemoteAddrStart +func (x *SecurityAssociation) GetCryptoKey() string { + if x != nil { + return x.CryptoKey } return "" } -func (m *SecurityPolicy) GetRemoteAddrStop() string { - if m != nil { - return m.RemoteAddrStop +func (x *SecurityAssociation) GetCryptoSalt() uint32 { + if x != nil { + return x.CryptoSalt } - return "" + return 0 } -func (m *SecurityPolicy) GetLocalAddrStart() string { - if m != nil { - return m.LocalAddrStart +func (x *SecurityAssociation) GetIntegAlg() IntegAlg { + if x != nil { + return x.IntegAlg } - return "" + return IntegAlg_NONE_INTEG } -func (m *SecurityPolicy) GetLocalAddrStop() string { - if m != nil { - return m.LocalAddrStop +func (x *SecurityAssociation) GetIntegKey() string { + if x != nil { + return x.IntegKey } return "" } -func (m *SecurityPolicy) GetProtocol() uint32 { - if m != nil { - return m.Protocol +func (x *SecurityAssociation) GetUseEsn() bool { + if x != nil { + return x.UseEsn } - return 0 + return false } -func (m *SecurityPolicy) GetRemotePortStart() uint32 { - if m != nil { - return m.RemotePortStart +func (x *SecurityAssociation) GetUseAntiReplay() bool { + if x != nil { + return x.UseAntiReplay } - return 0 + return false } -func (m *SecurityPolicy) GetRemotePortStop() uint32 { - if m != nil { - return m.RemotePortStop +func (x *SecurityAssociation) GetTunnelSrcAddr() string { + if x != nil { + return x.TunnelSrcAddr } - return 0 + return "" } -func (m *SecurityPolicy) GetLocalPortStart() uint32 { - if m != nil { - return m.LocalPortStart +func (x *SecurityAssociation) GetTunnelDstAddr() string { + if x != nil { + return x.TunnelDstAddr } - return 0 + return "" } -func (m *SecurityPolicy) GetLocalPortStop() uint32 { - if m != nil { - return m.LocalPortStop +func (x *SecurityAssociation) GetEnableUdpEncap() bool { + if x != nil { + return x.EnableUdpEncap } - return 0 + return false } -func (m *SecurityPolicy) GetAction() SecurityPolicy_Action { - if m != nil { - return m.Action +func (x *SecurityAssociation) GetTunnelSrcPort() uint32 { + if x != nil { + return x.TunnelSrcPort } - return SecurityPolicy_BYPASS + return 0 } -// Security Association (SA) -type SecurityAssociation struct { - Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - Spi uint32 `protobuf:"varint,2,opt,name=spi,proto3" json:"spi,omitempty"` - Protocol SecurityAssociation_IPSecProtocol `protobuf:"varint,3,opt,name=protocol,proto3,enum=ligato.vpp.ipsec.SecurityAssociation_IPSecProtocol" json:"protocol,omitempty"` - CryptoAlg CryptoAlg `protobuf:"varint,4,opt,name=crypto_alg,json=cryptoAlg,proto3,enum=ligato.vpp.ipsec.CryptoAlg" json:"crypto_alg,omitempty"` - CryptoKey string `protobuf:"bytes,5,opt,name=crypto_key,json=cryptoKey,proto3" json:"crypto_key,omitempty"` - CryptoSalt uint32 `protobuf:"varint,15,opt,name=crypto_salt,json=cryptoSalt,proto3" json:"crypto_salt,omitempty"` - IntegAlg IntegAlg `protobuf:"varint,6,opt,name=integ_alg,json=integAlg,proto3,enum=ligato.vpp.ipsec.IntegAlg" json:"integ_alg,omitempty"` - IntegKey string `protobuf:"bytes,7,opt,name=integ_key,json=integKey,proto3" json:"integ_key,omitempty"` - UseEsn bool `protobuf:"varint,8,opt,name=use_esn,json=useEsn,proto3" json:"use_esn,omitempty"` - UseAntiReplay bool `protobuf:"varint,9,opt,name=use_anti_replay,json=useAntiReplay,proto3" json:"use_anti_replay,omitempty"` - TunnelSrcAddr string `protobuf:"bytes,10,opt,name=tunnel_src_addr,json=tunnelSrcAddr,proto3" json:"tunnel_src_addr,omitempty"` - TunnelDstAddr string `protobuf:"bytes,11,opt,name=tunnel_dst_addr,json=tunnelDstAddr,proto3" json:"tunnel_dst_addr,omitempty"` - EnableUdpEncap bool `protobuf:"varint,12,opt,name=enable_udp_encap,json=enableUdpEncap,proto3" json:"enable_udp_encap,omitempty"` - TunnelSrcPort uint32 `protobuf:"varint,13,opt,name=tunnel_src_port,json=tunnelSrcPort,proto3" json:"tunnel_src_port,omitempty"` - TunnelDstPort uint32 `protobuf:"varint,14,opt,name=tunnel_dst_port,json=tunnelDstPort,proto3" json:"tunnel_dst_port,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SecurityAssociation) Reset() { *m = SecurityAssociation{} } -func (m *SecurityAssociation) String() string { return proto.CompactTextString(m) } -func (*SecurityAssociation) ProtoMessage() {} -func (*SecurityAssociation) Descriptor() ([]byte, []int) { - return fileDescriptor_3aa20672189bf205, []int{2} +func (x *SecurityAssociation) GetTunnelDstPort() uint32 { + if x != nil { + return x.TunnelDstPort + } + return 0 } -func (m *SecurityAssociation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecurityAssociation.Unmarshal(m, b) -} -func (m *SecurityAssociation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecurityAssociation.Marshal(b, m, deterministic) -} -func (m *SecurityAssociation) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecurityAssociation.Merge(m, src) +// TunnelProtection allows enabling IPSec tunnel protection on an existing interface +// (only IPIP tunnel interfaces are currently supported) +type TunnelProtection struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Name of the interface to be protected with IPSec. + Interface string `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + // Outbound security associations identified by SA index. + SaOut []uint32 `protobuf:"varint,2,rep,packed,name=sa_out,json=saOut,proto3" json:"sa_out,omitempty"` + // Inbound security associations identified by SA index. + SaIn []uint32 `protobuf:"varint,3,rep,packed,name=sa_in,json=saIn,proto3" json:"sa_in,omitempty"` + // (Optional) Next hop IP address, used for multipoint tunnels. + NextHopAddr string `protobuf:"bytes,4,opt,name=next_hop_addr,json=nextHopAddr,proto3" json:"next_hop_addr,omitempty"` } -func (m *SecurityAssociation) XXX_Size() int { - return xxx_messageInfo_SecurityAssociation.Size(m) + +func (x *TunnelProtection) Reset() { + *x = TunnelProtection{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_ipsec_ipsec_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SecurityAssociation) XXX_DiscardUnknown() { - xxx_messageInfo_SecurityAssociation.DiscardUnknown(m) + +func (x *TunnelProtection) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_SecurityAssociation proto.InternalMessageInfo +func (*TunnelProtection) ProtoMessage() {} -func (m *SecurityAssociation) GetIndex() uint32 { - if m != nil { - return m.Index +func (x *TunnelProtection) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_ipsec_ipsec_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (m *SecurityAssociation) GetSpi() uint32 { - if m != nil { - return m.Spi +// Deprecated: Use TunnelProtection.ProtoReflect.Descriptor instead. +func (*TunnelProtection) Descriptor() ([]byte, []int) { + return file_ligato_vpp_ipsec_ipsec_proto_rawDescGZIP(), []int{3} +} + +func (x *TunnelProtection) GetInterface() string { + if x != nil { + return x.Interface } - return 0 + return "" } -func (m *SecurityAssociation) GetProtocol() SecurityAssociation_IPSecProtocol { - if m != nil { - return m.Protocol +func (x *TunnelProtection) GetSaOut() []uint32 { + if x != nil { + return x.SaOut } - return SecurityAssociation_AH + return nil } -func (m *SecurityAssociation) GetCryptoAlg() CryptoAlg { - if m != nil { - return m.CryptoAlg +func (x *TunnelProtection) GetSaIn() []uint32 { + if x != nil { + return x.SaIn } - return CryptoAlg_NONE_CRYPTO + return nil } -func (m *SecurityAssociation) GetCryptoKey() string { - if m != nil { - return m.CryptoKey +func (x *TunnelProtection) GetNextHopAddr() string { + if x != nil { + return x.NextHopAddr } return "" } -func (m *SecurityAssociation) GetCryptoSalt() uint32 { - if m != nil { - return m.CryptoSalt - } - return 0 +type SecurityPolicyDatabase_Interface struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Name of the related interface } -func (m *SecurityAssociation) GetIntegAlg() IntegAlg { - if m != nil { - return m.IntegAlg +func (x *SecurityPolicyDatabase_Interface) Reset() { + *x = SecurityPolicyDatabase_Interface{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_ipsec_ipsec_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return IntegAlg_NONE_INTEG } -func (m *SecurityAssociation) GetIntegKey() string { - if m != nil { - return m.IntegKey - } - return "" +func (x *SecurityPolicyDatabase_Interface) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SecurityAssociation) GetUseEsn() bool { - if m != nil { - return m.UseEsn +func (*SecurityPolicyDatabase_Interface) ProtoMessage() {} + +func (x *SecurityPolicyDatabase_Interface) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_ipsec_ipsec_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return false + return mi.MessageOf(x) } -func (m *SecurityAssociation) GetUseAntiReplay() bool { - if m != nil { - return m.UseAntiReplay - } - return false +// Deprecated: Use SecurityPolicyDatabase_Interface.ProtoReflect.Descriptor instead. +func (*SecurityPolicyDatabase_Interface) Descriptor() ([]byte, []int) { + return file_ligato_vpp_ipsec_ipsec_proto_rawDescGZIP(), []int{0, 0} } -func (m *SecurityAssociation) GetTunnelSrcAddr() string { - if m != nil { - return m.TunnelSrcAddr +func (x *SecurityPolicyDatabase_Interface) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *SecurityAssociation) GetTunnelDstAddr() string { - if m != nil { - return m.TunnelDstAddr +type SecurityPolicyDatabase_PolicyEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SaIndex uint32 `protobuf:"varint,1,opt,name=sa_index,json=saIndex,proto3" json:"sa_index,omitempty"` // Security association index + Priority int32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"` + IsOutbound bool `protobuf:"varint,3,opt,name=is_outbound,json=isOutbound,proto3" json:"is_outbound,omitempty"` + RemoteAddrStart string `protobuf:"bytes,4,opt,name=remote_addr_start,json=remoteAddrStart,proto3" json:"remote_addr_start,omitempty"` + RemoteAddrStop string `protobuf:"bytes,5,opt,name=remote_addr_stop,json=remoteAddrStop,proto3" json:"remote_addr_stop,omitempty"` + LocalAddrStart string `protobuf:"bytes,6,opt,name=local_addr_start,json=localAddrStart,proto3" json:"local_addr_start,omitempty"` + LocalAddrStop string `protobuf:"bytes,7,opt,name=local_addr_stop,json=localAddrStop,proto3" json:"local_addr_stop,omitempty"` + Protocol uint32 `protobuf:"varint,8,opt,name=protocol,proto3" json:"protocol,omitempty"` + RemotePortStart uint32 `protobuf:"varint,9,opt,name=remote_port_start,json=remotePortStart,proto3" json:"remote_port_start,omitempty"` + RemotePortStop uint32 `protobuf:"varint,10,opt,name=remote_port_stop,json=remotePortStop,proto3" json:"remote_port_stop,omitempty"` + LocalPortStart uint32 `protobuf:"varint,11,opt,name=local_port_start,json=localPortStart,proto3" json:"local_port_start,omitempty"` + LocalPortStop uint32 `protobuf:"varint,12,opt,name=local_port_stop,json=localPortStop,proto3" json:"local_port_stop,omitempty"` + Action SecurityPolicyDatabase_PolicyEntry_Action `protobuf:"varint,13,opt,name=action,proto3,enum=ligato.vpp.ipsec.SecurityPolicyDatabase_PolicyEntry_Action" json:"action,omitempty"` +} + +func (x *SecurityPolicyDatabase_PolicyEntry) Reset() { + *x = SecurityPolicyDatabase_PolicyEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_ipsec_ipsec_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (m *SecurityAssociation) GetEnableUdpEncap() bool { - if m != nil { - return m.EnableUdpEncap +func (x *SecurityPolicyDatabase_PolicyEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SecurityPolicyDatabase_PolicyEntry) ProtoMessage() {} + +func (x *SecurityPolicyDatabase_PolicyEntry) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_ipsec_ipsec_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return false + return mi.MessageOf(x) +} + +// Deprecated: Use SecurityPolicyDatabase_PolicyEntry.ProtoReflect.Descriptor instead. +func (*SecurityPolicyDatabase_PolicyEntry) Descriptor() ([]byte, []int) { + return file_ligato_vpp_ipsec_ipsec_proto_rawDescGZIP(), []int{0, 1} } -func (m *SecurityAssociation) GetTunnelSrcPort() uint32 { - if m != nil { - return m.TunnelSrcPort +func (x *SecurityPolicyDatabase_PolicyEntry) GetSaIndex() uint32 { + if x != nil { + return x.SaIndex } return 0 } -func (m *SecurityAssociation) GetTunnelDstPort() uint32 { - if m != nil { - return m.TunnelDstPort +func (x *SecurityPolicyDatabase_PolicyEntry) GetPriority() int32 { + if x != nil { + return x.Priority } return 0 } -// TunnelProtection allows enabling IPSec tunnel protection on an existing interface -// (only IPIP tunnel interfaces are currently supported) -type TunnelProtection struct { - // Name of the interface to be protected with IPSec. - Interface string `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - // Outbound security associations identified by SA index. - SaOut []uint32 `protobuf:"varint,2,rep,packed,name=sa_out,json=saOut,proto3" json:"sa_out,omitempty"` - // Inbound security associations identified by SA index. - SaIn []uint32 `protobuf:"varint,3,rep,packed,name=sa_in,json=saIn,proto3" json:"sa_in,omitempty"` - // (Optional) Next hop IP address, used for multipoint tunnels. - NextHopAddr string `protobuf:"bytes,4,opt,name=next_hop_addr,json=nextHopAddr,proto3" json:"next_hop_addr,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *SecurityPolicyDatabase_PolicyEntry) GetIsOutbound() bool { + if x != nil { + return x.IsOutbound + } + return false } -func (m *TunnelProtection) Reset() { *m = TunnelProtection{} } -func (m *TunnelProtection) String() string { return proto.CompactTextString(m) } -func (*TunnelProtection) ProtoMessage() {} -func (*TunnelProtection) Descriptor() ([]byte, []int) { - return fileDescriptor_3aa20672189bf205, []int{3} +func (x *SecurityPolicyDatabase_PolicyEntry) GetRemoteAddrStart() string { + if x != nil { + return x.RemoteAddrStart + } + return "" } -func (m *TunnelProtection) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TunnelProtection.Unmarshal(m, b) -} -func (m *TunnelProtection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TunnelProtection.Marshal(b, m, deterministic) +func (x *SecurityPolicyDatabase_PolicyEntry) GetRemoteAddrStop() string { + if x != nil { + return x.RemoteAddrStop + } + return "" } -func (m *TunnelProtection) XXX_Merge(src proto.Message) { - xxx_messageInfo_TunnelProtection.Merge(m, src) + +func (x *SecurityPolicyDatabase_PolicyEntry) GetLocalAddrStart() string { + if x != nil { + return x.LocalAddrStart + } + return "" } -func (m *TunnelProtection) XXX_Size() int { - return xxx_messageInfo_TunnelProtection.Size(m) + +func (x *SecurityPolicyDatabase_PolicyEntry) GetLocalAddrStop() string { + if x != nil { + return x.LocalAddrStop + } + return "" } -func (m *TunnelProtection) XXX_DiscardUnknown() { - xxx_messageInfo_TunnelProtection.DiscardUnknown(m) + +func (x *SecurityPolicyDatabase_PolicyEntry) GetProtocol() uint32 { + if x != nil { + return x.Protocol + } + return 0 } -var xxx_messageInfo_TunnelProtection proto.InternalMessageInfo +func (x *SecurityPolicyDatabase_PolicyEntry) GetRemotePortStart() uint32 { + if x != nil { + return x.RemotePortStart + } + return 0 +} -func (m *TunnelProtection) GetInterface() string { - if m != nil { - return m.Interface +func (x *SecurityPolicyDatabase_PolicyEntry) GetRemotePortStop() uint32 { + if x != nil { + return x.RemotePortStop } - return "" + return 0 } -func (m *TunnelProtection) GetSaOut() []uint32 { - if m != nil { - return m.SaOut +func (x *SecurityPolicyDatabase_PolicyEntry) GetLocalPortStart() uint32 { + if x != nil { + return x.LocalPortStart } - return nil + return 0 } -func (m *TunnelProtection) GetSaIn() []uint32 { - if m != nil { - return m.SaIn +func (x *SecurityPolicyDatabase_PolicyEntry) GetLocalPortStop() uint32 { + if x != nil { + return x.LocalPortStop } - return nil + return 0 } -func (m *TunnelProtection) GetNextHopAddr() string { - if m != nil { - return m.NextHopAddr +func (x *SecurityPolicyDatabase_PolicyEntry) GetAction() SecurityPolicyDatabase_PolicyEntry_Action { + if x != nil { + return x.Action } - return "" + return SecurityPolicyDatabase_PolicyEntry_BYPASS } -func init() { - proto.RegisterEnum("ligato.vpp.ipsec.CryptoAlg", CryptoAlg_name, CryptoAlg_value) - proto.RegisterEnum("ligato.vpp.ipsec.IntegAlg", IntegAlg_name, IntegAlg_value) - proto.RegisterEnum("ligato.vpp.ipsec.SecurityPolicyDatabase_PolicyEntry_Action", SecurityPolicyDatabase_PolicyEntry_Action_name, SecurityPolicyDatabase_PolicyEntry_Action_value) - proto.RegisterEnum("ligato.vpp.ipsec.SecurityPolicy_Action", SecurityPolicy_Action_name, SecurityPolicy_Action_value) - proto.RegisterEnum("ligato.vpp.ipsec.SecurityAssociation_IPSecProtocol", SecurityAssociation_IPSecProtocol_name, SecurityAssociation_IPSecProtocol_value) - proto.RegisterType((*SecurityPolicyDatabase)(nil), "ligato.vpp.ipsec.SecurityPolicyDatabase") - proto.RegisterType((*SecurityPolicyDatabase_Interface)(nil), "ligato.vpp.ipsec.SecurityPolicyDatabase.Interface") - proto.RegisterType((*SecurityPolicyDatabase_PolicyEntry)(nil), "ligato.vpp.ipsec.SecurityPolicyDatabase.PolicyEntry") - proto.RegisterType((*SecurityPolicy)(nil), "ligato.vpp.ipsec.SecurityPolicy") - proto.RegisterType((*SecurityAssociation)(nil), "ligato.vpp.ipsec.SecurityAssociation") - proto.RegisterType((*TunnelProtection)(nil), "ligato.vpp.ipsec.TunnelProtection") -} - -func init() { - proto.RegisterFile("ligato/vpp/ipsec/ipsec.proto", fileDescriptor_3aa20672189bf205) -} - -var fileDescriptor_3aa20672189bf205 = []byte{ - // 1085 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x96, 0xcf, 0x6e, 0xdb, 0xc6, - 0x13, 0xc7, 0xad, 0x7f, 0x14, 0x35, 0x0a, 0x65, 0xfe, 0x36, 0xbf, 0xb6, 0xac, 0x93, 0x22, 0x82, - 0x0e, 0xad, 0x10, 0xa0, 0x32, 0x22, 0xc7, 0x69, 0x1c, 0x17, 0x28, 0x64, 0x49, 0x88, 0x8d, 0x36, - 0x96, 0x40, 0xaa, 0x05, 0xd2, 0x0b, 0xb1, 0xa6, 0xb6, 0x2a, 0x51, 0x86, 0xbb, 0xe0, 0xae, 0x8c, - 0xe8, 0xd6, 0x17, 0xe8, 0xbb, 0xf5, 0x1d, 0x7a, 0xeb, 0xa5, 0xaf, 0x50, 0xec, 0x2c, 0x25, 0x53, - 0x8e, 0xd3, 0x08, 0x45, 0x2f, 0x02, 0xe7, 0xbb, 0xdf, 0x99, 0xe1, 0x50, 0x9f, 0x5d, 0x12, 0x1e, - 0x26, 0xf1, 0x82, 0x2a, 0x7e, 0x78, 0x2d, 0xc4, 0x61, 0x2c, 0x24, 0x8b, 0xcc, 0x6f, 0x4f, 0x64, - 0x5c, 0x71, 0xe2, 0x9a, 0xd5, 0xde, 0xb5, 0x10, 0x3d, 0xd4, 0x3b, 0x7f, 0x5a, 0xf0, 0x71, 0xc0, - 0xa2, 0x65, 0x16, 0xab, 0xd5, 0x94, 0x27, 0x71, 0xb4, 0x1a, 0x51, 0x45, 0xaf, 0xa8, 0x64, 0xe4, - 0xff, 0x50, 0x8b, 0xd3, 0x39, 0x7b, 0xeb, 0x95, 0xda, 0xa5, 0xae, 0xe3, 0x9b, 0x80, 0xf8, 0x00, - 0x71, 0xaa, 0x58, 0xf6, 0x13, 0x8d, 0x98, 0xf4, 0xca, 0xed, 0x4a, 0xb7, 0xd9, 0xef, 0xf7, 0x6e, - 0xd7, 0xed, 0xdd, 0x5d, 0xb3, 0x77, 0xb1, 0x4e, 0xf5, 0x0b, 0x55, 0x48, 0x08, 0x2d, 0x81, 0xbe, - 0x90, 0xa5, 0x2a, 0x8b, 0x99, 0xf4, 0x2a, 0x58, 0xf7, 0xe9, 0xce, 0x75, 0x4d, 0x38, 0x4e, 0x55, - 0xb6, 0x3a, 0x2b, 0x7b, 0x25, 0xdf, 0x11, 0x1b, 0x21, 0x66, 0xf2, 0xe0, 0x11, 0x34, 0x36, 0x9d, - 0x09, 0x81, 0x6a, 0x4a, 0xdf, 0x30, 0x1c, 0xab, 0xe1, 0xe3, 0xf5, 0xc1, 0x1f, 0x55, 0x68, 0x16, - 0x6a, 0x90, 0x4f, 0xc1, 0x96, 0x34, 0x2c, 0x8e, 0x5f, 0x97, 0xf4, 0x02, 0x1f, 0xc0, 0x01, 0xd8, - 0x22, 0x8b, 0xb9, 0xbe, 0x09, 0xaf, 0xdc, 0x2e, 0x75, 0x6b, 0xfe, 0x26, 0x26, 0x8f, 0xa0, 0x19, - 0xcb, 0x90, 0x2f, 0xd5, 0x15, 0x5f, 0xa6, 0x73, 0xaf, 0xd2, 0x2e, 0x75, 0x6d, 0x1f, 0x62, 0x39, - 0xc9, 0x15, 0xf2, 0x18, 0xfe, 0x97, 0xb1, 0x37, 0x5c, 0xb1, 0x90, 0xce, 0xe7, 0x59, 0x28, 0x15, - 0xcd, 0x94, 0x57, 0xc5, 0x1b, 0xd9, 0x37, 0x0b, 0x83, 0xf9, 0x3c, 0x0b, 0xb4, 0x4c, 0xba, 0xe0, - 0x6e, 0x7b, 0xb9, 0xf0, 0x6a, 0x68, 0x6d, 0x15, 0xad, 0x5c, 0x68, 0x67, 0xc2, 0x23, 0x9a, 0x14, - 0x8b, 0x5a, 0xc6, 0x89, 0xfa, 0x4d, 0xcd, 0xcf, 0x61, 0x7f, 0xcb, 0xc9, 0x85, 0x57, 0x47, 0xa3, - 0x53, 0x30, 0x72, 0x61, 0x86, 0xe4, 0x8a, 0x47, 0x3c, 0xf1, 0x6c, 0x9c, 0x7f, 0x13, 0x17, 0x66, - 0x10, 0x3c, 0x53, 0x79, 0xbb, 0x06, 0x9a, 0xf2, 0x19, 0xa6, 0x3c, 0x53, 0xb7, 0x67, 0xc8, 0xbd, - 0x5c, 0x78, 0x80, 0xd6, 0x56, 0xd1, 0x5a, 0x9c, 0xa1, 0x50, 0xb4, 0x69, 0x9c, 0xa8, 0xdf, 0xd4, - 0xdc, 0xcc, 0x70, 0x53, 0xf2, 0x1e, 0x1a, 0x9d, 0x82, 0x91, 0x0b, 0x12, 0x80, 0x45, 0x23, 0x15, - 0xf3, 0xd4, 0x73, 0xda, 0xa5, 0x6e, 0xab, 0x7f, 0xfa, 0x6f, 0x68, 0xea, 0x0d, 0xb0, 0x84, 0x9f, - 0x97, 0xea, 0x9c, 0x82, 0x65, 0x14, 0x02, 0x60, 0x9d, 0xbd, 0x9e, 0x0e, 0x82, 0xc0, 0xdd, 0x23, - 0x4d, 0xa8, 0x8f, 0x2e, 0x82, 0xe1, 0xc0, 0x1f, 0xb9, 0x25, 0x1d, 0xf8, 0xe3, 0x60, 0xf2, 0xdd, - 0x0f, 0x63, 0xb7, 0xac, 0x83, 0xa9, 0x3f, 0x99, 0x8d, 0x87, 0x33, 0xb7, 0xd2, 0xf9, 0xab, 0x0a, - 0xad, 0xed, 0x96, 0xe4, 0x01, 0x34, 0xa4, 0x98, 0x6f, 0x91, 0x66, 0x4b, 0x31, 0x37, 0xa8, 0x15, - 0x29, 0x2c, 0xbf, 0x9f, 0xc2, 0xca, 0x3f, 0x53, 0x58, 0xdd, 0x8d, 0xc2, 0xda, 0xee, 0x14, 0x5a, - 0x3b, 0x53, 0x58, 0xdf, 0x95, 0x42, 0xfb, 0x43, 0x14, 0x36, 0x76, 0xa1, 0x10, 0x76, 0xa7, 0xb0, - 0xb9, 0x33, 0x85, 0xf7, 0x76, 0xa5, 0xd0, 0xb9, 0x8b, 0xc2, 0x6f, 0x36, 0x14, 0xb6, 0x90, 0xc2, - 0x2f, 0x3e, 0x44, 0xe1, 0x7f, 0x4a, 0xdc, 0x6f, 0x35, 0xb8, 0xbf, 0x2e, 0x3f, 0x90, 0x92, 0x47, - 0x31, 0xc5, 0x52, 0x77, 0x9f, 0xed, 0x2e, 0x54, 0xa4, 0x88, 0x73, 0xd4, 0xf4, 0x25, 0x99, 0x14, - 0xfe, 0x81, 0x0a, 0xde, 0xff, 0xd1, 0xfb, 0xef, 0xbf, 0xd0, 0xa0, 0x77, 0x31, 0x0d, 0x58, 0x34, - 0xcd, 0x53, 0x0b, 0x7f, 0xdb, 0x0b, 0x80, 0x28, 0x5b, 0x09, 0xc5, 0x43, 0x9a, 0x2c, 0x10, 0xcd, - 0x56, 0xff, 0xc1, 0xbb, 0x25, 0x87, 0xe8, 0x19, 0x24, 0x0b, 0xbf, 0x11, 0xad, 0x2f, 0xc9, 0x67, - 0x9b, 0xdc, 0x5f, 0xd8, 0x2a, 0xe7, 0x35, 0x5f, 0xfe, 0x96, 0x21, 0xf6, 0xf9, 0xb2, 0xa4, 0x89, - 0xf2, 0xf6, 0x71, 0x8a, 0x3c, 0x23, 0xa0, 0x89, 0x22, 0x5f, 0x41, 0x43, 0xbf, 0x74, 0x16, 0xd8, - 0xda, 0xc2, 0xd6, 0x07, 0xef, 0xb6, 0xd6, 0x2f, 0x8a, 0x85, 0xee, 0x6c, 0xc7, 0xf9, 0x95, 0xde, - 0xa4, 0x26, 0x51, 0xf7, 0x35, 0x48, 0x9b, 0x45, 0xdd, 0xf6, 0x13, 0xa8, 0x2f, 0x25, 0x0b, 0x99, - 0x4c, 0x11, 0x62, 0xdb, 0xb7, 0x96, 0x92, 0x8d, 0x65, 0xaa, 0x09, 0xd1, 0x0b, 0x34, 0x55, 0x71, - 0x98, 0x31, 0x91, 0xd0, 0x15, 0x42, 0x6c, 0xfb, 0xce, 0x52, 0xb2, 0x41, 0xaa, 0x62, 0x1f, 0x45, - 0xed, 0x53, 0xcb, 0x34, 0x65, 0x49, 0x28, 0xb3, 0x08, 0xb7, 0x04, 0x72, 0xdc, 0xf0, 0x1d, 0x23, - 0x07, 0x59, 0xa4, 0x77, 0x44, 0xc1, 0x37, 0x97, 0xca, 0xf8, 0x9a, 0x45, 0xdf, 0x48, 0x2a, 0xf4, - 0x75, 0xc1, 0x65, 0x29, 0xbd, 0x4a, 0x58, 0xb8, 0x9c, 0x8b, 0x90, 0xa5, 0x11, 0x35, 0x07, 0xa4, - 0xed, 0xb7, 0x8c, 0xfe, 0xfd, 0x5c, 0x8c, 0xb5, 0x7a, 0xab, 0xb3, 0x06, 0x79, 0xcd, 0xf0, 0xa6, - 0xb3, 0xe6, 0xf8, 0x56, 0x67, 0xf4, 0xb5, 0x8a, 0xbe, 0x91, 0x54, 0xda, 0xd7, 0x69, 0x83, 0xb3, - 0xf5, 0xbf, 0x13, 0x0b, 0xca, 0x83, 0x73, 0x77, 0x8f, 0xd4, 0xa1, 0x32, 0x0e, 0xa6, 0x6e, 0xa9, - 0xf3, 0x6b, 0x09, 0xdc, 0x19, 0xe6, 0x68, 0x0f, 0x33, 0x5c, 0x3f, 0x34, 0x8f, 0x17, 0xdf, 0xce, - 0xf9, 0x5b, 0xf9, 0x46, 0x20, 0x1f, 0x81, 0x25, 0xa9, 0x3e, 0xcd, 0xf0, 0x63, 0xc3, 0xf1, 0x6b, - 0x92, 0x4e, 0x96, 0x8a, 0xdc, 0x87, 0x1a, 0x9e, 0x8d, 0xf8, 0xa9, 0xe0, 0xf8, 0x55, 0x7d, 0x30, - 0x92, 0x0e, 0x38, 0x29, 0x7b, 0xab, 0xc2, 0x9f, 0xb9, 0x30, 0x0f, 0xc8, 0xbc, 0x5a, 0x9b, 0x5a, - 0x3c, 0xe7, 0x42, 0x3f, 0x9e, 0xc7, 0xbf, 0x97, 0xa0, 0xb1, 0xc1, 0x8b, 0xec, 0x43, 0xf3, 0x72, - 0x72, 0x39, 0x0e, 0x87, 0xfe, 0xeb, 0xe9, 0x6c, 0xe2, 0xee, 0x69, 0x61, 0x30, 0x0e, 0xc2, 0xe1, - 0xd9, 0x30, 0x7c, 0xd2, 0x7f, 0xee, 0x96, 0xb6, 0x84, 0x93, 0xbe, 0x5b, 0x2e, 0x0a, 0xfd, 0xe3, - 0x67, 0x6e, 0x65, 0x23, 0xcc, 0x7c, 0x4c, 0xa9, 0x6e, 0x09, 0x27, 0x7d, 0xb7, 0x56, 0x14, 0x74, - 0x8a, 0xb5, 0x16, 0x5e, 0x0e, 0x5f, 0x61, 0x4a, 0x7d, 0x4b, 0x38, 0xe9, 0xbb, 0x76, 0x51, 0xd0, - 0x29, 0x0d, 0xdc, 0xf1, 0xa6, 0xad, 0x0b, 0xe4, 0x1e, 0xd8, 0xa3, 0x71, 0x70, 0x84, 0x51, 0xf3, - 0xf1, 0x35, 0xd8, 0x6b, 0x6a, 0x49, 0x0b, 0x00, 0x07, 0xba, 0xb8, 0x9c, 0x8d, 0x5f, 0xba, 0x7b, - 0xfa, 0xd0, 0x78, 0x35, 0x3a, 0x0e, 0x4f, 0x9e, 0x99, 0x73, 0x22, 0x38, 0x1f, 0x3c, 0xd1, 0x41, - 0x59, 0x1b, 0x83, 0xf3, 0x81, 0x2e, 0xae, 0x63, 0x9c, 0x62, 0x1d, 0x6f, 0xa6, 0xd0, 0xc2, 0xd1, - 0xf3, 0xa7, 0x37, 0x53, 0x68, 0xe1, 0xf8, 0x49, 0xdf, 0x4c, 0x71, 0xf6, 0xf5, 0x8f, 0x2f, 0x16, - 0x7c, 0xbd, 0x83, 0x62, 0xfc, 0xe8, 0xfc, 0x92, 0x2e, 0x58, 0xaa, 0x0e, 0xaf, 0x8f, 0x0e, 0x71, - 0xcb, 0x1f, 0xde, 0xfe, 0x1c, 0x3d, 0xbd, 0x16, 0x22, 0xc4, 0xab, 0x2b, 0x0b, 0x1d, 0x47, 0x7f, - 0x07, 0x00, 0x00, 0xff, 0xff, 0xee, 0xf4, 0x18, 0xc3, 0xb3, 0x0a, 0x00, 0x00, +var File_ligato_vpp_ipsec_ipsec_proto protoreflect.FileDescriptor + +var file_ligato_vpp_ipsec_ipsec_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x69, 0x70, 0x73, + 0x65, 0x63, 0x2f, 0x69, 0x70, 0x73, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x70, 0x73, 0x65, 0x63, + 0x22, 0xea, 0x06, 0x0a, 0x16, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, + 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x12, 0x52, 0x0a, 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, + 0x70, 0x70, 0x2e, 0x69, 0x70, 0x73, 0x65, 0x63, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, + 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x5f, 0x0a, 0x0e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, + 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x70, 0x73, 0x65, 0x63, + 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, + 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x45, + 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x1a, 0x1f, 0x0a, 0x09, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0xe3, 0x04, 0x0a, 0x0b, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x61, 0x5f, 0x69, 0x6e, + 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x61, 0x49, 0x6e, 0x64, + 0x65, 0x78, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x1f, + 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, + 0x2a, 0x0a, 0x11, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x5f, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x6d, 0x6f, + 0x74, 0x65, 0x41, 0x64, 0x64, 0x72, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x72, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x5f, 0x73, 0x74, 0x6f, 0x70, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x41, 0x64, 0x64, + 0x72, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x28, 0x0a, 0x10, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0e, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, + 0x26, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x5f, 0x73, 0x74, + 0x6f, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x41, + 0x64, 0x64, 0x72, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x70, 0x6f, + 0x72, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, + 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, + 0x28, 0x0a, 0x10, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, + 0x74, 0x6f, 0x70, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x74, + 0x65, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x28, 0x0a, 0x10, 0x6c, 0x6f, 0x63, + 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x0b, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x74, + 0x61, 0x72, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x72, + 0x74, 0x5f, 0x73, 0x74, 0x6f, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x6c, 0x6f, + 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x53, 0x0a, 0x06, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 0x2e, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x70, 0x73, 0x65, 0x63, 0x2e, 0x53, + 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x61, 0x74, + 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3b, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x59, + 0x50, 0x41, 0x53, 0x53, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x49, 0x53, 0x43, 0x41, 0x52, + 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x53, 0x4f, 0x4c, 0x56, 0x45, 0x10, 0x02, + 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x4f, 0x54, 0x45, 0x43, 0x54, 0x10, 0x03, 0x22, 0xef, 0x04, + 0x0a, 0x0e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x70, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x08, 0x73, 0x70, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x19, 0x0a, + 0x08, 0x73, 0x61, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x07, 0x73, 0x61, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, + 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, + 0x72, 0x69, 0x74, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6f, 0x75, 0x74, 0x62, 0x6f, + 0x75, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4f, 0x75, 0x74, + 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x41, 0x64, 0x64, 0x72, 0x53, 0x74, 0x61, 0x72, + 0x74, 0x12, 0x28, 0x0a, 0x10, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x5f, 0x73, 0x74, 0x6f, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x41, 0x64, 0x64, 0x72, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x28, 0x0a, 0x10, 0x6c, + 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x41, 0x64, 0x64, 0x72, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x5f, 0x73, 0x74, 0x6f, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x1a, 0x0a, + 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x72, 0x74, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, + 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x74, 0x6f, 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x6f, 0x70, 0x12, + 0x28, 0x0a, 0x10, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x6c, 0x6f, 0x63, 0x61, 0x6c, + 0x50, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, + 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x74, 0x6f, 0x70, 0x18, 0x0d, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x6f, + 0x70, 0x12, 0x3f, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x27, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, + 0x70, 0x73, 0x65, 0x63, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3b, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0a, 0x0a, 0x06, + 0x42, 0x59, 0x50, 0x41, 0x53, 0x53, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x49, 0x53, 0x43, + 0x41, 0x52, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x53, 0x4f, 0x4c, 0x56, 0x45, + 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x4f, 0x54, 0x45, 0x43, 0x54, 0x10, 0x03, 0x22, + 0x8d, 0x05, 0x0a, 0x13, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x41, 0x73, 0x73, 0x6f, + 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x10, 0x0a, + 0x03, 0x73, 0x70, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x73, 0x70, 0x69, 0x12, + 0x4f, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x33, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, + 0x70, 0x73, 0x65, 0x63, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x41, 0x73, 0x73, + 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x49, 0x50, 0x53, 0x65, 0x63, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, + 0x12, 0x3a, 0x0a, 0x0a, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x61, 0x6c, 0x67, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, + 0x70, 0x2e, 0x69, 0x70, 0x73, 0x65, 0x63, 0x2e, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x41, 0x6c, + 0x67, 0x52, 0x09, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x41, 0x6c, 0x67, 0x12, 0x1d, 0x0a, 0x0a, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x73, 0x61, 0x6c, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x0a, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x53, 0x61, 0x6c, 0x74, 0x12, 0x37, 0x0a, 0x09, + 0x69, 0x6e, 0x74, 0x65, 0x67, 0x5f, 0x61, 0x6c, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x1a, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x70, 0x73, + 0x65, 0x63, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x41, 0x6c, 0x67, 0x52, 0x08, 0x69, 0x6e, 0x74, + 0x65, 0x67, 0x41, 0x6c, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x5f, 0x6b, + 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x4b, + 0x65, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x5f, 0x65, 0x73, 0x6e, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x06, 0x75, 0x73, 0x65, 0x45, 0x73, 0x6e, 0x12, 0x26, 0x0a, 0x0f, 0x75, + 0x73, 0x65, 0x5f, 0x61, 0x6e, 0x74, 0x69, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x79, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x41, 0x6e, 0x74, 0x69, 0x52, 0x65, 0x70, + 0x6c, 0x61, 0x79, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x73, 0x72, + 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x75, + 0x6e, 0x6e, 0x65, 0x6c, 0x53, 0x72, 0x63, 0x41, 0x64, 0x64, 0x72, 0x12, 0x26, 0x0a, 0x0f, 0x74, + 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x64, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x44, 0x73, 0x74, 0x41, + 0x64, 0x64, 0x72, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x75, 0x64, + 0x70, 0x5f, 0x65, 0x6e, 0x63, 0x61, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x65, + 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x55, 0x64, 0x70, 0x45, 0x6e, 0x63, 0x61, 0x70, 0x12, 0x26, 0x0a, + 0x0f, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x73, 0x72, 0x63, 0x5f, 0x70, 0x6f, 0x72, 0x74, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x53, 0x72, + 0x63, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, + 0x64, 0x73, 0x74, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, + 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x44, 0x73, 0x74, 0x50, 0x6f, 0x72, 0x74, 0x22, 0x20, 0x0a, + 0x0d, 0x49, 0x50, 0x53, 0x65, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x06, + 0x0a, 0x02, 0x41, 0x48, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x45, 0x53, 0x50, 0x10, 0x01, 0x22, + 0x80, 0x01, 0x0a, 0x10, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x61, 0x5f, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0d, 0x52, 0x05, 0x73, 0x61, 0x4f, 0x75, 0x74, 0x12, 0x13, 0x0a, 0x05, 0x73, 0x61, 0x5f, + 0x69, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x61, 0x49, 0x6e, 0x12, 0x22, + 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x68, 0x6f, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x48, 0x6f, 0x70, 0x41, 0x64, + 0x64, 0x72, 0x2a, 0xd0, 0x01, 0x0a, 0x09, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x41, 0x6c, 0x67, + 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x4f, 0x4e, 0x45, 0x5f, 0x43, 0x52, 0x59, 0x50, 0x54, 0x4f, 0x10, + 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, 0x43, 0x42, 0x43, 0x5f, 0x31, 0x32, 0x38, + 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, 0x43, 0x42, 0x43, 0x5f, 0x31, 0x39, + 0x32, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, 0x43, 0x42, 0x43, 0x5f, 0x32, + 0x35, 0x36, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, 0x43, 0x54, 0x52, 0x5f, + 0x31, 0x32, 0x38, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, 0x43, 0x54, 0x52, + 0x5f, 0x31, 0x39, 0x32, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, 0x43, 0x54, + 0x52, 0x5f, 0x32, 0x35, 0x36, 0x10, 0x06, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, 0x47, + 0x43, 0x4d, 0x5f, 0x31, 0x32, 0x38, 0x10, 0x07, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, + 0x47, 0x43, 0x4d, 0x5f, 0x31, 0x39, 0x32, 0x10, 0x08, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, + 0x5f, 0x47, 0x43, 0x4d, 0x5f, 0x32, 0x35, 0x36, 0x10, 0x09, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, + 0x53, 0x5f, 0x43, 0x42, 0x43, 0x10, 0x0a, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x45, 0x53, 0x33, 0x5f, + 0x43, 0x42, 0x43, 0x10, 0x0b, 0x2a, 0x76, 0x0a, 0x08, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x41, 0x6c, + 0x67, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x4f, 0x4e, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x47, 0x10, + 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x44, 0x35, 0x5f, 0x39, 0x36, 0x10, 0x01, 0x12, 0x0b, 0x0a, + 0x07, 0x53, 0x48, 0x41, 0x31, 0x5f, 0x39, 0x36, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x48, + 0x41, 0x5f, 0x32, 0x35, 0x36, 0x5f, 0x39, 0x36, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x48, + 0x41, 0x5f, 0x32, 0x35, 0x36, 0x5f, 0x31, 0x32, 0x38, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b, 0x53, + 0x48, 0x41, 0x5f, 0x33, 0x38, 0x34, 0x5f, 0x31, 0x39, 0x32, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, + 0x53, 0x48, 0x41, 0x5f, 0x35, 0x31, 0x32, 0x5f, 0x32, 0x35, 0x36, 0x10, 0x06, 0x42, 0x3c, 0x5a, + 0x3a, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, + 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x69, 0x70, 0x73, 0x65, + 0x63, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x69, 0x70, 0x73, 0x65, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_ipsec_ipsec_proto_rawDescOnce sync.Once + file_ligato_vpp_ipsec_ipsec_proto_rawDescData = file_ligato_vpp_ipsec_ipsec_proto_rawDesc +) + +func file_ligato_vpp_ipsec_ipsec_proto_rawDescGZIP() []byte { + file_ligato_vpp_ipsec_ipsec_proto_rawDescOnce.Do(func() { + file_ligato_vpp_ipsec_ipsec_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_ipsec_ipsec_proto_rawDescData) + }) + return file_ligato_vpp_ipsec_ipsec_proto_rawDescData +} + +var file_ligato_vpp_ipsec_ipsec_proto_enumTypes = make([]protoimpl.EnumInfo, 5) +var file_ligato_vpp_ipsec_ipsec_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_ligato_vpp_ipsec_ipsec_proto_goTypes = []interface{}{ + (CryptoAlg)(0), // 0: ligato.vpp.ipsec.CryptoAlg + (IntegAlg)(0), // 1: ligato.vpp.ipsec.IntegAlg + (SecurityPolicyDatabase_PolicyEntry_Action)(0), // 2: ligato.vpp.ipsec.SecurityPolicyDatabase.PolicyEntry.Action + (SecurityPolicy_Action)(0), // 3: ligato.vpp.ipsec.SecurityPolicy.Action + (SecurityAssociation_IPSecProtocol)(0), // 4: ligato.vpp.ipsec.SecurityAssociation.IPSecProtocol + (*SecurityPolicyDatabase)(nil), // 5: ligato.vpp.ipsec.SecurityPolicyDatabase + (*SecurityPolicy)(nil), // 6: ligato.vpp.ipsec.SecurityPolicy + (*SecurityAssociation)(nil), // 7: ligato.vpp.ipsec.SecurityAssociation + (*TunnelProtection)(nil), // 8: ligato.vpp.ipsec.TunnelProtection + (*SecurityPolicyDatabase_Interface)(nil), // 9: ligato.vpp.ipsec.SecurityPolicyDatabase.Interface + (*SecurityPolicyDatabase_PolicyEntry)(nil), // 10: ligato.vpp.ipsec.SecurityPolicyDatabase.PolicyEntry +} +var file_ligato_vpp_ipsec_ipsec_proto_depIdxs = []int32{ + 9, // 0: ligato.vpp.ipsec.SecurityPolicyDatabase.interfaces:type_name -> ligato.vpp.ipsec.SecurityPolicyDatabase.Interface + 10, // 1: ligato.vpp.ipsec.SecurityPolicyDatabase.policy_entries:type_name -> ligato.vpp.ipsec.SecurityPolicyDatabase.PolicyEntry + 3, // 2: ligato.vpp.ipsec.SecurityPolicy.action:type_name -> ligato.vpp.ipsec.SecurityPolicy.Action + 4, // 3: ligato.vpp.ipsec.SecurityAssociation.protocol:type_name -> ligato.vpp.ipsec.SecurityAssociation.IPSecProtocol + 0, // 4: ligato.vpp.ipsec.SecurityAssociation.crypto_alg:type_name -> ligato.vpp.ipsec.CryptoAlg + 1, // 5: ligato.vpp.ipsec.SecurityAssociation.integ_alg:type_name -> ligato.vpp.ipsec.IntegAlg + 2, // 6: ligato.vpp.ipsec.SecurityPolicyDatabase.PolicyEntry.action:type_name -> ligato.vpp.ipsec.SecurityPolicyDatabase.PolicyEntry.Action + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_ipsec_ipsec_proto_init() } +func file_ligato_vpp_ipsec_ipsec_proto_init() { + if File_ligato_vpp_ipsec_ipsec_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_ipsec_ipsec_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SecurityPolicyDatabase); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_ipsec_ipsec_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SecurityPolicy); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_ipsec_ipsec_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SecurityAssociation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_ipsec_ipsec_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TunnelProtection); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_ipsec_ipsec_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SecurityPolicyDatabase_Interface); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_ipsec_ipsec_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SecurityPolicyDatabase_PolicyEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_ipsec_ipsec_proto_rawDesc, + NumEnums: 5, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_ipsec_ipsec_proto_goTypes, + DependencyIndexes: file_ligato_vpp_ipsec_ipsec_proto_depIdxs, + EnumInfos: file_ligato_vpp_ipsec_ipsec_proto_enumTypes, + MessageInfos: file_ligato_vpp_ipsec_ipsec_proto_msgTypes, + }.Build() + File_ligato_vpp_ipsec_ipsec_proto = out.File + file_ligato_vpp_ipsec_ipsec_proto_rawDesc = nil + file_ligato_vpp_ipsec_ipsec_proto_goTypes = nil + file_ligato_vpp_ipsec_ipsec_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/l2/bridge_domain.pb.go b/proto/ligato/vpp/l2/bridge_domain.pb.go index fc3b5833ca..8e5e06f9cb 100644 --- a/proto/ligato/vpp/l2/bridge_domain.pb.go +++ b/proto/ligato/vpp/l2/bridge_domain.pb.go @@ -1,265 +1,398 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/l2/bridge_domain.proto package vpp_l2 import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type BridgeDomain struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Flood bool `protobuf:"varint,2,opt,name=flood,proto3" json:"flood,omitempty"` - UnknownUnicastFlood bool `protobuf:"varint,3,opt,name=unknown_unicast_flood,json=unknownUnicastFlood,proto3" json:"unknown_unicast_flood,omitempty"` - Forward bool `protobuf:"varint,4,opt,name=forward,proto3" json:"forward,omitempty"` - Learn bool `protobuf:"varint,5,opt,name=learn,proto3" json:"learn,omitempty"` - ArpTermination bool `protobuf:"varint,6,opt,name=arp_termination,json=arpTermination,proto3" json:"arp_termination,omitempty"` - MacAge uint32 `protobuf:"varint,7,opt,name=mac_age,json=macAge,proto3" json:"mac_age,omitempty"` - Interfaces []*BridgeDomain_Interface `protobuf:"bytes,100,rep,name=interfaces,proto3" json:"interfaces,omitempty"` - ArpTerminationTable []*BridgeDomain_ArpTerminationEntry `protobuf:"bytes,102,rep,name=arp_termination_table,json=arpTerminationTable,proto3" json:"arp_termination_table,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BridgeDomain) Reset() { *m = BridgeDomain{} } -func (m *BridgeDomain) String() string { return proto.CompactTextString(m) } -func (*BridgeDomain) ProtoMessage() {} -func (*BridgeDomain) Descriptor() ([]byte, []int) { - return fileDescriptor_586a08f7e77c0089, []int{0} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // bridge domain name (can be any string) + Flood bool `protobuf:"varint,2,opt,name=flood,proto3" json:"flood,omitempty"` // enable/disable broadcast/multicast flooding in the BD + UnknownUnicastFlood bool `protobuf:"varint,3,opt,name=unknown_unicast_flood,json=unknownUnicastFlood,proto3" json:"unknown_unicast_flood,omitempty"` // enable/disable unknown unicast flood in the BD + Forward bool `protobuf:"varint,4,opt,name=forward,proto3" json:"forward,omitempty"` // enable/disable forwarding on all interfaces in the BD + Learn bool `protobuf:"varint,5,opt,name=learn,proto3" json:"learn,omitempty"` // enable/disable learning on all interfaces in the BD + ArpTermination bool `protobuf:"varint,6,opt,name=arp_termination,json=arpTermination,proto3" json:"arp_termination,omitempty"` // enable/disable ARP termination in the BD + MacAge uint32 `protobuf:"varint,7,opt,name=mac_age,json=macAge,proto3" json:"mac_age,omitempty"` // MAC aging time in min, 0 for disabled aging + Interfaces []*BridgeDomain_Interface `protobuf:"bytes,100,rep,name=interfaces,proto3" json:"interfaces,omitempty"` // list of interfaces + ArpTerminationTable []*BridgeDomain_ArpTerminationEntry `protobuf:"bytes,102,rep,name=arp_termination_table,json=arpTerminationTable,proto3" json:"arp_termination_table,omitempty"` // list of ARP termination entries +} + +func (x *BridgeDomain) Reset() { + *x = BridgeDomain{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_l2_bridge_domain_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BridgeDomain) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BridgeDomain.Unmarshal(m, b) -} -func (m *BridgeDomain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BridgeDomain.Marshal(b, m, deterministic) -} -func (m *BridgeDomain) XXX_Merge(src proto.Message) { - xxx_messageInfo_BridgeDomain.Merge(m, src) +func (x *BridgeDomain) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BridgeDomain) XXX_Size() int { - return xxx_messageInfo_BridgeDomain.Size(m) -} -func (m *BridgeDomain) XXX_DiscardUnknown() { - xxx_messageInfo_BridgeDomain.DiscardUnknown(m) + +func (*BridgeDomain) ProtoMessage() {} + +func (x *BridgeDomain) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_l2_bridge_domain_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BridgeDomain proto.InternalMessageInfo +// Deprecated: Use BridgeDomain.ProtoReflect.Descriptor instead. +func (*BridgeDomain) Descriptor() ([]byte, []int) { + return file_ligato_vpp_l2_bridge_domain_proto_rawDescGZIP(), []int{0} +} -func (m *BridgeDomain) GetName() string { - if m != nil { - return m.Name +func (x *BridgeDomain) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *BridgeDomain) GetFlood() bool { - if m != nil { - return m.Flood +func (x *BridgeDomain) GetFlood() bool { + if x != nil { + return x.Flood } return false } -func (m *BridgeDomain) GetUnknownUnicastFlood() bool { - if m != nil { - return m.UnknownUnicastFlood +func (x *BridgeDomain) GetUnknownUnicastFlood() bool { + if x != nil { + return x.UnknownUnicastFlood } return false } -func (m *BridgeDomain) GetForward() bool { - if m != nil { - return m.Forward +func (x *BridgeDomain) GetForward() bool { + if x != nil { + return x.Forward } return false } -func (m *BridgeDomain) GetLearn() bool { - if m != nil { - return m.Learn +func (x *BridgeDomain) GetLearn() bool { + if x != nil { + return x.Learn } return false } -func (m *BridgeDomain) GetArpTermination() bool { - if m != nil { - return m.ArpTermination +func (x *BridgeDomain) GetArpTermination() bool { + if x != nil { + return x.ArpTermination } return false } -func (m *BridgeDomain) GetMacAge() uint32 { - if m != nil { - return m.MacAge +func (x *BridgeDomain) GetMacAge() uint32 { + if x != nil { + return x.MacAge } return 0 } -func (m *BridgeDomain) GetInterfaces() []*BridgeDomain_Interface { - if m != nil { - return m.Interfaces +func (x *BridgeDomain) GetInterfaces() []*BridgeDomain_Interface { + if x != nil { + return x.Interfaces } return nil } -func (m *BridgeDomain) GetArpTerminationTable() []*BridgeDomain_ArpTerminationEntry { - if m != nil { - return m.ArpTerminationTable +func (x *BridgeDomain) GetArpTerminationTable() []*BridgeDomain_ArpTerminationEntry { + if x != nil { + return x.ArpTerminationTable } return nil } type BridgeDomain_Interface struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - BridgedVirtualInterface bool `protobuf:"varint,2,opt,name=bridged_virtual_interface,json=bridgedVirtualInterface,proto3" json:"bridged_virtual_interface,omitempty"` - SplitHorizonGroup uint32 `protobuf:"varint,3,opt,name=split_horizon_group,json=splitHorizonGroup,proto3" json:"split_horizon_group,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BridgeDomain_Interface) Reset() { *m = BridgeDomain_Interface{} } -func (m *BridgeDomain_Interface) String() string { return proto.CompactTextString(m) } -func (*BridgeDomain_Interface) ProtoMessage() {} -func (*BridgeDomain_Interface) Descriptor() ([]byte, []int) { - return fileDescriptor_586a08f7e77c0089, []int{0, 0} + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // interface name belonging to this bridge domain + BridgedVirtualInterface bool `protobuf:"varint,2,opt,name=bridged_virtual_interface,json=bridgedVirtualInterface,proto3" json:"bridged_virtual_interface,omitempty"` // true if this is a BVI interface + SplitHorizonGroup uint32 `protobuf:"varint,3,opt,name=split_horizon_group,json=splitHorizonGroup,proto3" json:"split_horizon_group,omitempty"` // VXLANs in the same BD need the same non-zero SHG } -func (m *BridgeDomain_Interface) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BridgeDomain_Interface.Unmarshal(m, b) -} -func (m *BridgeDomain_Interface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BridgeDomain_Interface.Marshal(b, m, deterministic) -} -func (m *BridgeDomain_Interface) XXX_Merge(src proto.Message) { - xxx_messageInfo_BridgeDomain_Interface.Merge(m, src) +func (x *BridgeDomain_Interface) Reset() { + *x = BridgeDomain_Interface{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_l2_bridge_domain_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BridgeDomain_Interface) XXX_Size() int { - return xxx_messageInfo_BridgeDomain_Interface.Size(m) + +func (x *BridgeDomain_Interface) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BridgeDomain_Interface) XXX_DiscardUnknown() { - xxx_messageInfo_BridgeDomain_Interface.DiscardUnknown(m) + +func (*BridgeDomain_Interface) ProtoMessage() {} + +func (x *BridgeDomain_Interface) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_l2_bridge_domain_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BridgeDomain_Interface proto.InternalMessageInfo +// Deprecated: Use BridgeDomain_Interface.ProtoReflect.Descriptor instead. +func (*BridgeDomain_Interface) Descriptor() ([]byte, []int) { + return file_ligato_vpp_l2_bridge_domain_proto_rawDescGZIP(), []int{0, 0} +} -func (m *BridgeDomain_Interface) GetName() string { - if m != nil { - return m.Name +func (x *BridgeDomain_Interface) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *BridgeDomain_Interface) GetBridgedVirtualInterface() bool { - if m != nil { - return m.BridgedVirtualInterface +func (x *BridgeDomain_Interface) GetBridgedVirtualInterface() bool { + if x != nil { + return x.BridgedVirtualInterface } return false } -func (m *BridgeDomain_Interface) GetSplitHorizonGroup() uint32 { - if m != nil { - return m.SplitHorizonGroup +func (x *BridgeDomain_Interface) GetSplitHorizonGroup() uint32 { + if x != nil { + return x.SplitHorizonGroup } return 0 } type BridgeDomain_ArpTerminationEntry struct { - IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` - PhysAddress string `protobuf:"bytes,2,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BridgeDomain_ArpTerminationEntry) Reset() { *m = BridgeDomain_ArpTerminationEntry{} } -func (m *BridgeDomain_ArpTerminationEntry) String() string { return proto.CompactTextString(m) } -func (*BridgeDomain_ArpTerminationEntry) ProtoMessage() {} -func (*BridgeDomain_ArpTerminationEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_586a08f7e77c0089, []int{0, 1} + IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` // IP address + PhysAddress string `protobuf:"bytes,2,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"` // MAC address matching to the IP } -func (m *BridgeDomain_ArpTerminationEntry) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BridgeDomain_ArpTerminationEntry.Unmarshal(m, b) -} -func (m *BridgeDomain_ArpTerminationEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BridgeDomain_ArpTerminationEntry.Marshal(b, m, deterministic) -} -func (m *BridgeDomain_ArpTerminationEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_BridgeDomain_ArpTerminationEntry.Merge(m, src) +func (x *BridgeDomain_ArpTerminationEntry) Reset() { + *x = BridgeDomain_ArpTerminationEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_l2_bridge_domain_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BridgeDomain_ArpTerminationEntry) XXX_Size() int { - return xxx_messageInfo_BridgeDomain_ArpTerminationEntry.Size(m) + +func (x *BridgeDomain_ArpTerminationEntry) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BridgeDomain_ArpTerminationEntry) XXX_DiscardUnknown() { - xxx_messageInfo_BridgeDomain_ArpTerminationEntry.DiscardUnknown(m) + +func (*BridgeDomain_ArpTerminationEntry) ProtoMessage() {} + +func (x *BridgeDomain_ArpTerminationEntry) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_l2_bridge_domain_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BridgeDomain_ArpTerminationEntry proto.InternalMessageInfo +// Deprecated: Use BridgeDomain_ArpTerminationEntry.ProtoReflect.Descriptor instead. +func (*BridgeDomain_ArpTerminationEntry) Descriptor() ([]byte, []int) { + return file_ligato_vpp_l2_bridge_domain_proto_rawDescGZIP(), []int{0, 1} +} -func (m *BridgeDomain_ArpTerminationEntry) GetIpAddress() string { - if m != nil { - return m.IpAddress +func (x *BridgeDomain_ArpTerminationEntry) GetIpAddress() string { + if x != nil { + return x.IpAddress } return "" } -func (m *BridgeDomain_ArpTerminationEntry) GetPhysAddress() string { - if m != nil { - return m.PhysAddress +func (x *BridgeDomain_ArpTerminationEntry) GetPhysAddress() string { + if x != nil { + return x.PhysAddress } return "" } -func init() { - proto.RegisterType((*BridgeDomain)(nil), "ligato.vpp.l2.BridgeDomain") - proto.RegisterType((*BridgeDomain_Interface)(nil), "ligato.vpp.l2.BridgeDomain.Interface") - proto.RegisterType((*BridgeDomain_ArpTerminationEntry)(nil), "ligato.vpp.l2.BridgeDomain.ArpTerminationEntry") -} - -func init() { proto.RegisterFile("ligato/vpp/l2/bridge_domain.proto", fileDescriptor_586a08f7e77c0089) } - -var fileDescriptor_586a08f7e77c0089 = []byte{ - // 429 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xcf, 0x6e, 0x13, 0x31, - 0x10, 0xc6, 0xb5, 0x6d, 0x9a, 0x90, 0x69, 0x03, 0xc2, 0xa1, 0xaa, 0xa9, 0x84, 0x94, 0x22, 0x21, - 0x72, 0x61, 0x57, 0xda, 0x22, 0x0e, 0x70, 0x4a, 0x45, 0xf9, 0x73, 0x5d, 0x15, 0x90, 0xb8, 0x58, - 0x93, 0xb5, 0xb3, 0xb5, 0xf0, 0xda, 0x96, 0xd7, 0xd9, 0xaa, 0xbc, 0x02, 0x4f, 0xcb, 0x1b, 0xa0, - 0xd8, 0x9b, 0xb4, 0x41, 0x51, 0x6f, 0x9e, 0xf9, 0x7e, 0x9e, 0xf9, 0x34, 0x33, 0x70, 0xa6, 0x64, - 0x85, 0xde, 0x64, 0xad, 0xb5, 0x99, 0xca, 0xb3, 0xb9, 0x93, 0xbc, 0x12, 0x8c, 0x9b, 0x1a, 0xa5, - 0x4e, 0xad, 0x33, 0xde, 0x90, 0x51, 0x44, 0xd2, 0xd6, 0xda, 0x54, 0xe5, 0x2f, 0xff, 0xf6, 0xe0, - 0xe8, 0x22, 0x60, 0x1f, 0x03, 0x45, 0x08, 0xf4, 0x34, 0xd6, 0x82, 0x26, 0x93, 0x64, 0x3a, 0x2c, - 0xc2, 0x9b, 0x3c, 0x83, 0x83, 0x85, 0x32, 0x86, 0xd3, 0xbd, 0x49, 0x32, 0x7d, 0x54, 0xc4, 0x80, - 0xe4, 0x70, 0xbc, 0xd4, 0xbf, 0xb4, 0xb9, 0xd1, 0x6c, 0xa9, 0x65, 0x89, 0x8d, 0x67, 0x91, 0xda, - 0x0f, 0xd4, 0xb8, 0x13, 0xbf, 0x45, 0xed, 0x53, 0xf8, 0x43, 0x61, 0xb0, 0x30, 0xee, 0x06, 0x1d, - 0xa7, 0xbd, 0x40, 0xad, 0xc3, 0x55, 0x0f, 0x25, 0xd0, 0x69, 0x7a, 0x10, 0x7b, 0x84, 0x80, 0xbc, - 0x86, 0x27, 0xe8, 0x2c, 0xf3, 0xc2, 0xd5, 0x52, 0xa3, 0x97, 0x46, 0xd3, 0x7e, 0xd0, 0x1f, 0xa3, - 0xb3, 0x57, 0x77, 0x59, 0x72, 0x02, 0x83, 0x1a, 0x4b, 0x86, 0x95, 0xa0, 0x83, 0x49, 0x32, 0x1d, - 0x15, 0xfd, 0x1a, 0xcb, 0x59, 0x25, 0xc8, 0x25, 0x80, 0xd4, 0x5e, 0xb8, 0x05, 0x96, 0xa2, 0xa1, - 0x7c, 0xb2, 0x3f, 0x3d, 0xcc, 0x5f, 0xa5, 0x5b, 0x43, 0x48, 0xef, 0x0f, 0x20, 0xfd, 0xba, 0xa6, - 0x8b, 0x7b, 0x1f, 0x49, 0x09, 0xc7, 0xff, 0x19, 0x61, 0x1e, 0xe7, 0x4a, 0xd0, 0x45, 0xa8, 0x98, - 0x3d, 0x54, 0x71, 0xb6, 0x65, 0xf5, 0x52, 0x7b, 0x77, 0x5b, 0x8c, 0xb7, 0xfd, 0x5f, 0xad, 0x6a, - 0x9d, 0xfe, 0x49, 0x60, 0xb8, 0x69, 0xbf, 0x73, 0x13, 0xef, 0xe1, 0x79, 0x5c, 0x2a, 0x67, 0xad, - 0x74, 0x7e, 0x89, 0x8a, 0x6d, 0x4c, 0x76, 0xdb, 0x39, 0xe9, 0x80, 0xef, 0x51, 0xbf, 0xab, 0x97, - 0xc2, 0xb8, 0xb1, 0x4a, 0x7a, 0x76, 0x6d, 0x9c, 0xfc, 0x6d, 0x34, 0xab, 0x9c, 0x59, 0xda, 0xb0, - 0xad, 0x51, 0xf1, 0x34, 0x48, 0x5f, 0xa2, 0xf2, 0x79, 0x25, 0x9c, 0xfe, 0x80, 0xf1, 0x0e, 0xe7, - 0xe4, 0x05, 0x80, 0xb4, 0x0c, 0x39, 0x77, 0xa2, 0x69, 0x3a, 0x73, 0x43, 0x69, 0x67, 0x31, 0x41, - 0xce, 0xe0, 0xc8, 0x5e, 0xdf, 0x36, 0x1b, 0x60, 0x2f, 0x00, 0x87, 0xab, 0x5c, 0x87, 0x5c, 0xbc, - 0xfb, 0xf9, 0xb6, 0x32, 0xeb, 0x81, 0xc9, 0x70, 0xad, 0x6f, 0xb0, 0x12, 0xda, 0x67, 0xed, 0x79, - 0x16, 0xae, 0x34, 0xdb, 0xba, 0xe3, 0x0f, 0xad, 0xb5, 0x4c, 0xe5, 0xf3, 0x7e, 0xd0, 0xce, 0xff, - 0x05, 0x00, 0x00, 0xff, 0xff, 0x5e, 0x72, 0x60, 0x48, 0xe6, 0x02, 0x00, 0x00, +var File_ligato_vpp_l2_bridge_domain_proto protoreflect.FileDescriptor + +var file_ligato_vpp_l2_bridge_domain_proto_rawDesc = []byte{ + 0x0a, 0x21, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x32, 0x2f, + 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, + 0x6c, 0x32, 0x22, 0xf1, 0x04, 0x0a, 0x0c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x6f, 0x6f, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6c, 0x6f, 0x6f, 0x64, 0x12, 0x32, 0x0a, + 0x15, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x5f, 0x75, 0x6e, 0x69, 0x63, 0x61, 0x73, 0x74, + 0x5f, 0x66, 0x6c, 0x6f, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x75, 0x6e, + 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x55, 0x6e, 0x69, 0x63, 0x61, 0x73, 0x74, 0x46, 0x6c, 0x6f, 0x6f, + 0x64, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x07, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, + 0x65, 0x61, 0x72, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x6c, 0x65, 0x61, 0x72, + 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x72, 0x70, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x61, 0x72, 0x70, 0x54, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x61, + 0x63, 0x5f, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6d, 0x61, 0x63, + 0x41, 0x67, 0x65, 0x12, 0x45, 0x0a, 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x73, 0x18, 0x64, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x32, 0x2e, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x0a, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x63, 0x0a, 0x15, 0x61, 0x72, + 0x70, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x18, 0x66, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x32, 0x2e, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x41, 0x72, 0x70, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, 0x61, 0x72, 0x70, 0x54, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x1a, + 0x8b, 0x01, 0x0a, 0x09, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x3a, 0x0a, 0x19, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x64, 0x5f, 0x76, 0x69, 0x72, + 0x74, 0x75, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x64, 0x56, 0x69, 0x72, + 0x74, 0x75, 0x61, 0x6c, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x2e, 0x0a, + 0x13, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x5f, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x6f, 0x6e, 0x5f, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x73, 0x70, 0x6c, 0x69, + 0x74, 0x48, 0x6f, 0x72, 0x69, 0x7a, 0x6f, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x1a, 0x57, 0x0a, + 0x13, 0x41, 0x72, 0x70, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x79, 0x73, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x68, 0x79, 0x73, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, + 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x32, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x6c, 0x32, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_l2_bridge_domain_proto_rawDescOnce sync.Once + file_ligato_vpp_l2_bridge_domain_proto_rawDescData = file_ligato_vpp_l2_bridge_domain_proto_rawDesc +) + +func file_ligato_vpp_l2_bridge_domain_proto_rawDescGZIP() []byte { + file_ligato_vpp_l2_bridge_domain_proto_rawDescOnce.Do(func() { + file_ligato_vpp_l2_bridge_domain_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_l2_bridge_domain_proto_rawDescData) + }) + return file_ligato_vpp_l2_bridge_domain_proto_rawDescData +} + +var file_ligato_vpp_l2_bridge_domain_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_ligato_vpp_l2_bridge_domain_proto_goTypes = []interface{}{ + (*BridgeDomain)(nil), // 0: ligato.vpp.l2.BridgeDomain + (*BridgeDomain_Interface)(nil), // 1: ligato.vpp.l2.BridgeDomain.Interface + (*BridgeDomain_ArpTerminationEntry)(nil), // 2: ligato.vpp.l2.BridgeDomain.ArpTerminationEntry +} +var file_ligato_vpp_l2_bridge_domain_proto_depIdxs = []int32{ + 1, // 0: ligato.vpp.l2.BridgeDomain.interfaces:type_name -> ligato.vpp.l2.BridgeDomain.Interface + 2, // 1: ligato.vpp.l2.BridgeDomain.arp_termination_table:type_name -> ligato.vpp.l2.BridgeDomain.ArpTerminationEntry + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_l2_bridge_domain_proto_init() } +func file_ligato_vpp_l2_bridge_domain_proto_init() { + if File_ligato_vpp_l2_bridge_domain_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_l2_bridge_domain_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BridgeDomain); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_l2_bridge_domain_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BridgeDomain_Interface); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_l2_bridge_domain_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BridgeDomain_ArpTerminationEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_l2_bridge_domain_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_l2_bridge_domain_proto_goTypes, + DependencyIndexes: file_ligato_vpp_l2_bridge_domain_proto_depIdxs, + MessageInfos: file_ligato_vpp_l2_bridge_domain_proto_msgTypes, + }.Build() + File_ligato_vpp_l2_bridge_domain_proto = out.File + file_ligato_vpp_l2_bridge_domain_proto_rawDesc = nil + file_ligato_vpp_l2_bridge_domain_proto_goTypes = nil + file_ligato_vpp_l2_bridge_domain_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/l2/fib.pb.go b/proto/ligato/vpp/l2/fib.pb.go index a8e6448510..836ad2f47e 100644 --- a/proto/ligato/vpp/l2/fib.pb.go +++ b/proto/ligato/vpp/l2/fib.pb.go @@ -1,155 +1,258 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/l2/fib.proto package vpp_l2 import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type FIBEntry_Action int32 const ( - FIBEntry_FORWARD FIBEntry_Action = 0 - FIBEntry_DROP FIBEntry_Action = 1 + FIBEntry_FORWARD FIBEntry_Action = 0 // forward the matching frame + FIBEntry_DROP FIBEntry_Action = 1 // drop the matching frame ) -var FIBEntry_Action_name = map[int32]string{ - 0: "FORWARD", - 1: "DROP", -} +// Enum value maps for FIBEntry_Action. +var ( + FIBEntry_Action_name = map[int32]string{ + 0: "FORWARD", + 1: "DROP", + } + FIBEntry_Action_value = map[string]int32{ + "FORWARD": 0, + "DROP": 1, + } +) -var FIBEntry_Action_value = map[string]int32{ - "FORWARD": 0, - "DROP": 1, +func (x FIBEntry_Action) Enum() *FIBEntry_Action { + p := new(FIBEntry_Action) + *p = x + return p } func (x FIBEntry_Action) String() string { - return proto.EnumName(FIBEntry_Action_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (FIBEntry_Action) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ec355b66413dddf0, []int{0, 0} +func (FIBEntry_Action) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_l2_fib_proto_enumTypes[0].Descriptor() } -type FIBEntry struct { - PhysAddress string `protobuf:"bytes,1,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"` - BridgeDomain string `protobuf:"bytes,2,opt,name=bridge_domain,json=bridgeDomain,proto3" json:"bridge_domain,omitempty"` - Action FIBEntry_Action `protobuf:"varint,3,opt,name=action,proto3,enum=ligato.vpp.l2.FIBEntry_Action" json:"action,omitempty"` - OutgoingInterface string `protobuf:"bytes,4,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"` - StaticConfig bool `protobuf:"varint,5,opt,name=static_config,json=staticConfig,proto3" json:"static_config,omitempty"` - BridgedVirtualInterface bool `protobuf:"varint,6,opt,name=bridged_virtual_interface,json=bridgedVirtualInterface,proto3" json:"bridged_virtual_interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FIBEntry) Reset() { *m = FIBEntry{} } -func (m *FIBEntry) String() string { return proto.CompactTextString(m) } -func (*FIBEntry) ProtoMessage() {} -func (*FIBEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_ec355b66413dddf0, []int{0} +func (FIBEntry_Action) Type() protoreflect.EnumType { + return &file_ligato_vpp_l2_fib_proto_enumTypes[0] } -func (m *FIBEntry) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FIBEntry.Unmarshal(m, b) +func (x FIBEntry_Action) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *FIBEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FIBEntry.Marshal(b, m, deterministic) + +// Deprecated: Use FIBEntry_Action.Descriptor instead. +func (FIBEntry_Action) EnumDescriptor() ([]byte, []int) { + return file_ligato_vpp_l2_fib_proto_rawDescGZIP(), []int{0, 0} } -func (m *FIBEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_FIBEntry.Merge(m, src) + +type FIBEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PhysAddress string `protobuf:"bytes,1,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"` // unique destination MAC address + BridgeDomain string `protobuf:"bytes,2,opt,name=bridge_domain,json=bridgeDomain,proto3" json:"bridge_domain,omitempty"` // name of bridge domain this FIB table entry belongs to + Action FIBEntry_Action `protobuf:"varint,3,opt,name=action,proto3,enum=ligato.vpp.l2.FIBEntry_Action" json:"action,omitempty"` // action to tke on matching frames + OutgoingInterface string `protobuf:"bytes,4,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"` // outgoing interface for matching frames + StaticConfig bool `protobuf:"varint,5,opt,name=static_config,json=staticConfig,proto3" json:"static_config,omitempty"` // true if this is a statically configured FIB entry + BridgedVirtualInterface bool `protobuf:"varint,6,opt,name=bridged_virtual_interface,json=bridgedVirtualInterface,proto3" json:"bridged_virtual_interface,omitempty"` // the MAC address is a bridge virtual interface MAC } -func (m *FIBEntry) XXX_Size() int { - return xxx_messageInfo_FIBEntry.Size(m) + +func (x *FIBEntry) Reset() { + *x = FIBEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_l2_fib_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FIBEntry) XXX_DiscardUnknown() { - xxx_messageInfo_FIBEntry.DiscardUnknown(m) + +func (x *FIBEntry) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_FIBEntry proto.InternalMessageInfo +func (*FIBEntry) ProtoMessage() {} -func (m *FIBEntry) GetPhysAddress() string { - if m != nil { - return m.PhysAddress +func (x *FIBEntry) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_l2_fib_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FIBEntry.ProtoReflect.Descriptor instead. +func (*FIBEntry) Descriptor() ([]byte, []int) { + return file_ligato_vpp_l2_fib_proto_rawDescGZIP(), []int{0} +} + +func (x *FIBEntry) GetPhysAddress() string { + if x != nil { + return x.PhysAddress } return "" } -func (m *FIBEntry) GetBridgeDomain() string { - if m != nil { - return m.BridgeDomain +func (x *FIBEntry) GetBridgeDomain() string { + if x != nil { + return x.BridgeDomain } return "" } -func (m *FIBEntry) GetAction() FIBEntry_Action { - if m != nil { - return m.Action +func (x *FIBEntry) GetAction() FIBEntry_Action { + if x != nil { + return x.Action } return FIBEntry_FORWARD } -func (m *FIBEntry) GetOutgoingInterface() string { - if m != nil { - return m.OutgoingInterface +func (x *FIBEntry) GetOutgoingInterface() string { + if x != nil { + return x.OutgoingInterface } return "" } -func (m *FIBEntry) GetStaticConfig() bool { - if m != nil { - return m.StaticConfig +func (x *FIBEntry) GetStaticConfig() bool { + if x != nil { + return x.StaticConfig } return false } -func (m *FIBEntry) GetBridgedVirtualInterface() bool { - if m != nil { - return m.BridgedVirtualInterface +func (x *FIBEntry) GetBridgedVirtualInterface() bool { + if x != nil { + return x.BridgedVirtualInterface } return false } -func init() { - proto.RegisterEnum("ligato.vpp.l2.FIBEntry_Action", FIBEntry_Action_name, FIBEntry_Action_value) - proto.RegisterType((*FIBEntry)(nil), "ligato.vpp.l2.FIBEntry") -} - -func init() { proto.RegisterFile("ligato/vpp/l2/fib.proto", fileDescriptor_ec355b66413dddf0) } - -var fileDescriptor_ec355b66413dddf0 = []byte{ - // 303 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0xcd, 0x4e, 0x2a, 0x31, - 0x18, 0x86, 0xcf, 0x70, 0x70, 0xc4, 0x02, 0x06, 0xbb, 0x61, 0xdc, 0x28, 0xe2, 0x86, 0x0d, 0x6d, - 0x32, 0x18, 0x16, 0xba, 0x02, 0x91, 0x84, 0x15, 0xa6, 0x0b, 0x4d, 0xdc, 0x34, 0x9d, 0xbf, 0xda, - 0x64, 0x6c, 0x9b, 0x4e, 0x99, 0x84, 0x6b, 0xf3, 0xe6, 0x0c, 0x2d, 0x63, 0x64, 0xfb, 0x3c, 0x6f, - 0xfb, 0x7e, 0xfd, 0x0a, 0x86, 0xa5, 0xe0, 0xcc, 0x2a, 0x5c, 0x6b, 0x8d, 0xcb, 0x18, 0x17, 0x22, - 0x41, 0xda, 0x28, 0xab, 0x60, 0xdf, 0x0b, 0x54, 0x6b, 0x8d, 0xca, 0x78, 0xfc, 0xdd, 0x02, 0x9d, - 0xf5, 0x66, 0xf9, 0x22, 0xad, 0xd9, 0xc3, 0x3b, 0xd0, 0xd3, 0x9f, 0xfb, 0x8a, 0xb2, 0x2c, 0x33, - 0x79, 0x55, 0x45, 0xc1, 0x28, 0x98, 0x5c, 0x90, 0xee, 0x81, 0x2d, 0x3c, 0x82, 0xf7, 0xa0, 0x9f, - 0x18, 0x91, 0xf1, 0x9c, 0x66, 0xea, 0x8b, 0x09, 0x19, 0xb5, 0x5c, 0xa6, 0xe7, 0xe1, 0xca, 0x31, - 0x38, 0x07, 0x21, 0x4b, 0xad, 0x50, 0x32, 0xfa, 0x3f, 0x0a, 0x26, 0x97, 0xf1, 0x0d, 0x3a, 0x29, - 0x45, 0x4d, 0x21, 0x5a, 0xb8, 0x14, 0x39, 0xa6, 0xe1, 0x14, 0x40, 0xb5, 0xb3, 0x5c, 0x09, 0xc9, - 0xa9, 0x90, 0x36, 0x37, 0x05, 0x4b, 0xf3, 0xa8, 0xed, 0x1a, 0xae, 0x1a, 0xb3, 0x69, 0xc4, 0x61, - 0x96, 0xca, 0x32, 0x2b, 0x52, 0x9a, 0x2a, 0x59, 0x08, 0x1e, 0x9d, 0x8d, 0x82, 0x49, 0x87, 0xf4, - 0x3c, 0x7c, 0x76, 0x0c, 0x3e, 0x82, 0x6b, 0x3f, 0x5b, 0x46, 0x6b, 0x61, 0xec, 0x8e, 0x95, 0x7f, - 0xae, 0x0e, 0xdd, 0x81, 0xe1, 0x31, 0xf0, 0xe6, 0xfd, 0x6f, 0xc1, 0xf8, 0x16, 0x84, 0x7e, 0x42, - 0xd8, 0x05, 0xe7, 0xeb, 0x2d, 0x79, 0x5f, 0x90, 0xd5, 0xe0, 0x1f, 0xec, 0x80, 0xf6, 0x8a, 0x6c, - 0x5f, 0x07, 0xc1, 0x72, 0xfe, 0xf1, 0xc0, 0x55, 0xf3, 0x38, 0xe1, 0xb6, 0x3d, 0x65, 0x3c, 0x97, - 0x16, 0xd7, 0x33, 0xec, 0xf6, 0x8d, 0x4f, 0xfe, 0xe1, 0xa9, 0xd6, 0x9a, 0x96, 0x71, 0x12, 0x3a, - 0x37, 0xfb, 0x09, 0x00, 0x00, 0xff, 0xff, 0xeb, 0x2e, 0x55, 0xe4, 0xa6, 0x01, 0x00, 0x00, +var File_ligato_vpp_l2_fib_proto protoreflect.FileDescriptor + +var file_ligato_vpp_l2_fib_proto_rawDesc = []byte{ + 0x0a, 0x17, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x32, 0x2f, + 0x66, 0x69, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x32, 0x22, 0xbb, 0x02, 0x0a, 0x08, 0x46, 0x49, 0x42, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x79, 0x73, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x68, 0x79, + 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x72, 0x69, 0x64, + 0x67, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x36, 0x0a, + 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x32, 0x2e, 0x46, 0x49, + 0x42, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, + 0x67, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x11, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x74, 0x65, 0x72, + 0x66, 0x61, 0x63, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x73, 0x74, 0x61, + 0x74, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3a, 0x0a, 0x19, 0x62, 0x72, 0x69, + 0x64, 0x67, 0x65, 0x64, 0x5f, 0x76, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x62, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x64, 0x56, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x49, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x22, 0x1f, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x0b, 0x0a, 0x07, 0x46, 0x4f, 0x52, 0x57, 0x41, 0x52, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, + 0x44, 0x52, 0x4f, 0x50, 0x10, 0x01, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, + 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x32, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x6c, 0x32, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_l2_fib_proto_rawDescOnce sync.Once + file_ligato_vpp_l2_fib_proto_rawDescData = file_ligato_vpp_l2_fib_proto_rawDesc +) + +func file_ligato_vpp_l2_fib_proto_rawDescGZIP() []byte { + file_ligato_vpp_l2_fib_proto_rawDescOnce.Do(func() { + file_ligato_vpp_l2_fib_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_l2_fib_proto_rawDescData) + }) + return file_ligato_vpp_l2_fib_proto_rawDescData +} + +var file_ligato_vpp_l2_fib_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_ligato_vpp_l2_fib_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_ligato_vpp_l2_fib_proto_goTypes = []interface{}{ + (FIBEntry_Action)(0), // 0: ligato.vpp.l2.FIBEntry.Action + (*FIBEntry)(nil), // 1: ligato.vpp.l2.FIBEntry +} +var file_ligato_vpp_l2_fib_proto_depIdxs = []int32{ + 0, // 0: ligato.vpp.l2.FIBEntry.action:type_name -> ligato.vpp.l2.FIBEntry.Action + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_l2_fib_proto_init() } +func file_ligato_vpp_l2_fib_proto_init() { + if File_ligato_vpp_l2_fib_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_l2_fib_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FIBEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_l2_fib_proto_rawDesc, + NumEnums: 1, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_l2_fib_proto_goTypes, + DependencyIndexes: file_ligato_vpp_l2_fib_proto_depIdxs, + EnumInfos: file_ligato_vpp_l2_fib_proto_enumTypes, + MessageInfos: file_ligato_vpp_l2_fib_proto_msgTypes, + }.Build() + File_ligato_vpp_l2_fib_proto = out.File + file_ligato_vpp_l2_fib_proto_rawDesc = nil + file_ligato_vpp_l2_fib_proto_goTypes = nil + file_ligato_vpp_l2_fib_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/l2/xconnect.pb.go b/proto/ligato/vpp/l2/xconnect.pb.go index aa2d22a77f..61f4dbea29 100644 --- a/proto/ligato/vpp/l2/xconnect.pb.go +++ b/proto/ligato/vpp/l2/xconnect.pb.go @@ -1,89 +1,163 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/l2/xconnect.proto package vpp_l2 import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type XConnectPair struct { - ReceiveInterface string `protobuf:"bytes,1,opt,name=receive_interface,json=receiveInterface,proto3" json:"receive_interface,omitempty"` - TransmitInterface string `protobuf:"bytes,2,opt,name=transmit_interface,json=transmitInterface,proto3" json:"transmit_interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *XConnectPair) Reset() { *m = XConnectPair{} } -func (m *XConnectPair) String() string { return proto.CompactTextString(m) } -func (*XConnectPair) ProtoMessage() {} -func (*XConnectPair) Descriptor() ([]byte, []int) { - return fileDescriptor_d21cc032e061c819, []int{0} + ReceiveInterface string `protobuf:"bytes,1,opt,name=receive_interface,json=receiveInterface,proto3" json:"receive_interface,omitempty"` + TransmitInterface string `protobuf:"bytes,2,opt,name=transmit_interface,json=transmitInterface,proto3" json:"transmit_interface,omitempty"` } -func (m *XConnectPair) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_XConnectPair.Unmarshal(m, b) -} -func (m *XConnectPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_XConnectPair.Marshal(b, m, deterministic) -} -func (m *XConnectPair) XXX_Merge(src proto.Message) { - xxx_messageInfo_XConnectPair.Merge(m, src) +func (x *XConnectPair) Reset() { + *x = XConnectPair{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_l2_xconnect_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *XConnectPair) XXX_Size() int { - return xxx_messageInfo_XConnectPair.Size(m) + +func (x *XConnectPair) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *XConnectPair) XXX_DiscardUnknown() { - xxx_messageInfo_XConnectPair.DiscardUnknown(m) + +func (*XConnectPair) ProtoMessage() {} + +func (x *XConnectPair) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_l2_xconnect_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_XConnectPair proto.InternalMessageInfo +// Deprecated: Use XConnectPair.ProtoReflect.Descriptor instead. +func (*XConnectPair) Descriptor() ([]byte, []int) { + return file_ligato_vpp_l2_xconnect_proto_rawDescGZIP(), []int{0} +} -func (m *XConnectPair) GetReceiveInterface() string { - if m != nil { - return m.ReceiveInterface +func (x *XConnectPair) GetReceiveInterface() string { + if x != nil { + return x.ReceiveInterface } return "" } -func (m *XConnectPair) GetTransmitInterface() string { - if m != nil { - return m.TransmitInterface +func (x *XConnectPair) GetTransmitInterface() string { + if x != nil { + return x.TransmitInterface } return "" } -func init() { - proto.RegisterType((*XConnectPair)(nil), "ligato.vpp.l2.XConnectPair") +var File_ligato_vpp_l2_xconnect_proto protoreflect.FileDescriptor + +var file_ligato_vpp_l2_xconnect_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x32, 0x2f, + 0x78, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x32, 0x22, 0x6a, 0x0a, + 0x0c, 0x58, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x50, 0x61, 0x69, 0x72, 0x12, 0x2b, 0x0a, + 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x74, 0x72, + 0x61, 0x6e, 0x73, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6d, 0x69, 0x74, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, + 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x32, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x6c, + 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_l2_xconnect_proto_rawDescOnce sync.Once + file_ligato_vpp_l2_xconnect_proto_rawDescData = file_ligato_vpp_l2_xconnect_proto_rawDesc +) + +func file_ligato_vpp_l2_xconnect_proto_rawDescGZIP() []byte { + file_ligato_vpp_l2_xconnect_proto_rawDescOnce.Do(func() { + file_ligato_vpp_l2_xconnect_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_l2_xconnect_proto_rawDescData) + }) + return file_ligato_vpp_l2_xconnect_proto_rawDescData } -func init() { proto.RegisterFile("ligato/vpp/l2/xconnect.proto", fileDescriptor_d21cc032e061c819) } - -var fileDescriptor_d21cc032e061c819 = []byte{ - // 173 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xc9, 0xc9, 0x4c, 0x4f, - 0x2c, 0xc9, 0xd7, 0x2f, 0x2b, 0x28, 0xd0, 0xcf, 0x31, 0xd2, 0xaf, 0x48, 0xce, 0xcf, 0xcb, 0x4b, - 0x4d, 0x2e, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x85, 0xc8, 0xea, 0x95, 0x15, 0x14, - 0xe8, 0xe5, 0x18, 0x29, 0x65, 0x71, 0xf1, 0x44, 0x38, 0x43, 0x14, 0x04, 0x24, 0x66, 0x16, 0x09, - 0x69, 0x73, 0x09, 0x16, 0xa5, 0x26, 0xa7, 0x66, 0x96, 0xa5, 0xc6, 0x67, 0xe6, 0x95, 0xa4, 0x16, - 0xa5, 0x25, 0x26, 0xa7, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x09, 0x40, 0x25, 0x3c, 0x61, - 0xe2, 0x42, 0xba, 0x5c, 0x42, 0x25, 0x45, 0x89, 0x79, 0xc5, 0xb9, 0x99, 0x25, 0x48, 0xaa, 0x99, - 0xc0, 0xaa, 0x05, 0x61, 0x32, 0x70, 0xe5, 0x4e, 0x66, 0x51, 0x26, 0xe9, 0xf9, 0x7a, 0x50, 0xfb, - 0x33, 0xc1, 0x0e, 0xd4, 0x4d, 0x4c, 0x4f, 0xcd, 0x2b, 0xd1, 0x2f, 0x33, 0xd6, 0x07, 0xbb, 0x4e, - 0x1f, 0xc5, 0xe9, 0xd6, 0x65, 0x05, 0x05, 0xf1, 0x39, 0x46, 0x49, 0x6c, 0x60, 0x39, 0x63, 0x40, - 0x00, 0x00, 0x00, 0xff, 0xff, 0xc7, 0x24, 0x86, 0xb6, 0xd9, 0x00, 0x00, 0x00, +var file_ligato_vpp_l2_xconnect_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_ligato_vpp_l2_xconnect_proto_goTypes = []interface{}{ + (*XConnectPair)(nil), // 0: ligato.vpp.l2.XConnectPair +} +var file_ligato_vpp_l2_xconnect_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_l2_xconnect_proto_init() } +func file_ligato_vpp_l2_xconnect_proto_init() { + if File_ligato_vpp_l2_xconnect_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_l2_xconnect_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*XConnectPair); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_l2_xconnect_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_l2_xconnect_proto_goTypes, + DependencyIndexes: file_ligato_vpp_l2_xconnect_proto_depIdxs, + MessageInfos: file_ligato_vpp_l2_xconnect_proto_msgTypes, + }.Build() + File_ligato_vpp_l2_xconnect_proto = out.File + file_ligato_vpp_l2_xconnect_proto_rawDesc = nil + file_ligato_vpp_l2_xconnect_proto_goTypes = nil + file_ligato_vpp_l2_xconnect_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/l3/arp.pb.go b/proto/ligato/vpp/l3/arp.pb.go index 5fe85e7ca4..2ebe9d2751 100644 --- a/proto/ligato/vpp/l3/arp.pb.go +++ b/proto/ligato/vpp/l3/arp.pb.go @@ -1,106 +1,180 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/l3/arp.proto package vpp_l3 import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type ARPEntry struct { - Interface string `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - IpAddress string `protobuf:"bytes,2,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` - PhysAddress string `protobuf:"bytes,3,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"` - Static bool `protobuf:"varint,4,opt,name=static,proto3" json:"static,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ARPEntry) Reset() { *m = ARPEntry{} } -func (m *ARPEntry) String() string { return proto.CompactTextString(m) } -func (*ARPEntry) ProtoMessage() {} -func (*ARPEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_667541aaa11bae35, []int{0} + Interface string `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + IpAddress string `protobuf:"bytes,2,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` + PhysAddress string `protobuf:"bytes,3,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"` + Static bool `protobuf:"varint,4,opt,name=static,proto3" json:"static,omitempty"` } -func (m *ARPEntry) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ARPEntry.Unmarshal(m, b) -} -func (m *ARPEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ARPEntry.Marshal(b, m, deterministic) -} -func (m *ARPEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_ARPEntry.Merge(m, src) +func (x *ARPEntry) Reset() { + *x = ARPEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_l3_arp_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ARPEntry) XXX_Size() int { - return xxx_messageInfo_ARPEntry.Size(m) + +func (x *ARPEntry) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ARPEntry) XXX_DiscardUnknown() { - xxx_messageInfo_ARPEntry.DiscardUnknown(m) + +func (*ARPEntry) ProtoMessage() {} + +func (x *ARPEntry) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_l3_arp_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ARPEntry proto.InternalMessageInfo +// Deprecated: Use ARPEntry.ProtoReflect.Descriptor instead. +func (*ARPEntry) Descriptor() ([]byte, []int) { + return file_ligato_vpp_l3_arp_proto_rawDescGZIP(), []int{0} +} -func (m *ARPEntry) GetInterface() string { - if m != nil { - return m.Interface +func (x *ARPEntry) GetInterface() string { + if x != nil { + return x.Interface } return "" } -func (m *ARPEntry) GetIpAddress() string { - if m != nil { - return m.IpAddress +func (x *ARPEntry) GetIpAddress() string { + if x != nil { + return x.IpAddress } return "" } -func (m *ARPEntry) GetPhysAddress() string { - if m != nil { - return m.PhysAddress +func (x *ARPEntry) GetPhysAddress() string { + if x != nil { + return x.PhysAddress } return "" } -func (m *ARPEntry) GetStatic() bool { - if m != nil { - return m.Static +func (x *ARPEntry) GetStatic() bool { + if x != nil { + return x.Static } return false } -func init() { - proto.RegisterType((*ARPEntry)(nil), "ligato.vpp.l3.ARPEntry") +var File_ligato_vpp_l3_arp_proto protoreflect.FileDescriptor + +var file_ligato_vpp_l3_arp_proto_rawDesc = []byte{ + 0x0a, 0x17, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x33, 0x2f, + 0x61, 0x72, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x22, 0x82, 0x01, 0x0a, 0x08, 0x41, 0x52, 0x50, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x79, 0x73, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x68, 0x79, 0x73, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x42, 0x36, 0x5a, + 0x34, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, + 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x33, 0x3b, 0x76, + 0x70, 0x70, 0x5f, 0x6c, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_l3_arp_proto_rawDescOnce sync.Once + file_ligato_vpp_l3_arp_proto_rawDescData = file_ligato_vpp_l3_arp_proto_rawDesc +) + +func file_ligato_vpp_l3_arp_proto_rawDescGZIP() []byte { + file_ligato_vpp_l3_arp_proto_rawDescOnce.Do(func() { + file_ligato_vpp_l3_arp_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_l3_arp_proto_rawDescData) + }) + return file_ligato_vpp_l3_arp_proto_rawDescData } -func init() { proto.RegisterFile("ligato/vpp/l3/arp.proto", fileDescriptor_667541aaa11bae35) } - -var fileDescriptor_667541aaa11bae35 = []byte{ - // 192 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcf, 0xc9, 0x4c, 0x4f, - 0x2c, 0xc9, 0xd7, 0x2f, 0x2b, 0x28, 0xd0, 0xcf, 0x31, 0xd6, 0x4f, 0x2c, 0x2a, 0xd0, 0x2b, 0x28, - 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x85, 0x48, 0xe8, 0x95, 0x15, 0x14, 0xe8, 0xe5, 0x18, 0x2b, 0x35, - 0x31, 0x72, 0x71, 0x38, 0x06, 0x05, 0xb8, 0xe6, 0x95, 0x14, 0x55, 0x0a, 0xc9, 0x70, 0x71, 0x66, - 0xe6, 0x95, 0xa4, 0x16, 0xa5, 0x25, 0x26, 0xa7, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x21, - 0x04, 0x84, 0x64, 0xb9, 0xb8, 0x32, 0x0b, 0xe2, 0x13, 0x53, 0x52, 0x8a, 0x52, 0x8b, 0x8b, 0x25, - 0x98, 0xa0, 0xd2, 0x05, 0x8e, 0x10, 0x01, 0x21, 0x45, 0x2e, 0x9e, 0x82, 0x8c, 0xca, 0x62, 0xb8, - 0x02, 0x66, 0xb0, 0x02, 0x6e, 0x90, 0x18, 0x4c, 0x89, 0x18, 0x17, 0x5b, 0x71, 0x49, 0x62, 0x49, - 0x66, 0xb2, 0x04, 0x8b, 0x02, 0xa3, 0x06, 0x47, 0x10, 0x94, 0xe7, 0x64, 0x16, 0x65, 0x92, 0x9e, - 0xaf, 0x07, 0x75, 0x58, 0x26, 0xd8, 0xd1, 0xba, 0x89, 0xe9, 0xa9, 0x79, 0x25, 0xfa, 0x65, 0xc6, - 0xfa, 0x60, 0x67, 0xeb, 0xa3, 0x78, 0xc7, 0xba, 0xac, 0xa0, 0x20, 0x3e, 0xc7, 0x38, 0x89, 0x0d, - 0x2c, 0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x20, 0x67, 0xcc, 0xdd, 0xed, 0x00, 0x00, 0x00, +var file_ligato_vpp_l3_arp_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_ligato_vpp_l3_arp_proto_goTypes = []interface{}{ + (*ARPEntry)(nil), // 0: ligato.vpp.l3.ARPEntry +} +var file_ligato_vpp_l3_arp_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_l3_arp_proto_init() } +func file_ligato_vpp_l3_arp_proto_init() { + if File_ligato_vpp_l3_arp_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_l3_arp_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ARPEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_l3_arp_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_l3_arp_proto_goTypes, + DependencyIndexes: file_ligato_vpp_l3_arp_proto_depIdxs, + MessageInfos: file_ligato_vpp_l3_arp_proto_msgTypes, + }.Build() + File_ligato_vpp_l3_arp_proto = out.File + file_ligato_vpp_l3_arp_proto_rawDesc = nil + file_ligato_vpp_l3_arp_proto_goTypes = nil + file_ligato_vpp_l3_arp_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/l3/l3.pb.go b/proto/ligato/vpp/l3/l3.pb.go index eb5646ec4c..f6c685f6a4 100644 --- a/proto/ligato/vpp/l3/l3.pb.go +++ b/proto/ligato/vpp/l3/l3.pb.go @@ -1,24 +1,29 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/l3/l3.proto package vpp_l3 import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type IPScanNeighbor_Mode int32 @@ -29,400 +34,616 @@ const ( IPScanNeighbor_BOTH IPScanNeighbor_Mode = 3 ) -var IPScanNeighbor_Mode_name = map[int32]string{ - 0: "DISABLED", - 1: "IPV4", - 2: "IPV6", - 3: "BOTH", -} +// Enum value maps for IPScanNeighbor_Mode. +var ( + IPScanNeighbor_Mode_name = map[int32]string{ + 0: "DISABLED", + 1: "IPV4", + 2: "IPV6", + 3: "BOTH", + } + IPScanNeighbor_Mode_value = map[string]int32{ + "DISABLED": 0, + "IPV4": 1, + "IPV6": 2, + "BOTH": 3, + } +) -var IPScanNeighbor_Mode_value = map[string]int32{ - "DISABLED": 0, - "IPV4": 1, - "IPV6": 2, - "BOTH": 3, +func (x IPScanNeighbor_Mode) Enum() *IPScanNeighbor_Mode { + p := new(IPScanNeighbor_Mode) + *p = x + return p } func (x IPScanNeighbor_Mode) String() string { - return proto.EnumName(IPScanNeighbor_Mode_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (IPScanNeighbor_Mode) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_l3_l3_proto_enumTypes[0].Descriptor() } +func (IPScanNeighbor_Mode) Type() protoreflect.EnumType { + return &file_ligato_vpp_l3_l3_proto_enumTypes[0] +} + +func (x IPScanNeighbor_Mode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use IPScanNeighbor_Mode.Descriptor instead. func (IPScanNeighbor_Mode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_eb46f906a6f7c0e7, []int{1, 0} + return file_ligato_vpp_l3_l3_proto_rawDescGZIP(), []int{1, 0} } // ARP Proxy type ProxyARP struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // List of interfaces proxy ARP is enabled for. - Interfaces []*ProxyARP_Interface `protobuf:"bytes,1,rep,name=interfaces,proto3" json:"interfaces,omitempty"` - Ranges []*ProxyARP_Range `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Interfaces []*ProxyARP_Interface `protobuf:"bytes,1,rep,name=interfaces,proto3" json:"interfaces,omitempty"` + Ranges []*ProxyARP_Range `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"` } -func (m *ProxyARP) Reset() { *m = ProxyARP{} } -func (m *ProxyARP) String() string { return proto.CompactTextString(m) } -func (*ProxyARP) ProtoMessage() {} -func (*ProxyARP) Descriptor() ([]byte, []int) { - return fileDescriptor_eb46f906a6f7c0e7, []int{0} +func (x *ProxyARP) Reset() { + *x = ProxyARP{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_l3_l3_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ProxyARP) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProxyARP.Unmarshal(m, b) +func (x *ProxyARP) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ProxyARP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProxyARP.Marshal(b, m, deterministic) -} -func (m *ProxyARP) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProxyARP.Merge(m, src) -} -func (m *ProxyARP) XXX_Size() int { - return xxx_messageInfo_ProxyARP.Size(m) -} -func (m *ProxyARP) XXX_DiscardUnknown() { - xxx_messageInfo_ProxyARP.DiscardUnknown(m) + +func (*ProxyARP) ProtoMessage() {} + +func (x *ProxyARP) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_l3_l3_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ProxyARP proto.InternalMessageInfo +// Deprecated: Use ProxyARP.ProtoReflect.Descriptor instead. +func (*ProxyARP) Descriptor() ([]byte, []int) { + return file_ligato_vpp_l3_l3_proto_rawDescGZIP(), []int{0} +} -func (m *ProxyARP) GetInterfaces() []*ProxyARP_Interface { - if m != nil { - return m.Interfaces +func (x *ProxyARP) GetInterfaces() []*ProxyARP_Interface { + if x != nil { + return x.Interfaces } return nil } -func (m *ProxyARP) GetRanges() []*ProxyARP_Range { - if m != nil { - return m.Ranges +func (x *ProxyARP) GetRanges() []*ProxyARP_Range { + if x != nil { + return x.Ranges } return nil } -type ProxyARP_Interface struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// IP Neighbour Config +type IPScanNeighbor struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Mode IPScanNeighbor_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=ligato.vpp.l3.IPScanNeighbor_Mode" json:"mode,omitempty"` + ScanInterval uint32 `protobuf:"varint,2,opt,name=scan_interval,json=scanInterval,proto3" json:"scan_interval,omitempty"` + MaxProcTime uint32 `protobuf:"varint,3,opt,name=max_proc_time,json=maxProcTime,proto3" json:"max_proc_time,omitempty"` + MaxUpdate uint32 `protobuf:"varint,4,opt,name=max_update,json=maxUpdate,proto3" json:"max_update,omitempty"` + ScanIntDelay uint32 `protobuf:"varint,5,opt,name=scan_int_delay,json=scanIntDelay,proto3" json:"scan_int_delay,omitempty"` + StaleThreshold uint32 `protobuf:"varint,6,opt,name=stale_threshold,json=staleThreshold,proto3" json:"stale_threshold,omitempty"` +} + +func (x *IPScanNeighbor) Reset() { + *x = IPScanNeighbor{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_l3_l3_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ProxyARP_Interface) Reset() { *m = ProxyARP_Interface{} } -func (m *ProxyARP_Interface) String() string { return proto.CompactTextString(m) } -func (*ProxyARP_Interface) ProtoMessage() {} -func (*ProxyARP_Interface) Descriptor() ([]byte, []int) { - return fileDescriptor_eb46f906a6f7c0e7, []int{0, 0} +func (x *IPScanNeighbor) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ProxyARP_Interface) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProxyARP_Interface.Unmarshal(m, b) -} -func (m *ProxyARP_Interface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProxyARP_Interface.Marshal(b, m, deterministic) -} -func (m *ProxyARP_Interface) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProxyARP_Interface.Merge(m, src) -} -func (m *ProxyARP_Interface) XXX_Size() int { - return xxx_messageInfo_ProxyARP_Interface.Size(m) -} -func (m *ProxyARP_Interface) XXX_DiscardUnknown() { - xxx_messageInfo_ProxyARP_Interface.DiscardUnknown(m) -} - -var xxx_messageInfo_ProxyARP_Interface proto.InternalMessageInfo +func (*IPScanNeighbor) ProtoMessage() {} -func (m *ProxyARP_Interface) GetName() string { - if m != nil { - return m.Name +func (x *IPScanNeighbor) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_l3_l3_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -type ProxyARP_Range struct { - FirstIpAddr string `protobuf:"bytes,1,opt,name=first_ip_addr,json=firstIpAddr,proto3" json:"first_ip_addr,omitempty"` - LastIpAddr string `protobuf:"bytes,2,opt,name=last_ip_addr,json=lastIpAddr,proto3" json:"last_ip_addr,omitempty"` - VrfId uint32 `protobuf:"varint,3,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use IPScanNeighbor.ProtoReflect.Descriptor instead. +func (*IPScanNeighbor) Descriptor() ([]byte, []int) { + return file_ligato_vpp_l3_l3_proto_rawDescGZIP(), []int{1} } -func (m *ProxyARP_Range) Reset() { *m = ProxyARP_Range{} } -func (m *ProxyARP_Range) String() string { return proto.CompactTextString(m) } -func (*ProxyARP_Range) ProtoMessage() {} -func (*ProxyARP_Range) Descriptor() ([]byte, []int) { - return fileDescriptor_eb46f906a6f7c0e7, []int{0, 1} +func (x *IPScanNeighbor) GetMode() IPScanNeighbor_Mode { + if x != nil { + return x.Mode + } + return IPScanNeighbor_DISABLED } -func (m *ProxyARP_Range) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProxyARP_Range.Unmarshal(m, b) -} -func (m *ProxyARP_Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProxyARP_Range.Marshal(b, m, deterministic) -} -func (m *ProxyARP_Range) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProxyARP_Range.Merge(m, src) -} -func (m *ProxyARP_Range) XXX_Size() int { - return xxx_messageInfo_ProxyARP_Range.Size(m) -} -func (m *ProxyARP_Range) XXX_DiscardUnknown() { - xxx_messageInfo_ProxyARP_Range.DiscardUnknown(m) +func (x *IPScanNeighbor) GetScanInterval() uint32 { + if x != nil { + return x.ScanInterval + } + return 0 } -var xxx_messageInfo_ProxyARP_Range proto.InternalMessageInfo - -func (m *ProxyARP_Range) GetFirstIpAddr() string { - if m != nil { - return m.FirstIpAddr +func (x *IPScanNeighbor) GetMaxProcTime() uint32 { + if x != nil { + return x.MaxProcTime } - return "" + return 0 } -func (m *ProxyARP_Range) GetLastIpAddr() string { - if m != nil { - return m.LastIpAddr +func (x *IPScanNeighbor) GetMaxUpdate() uint32 { + if x != nil { + return x.MaxUpdate } - return "" + return 0 } -func (m *ProxyARP_Range) GetVrfId() uint32 { - if m != nil { - return m.VrfId +func (x *IPScanNeighbor) GetScanIntDelay() uint32 { + if x != nil { + return x.ScanIntDelay } return 0 } -// IP Neighbour Config -type IPScanNeighbor struct { - Mode IPScanNeighbor_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=ligato.vpp.l3.IPScanNeighbor_Mode" json:"mode,omitempty"` - ScanInterval uint32 `protobuf:"varint,2,opt,name=scan_interval,json=scanInterval,proto3" json:"scan_interval,omitempty"` - MaxProcTime uint32 `protobuf:"varint,3,opt,name=max_proc_time,json=maxProcTime,proto3" json:"max_proc_time,omitempty"` - MaxUpdate uint32 `protobuf:"varint,4,opt,name=max_update,json=maxUpdate,proto3" json:"max_update,omitempty"` - ScanIntDelay uint32 `protobuf:"varint,5,opt,name=scan_int_delay,json=scanIntDelay,proto3" json:"scan_int_delay,omitempty"` - StaleThreshold uint32 `protobuf:"varint,6,opt,name=stale_threshold,json=staleThreshold,proto3" json:"stale_threshold,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IPScanNeighbor) Reset() { *m = IPScanNeighbor{} } -func (m *IPScanNeighbor) String() string { return proto.CompactTextString(m) } -func (*IPScanNeighbor) ProtoMessage() {} -func (*IPScanNeighbor) Descriptor() ([]byte, []int) { - return fileDescriptor_eb46f906a6f7c0e7, []int{1} +func (x *IPScanNeighbor) GetStaleThreshold() uint32 { + if x != nil { + return x.StaleThreshold + } + return 0 } -func (m *IPScanNeighbor) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IPScanNeighbor.Unmarshal(m, b) -} -func (m *IPScanNeighbor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IPScanNeighbor.Marshal(b, m, deterministic) -} -func (m *IPScanNeighbor) XXX_Merge(src proto.Message) { - xxx_messageInfo_IPScanNeighbor.Merge(m, src) +// DHCP Proxy +type DHCPProxy struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourceIpAddress string `protobuf:"bytes,1,opt,name=source_ip_address,json=sourceIpAddress,proto3" json:"source_ip_address,omitempty"` + RxVrfId uint32 `protobuf:"varint,2,opt,name=rx_vrf_id,json=rxVrfId,proto3" json:"rx_vrf_id,omitempty"` + Servers []*DHCPProxy_DHCPServer `protobuf:"bytes,4,rep,name=servers,proto3" json:"servers,omitempty"` } -func (m *IPScanNeighbor) XXX_Size() int { - return xxx_messageInfo_IPScanNeighbor.Size(m) + +func (x *DHCPProxy) Reset() { + *x = DHCPProxy{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_l3_l3_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *IPScanNeighbor) XXX_DiscardUnknown() { - xxx_messageInfo_IPScanNeighbor.DiscardUnknown(m) + +func (x *DHCPProxy) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_IPScanNeighbor proto.InternalMessageInfo +func (*DHCPProxy) ProtoMessage() {} -func (m *IPScanNeighbor) GetMode() IPScanNeighbor_Mode { - if m != nil { - return m.Mode +func (x *DHCPProxy) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_l3_l3_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return IPScanNeighbor_DISABLED + return mi.MessageOf(x) } -func (m *IPScanNeighbor) GetScanInterval() uint32 { - if m != nil { - return m.ScanInterval - } - return 0 +// Deprecated: Use DHCPProxy.ProtoReflect.Descriptor instead. +func (*DHCPProxy) Descriptor() ([]byte, []int) { + return file_ligato_vpp_l3_l3_proto_rawDescGZIP(), []int{2} } -func (m *IPScanNeighbor) GetMaxProcTime() uint32 { - if m != nil { - return m.MaxProcTime +func (x *DHCPProxy) GetSourceIpAddress() string { + if x != nil { + return x.SourceIpAddress } - return 0 + return "" } -func (m *IPScanNeighbor) GetMaxUpdate() uint32 { - if m != nil { - return m.MaxUpdate +func (x *DHCPProxy) GetRxVrfId() uint32 { + if x != nil { + return x.RxVrfId } return 0 } -func (m *IPScanNeighbor) GetScanIntDelay() uint32 { - if m != nil { - return m.ScanIntDelay +func (x *DHCPProxy) GetServers() []*DHCPProxy_DHCPServer { + if x != nil { + return x.Servers } - return 0 + return nil } -func (m *IPScanNeighbor) GetStaleThreshold() uint32 { - if m != nil { - return m.StaleThreshold +type ProxyARP_Interface struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *ProxyARP_Interface) Reset() { + *x = ProxyARP_Interface{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_l3_l3_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -// DHCP Proxy -type DHCPProxy struct { - SourceIpAddress string `protobuf:"bytes,1,opt,name=source_ip_address,json=sourceIpAddress,proto3" json:"source_ip_address,omitempty"` - RxVrfId uint32 `protobuf:"varint,2,opt,name=rx_vrf_id,json=rxVrfId,proto3" json:"rx_vrf_id,omitempty"` - Servers []*DHCPProxy_DHCPServer `protobuf:"bytes,4,rep,name=servers,proto3" json:"servers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ProxyARP_Interface) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DHCPProxy) Reset() { *m = DHCPProxy{} } -func (m *DHCPProxy) String() string { return proto.CompactTextString(m) } -func (*DHCPProxy) ProtoMessage() {} -func (*DHCPProxy) Descriptor() ([]byte, []int) { - return fileDescriptor_eb46f906a6f7c0e7, []int{2} +func (*ProxyARP_Interface) ProtoMessage() {} + +func (x *ProxyARP_Interface) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_l3_l3_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *DHCPProxy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DHCPProxy.Unmarshal(m, b) +// Deprecated: Use ProxyARP_Interface.ProtoReflect.Descriptor instead. +func (*ProxyARP_Interface) Descriptor() ([]byte, []int) { + return file_ligato_vpp_l3_l3_proto_rawDescGZIP(), []int{0, 0} } -func (m *DHCPProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DHCPProxy.Marshal(b, m, deterministic) + +func (x *ProxyARP_Interface) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +type ProxyARP_Range struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + FirstIpAddr string `protobuf:"bytes,1,opt,name=first_ip_addr,json=firstIpAddr,proto3" json:"first_ip_addr,omitempty"` + LastIpAddr string `protobuf:"bytes,2,opt,name=last_ip_addr,json=lastIpAddr,proto3" json:"last_ip_addr,omitempty"` + VrfId uint32 `protobuf:"varint,3,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` } -func (m *DHCPProxy) XXX_Merge(src proto.Message) { - xxx_messageInfo_DHCPProxy.Merge(m, src) + +func (x *ProxyARP_Range) Reset() { + *x = ProxyARP_Range{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_l3_l3_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DHCPProxy) XXX_Size() int { - return xxx_messageInfo_DHCPProxy.Size(m) + +func (x *ProxyARP_Range) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DHCPProxy) XXX_DiscardUnknown() { - xxx_messageInfo_DHCPProxy.DiscardUnknown(m) + +func (*ProxyARP_Range) ProtoMessage() {} + +func (x *ProxyARP_Range) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_l3_l3_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DHCPProxy proto.InternalMessageInfo +// Deprecated: Use ProxyARP_Range.ProtoReflect.Descriptor instead. +func (*ProxyARP_Range) Descriptor() ([]byte, []int) { + return file_ligato_vpp_l3_l3_proto_rawDescGZIP(), []int{0, 1} +} -func (m *DHCPProxy) GetSourceIpAddress() string { - if m != nil { - return m.SourceIpAddress +func (x *ProxyARP_Range) GetFirstIpAddr() string { + if x != nil { + return x.FirstIpAddr } return "" } -func (m *DHCPProxy) GetRxVrfId() uint32 { - if m != nil { - return m.RxVrfId +func (x *ProxyARP_Range) GetLastIpAddr() string { + if x != nil { + return x.LastIpAddr } - return 0 + return "" } -func (m *DHCPProxy) GetServers() []*DHCPProxy_DHCPServer { - if m != nil { - return m.Servers +func (x *ProxyARP_Range) GetVrfId() uint32 { + if x != nil { + return x.VrfId } - return nil + return 0 } type DHCPProxy_DHCPServer struct { - VrfId uint32 `protobuf:"varint,1,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` - IpAddress string `protobuf:"bytes,2,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DHCPProxy_DHCPServer) Reset() { *m = DHCPProxy_DHCPServer{} } -func (m *DHCPProxy_DHCPServer) String() string { return proto.CompactTextString(m) } -func (*DHCPProxy_DHCPServer) ProtoMessage() {} -func (*DHCPProxy_DHCPServer) Descriptor() ([]byte, []int) { - return fileDescriptor_eb46f906a6f7c0e7, []int{2, 0} + VrfId uint32 `protobuf:"varint,1,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` + IpAddress string `protobuf:"bytes,2,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` } -func (m *DHCPProxy_DHCPServer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DHCPProxy_DHCPServer.Unmarshal(m, b) -} -func (m *DHCPProxy_DHCPServer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DHCPProxy_DHCPServer.Marshal(b, m, deterministic) -} -func (m *DHCPProxy_DHCPServer) XXX_Merge(src proto.Message) { - xxx_messageInfo_DHCPProxy_DHCPServer.Merge(m, src) +func (x *DHCPProxy_DHCPServer) Reset() { + *x = DHCPProxy_DHCPServer{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_l3_l3_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DHCPProxy_DHCPServer) XXX_Size() int { - return xxx_messageInfo_DHCPProxy_DHCPServer.Size(m) + +func (x *DHCPProxy_DHCPServer) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DHCPProxy_DHCPServer) XXX_DiscardUnknown() { - xxx_messageInfo_DHCPProxy_DHCPServer.DiscardUnknown(m) + +func (*DHCPProxy_DHCPServer) ProtoMessage() {} + +func (x *DHCPProxy_DHCPServer) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_l3_l3_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DHCPProxy_DHCPServer proto.InternalMessageInfo +// Deprecated: Use DHCPProxy_DHCPServer.ProtoReflect.Descriptor instead. +func (*DHCPProxy_DHCPServer) Descriptor() ([]byte, []int) { + return file_ligato_vpp_l3_l3_proto_rawDescGZIP(), []int{2, 0} +} -func (m *DHCPProxy_DHCPServer) GetVrfId() uint32 { - if m != nil { - return m.VrfId +func (x *DHCPProxy_DHCPServer) GetVrfId() uint32 { + if x != nil { + return x.VrfId } return 0 } -func (m *DHCPProxy_DHCPServer) GetIpAddress() string { - if m != nil { - return m.IpAddress +func (x *DHCPProxy_DHCPServer) GetIpAddress() string { + if x != nil { + return x.IpAddress } return "" } -func init() { - proto.RegisterEnum("ligato.vpp.l3.IPScanNeighbor_Mode", IPScanNeighbor_Mode_name, IPScanNeighbor_Mode_value) - proto.RegisterType((*ProxyARP)(nil), "ligato.vpp.l3.ProxyARP") - proto.RegisterType((*ProxyARP_Interface)(nil), "ligato.vpp.l3.ProxyARP.Interface") - proto.RegisterType((*ProxyARP_Range)(nil), "ligato.vpp.l3.ProxyARP.Range") - proto.RegisterType((*IPScanNeighbor)(nil), "ligato.vpp.l3.IPScanNeighbor") - proto.RegisterType((*DHCPProxy)(nil), "ligato.vpp.l3.DHCPProxy") - proto.RegisterType((*DHCPProxy_DHCPServer)(nil), "ligato.vpp.l3.DHCPProxy.DHCPServer") -} - -func init() { proto.RegisterFile("ligato/vpp/l3/l3.proto", fileDescriptor_eb46f906a6f7c0e7) } - -var fileDescriptor_eb46f906a6f7c0e7 = []byte{ - // 533 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0xdf, 0x8a, 0x9b, 0x40, - 0x14, 0xc6, 0x6b, 0x62, 0xb2, 0xf1, 0xe4, 0xcf, 0xa6, 0x03, 0x2d, 0x12, 0x58, 0x9a, 0xba, 0x85, - 0x86, 0x42, 0x15, 0xe2, 0x36, 0x37, 0xa5, 0x17, 0x49, 0x53, 0x58, 0xa1, 0x7f, 0xc4, 0xa4, 0x7b, - 0xd1, 0x1b, 0x99, 0x75, 0x26, 0x89, 0xa0, 0x8e, 0xcc, 0xb8, 0xe2, 0x3e, 0x43, 0x1f, 0xa7, 0xef, - 0xd2, 0xe7, 0x29, 0x8e, 0xba, 0x4d, 0x16, 0xf6, 0xee, 0xf0, 0xf9, 0xfb, 0x3c, 0x67, 0xce, 0x37, - 0x03, 0x2f, 0xa3, 0x70, 0x8f, 0x33, 0x66, 0xe5, 0x69, 0x6a, 0x45, 0xb6, 0x15, 0xd9, 0x66, 0xca, - 0x59, 0xc6, 0xd0, 0xb0, 0xd2, 0xcd, 0x3c, 0x4d, 0xcd, 0xc8, 0x36, 0x7e, 0xb7, 0xa0, 0xe7, 0x72, - 0x56, 0xdc, 0x2f, 0x3d, 0x17, 0x2d, 0x01, 0xc2, 0x24, 0xa3, 0x7c, 0x87, 0x03, 0x2a, 0x74, 0x65, - 0xda, 0x9e, 0xf5, 0xe7, 0xaf, 0xcd, 0x13, 0x83, 0xd9, 0xc0, 0xa6, 0xd3, 0x90, 0xde, 0x91, 0x09, - 0x7d, 0x80, 0x2e, 0xc7, 0xc9, 0x9e, 0x0a, 0xbd, 0x25, 0xed, 0x17, 0x4f, 0xd9, 0xbd, 0x92, 0xf2, - 0x6a, 0x78, 0xf2, 0x0a, 0xb4, 0x87, 0xff, 0x21, 0x04, 0x6a, 0x82, 0x63, 0xaa, 0x2b, 0x53, 0x65, - 0xa6, 0x79, 0xb2, 0x9e, 0x10, 0xe8, 0x48, 0x07, 0x32, 0x60, 0xb8, 0x0b, 0xb9, 0xc8, 0xfc, 0x30, - 0xf5, 0x31, 0x21, 0xbc, 0xa6, 0xfa, 0x52, 0x74, 0xd2, 0x25, 0x21, 0x1c, 0x4d, 0x61, 0x10, 0xe1, - 0x23, 0xa4, 0x25, 0x11, 0x28, 0xb5, 0x9a, 0x78, 0x01, 0xdd, 0x9c, 0xef, 0xfc, 0x90, 0xe8, 0xed, - 0xa9, 0x32, 0x1b, 0x7a, 0x9d, 0x9c, 0xef, 0x1c, 0x62, 0xfc, 0x69, 0xc1, 0xc8, 0x71, 0x37, 0x01, - 0x4e, 0xbe, 0xd3, 0x70, 0x7f, 0xb8, 0x65, 0x1c, 0x2d, 0x40, 0x8d, 0x19, 0xa9, 0x86, 0x19, 0xcd, - 0x8d, 0x47, 0xc7, 0x39, 0x85, 0xcd, 0x6f, 0x8c, 0x50, 0x4f, 0xf2, 0xe8, 0x12, 0x86, 0x22, 0xc0, - 0x89, 0x2f, 0x77, 0x93, 0xe3, 0x48, 0x0e, 0x31, 0xf4, 0x06, 0xa5, 0xe8, 0xd4, 0x5a, 0x79, 0x98, - 0x18, 0x17, 0x7e, 0xca, 0x59, 0xe0, 0x67, 0x61, 0x4c, 0xeb, 0x69, 0xfa, 0x31, 0x2e, 0x5c, 0xce, - 0x82, 0x6d, 0x18, 0x53, 0x74, 0x01, 0x50, 0x32, 0x77, 0x29, 0xc1, 0x19, 0xd5, 0x55, 0x09, 0x68, - 0x31, 0x2e, 0x7e, 0x4a, 0x01, 0xbd, 0x81, 0x51, 0xd3, 0xc7, 0x27, 0x34, 0xc2, 0xf7, 0x7a, 0xe7, - 0xa4, 0xd1, 0xba, 0xd4, 0xd0, 0x5b, 0x38, 0x17, 0x19, 0x8e, 0xa8, 0x9f, 0x1d, 0x38, 0x15, 0x07, - 0x16, 0x11, 0xbd, 0x2b, 0xb1, 0x91, 0x94, 0xb7, 0x8d, 0x6a, 0xcc, 0x41, 0x2d, 0x0f, 0x81, 0x06, - 0xd0, 0x5b, 0x3b, 0x9b, 0xe5, 0xea, 0xeb, 0x97, 0xf5, 0xf8, 0x19, 0xea, 0x81, 0xea, 0xb8, 0x37, - 0x57, 0x63, 0xa5, 0xae, 0x16, 0xe3, 0x56, 0x59, 0xad, 0x7e, 0x6c, 0xaf, 0xc7, 0x6d, 0xe3, 0xaf, - 0x02, 0xda, 0xfa, 0xfa, 0xb3, 0x2b, 0xb3, 0x45, 0xef, 0xe0, 0xb9, 0x60, 0x77, 0x3c, 0xa0, 0xcd, - 0xfa, 0xa9, 0x10, 0x75, 0x48, 0xe7, 0xd5, 0x87, 0x2a, 0x03, 0x2a, 0x04, 0x9a, 0x80, 0xc6, 0x0b, - 0xbf, 0x4e, 0xa2, 0x5a, 0xd0, 0x19, 0x2f, 0x6e, 0xca, 0x2c, 0xd0, 0x27, 0x38, 0x13, 0x94, 0xe7, - 0x94, 0x0b, 0x5d, 0x95, 0x57, 0xe9, 0xf2, 0xd1, 0xee, 0x1f, 0x5a, 0xca, 0x6a, 0x23, 0x59, 0xaf, - 0xf1, 0x4c, 0x56, 0x00, 0xff, 0xe5, 0xa3, 0xbc, 0x95, 0xa3, 0xbc, 0xcb, 0xdd, 0x1e, 0x0d, 0x59, - 0x5d, 0x13, 0x2d, 0x6c, 0xc6, 0x5b, 0x2d, 0x7e, 0x5d, 0xed, 0x59, 0xd3, 0x35, 0x94, 0x6f, 0xe9, - 0x3d, 0xde, 0xd3, 0x24, 0xb3, 0x72, 0xdb, 0x92, 0xcf, 0xc9, 0x3a, 0x79, 0x65, 0x1f, 0xf3, 0x34, - 0xf5, 0x23, 0xfb, 0xb6, 0x2b, 0xbf, 0xd9, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x09, 0xdd, 0xc0, - 0x18, 0x84, 0x03, 0x00, 0x00, +var File_ligato_vpp_l3_l3_proto protoreflect.FileDescriptor + +var file_ligato_vpp_l3_l3_proto_rawDesc = []byte{ + 0x0a, 0x16, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x33, 0x2f, + 0x6c, 0x33, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x22, 0x8b, 0x02, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x78, + 0x79, 0x41, 0x52, 0x50, 0x12, 0x41, 0x0a, 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x41, 0x52, + 0x50, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x0a, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x35, 0x0a, 0x06, 0x72, 0x61, 0x6e, 0x67, 0x65, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x41, 0x52, 0x50, + 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x06, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x1a, 0x1f, + 0x0a, 0x09, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, + 0x64, 0x0a, 0x05, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x66, 0x69, 0x72, 0x73, + 0x74, 0x5f, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x66, 0x69, 0x72, 0x73, 0x74, 0x49, 0x70, 0x41, 0x64, 0x64, 0x72, 0x12, 0x20, 0x0a, 0x0c, + 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x49, 0x70, 0x41, 0x64, 0x64, 0x72, 0x12, 0x15, + 0x0a, 0x06, 0x76, 0x72, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, + 0x76, 0x72, 0x66, 0x49, 0x64, 0x22, 0xb3, 0x02, 0x0a, 0x0e, 0x49, 0x50, 0x53, 0x63, 0x61, 0x6e, + 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x12, 0x36, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, + 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x2e, 0x49, 0x50, 0x53, 0x63, 0x61, 0x6e, 0x4e, 0x65, 0x69, + 0x67, 0x68, 0x62, 0x6f, 0x72, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, + 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x63, 0x61, 0x6e, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, + 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x73, 0x63, 0x61, 0x6e, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x22, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x72, 0x6f, + 0x63, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x6d, 0x61, + 0x78, 0x50, 0x72, 0x6f, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x78, + 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6d, + 0x61, 0x78, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x63, 0x61, 0x6e, + 0x5f, 0x69, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x0c, 0x73, 0x63, 0x61, 0x6e, 0x49, 0x6e, 0x74, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x27, + 0x0a, 0x0f, 0x73, 0x74, 0x61, 0x6c, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, + 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x6c, 0x65, 0x54, 0x68, + 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x22, 0x32, 0x0a, 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x12, + 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, + 0x04, 0x49, 0x50, 0x56, 0x34, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x36, 0x10, + 0x02, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x4f, 0x54, 0x48, 0x10, 0x03, 0x22, 0xd6, 0x01, 0x0a, 0x09, + 0x44, 0x48, 0x43, 0x50, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x70, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x09, 0x72, 0x78, 0x5f, 0x76, 0x72, 0x66, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x78, 0x56, 0x72, 0x66, 0x49, + 0x64, 0x12, 0x3d, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, + 0x6c, 0x33, 0x2e, 0x44, 0x48, 0x43, 0x50, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x44, 0x48, 0x43, + 0x50, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, + 0x1a, 0x42, 0x0a, 0x0a, 0x44, 0x48, 0x43, 0x50, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x15, + 0x0a, 0x06, 0x76, 0x72, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, + 0x76, 0x72, 0x66, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x70, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, + 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, + 0x70, 0x70, 0x2f, 0x6c, 0x33, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x6c, 0x33, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_l3_l3_proto_rawDescOnce sync.Once + file_ligato_vpp_l3_l3_proto_rawDescData = file_ligato_vpp_l3_l3_proto_rawDesc +) + +func file_ligato_vpp_l3_l3_proto_rawDescGZIP() []byte { + file_ligato_vpp_l3_l3_proto_rawDescOnce.Do(func() { + file_ligato_vpp_l3_l3_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_l3_l3_proto_rawDescData) + }) + return file_ligato_vpp_l3_l3_proto_rawDescData +} + +var file_ligato_vpp_l3_l3_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_ligato_vpp_l3_l3_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_ligato_vpp_l3_l3_proto_goTypes = []interface{}{ + (IPScanNeighbor_Mode)(0), // 0: ligato.vpp.l3.IPScanNeighbor.Mode + (*ProxyARP)(nil), // 1: ligato.vpp.l3.ProxyARP + (*IPScanNeighbor)(nil), // 2: ligato.vpp.l3.IPScanNeighbor + (*DHCPProxy)(nil), // 3: ligato.vpp.l3.DHCPProxy + (*ProxyARP_Interface)(nil), // 4: ligato.vpp.l3.ProxyARP.Interface + (*ProxyARP_Range)(nil), // 5: ligato.vpp.l3.ProxyARP.Range + (*DHCPProxy_DHCPServer)(nil), // 6: ligato.vpp.l3.DHCPProxy.DHCPServer +} +var file_ligato_vpp_l3_l3_proto_depIdxs = []int32{ + 4, // 0: ligato.vpp.l3.ProxyARP.interfaces:type_name -> ligato.vpp.l3.ProxyARP.Interface + 5, // 1: ligato.vpp.l3.ProxyARP.ranges:type_name -> ligato.vpp.l3.ProxyARP.Range + 0, // 2: ligato.vpp.l3.IPScanNeighbor.mode:type_name -> ligato.vpp.l3.IPScanNeighbor.Mode + 6, // 3: ligato.vpp.l3.DHCPProxy.servers:type_name -> ligato.vpp.l3.DHCPProxy.DHCPServer + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_l3_l3_proto_init() } +func file_ligato_vpp_l3_l3_proto_init() { + if File_ligato_vpp_l3_l3_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_l3_l3_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProxyARP); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_l3_l3_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IPScanNeighbor); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_l3_l3_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DHCPProxy); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_l3_l3_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProxyARP_Interface); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_l3_l3_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProxyARP_Range); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_l3_l3_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DHCPProxy_DHCPServer); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_l3_l3_proto_rawDesc, + NumEnums: 1, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_l3_l3_proto_goTypes, + DependencyIndexes: file_ligato_vpp_l3_l3_proto_depIdxs, + EnumInfos: file_ligato_vpp_l3_l3_proto_enumTypes, + MessageInfos: file_ligato_vpp_l3_l3_proto_msgTypes, + }.Build() + File_ligato_vpp_l3_l3_proto = out.File + file_ligato_vpp_l3_l3_proto_rawDesc = nil + file_ligato_vpp_l3_l3_proto_goTypes = nil + file_ligato_vpp_l3_l3_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/l3/l3xc.pb.go b/proto/ligato/vpp/l3/l3xc.pb.go index 6d497546f3..ab3789e5c1 100644 --- a/proto/ligato/vpp/l3/l3xc.pb.go +++ b/proto/ligato/vpp/l3/l3xc.pb.go @@ -1,24 +1,29 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/l3/l3xc.proto package vpp_l3 import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type L3XConnect_Protocol int32 @@ -27,169 +32,289 @@ const ( L3XConnect_IPV6 L3XConnect_Protocol = 1 ) -var L3XConnect_Protocol_name = map[int32]string{ - 0: "IPV4", - 1: "IPV6", -} +// Enum value maps for L3XConnect_Protocol. +var ( + L3XConnect_Protocol_name = map[int32]string{ + 0: "IPV4", + 1: "IPV6", + } + L3XConnect_Protocol_value = map[string]int32{ + "IPV4": 0, + "IPV6": 1, + } +) -var L3XConnect_Protocol_value = map[string]int32{ - "IPV4": 0, - "IPV6": 1, +func (x L3XConnect_Protocol) Enum() *L3XConnect_Protocol { + p := new(L3XConnect_Protocol) + *p = x + return p } func (x L3XConnect_Protocol) String() string { - return proto.EnumName(L3XConnect_Protocol_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (L3XConnect_Protocol) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_5bed3005c4d78611, []int{0, 0} +func (L3XConnect_Protocol) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_l3_l3xc_proto_enumTypes[0].Descriptor() } -type L3XConnect struct { - Interface string `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - Protocol L3XConnect_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=ligato.vpp.l3.L3XConnect_Protocol" json:"protocol,omitempty"` - Paths []*L3XConnect_Path `protobuf:"bytes,3,rep,name=paths,proto3" json:"paths,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (L3XConnect_Protocol) Type() protoreflect.EnumType { + return &file_ligato_vpp_l3_l3xc_proto_enumTypes[0] } -func (m *L3XConnect) Reset() { *m = L3XConnect{} } -func (m *L3XConnect) String() string { return proto.CompactTextString(m) } -func (*L3XConnect) ProtoMessage() {} -func (*L3XConnect) Descriptor() ([]byte, []int) { - return fileDescriptor_5bed3005c4d78611, []int{0} +func (x L3XConnect_Protocol) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *L3XConnect) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_L3XConnect.Unmarshal(m, b) +// Deprecated: Use L3XConnect_Protocol.Descriptor instead. +func (L3XConnect_Protocol) EnumDescriptor() ([]byte, []int) { + return file_ligato_vpp_l3_l3xc_proto_rawDescGZIP(), []int{0, 0} } -func (m *L3XConnect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_L3XConnect.Marshal(b, m, deterministic) + +type L3XConnect struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Interface string `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + Protocol L3XConnect_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=ligato.vpp.l3.L3XConnect_Protocol" json:"protocol,omitempty"` + Paths []*L3XConnect_Path `protobuf:"bytes,3,rep,name=paths,proto3" json:"paths,omitempty"` } -func (m *L3XConnect) XXX_Merge(src proto.Message) { - xxx_messageInfo_L3XConnect.Merge(m, src) + +func (x *L3XConnect) Reset() { + *x = L3XConnect{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_l3_l3xc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *L3XConnect) XXX_Size() int { - return xxx_messageInfo_L3XConnect.Size(m) + +func (x *L3XConnect) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *L3XConnect) XXX_DiscardUnknown() { - xxx_messageInfo_L3XConnect.DiscardUnknown(m) + +func (*L3XConnect) ProtoMessage() {} + +func (x *L3XConnect) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_l3_l3xc_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_L3XConnect proto.InternalMessageInfo +// Deprecated: Use L3XConnect.ProtoReflect.Descriptor instead. +func (*L3XConnect) Descriptor() ([]byte, []int) { + return file_ligato_vpp_l3_l3xc_proto_rawDescGZIP(), []int{0} +} -func (m *L3XConnect) GetInterface() string { - if m != nil { - return m.Interface +func (x *L3XConnect) GetInterface() string { + if x != nil { + return x.Interface } return "" } -func (m *L3XConnect) GetProtocol() L3XConnect_Protocol { - if m != nil { - return m.Protocol +func (x *L3XConnect) GetProtocol() L3XConnect_Protocol { + if x != nil { + return x.Protocol } return L3XConnect_IPV4 } -func (m *L3XConnect) GetPaths() []*L3XConnect_Path { - if m != nil { - return m.Paths +func (x *L3XConnect) GetPaths() []*L3XConnect_Path { + if x != nil { + return x.Paths } return nil } type L3XConnect_Path struct { - OutgoingInterface string `protobuf:"bytes,1,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"` - NextHopAddr string `protobuf:"bytes,2,opt,name=next_hop_addr,json=nextHopAddr,proto3" json:"next_hop_addr,omitempty"` - Weight uint32 `protobuf:"varint,3,opt,name=weight,proto3" json:"weight,omitempty"` - Preference uint32 `protobuf:"varint,4,opt,name=preference,proto3" json:"preference,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *L3XConnect_Path) Reset() { *m = L3XConnect_Path{} } -func (m *L3XConnect_Path) String() string { return proto.CompactTextString(m) } -func (*L3XConnect_Path) ProtoMessage() {} -func (*L3XConnect_Path) Descriptor() ([]byte, []int) { - return fileDescriptor_5bed3005c4d78611, []int{0, 0} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *L3XConnect_Path) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_L3XConnect_Path.Unmarshal(m, b) -} -func (m *L3XConnect_Path) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_L3XConnect_Path.Marshal(b, m, deterministic) + OutgoingInterface string `protobuf:"bytes,1,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"` + NextHopAddr string `protobuf:"bytes,2,opt,name=next_hop_addr,json=nextHopAddr,proto3" json:"next_hop_addr,omitempty"` + Weight uint32 `protobuf:"varint,3,opt,name=weight,proto3" json:"weight,omitempty"` + Preference uint32 `protobuf:"varint,4,opt,name=preference,proto3" json:"preference,omitempty"` } -func (m *L3XConnect_Path) XXX_Merge(src proto.Message) { - xxx_messageInfo_L3XConnect_Path.Merge(m, src) + +func (x *L3XConnect_Path) Reset() { + *x = L3XConnect_Path{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_l3_l3xc_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *L3XConnect_Path) XXX_Size() int { - return xxx_messageInfo_L3XConnect_Path.Size(m) + +func (x *L3XConnect_Path) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *L3XConnect_Path) XXX_DiscardUnknown() { - xxx_messageInfo_L3XConnect_Path.DiscardUnknown(m) + +func (*L3XConnect_Path) ProtoMessage() {} + +func (x *L3XConnect_Path) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_l3_l3xc_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_L3XConnect_Path proto.InternalMessageInfo +// Deprecated: Use L3XConnect_Path.ProtoReflect.Descriptor instead. +func (*L3XConnect_Path) Descriptor() ([]byte, []int) { + return file_ligato_vpp_l3_l3xc_proto_rawDescGZIP(), []int{0, 0} +} -func (m *L3XConnect_Path) GetOutgoingInterface() string { - if m != nil { - return m.OutgoingInterface +func (x *L3XConnect_Path) GetOutgoingInterface() string { + if x != nil { + return x.OutgoingInterface } return "" } -func (m *L3XConnect_Path) GetNextHopAddr() string { - if m != nil { - return m.NextHopAddr +func (x *L3XConnect_Path) GetNextHopAddr() string { + if x != nil { + return x.NextHopAddr } return "" } -func (m *L3XConnect_Path) GetWeight() uint32 { - if m != nil { - return m.Weight +func (x *L3XConnect_Path) GetWeight() uint32 { + if x != nil { + return x.Weight } return 0 } -func (m *L3XConnect_Path) GetPreference() uint32 { - if m != nil { - return m.Preference +func (x *L3XConnect_Path) GetPreference() uint32 { + if x != nil { + return x.Preference } return 0 } -func init() { - proto.RegisterEnum("ligato.vpp.l3.L3XConnect_Protocol", L3XConnect_Protocol_name, L3XConnect_Protocol_value) - proto.RegisterType((*L3XConnect)(nil), "ligato.vpp.l3.L3XConnect") - proto.RegisterType((*L3XConnect_Path)(nil), "ligato.vpp.l3.L3XConnect.Path") -} - -func init() { proto.RegisterFile("ligato/vpp/l3/l3xc.proto", fileDescriptor_5bed3005c4d78611) } - -var fileDescriptor_5bed3005c4d78611 = []byte{ - // 304 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x4f, 0x4b, 0x33, 0x31, - 0x10, 0xc6, 0xdf, 0x6d, 0xfb, 0x96, 0x76, 0x4a, 0xa5, 0xe6, 0x20, 0x41, 0xa4, 0x2c, 0x7b, 0xda, - 0x4b, 0x13, 0x68, 0x4a, 0x2f, 0x82, 0xa0, 0x5e, 0x2c, 0x78, 0x28, 0x7b, 0x10, 0xf1, 0xb2, 0xc4, - 0xdd, 0x34, 0xbb, 0x10, 0x92, 0x10, 0xe3, 0xda, 0xaf, 0xe1, 0x77, 0xf3, 0x03, 0x49, 0xd3, 0x7f, - 0xd6, 0x83, 0xb7, 0xcc, 0xf3, 0x9b, 0x79, 0x78, 0x26, 0x03, 0x58, 0xd5, 0x92, 0x7b, 0x43, 0x1b, - 0x6b, 0xa9, 0x62, 0x54, 0xb1, 0x75, 0x41, 0xac, 0x33, 0xde, 0xa0, 0xe1, 0x96, 0x90, 0xc6, 0x5a, - 0xa2, 0x58, 0xf2, 0xd5, 0x02, 0x78, 0x64, 0xcf, 0xf7, 0x46, 0x6b, 0x51, 0x78, 0x74, 0x05, 0xfd, - 0x5a, 0x7b, 0xe1, 0x56, 0xbc, 0x10, 0x38, 0x8a, 0xa3, 0xb4, 0x9f, 0x1d, 0x05, 0x74, 0x03, 0xbd, - 0x60, 0x52, 0x18, 0x85, 0x5b, 0x71, 0x94, 0x9e, 0x4d, 0x13, 0x72, 0x62, 0x47, 0x8e, 0x56, 0x64, - 0xb9, 0xeb, 0xcc, 0x0e, 0x33, 0x68, 0x06, 0xff, 0x2d, 0xf7, 0xd5, 0x1b, 0x6e, 0xc7, 0xed, 0x74, - 0x30, 0x1d, 0xff, 0x31, 0xcc, 0x7d, 0x95, 0x6d, 0x9b, 0x2f, 0x3f, 0x23, 0xe8, 0x6c, 0x6a, 0x34, - 0x01, 0x64, 0xde, 0xbd, 0x34, 0xb5, 0x96, 0xf9, 0xef, 0x94, 0xe7, 0x7b, 0xb2, 0x38, 0xa4, 0x4d, - 0x60, 0xa8, 0xc5, 0xda, 0xe7, 0x95, 0xb1, 0x39, 0x2f, 0x4b, 0x17, 0x22, 0xf7, 0xb3, 0xc1, 0x46, - 0x7c, 0x30, 0xf6, 0xb6, 0x2c, 0x1d, 0xba, 0x80, 0xee, 0x87, 0xa8, 0x65, 0xe5, 0x71, 0x3b, 0x8e, - 0xd2, 0x61, 0xb6, 0xab, 0xd0, 0x18, 0xc0, 0x3a, 0xb1, 0x12, 0x4e, 0xe8, 0x42, 0xe0, 0x4e, 0x60, - 0x3f, 0x94, 0x64, 0x0c, 0xbd, 0xfd, 0x7e, 0xa8, 0x07, 0x9d, 0xc5, 0xf2, 0x69, 0x36, 0xfa, 0xb7, - 0x7b, 0xcd, 0x47, 0xd1, 0xdd, 0xfc, 0x65, 0x26, 0xcd, 0x7e, 0xbd, 0x3a, 0xdc, 0x61, 0xc2, 0xa5, - 0xd0, 0x9e, 0x36, 0x8c, 0x86, 0xff, 0xa0, 0x27, 0x17, 0xba, 0x6e, 0xac, 0xcd, 0x15, 0x7b, 0xed, - 0x06, 0xc6, 0xbe, 0x03, 0x00, 0x00, 0xff, 0xff, 0x76, 0x19, 0xce, 0xb1, 0xc0, 0x01, 0x00, 0x00, +var File_ligato_vpp_l3_l3xc_proto protoreflect.FileDescriptor + +var file_ligato_vpp_l3_l3xc_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x33, 0x2f, + 0x6c, 0x33, 0x78, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x22, 0xd4, 0x02, 0x0a, 0x0a, 0x4c, 0x33, + 0x58, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x3e, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x2e, 0x4c, 0x33, 0x58, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x34, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, + 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x2e, 0x4c, 0x33, 0x58, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x1a, 0x91, 0x01, 0x0a, + 0x04, 0x50, 0x61, 0x74, 0x68, 0x12, 0x2d, 0x0a, 0x12, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, + 0x67, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x11, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x74, 0x65, 0x72, + 0x66, 0x61, 0x63, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x68, 0x6f, 0x70, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x78, + 0x74, 0x48, 0x6f, 0x70, 0x41, 0x64, 0x64, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x22, 0x1e, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x08, 0x0a, 0x04, + 0x49, 0x50, 0x56, 0x34, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x36, 0x10, 0x01, + 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, + 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, + 0x33, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x6c, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_l3_l3xc_proto_rawDescOnce sync.Once + file_ligato_vpp_l3_l3xc_proto_rawDescData = file_ligato_vpp_l3_l3xc_proto_rawDesc +) + +func file_ligato_vpp_l3_l3xc_proto_rawDescGZIP() []byte { + file_ligato_vpp_l3_l3xc_proto_rawDescOnce.Do(func() { + file_ligato_vpp_l3_l3xc_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_l3_l3xc_proto_rawDescData) + }) + return file_ligato_vpp_l3_l3xc_proto_rawDescData +} + +var file_ligato_vpp_l3_l3xc_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_ligato_vpp_l3_l3xc_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_ligato_vpp_l3_l3xc_proto_goTypes = []interface{}{ + (L3XConnect_Protocol)(0), // 0: ligato.vpp.l3.L3XConnect.Protocol + (*L3XConnect)(nil), // 1: ligato.vpp.l3.L3XConnect + (*L3XConnect_Path)(nil), // 2: ligato.vpp.l3.L3XConnect.Path +} +var file_ligato_vpp_l3_l3xc_proto_depIdxs = []int32{ + 0, // 0: ligato.vpp.l3.L3XConnect.protocol:type_name -> ligato.vpp.l3.L3XConnect.Protocol + 2, // 1: ligato.vpp.l3.L3XConnect.paths:type_name -> ligato.vpp.l3.L3XConnect.Path + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_l3_l3xc_proto_init() } +func file_ligato_vpp_l3_l3xc_proto_init() { + if File_ligato_vpp_l3_l3xc_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_l3_l3xc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*L3XConnect); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_l3_l3xc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*L3XConnect_Path); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_l3_l3xc_proto_rawDesc, + NumEnums: 1, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_l3_l3xc_proto_goTypes, + DependencyIndexes: file_ligato_vpp_l3_l3xc_proto_depIdxs, + EnumInfos: file_ligato_vpp_l3_l3xc_proto_enumTypes, + MessageInfos: file_ligato_vpp_l3_l3xc_proto_msgTypes, + }.Build() + File_ligato_vpp_l3_l3xc_proto = out.File + file_ligato_vpp_l3_l3xc_proto_rawDesc = nil + file_ligato_vpp_l3_l3xc_proto_goTypes = nil + file_ligato_vpp_l3_l3xc_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/l3/route.pb.go b/proto/ligato/vpp/l3/route.pb.go index 7b34a7eac8..d0ba6ccd5e 100644 --- a/proto/ligato/vpp/l3/route.pb.go +++ b/proto/ligato/vpp/l3/route.pb.go @@ -1,24 +1,29 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/l3/route.proto package vpp_l3 import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type Route_RouteType int32 @@ -36,27 +41,52 @@ const ( Route_DROP Route_RouteType = 2 ) -var Route_RouteType_name = map[int32]string{ - 0: "INTRA_VRF", - 1: "INTER_VRF", - 2: "DROP", -} +// Enum value maps for Route_RouteType. +var ( + Route_RouteType_name = map[int32]string{ + 0: "INTRA_VRF", + 1: "INTER_VRF", + 2: "DROP", + } + Route_RouteType_value = map[string]int32{ + "INTRA_VRF": 0, + "INTER_VRF": 1, + "DROP": 2, + } +) -var Route_RouteType_value = map[string]int32{ - "INTRA_VRF": 0, - "INTER_VRF": 1, - "DROP": 2, +func (x Route_RouteType) Enum() *Route_RouteType { + p := new(Route_RouteType) + *p = x + return p } func (x Route_RouteType) String() string { - return proto.EnumName(Route_RouteType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Route_RouteType) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_l3_route_proto_enumTypes[0].Descriptor() +} + +func (Route_RouteType) Type() protoreflect.EnumType { + return &file_ligato_vpp_l3_route_proto_enumTypes[0] +} + +func (x Route_RouteType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use Route_RouteType.Descriptor instead. func (Route_RouteType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_40b3e1f32796b68b, []int{0, 0} + return file_ligato_vpp_l3_route_proto_rawDescGZIP(), []int{0, 0} } type Route struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Type Route_RouteType `protobuf:"varint,10,opt,name=type,proto3,enum=ligato.vpp.l3.Route_RouteType" json:"type,omitempty"` // VRF identifier, field required for remote client. This value should be // consistent with VRF ID in static route key. If it is not, value from @@ -75,121 +105,193 @@ type Route struct { // Only paths with the best preference contribute to forwarding (a poor man's primary and backup). Preference uint32 `protobuf:"varint,7,opt,name=preference,proto3" json:"preference,omitempty"` // Specifies VRF ID for the next hop lookup / recursive lookup - ViaVrfId uint32 `protobuf:"varint,8,opt,name=via_vrf_id,json=viaVrfId,proto3" json:"via_vrf_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ViaVrfId uint32 `protobuf:"varint,8,opt,name=via_vrf_id,json=viaVrfId,proto3" json:"via_vrf_id,omitempty"` } -func (m *Route) Reset() { *m = Route{} } -func (m *Route) String() string { return proto.CompactTextString(m) } -func (*Route) ProtoMessage() {} -func (*Route) Descriptor() ([]byte, []int) { - return fileDescriptor_40b3e1f32796b68b, []int{0} +func (x *Route) Reset() { + *x = Route{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_l3_route_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Route) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Route.Unmarshal(m, b) -} -func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Route.Marshal(b, m, deterministic) -} -func (m *Route) XXX_Merge(src proto.Message) { - xxx_messageInfo_Route.Merge(m, src) -} -func (m *Route) XXX_Size() int { - return xxx_messageInfo_Route.Size(m) +func (x *Route) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Route) XXX_DiscardUnknown() { - xxx_messageInfo_Route.DiscardUnknown(m) + +func (*Route) ProtoMessage() {} + +func (x *Route) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_l3_route_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Route proto.InternalMessageInfo +// Deprecated: Use Route.ProtoReflect.Descriptor instead. +func (*Route) Descriptor() ([]byte, []int) { + return file_ligato_vpp_l3_route_proto_rawDescGZIP(), []int{0} +} -func (m *Route) GetType() Route_RouteType { - if m != nil { - return m.Type +func (x *Route) GetType() Route_RouteType { + if x != nil { + return x.Type } return Route_INTRA_VRF } -func (m *Route) GetVrfId() uint32 { - if m != nil { - return m.VrfId +func (x *Route) GetVrfId() uint32 { + if x != nil { + return x.VrfId } return 0 } -func (m *Route) GetDstNetwork() string { - if m != nil { - return m.DstNetwork +func (x *Route) GetDstNetwork() string { + if x != nil { + return x.DstNetwork } return "" } -func (m *Route) GetNextHopAddr() string { - if m != nil { - return m.NextHopAddr +func (x *Route) GetNextHopAddr() string { + if x != nil { + return x.NextHopAddr } return "" } -func (m *Route) GetOutgoingInterface() string { - if m != nil { - return m.OutgoingInterface +func (x *Route) GetOutgoingInterface() string { + if x != nil { + return x.OutgoingInterface } return "" } -func (m *Route) GetWeight() uint32 { - if m != nil { - return m.Weight +func (x *Route) GetWeight() uint32 { + if x != nil { + return x.Weight } return 0 } -func (m *Route) GetPreference() uint32 { - if m != nil { - return m.Preference +func (x *Route) GetPreference() uint32 { + if x != nil { + return x.Preference } return 0 } -func (m *Route) GetViaVrfId() uint32 { - if m != nil { - return m.ViaVrfId +func (x *Route) GetViaVrfId() uint32 { + if x != nil { + return x.ViaVrfId } return 0 } -func init() { - proto.RegisterEnum("ligato.vpp.l3.Route_RouteType", Route_RouteType_name, Route_RouteType_value) - proto.RegisterType((*Route)(nil), "ligato.vpp.l3.Route") -} - -func init() { proto.RegisterFile("ligato/vpp/l3/route.proto", fileDescriptor_40b3e1f32796b68b) } - -var fileDescriptor_40b3e1f32796b68b = []byte{ - // 325 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0x41, 0x6b, 0x2a, 0x31, - 0x14, 0x85, 0xdf, 0xf8, 0x74, 0x9e, 0x5e, 0x99, 0x87, 0x0d, 0xb4, 0xa4, 0x50, 0xac, 0xb8, 0x72, - 0xe3, 0x0c, 0x38, 0xa5, 0x9b, 0xae, 0x2c, 0x6d, 0xa9, 0x1b, 0x5b, 0x82, 0xb8, 0xe8, 0x26, 0x4c, - 0xcd, 0x9d, 0x31, 0x74, 0x98, 0x84, 0x18, 0x63, 0xfd, 0x99, 0xfd, 0x47, 0xc5, 0xa8, 0xa5, 0x6e, - 0x02, 0xe7, 0x7c, 0x67, 0x91, 0x73, 0x0f, 0x5c, 0x96, 0xb2, 0xc8, 0xac, 0x4a, 0x9c, 0xd6, 0x49, - 0x99, 0x26, 0x46, 0xad, 0x2d, 0xc6, 0xda, 0x28, 0xab, 0x48, 0xb4, 0x47, 0xb1, 0xd3, 0x3a, 0x2e, - 0xd3, 0xfe, 0x57, 0x0d, 0x1a, 0x6c, 0x87, 0xc9, 0x08, 0xea, 0x76, 0xab, 0x91, 0x42, 0x2f, 0x18, - 0xfc, 0x1f, 0x75, 0xe3, 0x93, 0x5c, 0xec, 0x33, 0xfb, 0x77, 0xb6, 0xd5, 0xc8, 0x7c, 0x96, 0x9c, - 0x43, 0xe8, 0x4c, 0xce, 0xa5, 0xa0, 0x41, 0x2f, 0x18, 0x44, 0xac, 0xe1, 0x4c, 0x3e, 0x11, 0xe4, - 0x1a, 0xda, 0x62, 0x65, 0x79, 0x85, 0x76, 0xa3, 0xcc, 0x07, 0xfd, 0xdb, 0x0b, 0x06, 0x2d, 0x06, - 0x62, 0x65, 0xa7, 0x7b, 0x87, 0xf4, 0x21, 0xaa, 0xf0, 0xd3, 0xf2, 0xa5, 0xd2, 0x3c, 0x13, 0xc2, - 0xd0, 0xba, 0x8f, 0xb4, 0x77, 0xe6, 0xb3, 0xd2, 0x63, 0x21, 0x0c, 0x19, 0x02, 0x51, 0x6b, 0x5b, - 0x28, 0x59, 0x15, 0x5c, 0x56, 0x16, 0x4d, 0x9e, 0x2d, 0x90, 0x36, 0x7c, 0xf0, 0xec, 0x48, 0x26, - 0x47, 0x40, 0x2e, 0x20, 0xdc, 0xa0, 0x2c, 0x96, 0x96, 0x86, 0xfe, 0x2b, 0x07, 0x45, 0xba, 0x00, - 0xda, 0x60, 0x8e, 0x06, 0xab, 0x05, 0xd2, 0x7f, 0x9e, 0xfd, 0x72, 0xc8, 0x15, 0x80, 0x93, 0x19, - 0x3f, 0xd4, 0x68, 0x7a, 0xde, 0x74, 0x32, 0x9b, 0xef, 0x9a, 0xf4, 0x53, 0x68, 0xfd, 0x74, 0x26, - 0x11, 0xb4, 0x26, 0xd3, 0x19, 0x1b, 0xf3, 0x39, 0x7b, 0xea, 0xfc, 0x39, 0xc8, 0x47, 0xe6, 0x65, - 0x40, 0x9a, 0x50, 0x7f, 0x60, 0x2f, 0xaf, 0x9d, 0xda, 0xfd, 0xed, 0xdb, 0x4d, 0xa1, 0x8e, 0xf7, - 0x93, 0x7e, 0x85, 0x61, 0x56, 0x60, 0x65, 0x13, 0x97, 0x26, 0x7e, 0x85, 0xe4, 0x64, 0x9f, 0x3b, - 0xa7, 0x35, 0x2f, 0xd3, 0xf7, 0xd0, 0xb3, 0xf4, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x47, 0x80, 0xb2, - 0x9e, 0xbe, 0x01, 0x00, 0x00, +var File_ligato_vpp_l3_route_proto protoreflect.FileDescriptor + +var file_ligato_vpp_l3_route_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x33, 0x2f, + 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x6c, 0x69, 0x67, + 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x22, 0xd1, 0x02, 0x0a, 0x05, 0x52, + 0x6f, 0x75, 0x74, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, + 0x6c, 0x33, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x76, 0x72, 0x66, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x72, 0x66, 0x49, 0x64, 0x12, + 0x1f, 0x0a, 0x0b, 0x64, 0x73, 0x74, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x12, 0x22, 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x68, 0x6f, 0x70, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x48, 0x6f, 0x70, + 0x41, 0x64, 0x64, 0x72, 0x12, 0x2d, 0x0a, 0x12, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, + 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x11, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x70, + 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x0a, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x0a, 0x76, + 0x69, 0x61, 0x5f, 0x76, 0x72, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x08, 0x76, 0x69, 0x61, 0x56, 0x72, 0x66, 0x49, 0x64, 0x22, 0x33, 0x0a, 0x09, 0x52, 0x6f, 0x75, + 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x49, 0x4e, 0x54, 0x52, 0x41, 0x5f, + 0x56, 0x52, 0x46, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x56, + 0x52, 0x46, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x52, 0x4f, 0x50, 0x10, 0x02, 0x42, 0x36, + 0x5a, 0x34, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, + 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x33, 0x3b, + 0x76, 0x70, 0x70, 0x5f, 0x6c, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_l3_route_proto_rawDescOnce sync.Once + file_ligato_vpp_l3_route_proto_rawDescData = file_ligato_vpp_l3_route_proto_rawDesc +) + +func file_ligato_vpp_l3_route_proto_rawDescGZIP() []byte { + file_ligato_vpp_l3_route_proto_rawDescOnce.Do(func() { + file_ligato_vpp_l3_route_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_l3_route_proto_rawDescData) + }) + return file_ligato_vpp_l3_route_proto_rawDescData +} + +var file_ligato_vpp_l3_route_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_ligato_vpp_l3_route_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_ligato_vpp_l3_route_proto_goTypes = []interface{}{ + (Route_RouteType)(0), // 0: ligato.vpp.l3.Route.RouteType + (*Route)(nil), // 1: ligato.vpp.l3.Route +} +var file_ligato_vpp_l3_route_proto_depIdxs = []int32{ + 0, // 0: ligato.vpp.l3.Route.type:type_name -> ligato.vpp.l3.Route.RouteType + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_l3_route_proto_init() } +func file_ligato_vpp_l3_route_proto_init() { + if File_ligato_vpp_l3_route_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_l3_route_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Route); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_l3_route_proto_rawDesc, + NumEnums: 1, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_l3_route_proto_goTypes, + DependencyIndexes: file_ligato_vpp_l3_route_proto_depIdxs, + EnumInfos: file_ligato_vpp_l3_route_proto_enumTypes, + MessageInfos: file_ligato_vpp_l3_route_proto_msgTypes, + }.Build() + File_ligato_vpp_l3_route_proto = out.File + file_ligato_vpp_l3_route_proto_rawDesc = nil + file_ligato_vpp_l3_route_proto_goTypes = nil + file_ligato_vpp_l3_route_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/l3/teib.pb.go b/proto/ligato/vpp/l3/teib.pb.go index 32b4645315..6b32ae7132 100644 --- a/proto/ligato/vpp/l3/teib.pb.go +++ b/proto/ligato/vpp/l3/teib.pb.go @@ -1,27 +1,36 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/l3/teib.proto package vpp_l3 import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 // TeibEntry represents an tunnel endpoint information base entry. type TeibEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Interface references a tunnel interface this TEIB entry is linked to. Interface string `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` // IP address of the peer. @@ -29,84 +38,148 @@ type TeibEntry struct { // Next hop IP address. NextHopAddr string `protobuf:"bytes,3,opt,name=next_hop_addr,json=nextHopAddr,proto3" json:"next_hop_addr,omitempty"` // VRF ID used to reach the next hop. - VrfId uint32 `protobuf:"varint,4,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VrfId uint32 `protobuf:"varint,4,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` } -func (m *TeibEntry) Reset() { *m = TeibEntry{} } -func (m *TeibEntry) String() string { return proto.CompactTextString(m) } -func (*TeibEntry) ProtoMessage() {} -func (*TeibEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_43413ef30fbb968b, []int{0} +func (x *TeibEntry) Reset() { + *x = TeibEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_l3_teib_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TeibEntry) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TeibEntry.Unmarshal(m, b) -} -func (m *TeibEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TeibEntry.Marshal(b, m, deterministic) -} -func (m *TeibEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_TeibEntry.Merge(m, src) +func (x *TeibEntry) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TeibEntry) XXX_Size() int { - return xxx_messageInfo_TeibEntry.Size(m) -} -func (m *TeibEntry) XXX_DiscardUnknown() { - xxx_messageInfo_TeibEntry.DiscardUnknown(m) + +func (*TeibEntry) ProtoMessage() {} + +func (x *TeibEntry) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_l3_teib_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TeibEntry proto.InternalMessageInfo +// Deprecated: Use TeibEntry.ProtoReflect.Descriptor instead. +func (*TeibEntry) Descriptor() ([]byte, []int) { + return file_ligato_vpp_l3_teib_proto_rawDescGZIP(), []int{0} +} -func (m *TeibEntry) GetInterface() string { - if m != nil { - return m.Interface +func (x *TeibEntry) GetInterface() string { + if x != nil { + return x.Interface } return "" } -func (m *TeibEntry) GetPeerAddr() string { - if m != nil { - return m.PeerAddr +func (x *TeibEntry) GetPeerAddr() string { + if x != nil { + return x.PeerAddr } return "" } -func (m *TeibEntry) GetNextHopAddr() string { - if m != nil { - return m.NextHopAddr +func (x *TeibEntry) GetNextHopAddr() string { + if x != nil { + return x.NextHopAddr } return "" } -func (m *TeibEntry) GetVrfId() uint32 { - if m != nil { - return m.VrfId +func (x *TeibEntry) GetVrfId() uint32 { + if x != nil { + return x.VrfId } return 0 } -func init() { - proto.RegisterType((*TeibEntry)(nil), "ligato.vpp.l3.TeibEntry") +var File_ligato_vpp_l3_teib_proto protoreflect.FileDescriptor + +var file_ligato_vpp_l3_teib_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x33, 0x2f, + 0x74, 0x65, 0x69, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x22, 0x81, 0x01, 0x0a, 0x09, 0x54, 0x65, + 0x69, 0x62, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x65, 0x65, 0x72, 0x41, 0x64, + 0x64, 0x72, 0x12, 0x22, 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x68, 0x6f, 0x70, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x48, + 0x6f, 0x70, 0x41, 0x64, 0x64, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x76, 0x72, 0x66, 0x5f, 0x69, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x72, 0x66, 0x49, 0x64, 0x42, 0x36, 0x5a, + 0x34, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, + 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x33, 0x3b, 0x76, + 0x70, 0x70, 0x5f, 0x6c, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_l3_teib_proto_rawDescOnce sync.Once + file_ligato_vpp_l3_teib_proto_rawDescData = file_ligato_vpp_l3_teib_proto_rawDesc +) + +func file_ligato_vpp_l3_teib_proto_rawDescGZIP() []byte { + file_ligato_vpp_l3_teib_proto_rawDescOnce.Do(func() { + file_ligato_vpp_l3_teib_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_l3_teib_proto_rawDescData) + }) + return file_ligato_vpp_l3_teib_proto_rawDescData } -func init() { proto.RegisterFile("ligato/vpp/l3/teib.proto", fileDescriptor_43413ef30fbb968b) } - -var fileDescriptor_43413ef30fbb968b = []byte{ - // 204 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0x3d, 0x4b, 0x04, 0x31, - 0x14, 0x45, 0x89, 0x1f, 0x8b, 0x89, 0x4c, 0x13, 0x10, 0x02, 0x5a, 0x2c, 0x5b, 0x6d, 0x63, 0x52, - 0x44, 0x6c, 0xac, 0x14, 0x04, 0x6d, 0x17, 0x2b, 0x9b, 0x90, 0x31, 0x6f, 0xc6, 0x40, 0x48, 0x1e, - 0x8f, 0x10, 0xb4, 0xf4, 0x9f, 0xcb, 0x64, 0x04, 0xd9, 0xf6, 0x9e, 0x53, 0x9c, 0x2b, 0x54, 0x8a, - 0xb3, 0xaf, 0xc5, 0x34, 0x44, 0x93, 0xac, 0xa9, 0x10, 0x47, 0x8d, 0x54, 0x6a, 0x91, 0xc3, 0x4a, - 0x74, 0x43, 0xd4, 0xc9, 0xee, 0x7e, 0x98, 0xe0, 0x6f, 0x10, 0xc7, 0xe7, 0x5c, 0xe9, 0x5b, 0xde, - 0x08, 0x1e, 0x73, 0x05, 0x9a, 0xfc, 0x07, 0x28, 0xb6, 0x65, 0x7b, 0x7e, 0xf8, 0x1f, 0xe4, 0xb5, - 0xe0, 0x08, 0x40, 0xce, 0x87, 0x40, 0xea, 0xa4, 0xd3, 0x8b, 0x65, 0x78, 0x0c, 0x81, 0xe4, 0x4e, - 0x0c, 0x19, 0xbe, 0xaa, 0xfb, 0x2c, 0xb8, 0x0a, 0xa7, 0x5d, 0xb8, 0x5c, 0xc6, 0x97, 0x82, 0xdd, - 0xb9, 0x12, 0x9b, 0x46, 0x93, 0x8b, 0x41, 0x9d, 0x6d, 0xd9, 0x7e, 0x38, 0x9c, 0x37, 0x9a, 0x5e, - 0xc3, 0xd3, 0xfd, 0xfb, 0xdd, 0x5c, 0xf4, 0x5f, 0x57, 0xec, 0xd1, 0xb7, 0x7e, 0x86, 0x5c, 0x4d, - 0xb3, 0xa6, 0x57, 0x9b, 0xa3, 0x3b, 0x0f, 0x0d, 0xd1, 0x25, 0x3b, 0x6e, 0x3a, 0xb3, 0xbf, 0x01, - 0x00, 0x00, 0xff, 0xff, 0x65, 0xf5, 0xe1, 0xfd, 0xed, 0x00, 0x00, 0x00, +var file_ligato_vpp_l3_teib_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_ligato_vpp_l3_teib_proto_goTypes = []interface{}{ + (*TeibEntry)(nil), // 0: ligato.vpp.l3.TeibEntry +} +var file_ligato_vpp_l3_teib_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_l3_teib_proto_init() } +func file_ligato_vpp_l3_teib_proto_init() { + if File_ligato_vpp_l3_teib_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_l3_teib_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TeibEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_l3_teib_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_l3_teib_proto_goTypes, + DependencyIndexes: file_ligato_vpp_l3_teib_proto_depIdxs, + MessageInfos: file_ligato_vpp_l3_teib_proto_msgTypes, + }.Build() + File_ligato_vpp_l3_teib_proto = out.File + file_ligato_vpp_l3_teib_proto_rawDesc = nil + file_ligato_vpp_l3_teib_proto_goTypes = nil + file_ligato_vpp_l3_teib_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/l3/vrf.pb.go b/proto/ligato/vpp/l3/vrf.pb.go index ae04162128..132836f5d5 100644 --- a/proto/ligato/vpp/l3/vrf.pb.go +++ b/proto/ligato/vpp/l3/vrf.pb.go @@ -1,24 +1,29 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/l3/vrf.proto package vpp_l3 import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 // Protocol define IP protocol of VRF table. type VrfTable_Protocol int32 @@ -28,25 +33,50 @@ const ( VrfTable_IPV6 VrfTable_Protocol = 1 ) -var VrfTable_Protocol_name = map[int32]string{ - 0: "IPV4", - 1: "IPV6", -} +// Enum value maps for VrfTable_Protocol. +var ( + VrfTable_Protocol_name = map[int32]string{ + 0: "IPV4", + 1: "IPV6", + } + VrfTable_Protocol_value = map[string]int32{ + "IPV4": 0, + "IPV6": 1, + } +) -var VrfTable_Protocol_value = map[string]int32{ - "IPV4": 0, - "IPV6": 1, +func (x VrfTable_Protocol) Enum() *VrfTable_Protocol { + p := new(VrfTable_Protocol) + *p = x + return p } func (x VrfTable_Protocol) String() string { - return proto.EnumName(VrfTable_Protocol_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (VrfTable_Protocol) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_l3_vrf_proto_enumTypes[0].Descriptor() +} + +func (VrfTable_Protocol) Type() protoreflect.EnumType { + return &file_ligato_vpp_l3_vrf_proto_enumTypes[0] +} + +func (x VrfTable_Protocol) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use VrfTable_Protocol.Descriptor instead. func (VrfTable_Protocol) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_4ba58f73bd5b6328, []int{0, 0} + return file_ligato_vpp_l3_vrf_proto_rawDescGZIP(), []int{0, 0} } type VrfTable struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // ID is mandatory identification for VRF table. // NOTE: do not confuse with fib index (shown by some VPP CLIs), // which is VPP's internal offset in the vector of allocated tables. @@ -56,62 +86,66 @@ type VrfTable struct { // - maximum allowed length is 63 characters // - included in the output from the VPP CLI command "show ip fib" // - if undefined, then VPP will generate label using the template "-VRF:" - Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"` - FlowHashSettings *VrfTable_FlowHashSettings `protobuf:"bytes,4,opt,name=flow_hash_settings,json=flowHashSettings,proto3" json:"flow_hash_settings,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"` + FlowHashSettings *VrfTable_FlowHashSettings `protobuf:"bytes,4,opt,name=flow_hash_settings,json=flowHashSettings,proto3" json:"flow_hash_settings,omitempty"` } -func (m *VrfTable) Reset() { *m = VrfTable{} } -func (m *VrfTable) String() string { return proto.CompactTextString(m) } -func (*VrfTable) ProtoMessage() {} -func (*VrfTable) Descriptor() ([]byte, []int) { - return fileDescriptor_4ba58f73bd5b6328, []int{0} +func (x *VrfTable) Reset() { + *x = VrfTable{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_l3_vrf_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *VrfTable) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VrfTable.Unmarshal(m, b) -} -func (m *VrfTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VrfTable.Marshal(b, m, deterministic) -} -func (m *VrfTable) XXX_Merge(src proto.Message) { - xxx_messageInfo_VrfTable.Merge(m, src) +func (x *VrfTable) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VrfTable) XXX_Size() int { - return xxx_messageInfo_VrfTable.Size(m) -} -func (m *VrfTable) XXX_DiscardUnknown() { - xxx_messageInfo_VrfTable.DiscardUnknown(m) + +func (*VrfTable) ProtoMessage() {} + +func (x *VrfTable) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_l3_vrf_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_VrfTable proto.InternalMessageInfo +// Deprecated: Use VrfTable.ProtoReflect.Descriptor instead. +func (*VrfTable) Descriptor() ([]byte, []int) { + return file_ligato_vpp_l3_vrf_proto_rawDescGZIP(), []int{0} +} -func (m *VrfTable) GetId() uint32 { - if m != nil { - return m.Id +func (x *VrfTable) GetId() uint32 { + if x != nil { + return x.Id } return 0 } -func (m *VrfTable) GetProtocol() VrfTable_Protocol { - if m != nil { - return m.Protocol +func (x *VrfTable) GetProtocol() VrfTable_Protocol { + if x != nil { + return x.Protocol } return VrfTable_IPV4 } -func (m *VrfTable) GetLabel() string { - if m != nil { - return m.Label +func (x *VrfTable) GetLabel() string { + if x != nil { + return x.Label } return "" } -func (m *VrfTable) GetFlowHashSettings() *VrfTable_FlowHashSettings { - if m != nil { - return m.FlowHashSettings +func (x *VrfTable) GetFlowHashSettings() *VrfTable_FlowHashSettings { + if x != nil { + return x.FlowHashSettings } return nil } @@ -121,123 +155,219 @@ func (m *VrfTable) GetFlowHashSettings() *VrfTable_FlowHashSettings { // If not defined, default settings that are implicitly enabled are: // - use_src_ip, use_dst_ip, use_src_port, use_dst_port, use_protocol type VrfTable_FlowHashSettings struct { - UseSrcIp bool `protobuf:"varint,1,opt,name=use_src_ip,json=useSrcIp,proto3" json:"use_src_ip,omitempty"` - UseDstIp bool `protobuf:"varint,2,opt,name=use_dst_ip,json=useDstIp,proto3" json:"use_dst_ip,omitempty"` - UseSrcPort bool `protobuf:"varint,3,opt,name=use_src_port,json=useSrcPort,proto3" json:"use_src_port,omitempty"` - UseDstPort bool `protobuf:"varint,4,opt,name=use_dst_port,json=useDstPort,proto3" json:"use_dst_port,omitempty"` - UseProtocol bool `protobuf:"varint,5,opt,name=use_protocol,json=useProtocol,proto3" json:"use_protocol,omitempty"` - Reverse bool `protobuf:"varint,6,opt,name=reverse,proto3" json:"reverse,omitempty"` - Symmetric bool `protobuf:"varint,7,opt,name=symmetric,proto3" json:"symmetric,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VrfTable_FlowHashSettings) Reset() { *m = VrfTable_FlowHashSettings{} } -func (m *VrfTable_FlowHashSettings) String() string { return proto.CompactTextString(m) } -func (*VrfTable_FlowHashSettings) ProtoMessage() {} -func (*VrfTable_FlowHashSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_4ba58f73bd5b6328, []int{0, 0} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UseSrcIp bool `protobuf:"varint,1,opt,name=use_src_ip,json=useSrcIp,proto3" json:"use_src_ip,omitempty"` + UseDstIp bool `protobuf:"varint,2,opt,name=use_dst_ip,json=useDstIp,proto3" json:"use_dst_ip,omitempty"` + UseSrcPort bool `protobuf:"varint,3,opt,name=use_src_port,json=useSrcPort,proto3" json:"use_src_port,omitempty"` + UseDstPort bool `protobuf:"varint,4,opt,name=use_dst_port,json=useDstPort,proto3" json:"use_dst_port,omitempty"` + UseProtocol bool `protobuf:"varint,5,opt,name=use_protocol,json=useProtocol,proto3" json:"use_protocol,omitempty"` + Reverse bool `protobuf:"varint,6,opt,name=reverse,proto3" json:"reverse,omitempty"` + Symmetric bool `protobuf:"varint,7,opt,name=symmetric,proto3" json:"symmetric,omitempty"` } -func (m *VrfTable_FlowHashSettings) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VrfTable_FlowHashSettings.Unmarshal(m, b) -} -func (m *VrfTable_FlowHashSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VrfTable_FlowHashSettings.Marshal(b, m, deterministic) -} -func (m *VrfTable_FlowHashSettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_VrfTable_FlowHashSettings.Merge(m, src) +func (x *VrfTable_FlowHashSettings) Reset() { + *x = VrfTable_FlowHashSettings{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_l3_vrf_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *VrfTable_FlowHashSettings) XXX_Size() int { - return xxx_messageInfo_VrfTable_FlowHashSettings.Size(m) + +func (x *VrfTable_FlowHashSettings) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VrfTable_FlowHashSettings) XXX_DiscardUnknown() { - xxx_messageInfo_VrfTable_FlowHashSettings.DiscardUnknown(m) + +func (*VrfTable_FlowHashSettings) ProtoMessage() {} + +func (x *VrfTable_FlowHashSettings) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_l3_vrf_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_VrfTable_FlowHashSettings proto.InternalMessageInfo +// Deprecated: Use VrfTable_FlowHashSettings.ProtoReflect.Descriptor instead. +func (*VrfTable_FlowHashSettings) Descriptor() ([]byte, []int) { + return file_ligato_vpp_l3_vrf_proto_rawDescGZIP(), []int{0, 0} +} -func (m *VrfTable_FlowHashSettings) GetUseSrcIp() bool { - if m != nil { - return m.UseSrcIp +func (x *VrfTable_FlowHashSettings) GetUseSrcIp() bool { + if x != nil { + return x.UseSrcIp } return false } -func (m *VrfTable_FlowHashSettings) GetUseDstIp() bool { - if m != nil { - return m.UseDstIp +func (x *VrfTable_FlowHashSettings) GetUseDstIp() bool { + if x != nil { + return x.UseDstIp } return false } -func (m *VrfTable_FlowHashSettings) GetUseSrcPort() bool { - if m != nil { - return m.UseSrcPort +func (x *VrfTable_FlowHashSettings) GetUseSrcPort() bool { + if x != nil { + return x.UseSrcPort } return false } -func (m *VrfTable_FlowHashSettings) GetUseDstPort() bool { - if m != nil { - return m.UseDstPort +func (x *VrfTable_FlowHashSettings) GetUseDstPort() bool { + if x != nil { + return x.UseDstPort } return false } -func (m *VrfTable_FlowHashSettings) GetUseProtocol() bool { - if m != nil { - return m.UseProtocol +func (x *VrfTable_FlowHashSettings) GetUseProtocol() bool { + if x != nil { + return x.UseProtocol } return false } -func (m *VrfTable_FlowHashSettings) GetReverse() bool { - if m != nil { - return m.Reverse +func (x *VrfTable_FlowHashSettings) GetReverse() bool { + if x != nil { + return x.Reverse } return false } -func (m *VrfTable_FlowHashSettings) GetSymmetric() bool { - if m != nil { - return m.Symmetric +func (x *VrfTable_FlowHashSettings) GetSymmetric() bool { + if x != nil { + return x.Symmetric } return false } -func init() { - proto.RegisterEnum("ligato.vpp.l3.VrfTable_Protocol", VrfTable_Protocol_name, VrfTable_Protocol_value) - proto.RegisterType((*VrfTable)(nil), "ligato.vpp.l3.VrfTable") - proto.RegisterType((*VrfTable_FlowHashSettings)(nil), "ligato.vpp.l3.VrfTable.FlowHashSettings") -} - -func init() { proto.RegisterFile("ligato/vpp/l3/vrf.proto", fileDescriptor_4ba58f73bd5b6328) } - -var fileDescriptor_4ba58f73bd5b6328 = []byte{ - // 356 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x4f, 0x6b, 0xf2, 0x40, - 0x10, 0x87, 0xdf, 0xc4, 0x7f, 0x71, 0x7c, 0x95, 0xb0, 0x14, 0x1a, 0x8a, 0x94, 0xd4, 0x53, 0x2e, - 0x4d, 0xc0, 0x88, 0x97, 0xf6, 0x54, 0xa4, 0xd4, 0x9b, 0xc4, 0xe2, 0xa1, 0x97, 0x10, 0xe3, 0x26, - 0x06, 0x56, 0x77, 0xd9, 0x5d, 0x23, 0xfd, 0xa2, 0xfd, 0x16, 0xfd, 0x0e, 0xc5, 0x8d, 0x9b, 0xa2, - 0xd0, 0x5b, 0x76, 0x7e, 0xcf, 0x33, 0x64, 0x86, 0x81, 0x5b, 0x52, 0xe4, 0x89, 0xa4, 0x41, 0xc9, - 0x58, 0x40, 0xc2, 0xa0, 0xe4, 0x99, 0xcf, 0x38, 0x95, 0x14, 0xf5, 0xab, 0xc0, 0x2f, 0x19, 0xf3, - 0x49, 0x38, 0xfa, 0x6a, 0x80, 0xb5, 0xe2, 0xd9, 0x7b, 0xb2, 0x26, 0x18, 0x0d, 0xc0, 0x2c, 0x36, - 0x8e, 0xe1, 0x1a, 0x5e, 0x3f, 0x32, 0x8b, 0x0d, 0x7a, 0x06, 0x4b, 0x49, 0x29, 0x25, 0x8e, 0xe9, - 0x1a, 0xde, 0x60, 0xec, 0xfa, 0x17, 0xba, 0xaf, 0x55, 0x7f, 0x71, 0xe6, 0xa2, 0xda, 0x40, 0x37, - 0xd0, 0x22, 0xc9, 0x1a, 0x13, 0xa7, 0xe1, 0x1a, 0x5e, 0x37, 0xaa, 0x1e, 0x68, 0x05, 0x28, 0x23, - 0xf4, 0x18, 0x6f, 0x13, 0xb1, 0x8d, 0x05, 0x96, 0xb2, 0xd8, 0xe7, 0xc2, 0x69, 0xba, 0x86, 0xd7, - 0x1b, 0x7b, 0x7f, 0x75, 0x7f, 0x25, 0xf4, 0xf8, 0x96, 0x88, 0xed, 0xf2, 0xcc, 0x47, 0x76, 0x76, - 0x55, 0xb9, 0xfb, 0x36, 0xc0, 0xbe, 0xc6, 0xd0, 0x10, 0xe0, 0x20, 0x70, 0x2c, 0x78, 0x1a, 0x17, - 0x4c, 0x0d, 0x66, 0x45, 0xd6, 0x41, 0xe0, 0x25, 0x4f, 0xe7, 0x4c, 0xa7, 0x1b, 0x21, 0x4f, 0xa9, - 0x59, 0xa7, 0x33, 0x21, 0xe7, 0x0c, 0xb9, 0xf0, 0x5f, 0xbb, 0x8c, 0x72, 0xa9, 0xa6, 0xb0, 0x22, - 0xa8, 0xec, 0x05, 0xe5, 0x52, 0x13, 0x27, 0x5f, 0x11, 0xcd, 0x9a, 0x98, 0x09, 0xa9, 0x88, 0x87, - 0x8a, 0xa8, 0x97, 0xd8, 0x52, 0x44, 0xef, 0x20, 0xb0, 0xde, 0x17, 0x72, 0xa0, 0xc3, 0x71, 0x89, - 0xb9, 0xc0, 0x4e, 0x5b, 0xa5, 0xfa, 0x89, 0x86, 0xd0, 0x15, 0x9f, 0xbb, 0x1d, 0x96, 0xbc, 0x48, - 0x9d, 0x8e, 0xca, 0x7e, 0x0b, 0xa3, 0x7b, 0xb0, 0xea, 0x1e, 0x16, 0x34, 0xe7, 0x8b, 0xd5, 0xc4, - 0xfe, 0x77, 0xfe, 0x9a, 0xda, 0xc6, 0xcb, 0xf4, 0x63, 0x92, 0x53, 0xbd, 0xcf, 0x42, 0x1d, 0xc2, - 0x63, 0x92, 0xe3, 0xbd, 0x0c, 0xca, 0x30, 0x50, 0x3f, 0x14, 0x5c, 0x9c, 0xc8, 0x53, 0xc9, 0x58, - 0x4c, 0xc2, 0x75, 0x5b, 0x65, 0xe1, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc9, 0xbd, 0x72, 0xd7, - 0x41, 0x02, 0x00, 0x00, +var File_ligato_vpp_l3_vrf_proto protoreflect.FileDescriptor + +var file_ligato_vpp_l3_vrf_proto_rawDesc = []byte{ + 0x0a, 0x17, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x33, 0x2f, + 0x76, 0x72, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x22, 0xd6, 0x03, 0x0a, 0x08, 0x56, 0x72, 0x66, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3c, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x2e, 0x56, 0x72, 0x66, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x56, 0x0a, 0x12, 0x66, 0x6c, 0x6f, + 0x77, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, + 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x2e, 0x56, 0x72, 0x66, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x46, + 0x6c, 0x6f, 0x77, 0x48, 0x61, 0x73, 0x68, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, + 0x10, 0x66, 0x6c, 0x6f, 0x77, 0x48, 0x61, 0x73, 0x68, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, + 0x73, 0x1a, 0xed, 0x01, 0x0a, 0x10, 0x46, 0x6c, 0x6f, 0x77, 0x48, 0x61, 0x73, 0x68, 0x53, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x1c, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x5f, 0x73, 0x72, + 0x63, 0x5f, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x75, 0x73, 0x65, 0x53, + 0x72, 0x63, 0x49, 0x70, 0x12, 0x1c, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x5f, 0x64, 0x73, 0x74, 0x5f, + 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x75, 0x73, 0x65, 0x44, 0x73, 0x74, + 0x49, 0x70, 0x12, 0x20, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x5f, 0x73, 0x72, 0x63, 0x5f, 0x70, 0x6f, + 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x53, 0x72, 0x63, + 0x50, 0x6f, 0x72, 0x74, 0x12, 0x20, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x5f, 0x64, 0x73, 0x74, 0x5f, + 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x44, + 0x73, 0x74, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x5f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x75, 0x73, + 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, + 0x65, 0x72, 0x73, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, + 0x72, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x79, 0x6d, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x79, 0x6d, 0x6d, 0x65, 0x74, 0x72, 0x69, + 0x63, 0x22, 0x1e, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x08, 0x0a, + 0x04, 0x49, 0x50, 0x56, 0x34, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x36, 0x10, + 0x01, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, + 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, + 0x6c, 0x33, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x6c, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_ligato_vpp_l3_vrf_proto_rawDescOnce sync.Once + file_ligato_vpp_l3_vrf_proto_rawDescData = file_ligato_vpp_l3_vrf_proto_rawDesc +) + +func file_ligato_vpp_l3_vrf_proto_rawDescGZIP() []byte { + file_ligato_vpp_l3_vrf_proto_rawDescOnce.Do(func() { + file_ligato_vpp_l3_vrf_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_l3_vrf_proto_rawDescData) + }) + return file_ligato_vpp_l3_vrf_proto_rawDescData +} + +var file_ligato_vpp_l3_vrf_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_ligato_vpp_l3_vrf_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_ligato_vpp_l3_vrf_proto_goTypes = []interface{}{ + (VrfTable_Protocol)(0), // 0: ligato.vpp.l3.VrfTable.Protocol + (*VrfTable)(nil), // 1: ligato.vpp.l3.VrfTable + (*VrfTable_FlowHashSettings)(nil), // 2: ligato.vpp.l3.VrfTable.FlowHashSettings +} +var file_ligato_vpp_l3_vrf_proto_depIdxs = []int32{ + 0, // 0: ligato.vpp.l3.VrfTable.protocol:type_name -> ligato.vpp.l3.VrfTable.Protocol + 2, // 1: ligato.vpp.l3.VrfTable.flow_hash_settings:type_name -> ligato.vpp.l3.VrfTable.FlowHashSettings + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_l3_vrf_proto_init() } +func file_ligato_vpp_l3_vrf_proto_init() { + if File_ligato_vpp_l3_vrf_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_l3_vrf_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VrfTable); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_l3_vrf_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VrfTable_FlowHashSettings); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_l3_vrf_proto_rawDesc, + NumEnums: 1, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_l3_vrf_proto_goTypes, + DependencyIndexes: file_ligato_vpp_l3_vrf_proto_depIdxs, + EnumInfos: file_ligato_vpp_l3_vrf_proto_enumTypes, + MessageInfos: file_ligato_vpp_l3_vrf_proto_msgTypes, + }.Build() + File_ligato_vpp_l3_vrf_proto = out.File + file_ligato_vpp_l3_vrf_proto_rawDesc = nil + file_ligato_vpp_l3_vrf_proto_goTypes = nil + file_ligato_vpp_l3_vrf_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/nat/nat.pb.go b/proto/ligato/vpp/nat/nat.pb.go index bc0adc2c27..d69cd367f8 100644 --- a/proto/ligato/vpp/nat/nat.pb.go +++ b/proto/ligato/vpp/nat/nat.pb.go @@ -1,24 +1,29 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/nat/nat.proto package vpp_nat import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 // Available protocols. type DNat44_Protocol int32 @@ -30,24 +35,45 @@ const ( DNat44_ICMP DNat44_Protocol = 2 ) -var DNat44_Protocol_name = map[int32]string{ - 0: "TCP", - 1: "UDP", - 2: "ICMP", -} +// Enum value maps for DNat44_Protocol. +var ( + DNat44_Protocol_name = map[int32]string{ + 0: "TCP", + 1: "UDP", + 2: "ICMP", + } + DNat44_Protocol_value = map[string]int32{ + "TCP": 0, + "UDP": 1, + "ICMP": 2, + } +) -var DNat44_Protocol_value = map[string]int32{ - "TCP": 0, - "UDP": 1, - "ICMP": 2, +func (x DNat44_Protocol) Enum() *DNat44_Protocol { + p := new(DNat44_Protocol) + *p = x + return p } func (x DNat44_Protocol) String() string { - return proto.EnumName(DNat44_Protocol_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DNat44_Protocol) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_nat_nat_proto_enumTypes[0].Descriptor() +} + +func (DNat44_Protocol) Type() protoreflect.EnumType { + return &file_ligato_vpp_nat_nat_proto_enumTypes[0] +} + +func (x DNat44_Protocol) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use DNat44_Protocol.Descriptor instead. func (DNat44_Protocol) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_6c5496f531b4b7d3, []int{1, 0} + return file_ligato_vpp_nat_nat_proto_rawDescGZIP(), []int{1, 0} } // Available twice-NAT modes. @@ -59,792 +85,1143 @@ const ( DNat44_StaticMapping_SELF DNat44_StaticMapping_TwiceNatMode = 2 ) -var DNat44_StaticMapping_TwiceNatMode_name = map[int32]string{ - 0: "DISABLED", - 1: "ENABLED", - 2: "SELF", -} +// Enum value maps for DNat44_StaticMapping_TwiceNatMode. +var ( + DNat44_StaticMapping_TwiceNatMode_name = map[int32]string{ + 0: "DISABLED", + 1: "ENABLED", + 2: "SELF", + } + DNat44_StaticMapping_TwiceNatMode_value = map[string]int32{ + "DISABLED": 0, + "ENABLED": 1, + "SELF": 2, + } +) -var DNat44_StaticMapping_TwiceNatMode_value = map[string]int32{ - "DISABLED": 0, - "ENABLED": 1, - "SELF": 2, +func (x DNat44_StaticMapping_TwiceNatMode) Enum() *DNat44_StaticMapping_TwiceNatMode { + p := new(DNat44_StaticMapping_TwiceNatMode) + *p = x + return p } func (x DNat44_StaticMapping_TwiceNatMode) String() string { - return proto.EnumName(DNat44_StaticMapping_TwiceNatMode_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DNat44_StaticMapping_TwiceNatMode) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_nat_nat_proto_enumTypes[1].Descriptor() } +func (DNat44_StaticMapping_TwiceNatMode) Type() protoreflect.EnumType { + return &file_ligato_vpp_nat_nat_proto_enumTypes[1] +} + +func (x DNat44_StaticMapping_TwiceNatMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use DNat44_StaticMapping_TwiceNatMode.Descriptor instead. func (DNat44_StaticMapping_TwiceNatMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_6c5496f531b4b7d3, []int{1, 0, 0} + return file_ligato_vpp_nat_nat_proto_rawDescGZIP(), []int{1, 0, 0} } // Nat44Global defines global NAT44 configuration. type Nat44Global struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Enable/disable forwarding. Forwarding bool `protobuf:"varint,1,opt,name=forwarding,proto3" json:"forwarding,omitempty"` // List of NAT-enabled interfaces. Deprecated - use separate Nat44Interface entries instead. - NatInterfaces []*Nat44Global_Interface `protobuf:"bytes,2,rep,name=nat_interfaces,json=natInterfaces,proto3" json:"nat_interfaces,omitempty"` // Deprecated: Do not use. + // + // Deprecated: Do not use. + NatInterfaces []*Nat44Global_Interface `protobuf:"bytes,2,rep,name=nat_interfaces,json=natInterfaces,proto3" json:"nat_interfaces,omitempty"` // Address pool used for source IP NAT. Deprecated - use separate Nat44AddressPool entries instead. - AddressPool []*Nat44Global_Address `protobuf:"bytes,3,rep,name=address_pool,json=addressPool,proto3" json:"address_pool,omitempty"` // Deprecated: Do not use. + // + // Deprecated: Do not use. + AddressPool []*Nat44Global_Address `protobuf:"bytes,3,rep,name=address_pool,json=addressPool,proto3" json:"address_pool,omitempty"` // Virtual reassembly for IPv4. - VirtualReassembly *VirtualReassembly `protobuf:"bytes,4,opt,name=virtual_reassembly,json=virtualReassembly,proto3" json:"virtual_reassembly,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VirtualReassembly *VirtualReassembly `protobuf:"bytes,4,opt,name=virtual_reassembly,json=virtualReassembly,proto3" json:"virtual_reassembly,omitempty"` } -func (m *Nat44Global) Reset() { *m = Nat44Global{} } -func (m *Nat44Global) String() string { return proto.CompactTextString(m) } -func (*Nat44Global) ProtoMessage() {} -func (*Nat44Global) Descriptor() ([]byte, []int) { - return fileDescriptor_6c5496f531b4b7d3, []int{0} +func (x *Nat44Global) Reset() { + *x = Nat44Global{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Nat44Global) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Nat44Global.Unmarshal(m, b) -} -func (m *Nat44Global) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Nat44Global.Marshal(b, m, deterministic) +func (x *Nat44Global) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Nat44Global) XXX_Merge(src proto.Message) { - xxx_messageInfo_Nat44Global.Merge(m, src) -} -func (m *Nat44Global) XXX_Size() int { - return xxx_messageInfo_Nat44Global.Size(m) -} -func (m *Nat44Global) XXX_DiscardUnknown() { - xxx_messageInfo_Nat44Global.DiscardUnknown(m) + +func (*Nat44Global) ProtoMessage() {} + +func (x *Nat44Global) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Nat44Global proto.InternalMessageInfo +// Deprecated: Use Nat44Global.ProtoReflect.Descriptor instead. +func (*Nat44Global) Descriptor() ([]byte, []int) { + return file_ligato_vpp_nat_nat_proto_rawDescGZIP(), []int{0} +} -func (m *Nat44Global) GetForwarding() bool { - if m != nil { - return m.Forwarding +func (x *Nat44Global) GetForwarding() bool { + if x != nil { + return x.Forwarding } return false } // Deprecated: Do not use. -func (m *Nat44Global) GetNatInterfaces() []*Nat44Global_Interface { - if m != nil { - return m.NatInterfaces +func (x *Nat44Global) GetNatInterfaces() []*Nat44Global_Interface { + if x != nil { + return x.NatInterfaces } return nil } // Deprecated: Do not use. -func (m *Nat44Global) GetAddressPool() []*Nat44Global_Address { - if m != nil { - return m.AddressPool +func (x *Nat44Global) GetAddressPool() []*Nat44Global_Address { + if x != nil { + return x.AddressPool } return nil } -func (m *Nat44Global) GetVirtualReassembly() *VirtualReassembly { - if m != nil { - return m.VirtualReassembly +func (x *Nat44Global) GetVirtualReassembly() *VirtualReassembly { + if x != nil { + return x.VirtualReassembly } return nil } -// Interface defines a network interface enabled for NAT. -type Nat44Global_Interface struct { - // Interface name (logical). - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Distinguish between inside/outside interface. - IsInside bool `protobuf:"varint,2,opt,name=is_inside,json=isInside,proto3" json:"is_inside,omitempty"` - // Enable/disable output feature. - OutputFeature bool `protobuf:"varint,3,opt,name=output_feature,json=outputFeature,proto3" json:"output_feature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +// DNat44 defines destination NAT44 configuration. +type DNat44 struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Nat44Global_Interface) Reset() { *m = Nat44Global_Interface{} } -func (m *Nat44Global_Interface) String() string { return proto.CompactTextString(m) } -func (*Nat44Global_Interface) ProtoMessage() {} -func (*Nat44Global_Interface) Descriptor() ([]byte, []int) { - return fileDescriptor_6c5496f531b4b7d3, []int{0, 0} + // Unique identifier for the DNAT configuration. + Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` + // A list of static mappings in DNAT. + StMappings []*DNat44_StaticMapping `protobuf:"bytes,2,rep,name=st_mappings,json=stMappings,proto3" json:"st_mappings,omitempty"` + // A list of identity mappings in DNAT. + IdMappings []*DNat44_IdentityMapping `protobuf:"bytes,3,rep,name=id_mappings,json=idMappings,proto3" json:"id_mappings,omitempty"` } -func (m *Nat44Global_Interface) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Nat44Global_Interface.Unmarshal(m, b) -} -func (m *Nat44Global_Interface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Nat44Global_Interface.Marshal(b, m, deterministic) -} -func (m *Nat44Global_Interface) XXX_Merge(src proto.Message) { - xxx_messageInfo_Nat44Global_Interface.Merge(m, src) +func (x *DNat44) Reset() { + *x = DNat44{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Nat44Global_Interface) XXX_Size() int { - return xxx_messageInfo_Nat44Global_Interface.Size(m) + +func (x *DNat44) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Nat44Global_Interface) XXX_DiscardUnknown() { - xxx_messageInfo_Nat44Global_Interface.DiscardUnknown(m) + +func (*DNat44) ProtoMessage() {} + +func (x *DNat44) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Nat44Global_Interface proto.InternalMessageInfo +// Deprecated: Use DNat44.ProtoReflect.Descriptor instead. +func (*DNat44) Descriptor() ([]byte, []int) { + return file_ligato_vpp_nat_nat_proto_rawDescGZIP(), []int{1} +} -func (m *Nat44Global_Interface) GetName() string { - if m != nil { - return m.Name +func (x *DNat44) GetLabel() string { + if x != nil { + return x.Label } return "" } -func (m *Nat44Global_Interface) GetIsInside() bool { - if m != nil { - return m.IsInside +func (x *DNat44) GetStMappings() []*DNat44_StaticMapping { + if x != nil { + return x.StMappings } - return false + return nil } -func (m *Nat44Global_Interface) GetOutputFeature() bool { - if m != nil { - return m.OutputFeature +func (x *DNat44) GetIdMappings() []*DNat44_IdentityMapping { + if x != nil { + return x.IdMappings } - return false + return nil } -// Address defines an address to be used for source IP NAT. -type Nat44Global_Address struct { - // IPv4 address. - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // VRF id of tenant, 0xFFFFFFFF means independent of VRF. - // Non-zero (and not all-ones) VRF has to be explicitly created (see api/models/vpp/l3/vrf.proto). - VrfId uint32 `protobuf:"varint,2,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` - // Enable/disable twice NAT. - TwiceNat bool `protobuf:"varint,3,opt,name=twice_nat,json=twiceNat,proto3" json:"twice_nat,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +// Nat44Interface defines a local network interfaces enabled for NAT44. +type Nat44Interface struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Nat44Global_Address) Reset() { *m = Nat44Global_Address{} } -func (m *Nat44Global_Address) String() string { return proto.CompactTextString(m) } -func (*Nat44Global_Address) ProtoMessage() {} -func (*Nat44Global_Address) Descriptor() ([]byte, []int) { - return fileDescriptor_6c5496f531b4b7d3, []int{0, 1} + // Interface name (logical). + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Enable/disable NAT on inside. + NatInside bool `protobuf:"varint,2,opt,name=nat_inside,json=natInside,proto3" json:"nat_inside,omitempty"` + // Enable/disable NAT on outside. + NatOutside bool `protobuf:"varint,3,opt,name=nat_outside,json=natOutside,proto3" json:"nat_outside,omitempty"` + // Enable/disable output feature. + OutputFeature bool `protobuf:"varint,4,opt,name=output_feature,json=outputFeature,proto3" json:"output_feature,omitempty"` } -func (m *Nat44Global_Address) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Nat44Global_Address.Unmarshal(m, b) -} -func (m *Nat44Global_Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Nat44Global_Address.Marshal(b, m, deterministic) -} -func (m *Nat44Global_Address) XXX_Merge(src proto.Message) { - xxx_messageInfo_Nat44Global_Address.Merge(m, src) +func (x *Nat44Interface) Reset() { + *x = Nat44Interface{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Nat44Global_Address) XXX_Size() int { - return xxx_messageInfo_Nat44Global_Address.Size(m) + +func (x *Nat44Interface) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Nat44Global_Address) XXX_DiscardUnknown() { - xxx_messageInfo_Nat44Global_Address.DiscardUnknown(m) + +func (*Nat44Interface) ProtoMessage() {} + +func (x *Nat44Interface) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Nat44Global_Address proto.InternalMessageInfo +// Deprecated: Use Nat44Interface.ProtoReflect.Descriptor instead. +func (*Nat44Interface) Descriptor() ([]byte, []int) { + return file_ligato_vpp_nat_nat_proto_rawDescGZIP(), []int{2} +} -func (m *Nat44Global_Address) GetAddress() string { - if m != nil { - return m.Address +func (x *Nat44Interface) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *Nat44Global_Address) GetVrfId() uint32 { - if m != nil { - return m.VrfId +func (x *Nat44Interface) GetNatInside() bool { + if x != nil { + return x.NatInside } - return 0 + return false } -func (m *Nat44Global_Address) GetTwiceNat() bool { - if m != nil { - return m.TwiceNat +func (x *Nat44Interface) GetNatOutside() bool { + if x != nil { + return x.NatOutside } return false } -// DNat44 defines destination NAT44 configuration. -type DNat44 struct { - // Unique identifier for the DNAT configuration. - Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` - // A list of static mappings in DNAT. - StMappings []*DNat44_StaticMapping `protobuf:"bytes,2,rep,name=st_mappings,json=stMappings,proto3" json:"st_mappings,omitempty"` - // A list of identity mappings in DNAT. - IdMappings []*DNat44_IdentityMapping `protobuf:"bytes,3,rep,name=id_mappings,json=idMappings,proto3" json:"id_mappings,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *Nat44Interface) GetOutputFeature() bool { + if x != nil { + return x.OutputFeature + } + return false } -func (m *DNat44) Reset() { *m = DNat44{} } -func (m *DNat44) String() string { return proto.CompactTextString(m) } -func (*DNat44) ProtoMessage() {} -func (*DNat44) Descriptor() ([]byte, []int) { - return fileDescriptor_6c5496f531b4b7d3, []int{1} -} +// Nat44AddressPool defines an address pool used for NAT44. +type Nat44AddressPool struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DNat44) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DNat44.Unmarshal(m, b) + // VRF id of tenant, 0xFFFFFFFF means independent of VRF. + // Non-zero (and not all-ones) VRF has to be explicitly created (see api/models/vpp/l3/vrf.proto). + VrfId uint32 `protobuf:"varint,1,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` + // First IP address of the pool. + FirstIp string `protobuf:"bytes,2,opt,name=first_ip,json=firstIp,proto3" json:"first_ip,omitempty"` + // Last IP address of the pool. Should be higher than first_ip or empty. + LastIp string `protobuf:"bytes,3,opt,name=last_ip,json=lastIp,proto3" json:"last_ip,omitempty"` + // Enable/disable twice NAT. + TwiceNat bool `protobuf:"varint,4,opt,name=twice_nat,json=twiceNat,proto3" json:"twice_nat,omitempty"` } -func (m *DNat44) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DNat44.Marshal(b, m, deterministic) + +func (x *Nat44AddressPool) Reset() { + *x = Nat44AddressPool{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DNat44) XXX_Merge(src proto.Message) { - xxx_messageInfo_DNat44.Merge(m, src) + +func (x *Nat44AddressPool) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DNat44) XXX_Size() int { - return xxx_messageInfo_DNat44.Size(m) + +func (*Nat44AddressPool) ProtoMessage() {} + +func (x *Nat44AddressPool) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *DNat44) XXX_DiscardUnknown() { - xxx_messageInfo_DNat44.DiscardUnknown(m) + +// Deprecated: Use Nat44AddressPool.ProtoReflect.Descriptor instead. +func (*Nat44AddressPool) Descriptor() ([]byte, []int) { + return file_ligato_vpp_nat_nat_proto_rawDescGZIP(), []int{3} } -var xxx_messageInfo_DNat44 proto.InternalMessageInfo +func (x *Nat44AddressPool) GetVrfId() uint32 { + if x != nil { + return x.VrfId + } + return 0 +} -func (m *DNat44) GetLabel() string { - if m != nil { - return m.Label +func (x *Nat44AddressPool) GetFirstIp() string { + if x != nil { + return x.FirstIp } return "" } -func (m *DNat44) GetStMappings() []*DNat44_StaticMapping { - if m != nil { - return m.StMappings +func (x *Nat44AddressPool) GetLastIp() string { + if x != nil { + return x.LastIp } - return nil + return "" } -func (m *DNat44) GetIdMappings() []*DNat44_IdentityMapping { - if m != nil { - return m.IdMappings +func (x *Nat44AddressPool) GetTwiceNat() bool { + if x != nil { + return x.TwiceNat } - return nil + return false } -// StaticMapping defines a list of static mappings in DNAT. -type DNat44_StaticMapping struct { - // Interface to use external IP from; preferred over external_ip. - ExternalInterface string `protobuf:"bytes,1,opt,name=external_interface,json=externalInterface,proto3" json:"external_interface,omitempty"` - // External address. - ExternalIp string `protobuf:"bytes,2,opt,name=external_ip,json=externalIp,proto3" json:"external_ip,omitempty"` - // Port (do not set for address mapping). - ExternalPort uint32 `protobuf:"varint,3,opt,name=external_port,json=externalPort,proto3" json:"external_port,omitempty"` - // List of local IP addresses. If there is more than one entry, load-balancing is enabled. - LocalIps []*DNat44_StaticMapping_LocalIP `protobuf:"bytes,4,rep,name=local_ips,json=localIps,proto3" json:"local_ips,omitempty"` - // Protocol used for static mapping. - Protocol DNat44_Protocol `protobuf:"varint,5,opt,name=protocol,proto3,enum=ligato.vpp.nat.DNat44_Protocol" json:"protocol,omitempty"` - // Enable/disable (self-)twice NAT. - TwiceNat DNat44_StaticMapping_TwiceNatMode `protobuf:"varint,6,opt,name=twice_nat,json=twiceNat,proto3,enum=ligato.vpp.nat.DNat44_StaticMapping_TwiceNatMode" json:"twice_nat,omitempty"` - // Session affinity. 0 means disabled, otherwise client IP affinity sticky time in seconds. - SessionAffinity uint32 `protobuf:"varint,7,opt,name=session_affinity,json=sessionAffinity,proto3" json:"session_affinity,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +// VirtualReassembly defines NAT virtual reassembly settings. +type VirtualReassembly struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DNat44_StaticMapping) Reset() { *m = DNat44_StaticMapping{} } -func (m *DNat44_StaticMapping) String() string { return proto.CompactTextString(m) } -func (*DNat44_StaticMapping) ProtoMessage() {} -func (*DNat44_StaticMapping) Descriptor() ([]byte, []int) { - return fileDescriptor_6c5496f531b4b7d3, []int{1, 0} + // Reassembly timeout. + Timeout uint32 `protobuf:"varint,1,opt,name=timeout,proto3" json:"timeout,omitempty"` + // Maximum number of concurrent reassemblies. + MaxReassemblies uint32 `protobuf:"varint,2,opt,name=max_reassemblies,json=maxReassemblies,proto3" json:"max_reassemblies,omitempty"` + // Maximum number of fragments per reassembly. + MaxFragments uint32 `protobuf:"varint,3,opt,name=max_fragments,json=maxFragments,proto3" json:"max_fragments,omitempty"` + // If set to true fragments are dropped, translated otherwise. + DropFragments bool `protobuf:"varint,4,opt,name=drop_fragments,json=dropFragments,proto3" json:"drop_fragments,omitempty"` } -func (m *DNat44_StaticMapping) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DNat44_StaticMapping.Unmarshal(m, b) -} -func (m *DNat44_StaticMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DNat44_StaticMapping.Marshal(b, m, deterministic) -} -func (m *DNat44_StaticMapping) XXX_Merge(src proto.Message) { - xxx_messageInfo_DNat44_StaticMapping.Merge(m, src) -} -func (m *DNat44_StaticMapping) XXX_Size() int { - return xxx_messageInfo_DNat44_StaticMapping.Size(m) +func (x *VirtualReassembly) Reset() { + *x = VirtualReassembly{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DNat44_StaticMapping) XXX_DiscardUnknown() { - xxx_messageInfo_DNat44_StaticMapping.DiscardUnknown(m) + +func (x *VirtualReassembly) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_DNat44_StaticMapping proto.InternalMessageInfo +func (*VirtualReassembly) ProtoMessage() {} -func (m *DNat44_StaticMapping) GetExternalInterface() string { - if m != nil { - return m.ExternalInterface +func (x *VirtualReassembly) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *DNat44_StaticMapping) GetExternalIp() string { - if m != nil { - return m.ExternalIp - } - return "" +// Deprecated: Use VirtualReassembly.ProtoReflect.Descriptor instead. +func (*VirtualReassembly) Descriptor() ([]byte, []int) { + return file_ligato_vpp_nat_nat_proto_rawDescGZIP(), []int{4} } -func (m *DNat44_StaticMapping) GetExternalPort() uint32 { - if m != nil { - return m.ExternalPort +func (x *VirtualReassembly) GetTimeout() uint32 { + if x != nil { + return x.Timeout } return 0 } -func (m *DNat44_StaticMapping) GetLocalIps() []*DNat44_StaticMapping_LocalIP { - if m != nil { - return m.LocalIps +func (x *VirtualReassembly) GetMaxReassemblies() uint32 { + if x != nil { + return x.MaxReassemblies } - return nil + return 0 } -func (m *DNat44_StaticMapping) GetProtocol() DNat44_Protocol { - if m != nil { - return m.Protocol +func (x *VirtualReassembly) GetMaxFragments() uint32 { + if x != nil { + return x.MaxFragments } - return DNat44_TCP + return 0 } -func (m *DNat44_StaticMapping) GetTwiceNat() DNat44_StaticMapping_TwiceNatMode { - if m != nil { - return m.TwiceNat +func (x *VirtualReassembly) GetDropFragments() bool { + if x != nil { + return x.DropFragments } - return DNat44_StaticMapping_DISABLED + return false } -func (m *DNat44_StaticMapping) GetSessionAffinity() uint32 { - if m != nil { - return m.SessionAffinity - } - return 0 -} +// Interface defines a network interface enabled for NAT. +type Nat44Global_Interface struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -// LocalIP defines a local IP addresses. -type DNat44_StaticMapping_LocalIP struct { - // VRF (table) ID. Non-zero VRF has to be explicitly created (see api/models/vpp/l3/vrf.proto). - VrfId uint32 `protobuf:"varint,1,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` - // Local IP address). - LocalIp string `protobuf:"bytes,2,opt,name=local_ip,json=localIp,proto3" json:"local_ip,omitempty"` - // Port (do not set for address mapping). - LocalPort uint32 `protobuf:"varint,3,opt,name=local_port,json=localPort,proto3" json:"local_port,omitempty"` - // Probability level for load-balancing mode. - Probability uint32 `protobuf:"varint,4,opt,name=probability,proto3" json:"probability,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // Interface name (logical). + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Distinguish between inside/outside interface. + IsInside bool `protobuf:"varint,2,opt,name=is_inside,json=isInside,proto3" json:"is_inside,omitempty"` + // Enable/disable output feature. + OutputFeature bool `protobuf:"varint,3,opt,name=output_feature,json=outputFeature,proto3" json:"output_feature,omitempty"` } -func (m *DNat44_StaticMapping_LocalIP) Reset() { *m = DNat44_StaticMapping_LocalIP{} } -func (m *DNat44_StaticMapping_LocalIP) String() string { return proto.CompactTextString(m) } -func (*DNat44_StaticMapping_LocalIP) ProtoMessage() {} -func (*DNat44_StaticMapping_LocalIP) Descriptor() ([]byte, []int) { - return fileDescriptor_6c5496f531b4b7d3, []int{1, 0, 0} +func (x *Nat44Global_Interface) Reset() { + *x = Nat44Global_Interface{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DNat44_StaticMapping_LocalIP) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DNat44_StaticMapping_LocalIP.Unmarshal(m, b) -} -func (m *DNat44_StaticMapping_LocalIP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DNat44_StaticMapping_LocalIP.Marshal(b, m, deterministic) -} -func (m *DNat44_StaticMapping_LocalIP) XXX_Merge(src proto.Message) { - xxx_messageInfo_DNat44_StaticMapping_LocalIP.Merge(m, src) -} -func (m *DNat44_StaticMapping_LocalIP) XXX_Size() int { - return xxx_messageInfo_DNat44_StaticMapping_LocalIP.Size(m) -} -func (m *DNat44_StaticMapping_LocalIP) XXX_DiscardUnknown() { - xxx_messageInfo_DNat44_StaticMapping_LocalIP.DiscardUnknown(m) +func (x *Nat44Global_Interface) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_DNat44_StaticMapping_LocalIP proto.InternalMessageInfo +func (*Nat44Global_Interface) ProtoMessage() {} -func (m *DNat44_StaticMapping_LocalIP) GetVrfId() uint32 { - if m != nil { - return m.VrfId +func (x *Nat44Global_Interface) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (m *DNat44_StaticMapping_LocalIP) GetLocalIp() string { - if m != nil { - return m.LocalIp +// Deprecated: Use Nat44Global_Interface.ProtoReflect.Descriptor instead. +func (*Nat44Global_Interface) Descriptor() ([]byte, []int) { + return file_ligato_vpp_nat_nat_proto_rawDescGZIP(), []int{0, 0} +} + +func (x *Nat44Global_Interface) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *DNat44_StaticMapping_LocalIP) GetLocalPort() uint32 { - if m != nil { - return m.LocalPort +func (x *Nat44Global_Interface) GetIsInside() bool { + if x != nil { + return x.IsInside } - return 0 + return false } -func (m *DNat44_StaticMapping_LocalIP) GetProbability() uint32 { - if m != nil { - return m.Probability +func (x *Nat44Global_Interface) GetOutputFeature() bool { + if x != nil { + return x.OutputFeature } - return 0 + return false } -// IdentityMapping defines an identity mapping in DNAT. -type DNat44_IdentityMapping struct { - // VRF (table) ID. Non-zero VRF has to be explicitly created (see api/models/vpp/l3/vrf.proto). - VrfId uint32 `protobuf:"varint,1,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` - // Name of the interface to use address from; preferred over ip_address. - Interface string `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"` - // IP address. - IpAddress string `protobuf:"bytes,3,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` - // Port (do not set for address mapping). - Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` - // Protocol used for identity mapping. - Protocol DNat44_Protocol `protobuf:"varint,5,opt,name=protocol,proto3,enum=ligato.vpp.nat.DNat44_Protocol" json:"protocol,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +// Address defines an address to be used for source IP NAT. +type Nat44Global_Address struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DNat44_IdentityMapping) Reset() { *m = DNat44_IdentityMapping{} } -func (m *DNat44_IdentityMapping) String() string { return proto.CompactTextString(m) } -func (*DNat44_IdentityMapping) ProtoMessage() {} -func (*DNat44_IdentityMapping) Descriptor() ([]byte, []int) { - return fileDescriptor_6c5496f531b4b7d3, []int{1, 1} + // IPv4 address. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // VRF id of tenant, 0xFFFFFFFF means independent of VRF. + // Non-zero (and not all-ones) VRF has to be explicitly created (see api/models/vpp/l3/vrf.proto). + VrfId uint32 `protobuf:"varint,2,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` + // Enable/disable twice NAT. + TwiceNat bool `protobuf:"varint,3,opt,name=twice_nat,json=twiceNat,proto3" json:"twice_nat,omitempty"` } -func (m *DNat44_IdentityMapping) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DNat44_IdentityMapping.Unmarshal(m, b) -} -func (m *DNat44_IdentityMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DNat44_IdentityMapping.Marshal(b, m, deterministic) -} -func (m *DNat44_IdentityMapping) XXX_Merge(src proto.Message) { - xxx_messageInfo_DNat44_IdentityMapping.Merge(m, src) -} -func (m *DNat44_IdentityMapping) XXX_Size() int { - return xxx_messageInfo_DNat44_IdentityMapping.Size(m) +func (x *Nat44Global_Address) Reset() { + *x = Nat44Global_Address{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DNat44_IdentityMapping) XXX_DiscardUnknown() { - xxx_messageInfo_DNat44_IdentityMapping.DiscardUnknown(m) + +func (x *Nat44Global_Address) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_DNat44_IdentityMapping proto.InternalMessageInfo +func (*Nat44Global_Address) ProtoMessage() {} -func (m *DNat44_IdentityMapping) GetVrfId() uint32 { - if m != nil { - return m.VrfId +func (x *Nat44Global_Address) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (m *DNat44_IdentityMapping) GetInterface() string { - if m != nil { - return m.Interface - } - return "" +// Deprecated: Use Nat44Global_Address.ProtoReflect.Descriptor instead. +func (*Nat44Global_Address) Descriptor() ([]byte, []int) { + return file_ligato_vpp_nat_nat_proto_rawDescGZIP(), []int{0, 1} } -func (m *DNat44_IdentityMapping) GetIpAddress() string { - if m != nil { - return m.IpAddress +func (x *Nat44Global_Address) GetAddress() string { + if x != nil { + return x.Address } return "" } -func (m *DNat44_IdentityMapping) GetPort() uint32 { - if m != nil { - return m.Port +func (x *Nat44Global_Address) GetVrfId() uint32 { + if x != nil { + return x.VrfId } return 0 } -func (m *DNat44_IdentityMapping) GetProtocol() DNat44_Protocol { - if m != nil { - return m.Protocol +func (x *Nat44Global_Address) GetTwiceNat() bool { + if x != nil { + return x.TwiceNat } - return DNat44_TCP + return false } -// Nat44Interface defines a local network interfaces enabled for NAT44. -type Nat44Interface struct { - // Interface name (logical). - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Enable/disable NAT on inside. - NatInside bool `protobuf:"varint,2,opt,name=nat_inside,json=natInside,proto3" json:"nat_inside,omitempty"` - // Enable/disable NAT on outside. - NatOutside bool `protobuf:"varint,3,opt,name=nat_outside,json=natOutside,proto3" json:"nat_outside,omitempty"` - // Enable/disable output feature. - OutputFeature bool `protobuf:"varint,4,opt,name=output_feature,json=outputFeature,proto3" json:"output_feature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +// StaticMapping defines a list of static mappings in DNAT. +type DNat44_StaticMapping struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Nat44Interface) Reset() { *m = Nat44Interface{} } -func (m *Nat44Interface) String() string { return proto.CompactTextString(m) } -func (*Nat44Interface) ProtoMessage() {} -func (*Nat44Interface) Descriptor() ([]byte, []int) { - return fileDescriptor_6c5496f531b4b7d3, []int{2} + // Interface to use external IP from; preferred over external_ip. + ExternalInterface string `protobuf:"bytes,1,opt,name=external_interface,json=externalInterface,proto3" json:"external_interface,omitempty"` + // External address. + ExternalIp string `protobuf:"bytes,2,opt,name=external_ip,json=externalIp,proto3" json:"external_ip,omitempty"` + // Port (do not set for address mapping). + ExternalPort uint32 `protobuf:"varint,3,opt,name=external_port,json=externalPort,proto3" json:"external_port,omitempty"` + // List of local IP addresses. If there is more than one entry, load-balancing is enabled. + LocalIps []*DNat44_StaticMapping_LocalIP `protobuf:"bytes,4,rep,name=local_ips,json=localIps,proto3" json:"local_ips,omitempty"` + // Protocol used for static mapping. + Protocol DNat44_Protocol `protobuf:"varint,5,opt,name=protocol,proto3,enum=ligato.vpp.nat.DNat44_Protocol" json:"protocol,omitempty"` + // Enable/disable (self-)twice NAT. + TwiceNat DNat44_StaticMapping_TwiceNatMode `protobuf:"varint,6,opt,name=twice_nat,json=twiceNat,proto3,enum=ligato.vpp.nat.DNat44_StaticMapping_TwiceNatMode" json:"twice_nat,omitempty"` + // Session affinity. 0 means disabled, otherwise client IP affinity sticky time in seconds. + SessionAffinity uint32 `protobuf:"varint,7,opt,name=session_affinity,json=sessionAffinity,proto3" json:"session_affinity,omitempty"` } -func (m *Nat44Interface) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Nat44Interface.Unmarshal(m, b) -} -func (m *Nat44Interface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Nat44Interface.Marshal(b, m, deterministic) -} -func (m *Nat44Interface) XXX_Merge(src proto.Message) { - xxx_messageInfo_Nat44Interface.Merge(m, src) +func (x *DNat44_StaticMapping) Reset() { + *x = DNat44_StaticMapping{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Nat44Interface) XXX_Size() int { - return xxx_messageInfo_Nat44Interface.Size(m) + +func (x *DNat44_StaticMapping) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Nat44Interface) XXX_DiscardUnknown() { - xxx_messageInfo_Nat44Interface.DiscardUnknown(m) + +func (*DNat44_StaticMapping) ProtoMessage() {} + +func (x *DNat44_StaticMapping) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Nat44Interface proto.InternalMessageInfo +// Deprecated: Use DNat44_StaticMapping.ProtoReflect.Descriptor instead. +func (*DNat44_StaticMapping) Descriptor() ([]byte, []int) { + return file_ligato_vpp_nat_nat_proto_rawDescGZIP(), []int{1, 0} +} -func (m *Nat44Interface) GetName() string { - if m != nil { - return m.Name +func (x *DNat44_StaticMapping) GetExternalInterface() string { + if x != nil { + return x.ExternalInterface } return "" } -func (m *Nat44Interface) GetNatInside() bool { - if m != nil { - return m.NatInside +func (x *DNat44_StaticMapping) GetExternalIp() string { + if x != nil { + return x.ExternalIp } - return false + return "" } -func (m *Nat44Interface) GetNatOutside() bool { - if m != nil { - return m.NatOutside +func (x *DNat44_StaticMapping) GetExternalPort() uint32 { + if x != nil { + return x.ExternalPort } - return false + return 0 } -func (m *Nat44Interface) GetOutputFeature() bool { - if m != nil { - return m.OutputFeature +func (x *DNat44_StaticMapping) GetLocalIps() []*DNat44_StaticMapping_LocalIP { + if x != nil { + return x.LocalIps } - return false + return nil } -// Nat44AddressPool defines an address pool used for NAT44. -type Nat44AddressPool struct { - // VRF id of tenant, 0xFFFFFFFF means independent of VRF. - // Non-zero (and not all-ones) VRF has to be explicitly created (see api/models/vpp/l3/vrf.proto). - VrfId uint32 `protobuf:"varint,1,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` - // First IP address of the pool. - FirstIp string `protobuf:"bytes,2,opt,name=first_ip,json=firstIp,proto3" json:"first_ip,omitempty"` - // Last IP address of the pool. Should be higher than first_ip or empty. - LastIp string `protobuf:"bytes,3,opt,name=last_ip,json=lastIp,proto3" json:"last_ip,omitempty"` - // Enable/disable twice NAT. - TwiceNat bool `protobuf:"varint,4,opt,name=twice_nat,json=twiceNat,proto3" json:"twice_nat,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *DNat44_StaticMapping) GetProtocol() DNat44_Protocol { + if x != nil { + return x.Protocol + } + return DNat44_TCP } -func (m *Nat44AddressPool) Reset() { *m = Nat44AddressPool{} } -func (m *Nat44AddressPool) String() string { return proto.CompactTextString(m) } -func (*Nat44AddressPool) ProtoMessage() {} -func (*Nat44AddressPool) Descriptor() ([]byte, []int) { - return fileDescriptor_6c5496f531b4b7d3, []int{3} +func (x *DNat44_StaticMapping) GetTwiceNat() DNat44_StaticMapping_TwiceNatMode { + if x != nil { + return x.TwiceNat + } + return DNat44_StaticMapping_DISABLED } -func (m *Nat44AddressPool) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Nat44AddressPool.Unmarshal(m, b) +func (x *DNat44_StaticMapping) GetSessionAffinity() uint32 { + if x != nil { + return x.SessionAffinity + } + return 0 } -func (m *Nat44AddressPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Nat44AddressPool.Marshal(b, m, deterministic) + +// IdentityMapping defines an identity mapping in DNAT. +type DNat44_IdentityMapping struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // VRF (table) ID. Non-zero VRF has to be explicitly created (see api/models/vpp/l3/vrf.proto). + VrfId uint32 `protobuf:"varint,1,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` + // Name of the interface to use address from; preferred over ip_address. + Interface string `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"` + // IP address. + IpAddress string `protobuf:"bytes,3,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` + // Port (do not set for address mapping). + Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` + // Protocol used for identity mapping. + Protocol DNat44_Protocol `protobuf:"varint,5,opt,name=protocol,proto3,enum=ligato.vpp.nat.DNat44_Protocol" json:"protocol,omitempty"` } -func (m *Nat44AddressPool) XXX_Merge(src proto.Message) { - xxx_messageInfo_Nat44AddressPool.Merge(m, src) + +func (x *DNat44_IdentityMapping) Reset() { + *x = DNat44_IdentityMapping{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Nat44AddressPool) XXX_Size() int { - return xxx_messageInfo_Nat44AddressPool.Size(m) + +func (x *DNat44_IdentityMapping) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Nat44AddressPool) XXX_DiscardUnknown() { - xxx_messageInfo_Nat44AddressPool.DiscardUnknown(m) + +func (*DNat44_IdentityMapping) ProtoMessage() {} + +func (x *DNat44_IdentityMapping) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Nat44AddressPool proto.InternalMessageInfo +// Deprecated: Use DNat44_IdentityMapping.ProtoReflect.Descriptor instead. +func (*DNat44_IdentityMapping) Descriptor() ([]byte, []int) { + return file_ligato_vpp_nat_nat_proto_rawDescGZIP(), []int{1, 1} +} -func (m *Nat44AddressPool) GetVrfId() uint32 { - if m != nil { - return m.VrfId +func (x *DNat44_IdentityMapping) GetVrfId() uint32 { + if x != nil { + return x.VrfId } return 0 } -func (m *Nat44AddressPool) GetFirstIp() string { - if m != nil { - return m.FirstIp +func (x *DNat44_IdentityMapping) GetInterface() string { + if x != nil { + return x.Interface } return "" } -func (m *Nat44AddressPool) GetLastIp() string { - if m != nil { - return m.LastIp +func (x *DNat44_IdentityMapping) GetIpAddress() string { + if x != nil { + return x.IpAddress } return "" } -func (m *Nat44AddressPool) GetTwiceNat() bool { - if m != nil { - return m.TwiceNat +func (x *DNat44_IdentityMapping) GetPort() uint32 { + if x != nil { + return x.Port } - return false + return 0 } -// VirtualReassembly defines NAT virtual reassembly settings. -type VirtualReassembly struct { - // Reassembly timeout. - Timeout uint32 `protobuf:"varint,1,opt,name=timeout,proto3" json:"timeout,omitempty"` - // Maximum number of concurrent reassemblies. - MaxReassemblies uint32 `protobuf:"varint,2,opt,name=max_reassemblies,json=maxReassemblies,proto3" json:"max_reassemblies,omitempty"` - // Maximum number of fragments per reassembly. - MaxFragments uint32 `protobuf:"varint,3,opt,name=max_fragments,json=maxFragments,proto3" json:"max_fragments,omitempty"` - // If set to true fragments are dropped, translated otherwise. - DropFragments bool `protobuf:"varint,4,opt,name=drop_fragments,json=dropFragments,proto3" json:"drop_fragments,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *DNat44_IdentityMapping) GetProtocol() DNat44_Protocol { + if x != nil { + return x.Protocol + } + return DNat44_TCP } -func (m *VirtualReassembly) Reset() { *m = VirtualReassembly{} } -func (m *VirtualReassembly) String() string { return proto.CompactTextString(m) } -func (*VirtualReassembly) ProtoMessage() {} -func (*VirtualReassembly) Descriptor() ([]byte, []int) { - return fileDescriptor_6c5496f531b4b7d3, []int{4} -} +// LocalIP defines a local IP addresses. +type DNat44_StaticMapping_LocalIP struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *VirtualReassembly) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VirtualReassembly.Unmarshal(m, b) -} -func (m *VirtualReassembly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VirtualReassembly.Marshal(b, m, deterministic) + // VRF (table) ID. Non-zero VRF has to be explicitly created (see api/models/vpp/l3/vrf.proto). + VrfId uint32 `protobuf:"varint,1,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` + // Local IP address). + LocalIp string `protobuf:"bytes,2,opt,name=local_ip,json=localIp,proto3" json:"local_ip,omitempty"` + // Port (do not set for address mapping). + LocalPort uint32 `protobuf:"varint,3,opt,name=local_port,json=localPort,proto3" json:"local_port,omitempty"` + // Probability level for load-balancing mode. + Probability uint32 `protobuf:"varint,4,opt,name=probability,proto3" json:"probability,omitempty"` } -func (m *VirtualReassembly) XXX_Merge(src proto.Message) { - xxx_messageInfo_VirtualReassembly.Merge(m, src) + +func (x *DNat44_StaticMapping_LocalIP) Reset() { + *x = DNat44_StaticMapping_LocalIP{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *VirtualReassembly) XXX_Size() int { - return xxx_messageInfo_VirtualReassembly.Size(m) + +func (x *DNat44_StaticMapping_LocalIP) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VirtualReassembly) XXX_DiscardUnknown() { - xxx_messageInfo_VirtualReassembly.DiscardUnknown(m) + +func (*DNat44_StaticMapping_LocalIP) ProtoMessage() {} + +func (x *DNat44_StaticMapping_LocalIP) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_nat_nat_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_VirtualReassembly proto.InternalMessageInfo +// Deprecated: Use DNat44_StaticMapping_LocalIP.ProtoReflect.Descriptor instead. +func (*DNat44_StaticMapping_LocalIP) Descriptor() ([]byte, []int) { + return file_ligato_vpp_nat_nat_proto_rawDescGZIP(), []int{1, 0, 0} +} -func (m *VirtualReassembly) GetTimeout() uint32 { - if m != nil { - return m.Timeout +func (x *DNat44_StaticMapping_LocalIP) GetVrfId() uint32 { + if x != nil { + return x.VrfId } return 0 } -func (m *VirtualReassembly) GetMaxReassemblies() uint32 { - if m != nil { - return m.MaxReassemblies +func (x *DNat44_StaticMapping_LocalIP) GetLocalIp() string { + if x != nil { + return x.LocalIp } - return 0 + return "" } -func (m *VirtualReassembly) GetMaxFragments() uint32 { - if m != nil { - return m.MaxFragments +func (x *DNat44_StaticMapping_LocalIP) GetLocalPort() uint32 { + if x != nil { + return x.LocalPort } return 0 } -func (m *VirtualReassembly) GetDropFragments() bool { - if m != nil { - return m.DropFragments +func (x *DNat44_StaticMapping_LocalIP) GetProbability() uint32 { + if x != nil { + return x.Probability } - return false + return 0 } -func init() { - proto.RegisterEnum("ligato.vpp.nat.DNat44_Protocol", DNat44_Protocol_name, DNat44_Protocol_value) - proto.RegisterEnum("ligato.vpp.nat.DNat44_StaticMapping_TwiceNatMode", DNat44_StaticMapping_TwiceNatMode_name, DNat44_StaticMapping_TwiceNatMode_value) - proto.RegisterType((*Nat44Global)(nil), "ligato.vpp.nat.Nat44Global") - proto.RegisterType((*Nat44Global_Interface)(nil), "ligato.vpp.nat.Nat44Global.Interface") - proto.RegisterType((*Nat44Global_Address)(nil), "ligato.vpp.nat.Nat44Global.Address") - proto.RegisterType((*DNat44)(nil), "ligato.vpp.nat.DNat44") - proto.RegisterType((*DNat44_StaticMapping)(nil), "ligato.vpp.nat.DNat44.StaticMapping") - proto.RegisterType((*DNat44_StaticMapping_LocalIP)(nil), "ligato.vpp.nat.DNat44.StaticMapping.LocalIP") - proto.RegisterType((*DNat44_IdentityMapping)(nil), "ligato.vpp.nat.DNat44.IdentityMapping") - proto.RegisterType((*Nat44Interface)(nil), "ligato.vpp.nat.Nat44Interface") - proto.RegisterType((*Nat44AddressPool)(nil), "ligato.vpp.nat.Nat44AddressPool") - proto.RegisterType((*VirtualReassembly)(nil), "ligato.vpp.nat.VirtualReassembly") -} - -func init() { proto.RegisterFile("ligato/vpp/nat/nat.proto", fileDescriptor_6c5496f531b4b7d3) } - -var fileDescriptor_6c5496f531b4b7d3 = []byte{ - // 892 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xd1, 0x6e, 0xdb, 0x36, - 0x14, 0xad, 0x6c, 0xc7, 0x92, 0xaf, 0x62, 0xd7, 0x21, 0x36, 0x4c, 0xf3, 0xd6, 0xc5, 0x73, 0xd7, - 0x22, 0x03, 0x56, 0x1b, 0x4b, 0x8a, 0x61, 0x40, 0x9f, 0x92, 0x26, 0x29, 0x34, 0x24, 0x99, 0xa0, - 0x74, 0x1b, 0xb0, 0x17, 0x81, 0xb6, 0x28, 0x83, 0x80, 0x2c, 0x12, 0x24, 0xed, 0x26, 0xc3, 0xfe, - 0x60, 0xbf, 0xb1, 0x6f, 0xd8, 0xc3, 0xbe, 0x61, 0x7f, 0xb0, 0x9f, 0x19, 0x44, 0x52, 0xb6, 0xe2, - 0x35, 0x45, 0x81, 0x3e, 0x18, 0x10, 0xcf, 0xbd, 0x3c, 0xbc, 0xf7, 0xf0, 0xfa, 0x10, 0x82, 0x9c, - 0xce, 0xb1, 0x62, 0x93, 0x15, 0xe7, 0x93, 0x02, 0xab, 0xf2, 0x37, 0xe6, 0x82, 0x29, 0x86, 0x7a, - 0x26, 0x32, 0x5e, 0x71, 0x3e, 0x2e, 0xb0, 0x1a, 0xfd, 0xdb, 0x04, 0xff, 0x0a, 0xab, 0xe7, 0xcf, - 0x5f, 0xe5, 0x6c, 0x8a, 0x73, 0xf4, 0x05, 0x40, 0xc6, 0xc4, 0x1b, 0x2c, 0x52, 0x5a, 0xcc, 0x03, - 0x67, 0xe8, 0x1c, 0x78, 0x71, 0x0d, 0x41, 0x11, 0xf4, 0x0a, 0xac, 0x12, 0x5a, 0x28, 0x22, 0x32, - 0x3c, 0x23, 0x32, 0x68, 0x0c, 0x9b, 0x07, 0xfe, 0xe1, 0x93, 0xf1, 0x5d, 0xe2, 0x71, 0x8d, 0x74, - 0x1c, 0x56, 0xd9, 0x27, 0x8d, 0xc0, 0x89, 0xbb, 0x05, 0x56, 0x6b, 0x44, 0xa2, 0x1f, 0x60, 0x17, - 0xa7, 0xa9, 0x20, 0x52, 0x26, 0x9c, 0xb1, 0x3c, 0x68, 0x6a, 0xbe, 0xc7, 0xef, 0xe2, 0x3b, 0x36, - 0xf9, 0x9a, 0xcd, 0xb7, 0x9b, 0x23, 0xc6, 0x72, 0x14, 0x01, 0x5a, 0x51, 0xa1, 0x96, 0x38, 0x4f, - 0x04, 0xc1, 0x52, 0x92, 0xc5, 0x34, 0xbf, 0x0d, 0x5a, 0x43, 0xe7, 0xc0, 0x3f, 0xfc, 0x72, 0x9b, - 0xf1, 0x67, 0x93, 0x19, 0xaf, 0x13, 0xe3, 0xbd, 0xd5, 0x36, 0x34, 0x98, 0x41, 0x67, 0x5d, 0x2b, - 0x42, 0xd0, 0x2a, 0xf0, 0x82, 0x68, 0x59, 0x3a, 0xb1, 0xfe, 0x46, 0x9f, 0x41, 0x87, 0xca, 0x84, - 0x16, 0x92, 0xa6, 0x24, 0x68, 0x68, 0xbd, 0x3c, 0x2a, 0x43, 0xbd, 0x46, 0x4f, 0xa0, 0xc7, 0x96, - 0x8a, 0x2f, 0x55, 0x92, 0x11, 0xac, 0x96, 0x82, 0x04, 0x4d, 0x9d, 0xd1, 0x35, 0xe8, 0xb9, 0x01, - 0x07, 0xbf, 0x80, 0x6b, 0x5b, 0x42, 0x01, 0xb8, 0xb6, 0x21, 0x7b, 0x4a, 0xb5, 0x44, 0x1f, 0x43, - 0x7b, 0x25, 0xb2, 0x84, 0xa6, 0xfa, 0x94, 0x6e, 0xbc, 0xb3, 0x12, 0x59, 0x98, 0x96, 0xe7, 0xab, - 0x37, 0x74, 0x46, 0x92, 0x02, 0x2b, 0xcb, 0xee, 0x69, 0xe0, 0x0a, 0xab, 0xd1, 0x3f, 0x2e, 0xb4, - 0x4f, 0xb5, 0x72, 0xe8, 0x23, 0xd8, 0xc9, 0xf1, 0x94, 0xe4, 0x96, 0xd6, 0x2c, 0xd0, 0x19, 0xf8, - 0x52, 0x25, 0x0b, 0xcc, 0x39, 0x2d, 0xe6, 0xd5, 0x5d, 0x7e, 0xb5, 0xad, 0x94, 0xa1, 0x18, 0x5f, - 0x2b, 0xac, 0xe8, 0xec, 0xd2, 0x24, 0xc7, 0x20, 0x95, 0xfd, 0x94, 0xe8, 0x15, 0xf8, 0x34, 0xdd, - 0xd0, 0x98, 0x2b, 0x7c, 0x7a, 0x0f, 0x4d, 0x98, 0x92, 0x42, 0x51, 0x75, 0xbb, 0x26, 0xa2, 0x69, - 0x45, 0x34, 0xf8, 0xbb, 0x05, 0xdd, 0x3b, 0xc7, 0xa0, 0x67, 0x80, 0xc8, 0x8d, 0x22, 0xa2, 0xc0, - 0xf9, 0x66, 0xea, 0x6c, 0x13, 0x7b, 0x55, 0x64, 0x73, 0x45, 0xfb, 0xe0, 0x6f, 0xd2, 0xb9, 0x96, - 0xaa, 0x13, 0xc3, 0x3a, 0x8f, 0xa3, 0xc7, 0xd0, 0x5d, 0x27, 0x70, 0x26, 0x8c, 0x66, 0xdd, 0x78, - 0xb7, 0x02, 0x23, 0x26, 0x14, 0x0a, 0xa1, 0x93, 0xb3, 0x99, 0xa6, 0x90, 0x41, 0x4b, 0x77, 0xf3, - 0xcd, 0xfb, 0x88, 0x32, 0xbe, 0x28, 0x77, 0x85, 0x51, 0xec, 0xe9, 0xed, 0x21, 0x97, 0xe8, 0x05, - 0x78, 0xfa, 0x9f, 0x37, 0x63, 0x79, 0xb0, 0x33, 0x74, 0x0e, 0x7a, 0x87, 0xfb, 0xf7, 0x30, 0x45, - 0x36, 0x2d, 0x5e, 0x6f, 0x40, 0x57, 0xf5, 0xcb, 0x6d, 0xeb, 0xdd, 0xdf, 0xbe, 0x57, 0x1d, 0xaf, - 0xed, 0x04, 0x5c, 0xb2, 0x94, 0x6c, 0xe6, 0x01, 0x7d, 0x0d, 0x7d, 0x49, 0xa4, 0xa4, 0xac, 0x48, - 0x70, 0x96, 0xd1, 0x82, 0xaa, 0xdb, 0xc0, 0xd5, 0xfd, 0x3f, 0xb4, 0xf8, 0xb1, 0x85, 0x07, 0xbf, - 0x83, 0x6b, 0x9b, 0xa9, 0x4d, 0x9e, 0x53, 0x9f, 0xbc, 0x4f, 0xc1, 0xab, 0x44, 0xb2, 0x3a, 0xbb, - 0xb6, 0x6b, 0xf4, 0x08, 0xc0, 0x84, 0x6a, 0x0a, 0x1b, 0x45, 0xb5, 0xbc, 0x43, 0xf0, 0xb9, 0x60, - 0x53, 0x3c, 0xa5, 0x79, 0x59, 0x41, 0x4b, 0xc7, 0xeb, 0xd0, 0xe8, 0x08, 0x76, 0xeb, 0x2d, 0xa0, - 0x5d, 0xf0, 0x4e, 0xc3, 0xeb, 0xe3, 0x93, 0x8b, 0xb3, 0xd3, 0xfe, 0x03, 0xe4, 0x83, 0x7b, 0x76, - 0x65, 0x16, 0x0e, 0xf2, 0xa0, 0x75, 0x7d, 0x76, 0x71, 0xde, 0x6f, 0x0c, 0xfe, 0x72, 0xe0, 0xe1, - 0xd6, 0x70, 0xdd, 0x57, 0xfb, 0xe7, 0xd0, 0xd9, 0x0c, 0x93, 0x29, 0x7e, 0x03, 0x94, 0xe5, 0x53, - 0x9e, 0x54, 0xff, 0xc3, 0xa6, 0x0d, 0xf3, 0xea, 0x3f, 0x8a, 0xa0, 0xa5, 0xfb, 0x32, 0x75, 0xeb, - 0xef, 0x0f, 0xba, 0xe6, 0xd1, 0x53, 0xf0, 0x2a, 0x14, 0xb9, 0xd0, 0x7c, 0xfd, 0x32, 0xea, 0x3f, - 0x28, 0x3f, 0x7e, 0x3a, 0x8d, 0x4c, 0x83, 0xe1, 0xcb, 0xcb, 0xa8, 0xdf, 0x18, 0xfd, 0xe1, 0x40, - 0x4f, 0x93, 0xbc, 0xdb, 0x92, 0x1e, 0x01, 0x18, 0x8f, 0xae, 0x79, 0x52, 0x47, 0x9b, 0xae, 0x36, - 0xa5, 0x7d, 0xf0, 0xcb, 0x30, 0x5b, 0x2a, 0x1d, 0x37, 0x9e, 0x51, 0xee, 0xf8, 0xd1, 0x20, 0x6f, - 0x71, 0xad, 0xd6, 0x5b, 0x5c, 0x6b, 0xf4, 0x1b, 0xf4, 0x75, 0x31, 0xc7, 0x35, 0x03, 0xbe, 0x7f, - 0x54, 0x32, 0x2a, 0xa4, 0xaa, 0x8d, 0x8a, 0x5e, 0x87, 0x1c, 0x7d, 0x02, 0x6e, 0x8e, 0x4d, 0xc4, - 0x08, 0xdd, 0x2e, 0x97, 0x21, 0xbf, 0x6b, 0x6c, 0xad, 0x2d, 0x63, 0xfb, 0xd3, 0x81, 0xbd, 0xff, - 0xf9, 0x77, 0x69, 0x9e, 0x8a, 0x2e, 0x08, 0x5b, 0x2a, 0x7b, 0x7c, 0xb5, 0x2c, 0x07, 0x7f, 0x81, - 0x6f, 0x36, 0x8f, 0x02, 0xd5, 0x0f, 0x97, 0x1e, 0xfc, 0x05, 0xbe, 0x89, 0x6b, 0x70, 0x69, 0x10, - 0x65, 0x6a, 0x26, 0xf0, 0x7c, 0x41, 0x0a, 0x25, 0x2b, 0x83, 0x58, 0xe0, 0x9b, 0xf3, 0x0a, 0x2b, - 0x25, 0x4a, 0x05, 0xe3, 0xb5, 0x2c, 0x2b, 0x51, 0x89, 0xae, 0xd3, 0x4e, 0xbe, 0xff, 0xf5, 0xbb, - 0x39, 0xab, 0xe6, 0x80, 0xea, 0xf7, 0xf8, 0x19, 0x9e, 0x93, 0x42, 0x4d, 0x56, 0x47, 0x13, 0x7d, - 0xfd, 0x93, 0xbb, 0x2f, 0xf5, 0x8b, 0x15, 0xe7, 0x65, 0xc3, 0xd3, 0xb6, 0x8e, 0x1e, 0xfd, 0x17, - 0x00, 0x00, 0xff, 0xff, 0xd6, 0xf8, 0x55, 0x38, 0xca, 0x07, 0x00, 0x00, +var File_ligato_vpp_nat_nat_proto protoreflect.FileDescriptor + +var file_ligato_vpp_nat_nat_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6e, 0x61, 0x74, + 0x2f, 0x6e, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6e, 0x61, 0x74, 0x22, 0xdb, 0x03, 0x0a, 0x0b, 0x4e, + 0x61, 0x74, 0x34, 0x34, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 0x6f, + 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, + 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x50, 0x0a, 0x0e, 0x6e, 0x61, + 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, + 0x6e, 0x61, 0x74, 0x2e, 0x4e, 0x61, 0x74, 0x34, 0x34, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x2e, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0d, 0x6e, + 0x61, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x0c, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, + 0x6e, 0x61, 0x74, 0x2e, 0x4e, 0x61, 0x74, 0x34, 0x34, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x2e, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x50, 0x0a, 0x12, 0x76, 0x69, 0x72, 0x74, + 0x75, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x73, 0x65, 0x6d, 0x62, 0x6c, 0x79, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, + 0x70, 0x2e, 0x6e, 0x61, 0x74, 0x2e, 0x56, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x52, 0x65, 0x61, + 0x73, 0x73, 0x65, 0x6d, 0x62, 0x6c, 0x79, 0x52, 0x11, 0x76, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, + 0x52, 0x65, 0x61, 0x73, 0x73, 0x65, 0x6d, 0x62, 0x6c, 0x79, 0x1a, 0x63, 0x0a, 0x09, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, + 0x73, 0x5f, 0x69, 0x6e, 0x73, 0x69, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, + 0x69, 0x73, 0x49, 0x6e, 0x73, 0x69, 0x64, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x6f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x1a, + 0x57, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x76, 0x72, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x72, 0x66, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x74, + 0x77, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, + 0x74, 0x77, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x74, 0x22, 0xcc, 0x07, 0x0a, 0x06, 0x44, 0x4e, 0x61, + 0x74, 0x34, 0x34, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x45, 0x0a, 0x0b, 0x73, 0x74, 0x5f, + 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, + 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6e, 0x61, 0x74, 0x2e, + 0x44, 0x4e, 0x61, 0x74, 0x34, 0x34, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x4d, 0x61, 0x70, + 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0a, 0x73, 0x74, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x73, + 0x12, 0x47, 0x0a, 0x0b, 0x69, 0x64, 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x73, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, + 0x70, 0x70, 0x2e, 0x6e, 0x61, 0x74, 0x2e, 0x44, 0x4e, 0x61, 0x74, 0x34, 0x34, 0x2e, 0x49, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0a, 0x69, + 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x73, 0x1a, 0xba, 0x04, 0x0a, 0x0d, 0x53, 0x74, + 0x61, 0x74, 0x69, 0x63, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x2d, 0x0a, 0x12, 0x65, + 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x70, 0x12, 0x23, 0x0a, 0x0d, 0x65, + 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x0c, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, + 0x12, 0x49, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x69, 0x70, 0x73, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, + 0x2e, 0x6e, 0x61, 0x74, 0x2e, 0x44, 0x4e, 0x61, 0x74, 0x34, 0x34, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x69, 0x63, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x49, + 0x50, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x49, 0x70, 0x73, 0x12, 0x3b, 0x0a, 0x08, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6e, 0x61, 0x74, 0x2e, 0x44, + 0x4e, 0x61, 0x74, 0x34, 0x34, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x4e, 0x0a, 0x09, 0x74, 0x77, 0x69, 0x63, + 0x65, 0x5f, 0x6e, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6e, 0x61, 0x74, 0x2e, 0x44, 0x4e, 0x61, + 0x74, 0x34, 0x34, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, + 0x67, 0x2e, 0x54, 0x77, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x08, + 0x74, 0x77, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x65, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x0f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x66, 0x66, 0x69, 0x6e, + 0x69, 0x74, 0x79, 0x1a, 0x7c, 0x0a, 0x07, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x49, 0x50, 0x12, 0x15, + 0x0a, 0x06, 0x76, 0x72, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, + 0x76, 0x72, 0x66, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x69, + 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x49, 0x70, + 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x12, + 0x20, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x62, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x62, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x22, 0x33, 0x0a, 0x0c, 0x54, 0x77, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x74, 0x4d, 0x6f, 0x64, + 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, + 0x53, 0x45, 0x4c, 0x46, 0x10, 0x02, 0x1a, 0xb6, 0x01, 0x0a, 0x0f, 0x49, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x15, 0x0a, 0x06, 0x76, 0x72, + 0x66, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x72, 0x66, 0x49, + 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, + 0x1d, 0x0a, 0x0a, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, + 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, + 0x72, 0x74, 0x12, 0x3b, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, + 0x70, 0x2e, 0x6e, 0x61, 0x74, 0x2e, 0x44, 0x4e, 0x61, 0x74, 0x34, 0x34, 0x2e, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, + 0x26, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x07, 0x0a, 0x03, 0x54, + 0x43, 0x50, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x44, 0x50, 0x10, 0x01, 0x12, 0x08, 0x0a, + 0x04, 0x49, 0x43, 0x4d, 0x50, 0x10, 0x02, 0x22, 0x8b, 0x01, 0x0a, 0x0e, 0x4e, 0x61, 0x74, 0x34, + 0x34, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, + 0x0a, 0x0a, 0x6e, 0x61, 0x74, 0x5f, 0x69, 0x6e, 0x73, 0x69, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x09, 0x6e, 0x61, 0x74, 0x49, 0x6e, 0x73, 0x69, 0x64, 0x65, 0x12, 0x1f, 0x0a, + 0x0b, 0x6e, 0x61, 0x74, 0x5f, 0x6f, 0x75, 0x74, 0x73, 0x69, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0a, 0x6e, 0x61, 0x74, 0x4f, 0x75, 0x74, 0x73, 0x69, 0x64, 0x65, 0x12, 0x25, + 0x0a, 0x0e, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x46, 0x65, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x7a, 0x0a, 0x10, 0x4e, 0x61, 0x74, 0x34, 0x34, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x15, 0x0a, 0x06, 0x76, 0x72, 0x66, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x72, 0x66, 0x49, 0x64, + 0x12, 0x19, 0x0a, 0x08, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x72, 0x73, 0x74, 0x49, 0x70, 0x12, 0x17, 0x0a, 0x07, 0x6c, + 0x61, 0x73, 0x74, 0x5f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x61, + 0x73, 0x74, 0x49, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x77, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, + 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x74, 0x77, 0x69, 0x63, 0x65, 0x4e, 0x61, + 0x74, 0x22, 0xa4, 0x01, 0x0a, 0x11, 0x56, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x52, 0x65, 0x61, + 0x73, 0x73, 0x65, 0x6d, 0x62, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, + 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, + 0x74, 0x12, 0x29, 0x0a, 0x10, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x73, 0x65, 0x6d, + 0x62, 0x6c, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x6d, 0x61, 0x78, + 0x52, 0x65, 0x61, 0x73, 0x73, 0x65, 0x6d, 0x62, 0x6c, 0x69, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, + 0x6d, 0x61, 0x78, 0x5f, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x46, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x46, + 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x6f, 0x2e, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6e, 0x61, 0x74, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x6e, + 0x61, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_nat_nat_proto_rawDescOnce sync.Once + file_ligato_vpp_nat_nat_proto_rawDescData = file_ligato_vpp_nat_nat_proto_rawDesc +) + +func file_ligato_vpp_nat_nat_proto_rawDescGZIP() []byte { + file_ligato_vpp_nat_nat_proto_rawDescOnce.Do(func() { + file_ligato_vpp_nat_nat_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_nat_nat_proto_rawDescData) + }) + return file_ligato_vpp_nat_nat_proto_rawDescData +} + +var file_ligato_vpp_nat_nat_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_ligato_vpp_nat_nat_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_ligato_vpp_nat_nat_proto_goTypes = []interface{}{ + (DNat44_Protocol)(0), // 0: ligato.vpp.nat.DNat44.Protocol + (DNat44_StaticMapping_TwiceNatMode)(0), // 1: ligato.vpp.nat.DNat44.StaticMapping.TwiceNatMode + (*Nat44Global)(nil), // 2: ligato.vpp.nat.Nat44Global + (*DNat44)(nil), // 3: ligato.vpp.nat.DNat44 + (*Nat44Interface)(nil), // 4: ligato.vpp.nat.Nat44Interface + (*Nat44AddressPool)(nil), // 5: ligato.vpp.nat.Nat44AddressPool + (*VirtualReassembly)(nil), // 6: ligato.vpp.nat.VirtualReassembly + (*Nat44Global_Interface)(nil), // 7: ligato.vpp.nat.Nat44Global.Interface + (*Nat44Global_Address)(nil), // 8: ligato.vpp.nat.Nat44Global.Address + (*DNat44_StaticMapping)(nil), // 9: ligato.vpp.nat.DNat44.StaticMapping + (*DNat44_IdentityMapping)(nil), // 10: ligato.vpp.nat.DNat44.IdentityMapping + (*DNat44_StaticMapping_LocalIP)(nil), // 11: ligato.vpp.nat.DNat44.StaticMapping.LocalIP +} +var file_ligato_vpp_nat_nat_proto_depIdxs = []int32{ + 7, // 0: ligato.vpp.nat.Nat44Global.nat_interfaces:type_name -> ligato.vpp.nat.Nat44Global.Interface + 8, // 1: ligato.vpp.nat.Nat44Global.address_pool:type_name -> ligato.vpp.nat.Nat44Global.Address + 6, // 2: ligato.vpp.nat.Nat44Global.virtual_reassembly:type_name -> ligato.vpp.nat.VirtualReassembly + 9, // 3: ligato.vpp.nat.DNat44.st_mappings:type_name -> ligato.vpp.nat.DNat44.StaticMapping + 10, // 4: ligato.vpp.nat.DNat44.id_mappings:type_name -> ligato.vpp.nat.DNat44.IdentityMapping + 11, // 5: ligato.vpp.nat.DNat44.StaticMapping.local_ips:type_name -> ligato.vpp.nat.DNat44.StaticMapping.LocalIP + 0, // 6: ligato.vpp.nat.DNat44.StaticMapping.protocol:type_name -> ligato.vpp.nat.DNat44.Protocol + 1, // 7: ligato.vpp.nat.DNat44.StaticMapping.twice_nat:type_name -> ligato.vpp.nat.DNat44.StaticMapping.TwiceNatMode + 0, // 8: ligato.vpp.nat.DNat44.IdentityMapping.protocol:type_name -> ligato.vpp.nat.DNat44.Protocol + 9, // [9:9] is the sub-list for method output_type + 9, // [9:9] is the sub-list for method input_type + 9, // [9:9] is the sub-list for extension type_name + 9, // [9:9] is the sub-list for extension extendee + 0, // [0:9] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_nat_nat_proto_init() } +func file_ligato_vpp_nat_nat_proto_init() { + if File_ligato_vpp_nat_nat_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_nat_nat_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Nat44Global); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_nat_nat_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DNat44); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_nat_nat_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Nat44Interface); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_nat_nat_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Nat44AddressPool); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_nat_nat_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VirtualReassembly); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_nat_nat_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Nat44Global_Interface); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_nat_nat_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Nat44Global_Address); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_nat_nat_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DNat44_StaticMapping); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_nat_nat_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DNat44_IdentityMapping); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_nat_nat_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DNat44_StaticMapping_LocalIP); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_nat_nat_proto_rawDesc, + NumEnums: 2, + NumMessages: 10, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_nat_nat_proto_goTypes, + DependencyIndexes: file_ligato_vpp_nat_nat_proto_depIdxs, + EnumInfos: file_ligato_vpp_nat_nat_proto_enumTypes, + MessageInfos: file_ligato_vpp_nat_nat_proto_msgTypes, + }.Build() + File_ligato_vpp_nat_nat_proto = out.File + file_ligato_vpp_nat_nat_proto_rawDesc = nil + file_ligato_vpp_nat_nat_proto_goTypes = nil + file_ligato_vpp_nat_nat_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/punt/punt.pb.go b/proto/ligato/vpp/punt/punt.pb.go index 7587de0c12..de7df26518 100644 --- a/proto/ligato/vpp/punt/punt.pb.go +++ b/proto/ligato/vpp/punt/punt.pb.go @@ -1,24 +1,29 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/punt/punt.proto package vpp_punt import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 // L3Protocol defines Layer 3 protocols. type L3Protocol int32 @@ -30,26 +35,47 @@ const ( L3Protocol_ALL L3Protocol = 10 ) -var L3Protocol_name = map[int32]string{ - 0: "UNDEFINED_L3", - 4: "IPV4", - 6: "IPV6", - 10: "ALL", -} +// Enum value maps for L3Protocol. +var ( + L3Protocol_name = map[int32]string{ + 0: "UNDEFINED_L3", + 4: "IPV4", + 6: "IPV6", + 10: "ALL", + } + L3Protocol_value = map[string]int32{ + "UNDEFINED_L3": 0, + "IPV4": 4, + "IPV6": 6, + "ALL": 10, + } +) -var L3Protocol_value = map[string]int32{ - "UNDEFINED_L3": 0, - "IPV4": 4, - "IPV6": 6, - "ALL": 10, +func (x L3Protocol) Enum() *L3Protocol { + p := new(L3Protocol) + *p = x + return p } func (x L3Protocol) String() string { - return proto.EnumName(L3Protocol_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (L3Protocol) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_punt_punt_proto_enumTypes[0].Descriptor() +} + +func (L3Protocol) Type() protoreflect.EnumType { + return &file_ligato_vpp_punt_punt_proto_enumTypes[0] +} + +func (x L3Protocol) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use L3Protocol.Descriptor instead. func (L3Protocol) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_4e5cf3ee226cd887, []int{0} + return file_ligato_vpp_punt_punt_proto_rawDescGZIP(), []int{0} } // L4Protocol defines Layer 4 protocols. @@ -61,30 +87,55 @@ const ( L4Protocol_UDP L4Protocol = 17 ) -var L4Protocol_name = map[int32]string{ - 0: "UNDEFINED_L4", - 6: "TCP", - 17: "UDP", -} +// Enum value maps for L4Protocol. +var ( + L4Protocol_name = map[int32]string{ + 0: "UNDEFINED_L4", + 6: "TCP", + 17: "UDP", + } + L4Protocol_value = map[string]int32{ + "UNDEFINED_L4": 0, + "TCP": 6, + "UDP": 17, + } +) -var L4Protocol_value = map[string]int32{ - "UNDEFINED_L4": 0, - "TCP": 6, - "UDP": 17, +func (x L4Protocol) Enum() *L4Protocol { + p := new(L4Protocol) + *p = x + return p } func (x L4Protocol) String() string { - return proto.EnumName(L4Protocol_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (L4Protocol) Descriptor() protoreflect.EnumDescriptor { + return file_ligato_vpp_punt_punt_proto_enumTypes[1].Descriptor() } +func (L4Protocol) Type() protoreflect.EnumType { + return &file_ligato_vpp_punt_punt_proto_enumTypes[1] +} + +func (x L4Protocol) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use L4Protocol.Descriptor instead. func (L4Protocol) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_4e5cf3ee226cd887, []int{1} + return file_ligato_vpp_punt_punt_proto_rawDescGZIP(), []int{1} } // IPRedirect allows otherwise dropped packet which destination IP address // matching some of the VPP addresses to redirect to the defined next hop address // via the TX interface. type IPRedirect struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // L3 protocol to be redirected L3Protocol L3Protocol `protobuf:"varint,1,opt,name=l3_protocol,json=l3Protocol,proto3,enum=ligato.vpp.punt.L3Protocol" json:"l3_protocol,omitempty"` // Receive interface name. Optional, only redirect traffic incoming from this interface @@ -92,61 +143,65 @@ type IPRedirect struct { // Transmit interface name TxInterface string `protobuf:"bytes,3,opt,name=tx_interface,json=txInterface,proto3" json:"tx_interface,omitempty"` // Next hop IP where the traffic is redirected - NextHop string `protobuf:"bytes,4,opt,name=next_hop,json=nextHop,proto3" json:"next_hop,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + NextHop string `protobuf:"bytes,4,opt,name=next_hop,json=nextHop,proto3" json:"next_hop,omitempty"` } -func (m *IPRedirect) Reset() { *m = IPRedirect{} } -func (m *IPRedirect) String() string { return proto.CompactTextString(m) } -func (*IPRedirect) ProtoMessage() {} -func (*IPRedirect) Descriptor() ([]byte, []int) { - return fileDescriptor_4e5cf3ee226cd887, []int{0} +func (x *IPRedirect) Reset() { + *x = IPRedirect{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_punt_punt_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *IPRedirect) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IPRedirect.Unmarshal(m, b) -} -func (m *IPRedirect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IPRedirect.Marshal(b, m, deterministic) -} -func (m *IPRedirect) XXX_Merge(src proto.Message) { - xxx_messageInfo_IPRedirect.Merge(m, src) +func (x *IPRedirect) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *IPRedirect) XXX_Size() int { - return xxx_messageInfo_IPRedirect.Size(m) -} -func (m *IPRedirect) XXX_DiscardUnknown() { - xxx_messageInfo_IPRedirect.DiscardUnknown(m) + +func (*IPRedirect) ProtoMessage() {} + +func (x *IPRedirect) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_punt_punt_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_IPRedirect proto.InternalMessageInfo +// Deprecated: Use IPRedirect.ProtoReflect.Descriptor instead. +func (*IPRedirect) Descriptor() ([]byte, []int) { + return file_ligato_vpp_punt_punt_proto_rawDescGZIP(), []int{0} +} -func (m *IPRedirect) GetL3Protocol() L3Protocol { - if m != nil { - return m.L3Protocol +func (x *IPRedirect) GetL3Protocol() L3Protocol { + if x != nil { + return x.L3Protocol } return L3Protocol_UNDEFINED_L3 } -func (m *IPRedirect) GetRxInterface() string { - if m != nil { - return m.RxInterface +func (x *IPRedirect) GetRxInterface() string { + if x != nil { + return x.RxInterface } return "" } -func (m *IPRedirect) GetTxInterface() string { - if m != nil { - return m.TxInterface +func (x *IPRedirect) GetTxInterface() string { + if x != nil { + return x.TxInterface } return "" } -func (m *IPRedirect) GetNextHop() string { - if m != nil { - return m.NextHop +func (x *IPRedirect) GetNextHop() string { + if x != nil { + return x.NextHop } return "" } @@ -155,6 +210,10 @@ func (m *IPRedirect) GetNextHop() string { // some of the VPP interface IP addresses to be punted to the host. // L3 and L4 protocols can be used for filtering */ type ToHost struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // L3 destination protocol a packet has to match in order to be punted. L3Protocol L3Protocol `protobuf:"varint,2,opt,name=l3_protocol,json=l3Protocol,proto3,enum=ligato.vpp.punt.L3Protocol" json:"l3_protocol,omitempty"` // L4 destination protocol a packet has to match. @@ -166,61 +225,65 @@ type ToHost struct { // used for punt packets to the host. // In dumps, it will actually contain the socket // defined in VPP config under punt section. - SocketPath string `protobuf:"bytes,5,opt,name=socket_path,json=socketPath,proto3" json:"socket_path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + SocketPath string `protobuf:"bytes,5,opt,name=socket_path,json=socketPath,proto3" json:"socket_path,omitempty"` } -func (m *ToHost) Reset() { *m = ToHost{} } -func (m *ToHost) String() string { return proto.CompactTextString(m) } -func (*ToHost) ProtoMessage() {} -func (*ToHost) Descriptor() ([]byte, []int) { - return fileDescriptor_4e5cf3ee226cd887, []int{1} +func (x *ToHost) Reset() { + *x = ToHost{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_punt_punt_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ToHost) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ToHost.Unmarshal(m, b) -} -func (m *ToHost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ToHost.Marshal(b, m, deterministic) -} -func (m *ToHost) XXX_Merge(src proto.Message) { - xxx_messageInfo_ToHost.Merge(m, src) +func (x *ToHost) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ToHost) XXX_Size() int { - return xxx_messageInfo_ToHost.Size(m) -} -func (m *ToHost) XXX_DiscardUnknown() { - xxx_messageInfo_ToHost.DiscardUnknown(m) + +func (*ToHost) ProtoMessage() {} + +func (x *ToHost) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_punt_punt_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ToHost proto.InternalMessageInfo +// Deprecated: Use ToHost.ProtoReflect.Descriptor instead. +func (*ToHost) Descriptor() ([]byte, []int) { + return file_ligato_vpp_punt_punt_proto_rawDescGZIP(), []int{1} +} -func (m *ToHost) GetL3Protocol() L3Protocol { - if m != nil { - return m.L3Protocol +func (x *ToHost) GetL3Protocol() L3Protocol { + if x != nil { + return x.L3Protocol } return L3Protocol_UNDEFINED_L3 } -func (m *ToHost) GetL4Protocol() L4Protocol { - if m != nil { - return m.L4Protocol +func (x *ToHost) GetL4Protocol() L4Protocol { + if x != nil { + return x.L4Protocol } return L4Protocol_UNDEFINED_L4 } -func (m *ToHost) GetPort() uint32 { - if m != nil { - return m.Port +func (x *ToHost) GetPort() uint32 { + if x != nil { + return x.Port } return 0 } -func (m *ToHost) GetSocketPath() string { - if m != nil { - return m.SocketPath +func (x *ToHost) GetSocketPath() string { + if x != nil { + return x.SocketPath } return "" } @@ -228,53 +291,61 @@ func (m *ToHost) GetSocketPath() string { // Exception allows specifying punt exceptions used for punting packets. // The type of exception is defined by reason name. type Exception struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Name should contain reason name, e.g. `ipsec4-spi-0`. Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` // SocketPath defines path to unix domain socket // used for punt packets to the host. // In dumps, it will actually contain the socket // defined in VPP config under punt section. - SocketPath string `protobuf:"bytes,2,opt,name=socket_path,json=socketPath,proto3" json:"socket_path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + SocketPath string `protobuf:"bytes,2,opt,name=socket_path,json=socketPath,proto3" json:"socket_path,omitempty"` } -func (m *Exception) Reset() { *m = Exception{} } -func (m *Exception) String() string { return proto.CompactTextString(m) } -func (*Exception) ProtoMessage() {} -func (*Exception) Descriptor() ([]byte, []int) { - return fileDescriptor_4e5cf3ee226cd887, []int{2} +func (x *Exception) Reset() { + *x = Exception{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_punt_punt_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Exception) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Exception.Unmarshal(m, b) -} -func (m *Exception) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Exception.Marshal(b, m, deterministic) -} -func (m *Exception) XXX_Merge(src proto.Message) { - xxx_messageInfo_Exception.Merge(m, src) +func (x *Exception) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Exception) XXX_Size() int { - return xxx_messageInfo_Exception.Size(m) -} -func (m *Exception) XXX_DiscardUnknown() { - xxx_messageInfo_Exception.DiscardUnknown(m) + +func (*Exception) ProtoMessage() {} + +func (x *Exception) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_punt_punt_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Exception proto.InternalMessageInfo +// Deprecated: Use Exception.ProtoReflect.Descriptor instead. +func (*Exception) Descriptor() ([]byte, []int) { + return file_ligato_vpp_punt_punt_proto_rawDescGZIP(), []int{2} +} -func (m *Exception) GetReason() string { - if m != nil { - return m.Reason +func (x *Exception) GetReason() string { + if x != nil { + return x.Reason } return "" } -func (m *Exception) GetSocketPath() string { - if m != nil { - return m.SocketPath +func (x *Exception) GetSocketPath() string { + if x != nil { + return x.SocketPath } return "" } @@ -293,81 +364,206 @@ func (m *Exception) GetSocketPath() string { // [6] VXLAN-GBP-no-such-v6-tunnel from:[vxlan-gbp ] // type Reason struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Name contains reason name. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (m *Reason) Reset() { *m = Reason{} } -func (m *Reason) String() string { return proto.CompactTextString(m) } -func (*Reason) ProtoMessage() {} -func (*Reason) Descriptor() ([]byte, []int) { - return fileDescriptor_4e5cf3ee226cd887, []int{3} +func (x *Reason) Reset() { + *x = Reason{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_punt_punt_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Reason) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Reason.Unmarshal(m, b) +func (x *Reason) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Reason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Reason.Marshal(b, m, deterministic) -} -func (m *Reason) XXX_Merge(src proto.Message) { - xxx_messageInfo_Reason.Merge(m, src) -} -func (m *Reason) XXX_Size() int { - return xxx_messageInfo_Reason.Size(m) -} -func (m *Reason) XXX_DiscardUnknown() { - xxx_messageInfo_Reason.DiscardUnknown(m) + +func (*Reason) ProtoMessage() {} + +func (x *Reason) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_punt_punt_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Reason proto.InternalMessageInfo +// Deprecated: Use Reason.ProtoReflect.Descriptor instead. +func (*Reason) Descriptor() ([]byte, []int) { + return file_ligato_vpp_punt_punt_proto_rawDescGZIP(), []int{3} +} -func (m *Reason) GetName() string { - if m != nil { - return m.Name +func (x *Reason) GetName() string { + if x != nil { + return x.Name } return "" } -func init() { - proto.RegisterEnum("ligato.vpp.punt.L3Protocol", L3Protocol_name, L3Protocol_value) - proto.RegisterEnum("ligato.vpp.punt.L4Protocol", L4Protocol_name, L4Protocol_value) - proto.RegisterType((*IPRedirect)(nil), "ligato.vpp.punt.IPRedirect") - proto.RegisterType((*ToHost)(nil), "ligato.vpp.punt.ToHost") - proto.RegisterType((*Exception)(nil), "ligato.vpp.punt.Exception") - proto.RegisterType((*Reason)(nil), "ligato.vpp.punt.Reason") -} - -func init() { proto.RegisterFile("ligato/vpp/punt/punt.proto", fileDescriptor_4e5cf3ee226cd887) } - -var fileDescriptor_4e5cf3ee226cd887 = []byte{ - // 386 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xdf, 0x4e, 0xa3, 0x40, - 0x14, 0xc6, 0x4b, 0xcb, 0xd2, 0xf6, 0xb4, 0xbb, 0xcb, 0xce, 0xc5, 0x86, 0x5d, 0x4d, 0xac, 0xbd, - 0x6a, 0x9a, 0x08, 0x46, 0x88, 0x31, 0xd6, 0x1b, 0x95, 0x9a, 0x92, 0x90, 0x86, 0x90, 0xd6, 0x0b, - 0x6f, 0x08, 0xe2, 0xd8, 0x12, 0x91, 0x99, 0xd0, 0x91, 0xf0, 0x4e, 0x3e, 0x81, 0x6f, 0x67, 0x18, - 0xe8, 0x9f, 0xd0, 0x78, 0xe1, 0xcd, 0xe4, 0x9b, 0x73, 0x7e, 0xdf, 0xc9, 0x37, 0x27, 0x03, 0xff, - 0xa3, 0x70, 0xe1, 0x33, 0xa2, 0xa5, 0x94, 0x6a, 0xf4, 0x2d, 0x66, 0xfc, 0x50, 0x69, 0x42, 0x18, - 0x41, 0xbf, 0x8b, 0x9e, 0x9a, 0x52, 0xaa, 0xe6, 0xe5, 0xfe, 0xbb, 0x00, 0x60, 0x39, 0x2e, 0x7e, - 0x0a, 0x13, 0x1c, 0x30, 0x74, 0x05, 0x9d, 0x48, 0xf7, 0x38, 0x1b, 0x90, 0x48, 0x11, 0x7a, 0xc2, - 0xe0, 0xd7, 0xd9, 0x81, 0x5a, 0x71, 0xa9, 0xb6, 0xee, 0x94, 0x88, 0x0b, 0xd1, 0x46, 0xa3, 0x63, - 0xe8, 0x26, 0x99, 0x17, 0xc6, 0x0c, 0x27, 0xcf, 0x7e, 0x80, 0x95, 0x7a, 0x4f, 0x18, 0xb4, 0xdd, - 0x4e, 0x92, 0x59, 0xeb, 0x52, 0x8e, 0xb0, 0x5d, 0xa4, 0x51, 0x20, 0x6c, 0x07, 0xf9, 0x07, 0xad, - 0x18, 0x67, 0xcc, 0x5b, 0x12, 0xaa, 0x88, 0xbc, 0xdd, 0xcc, 0xef, 0x13, 0x42, 0xfb, 0x1f, 0x02, - 0x48, 0x33, 0x32, 0x21, 0xab, 0xbd, 0xa4, 0xf5, 0xef, 0x25, 0xcd, 0xdd, 0xc6, 0xd6, 0xdd, 0xf8, - 0xca, 0x6d, 0xec, 0xb8, 0x37, 0x1a, 0x21, 0x10, 0x29, 0x49, 0x18, 0x4f, 0xf7, 0xd3, 0xe5, 0x1a, - 0x1d, 0x41, 0x67, 0x45, 0x82, 0x17, 0xcc, 0x3c, 0xea, 0xb3, 0xa5, 0xf2, 0x83, 0x07, 0x87, 0xa2, - 0xe4, 0xf8, 0x6c, 0xd9, 0x37, 0xa1, 0x3d, 0xce, 0x02, 0x4c, 0x59, 0x48, 0x62, 0xf4, 0x17, 0xa4, - 0x04, 0xfb, 0x2b, 0x12, 0xf3, 0x15, 0xb7, 0xdd, 0xf2, 0x56, 0x9d, 0x52, 0xdf, 0x9b, 0x72, 0x08, - 0x92, 0x5b, 0xa0, 0x08, 0xc4, 0xd8, 0x7f, 0xc5, 0xe5, 0x00, 0xae, 0x87, 0x23, 0x80, 0xed, 0x83, - 0x91, 0x0c, 0xdd, 0xf9, 0xd4, 0x1c, 0xdf, 0x59, 0xd3, 0xb1, 0xe9, 0xd9, 0xba, 0x5c, 0x43, 0x2d, - 0x10, 0x2d, 0xe7, 0xde, 0x90, 0xc5, 0x52, 0x9d, 0xcb, 0x12, 0x6a, 0x42, 0xe3, 0xda, 0xb6, 0x65, - 0x18, 0x9e, 0x02, 0x6c, 0xdf, 0x5b, 0x31, 0x1b, 0x72, 0x2d, 0x07, 0x67, 0xb7, 0x4e, 0xe1, 0x98, - 0x9b, 0x8e, 0xfc, 0xe7, 0xe6, 0xf2, 0xe1, 0x62, 0x41, 0xd6, 0x4b, 0x0b, 0xf9, 0x8f, 0x3b, 0xf1, - 0x17, 0x38, 0x66, 0x5a, 0xaa, 0x6b, 0x7c, 0xb9, 0x5a, 0xe5, 0x2f, 0x8e, 0x52, 0x4a, 0xbd, 0x5c, - 0x3c, 0x4a, 0xbc, 0xaf, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, 0xdf, 0x05, 0x76, 0xa2, 0xae, 0x02, - 0x00, 0x00, +var File_ligato_vpp_punt_punt_proto protoreflect.FileDescriptor + +var file_ligato_vpp_punt_punt_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x70, 0x75, 0x6e, + 0x74, 0x2f, 0x70, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x70, 0x75, 0x6e, 0x74, 0x22, 0xab, 0x01, + 0x0a, 0x0a, 0x49, 0x50, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x12, 0x3c, 0x0a, 0x0b, + 0x6c, 0x33, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x1b, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x70, + 0x75, 0x6e, 0x74, 0x2e, 0x4c, 0x33, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x0a, + 0x6c, 0x33, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x78, + 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x72, 0x78, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x21, 0x0a, + 0x0c, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x78, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x68, 0x6f, 0x70, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x78, 0x74, 0x48, 0x6f, 0x70, 0x22, 0xb9, 0x01, 0x0a, 0x06, + 0x54, 0x6f, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x0b, 0x6c, 0x33, 0x5f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x70, 0x75, 0x6e, 0x74, 0x2e, 0x4c, 0x33, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x0a, 0x6c, 0x33, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x3c, 0x0a, 0x0b, 0x6c, 0x34, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x70, 0x75, 0x6e, 0x74, 0x2e, 0x4c, 0x34, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x0a, 0x6c, 0x34, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, + 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x63, + 0x6b, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x22, 0x44, 0x0a, 0x09, 0x45, 0x78, 0x63, 0x65, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, + 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x22, 0x1c, 0x0a, + 0x06, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x2a, 0x3b, 0x0a, 0x0a, 0x4c, + 0x33, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x4e, 0x44, + 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x5f, 0x4c, 0x33, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, + 0x50, 0x56, 0x34, 0x10, 0x04, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x36, 0x10, 0x06, 0x12, + 0x07, 0x0a, 0x03, 0x41, 0x4c, 0x4c, 0x10, 0x0a, 0x2a, 0x30, 0x0a, 0x0a, 0x4c, 0x34, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, + 0x4e, 0x45, 0x44, 0x5f, 0x4c, 0x34, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10, + 0x06, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x44, 0x50, 0x10, 0x11, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x6f, + 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x70, 0x75, 0x6e, 0x74, 0x3b, 0x76, 0x70, + 0x70, 0x5f, 0x70, 0x75, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_punt_punt_proto_rawDescOnce sync.Once + file_ligato_vpp_punt_punt_proto_rawDescData = file_ligato_vpp_punt_punt_proto_rawDesc +) + +func file_ligato_vpp_punt_punt_proto_rawDescGZIP() []byte { + file_ligato_vpp_punt_punt_proto_rawDescOnce.Do(func() { + file_ligato_vpp_punt_punt_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_punt_punt_proto_rawDescData) + }) + return file_ligato_vpp_punt_punt_proto_rawDescData +} + +var file_ligato_vpp_punt_punt_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_ligato_vpp_punt_punt_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_ligato_vpp_punt_punt_proto_goTypes = []interface{}{ + (L3Protocol)(0), // 0: ligato.vpp.punt.L3Protocol + (L4Protocol)(0), // 1: ligato.vpp.punt.L4Protocol + (*IPRedirect)(nil), // 2: ligato.vpp.punt.IPRedirect + (*ToHost)(nil), // 3: ligato.vpp.punt.ToHost + (*Exception)(nil), // 4: ligato.vpp.punt.Exception + (*Reason)(nil), // 5: ligato.vpp.punt.Reason +} +var file_ligato_vpp_punt_punt_proto_depIdxs = []int32{ + 0, // 0: ligato.vpp.punt.IPRedirect.l3_protocol:type_name -> ligato.vpp.punt.L3Protocol + 0, // 1: ligato.vpp.punt.ToHost.l3_protocol:type_name -> ligato.vpp.punt.L3Protocol + 1, // 2: ligato.vpp.punt.ToHost.l4_protocol:type_name -> ligato.vpp.punt.L4Protocol + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_punt_punt_proto_init() } +func file_ligato_vpp_punt_punt_proto_init() { + if File_ligato_vpp_punt_punt_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_punt_punt_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IPRedirect); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_punt_punt_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ToHost); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_punt_punt_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Exception); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_punt_punt_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Reason); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_punt_punt_proto_rawDesc, + NumEnums: 2, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_punt_punt_proto_goTypes, + DependencyIndexes: file_ligato_vpp_punt_punt_proto_depIdxs, + EnumInfos: file_ligato_vpp_punt_punt_proto_enumTypes, + MessageInfos: file_ligato_vpp_punt_punt_proto_msgTypes, + }.Build() + File_ligato_vpp_punt_punt_proto = out.File + file_ligato_vpp_punt_punt_proto_rawDesc = nil + file_ligato_vpp_punt_punt_proto_goTypes = nil + file_ligato_vpp_punt_punt_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/srv6/srv6.pb.go b/proto/ligato/vpp/srv6/srv6.pb.go index 5325032258..c57ed777ac 100644 --- a/proto/ligato/vpp/srv6/srv6.pb.go +++ b/proto/ligato/vpp/srv6/srv6.pb.go @@ -1,31 +1,39 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/srv6/srv6.proto package vpp_srv6 import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type LocalSID struct { - Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` // segment id (IPv6 Address) InstallationVrfId uint32 `protobuf:"varint,2,opt,name=installation_vrf_id,json=installationVrfId,proto3" json:"installation_vrf_id,omitempty"` // Configuration for end functions (all end functions are mutually exclusive) - // - // Types that are valid to be assigned to EndFunction: + // Types that are assignable to EndFunction: // *LocalSID_BaseEndFunction // *LocalSID_EndFunctionX // *LocalSID_EndFunctionT @@ -35,49 +43,123 @@ type LocalSID struct { // *LocalSID_EndFunctionDt4 // *LocalSID_EndFunctionDt6 // *LocalSID_EndFunctionAd - EndFunction isLocalSID_EndFunction `protobuf_oneof:"end_function"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + EndFunction isLocalSID_EndFunction `protobuf_oneof:"end_function"` +} + +func (x *LocalSID) Reset() { + *x = LocalSID{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LocalSID) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LocalSID) Reset() { *m = LocalSID{} } -func (m *LocalSID) String() string { return proto.CompactTextString(m) } -func (*LocalSID) ProtoMessage() {} +func (*LocalSID) ProtoMessage() {} + +func (x *LocalSID) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LocalSID.ProtoReflect.Descriptor instead. func (*LocalSID) Descriptor() ([]byte, []int) { - return fileDescriptor_f16c9933790ee176, []int{0} + return file_ligato_vpp_srv6_srv6_proto_rawDescGZIP(), []int{0} +} + +func (x *LocalSID) GetSid() string { + if x != nil { + return x.Sid + } + return "" } -func (m *LocalSID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LocalSID.Unmarshal(m, b) +func (x *LocalSID) GetInstallationVrfId() uint32 { + if x != nil { + return x.InstallationVrfId + } + return 0 } -func (m *LocalSID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LocalSID.Marshal(b, m, deterministic) + +func (m *LocalSID) GetEndFunction() isLocalSID_EndFunction { + if m != nil { + return m.EndFunction + } + return nil +} + +func (x *LocalSID) GetBaseEndFunction() *LocalSID_End { + if x, ok := x.GetEndFunction().(*LocalSID_BaseEndFunction); ok { + return x.BaseEndFunction + } + return nil +} + +func (x *LocalSID) GetEndFunctionX() *LocalSID_EndX { + if x, ok := x.GetEndFunction().(*LocalSID_EndFunctionX); ok { + return x.EndFunctionX + } + return nil } -func (m *LocalSID) XXX_Merge(src proto.Message) { - xxx_messageInfo_LocalSID.Merge(m, src) + +func (x *LocalSID) GetEndFunctionT() *LocalSID_EndT { + if x, ok := x.GetEndFunction().(*LocalSID_EndFunctionT); ok { + return x.EndFunctionT + } + return nil } -func (m *LocalSID) XXX_Size() int { - return xxx_messageInfo_LocalSID.Size(m) + +func (x *LocalSID) GetEndFunctionDx2() *LocalSID_EndDX2 { + if x, ok := x.GetEndFunction().(*LocalSID_EndFunctionDx2); ok { + return x.EndFunctionDx2 + } + return nil } -func (m *LocalSID) XXX_DiscardUnknown() { - xxx_messageInfo_LocalSID.DiscardUnknown(m) + +func (x *LocalSID) GetEndFunctionDx4() *LocalSID_EndDX4 { + if x, ok := x.GetEndFunction().(*LocalSID_EndFunctionDx4); ok { + return x.EndFunctionDx4 + } + return nil } -var xxx_messageInfo_LocalSID proto.InternalMessageInfo +func (x *LocalSID) GetEndFunctionDx6() *LocalSID_EndDX6 { + if x, ok := x.GetEndFunction().(*LocalSID_EndFunctionDx6); ok { + return x.EndFunctionDx6 + } + return nil +} -func (m *LocalSID) GetSid() string { - if m != nil { - return m.Sid +func (x *LocalSID) GetEndFunctionDt4() *LocalSID_EndDT4 { + if x, ok := x.GetEndFunction().(*LocalSID_EndFunctionDt4); ok { + return x.EndFunctionDt4 } - return "" + return nil } -func (m *LocalSID) GetInstallationVrfId() uint32 { - if m != nil { - return m.InstallationVrfId +func (x *LocalSID) GetEndFunctionDt6() *LocalSID_EndDT6 { + if x, ok := x.GetEndFunction().(*LocalSID_EndFunctionDt6); ok { + return x.EndFunctionDt6 } - return 0 + return nil +} + +func (x *LocalSID) GetEndFunctionAd() *LocalSID_EndAD { + if x, ok := x.GetEndFunction().(*LocalSID_EndFunctionAd); ok { + return x.EndFunctionAd + } + return nil } type isLocalSID_EndFunction interface { @@ -138,973 +220,1354 @@ func (*LocalSID_EndFunctionDt6) isLocalSID_EndFunction() {} func (*LocalSID_EndFunctionAd) isLocalSID_EndFunction() {} -func (m *LocalSID) GetEndFunction() isLocalSID_EndFunction { - if m != nil { - return m.EndFunction +// Model for SRv6 policy (policy without at least one policy segment is only cached in ligato and not written to VPP) +type Policy struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bsid string `protobuf:"bytes,1,opt,name=bsid,proto3" json:"bsid,omitempty"` // binding SID (IPv6 Address) + InstallationVrfId uint32 `protobuf:"varint,2,opt,name=installation_vrf_id,json=installationVrfId,proto3" json:"installation_vrf_id,omitempty"` + SrhEncapsulation bool `protobuf:"varint,3,opt,name=srh_encapsulation,json=srhEncapsulation,proto3" json:"srh_encapsulation,omitempty"` // are SR headers handled by encapsulation? (no means insertion of SR headers) + SprayBehaviour bool `protobuf:"varint,4,opt,name=spray_behaviour,json=sprayBehaviour,proto3" json:"spray_behaviour,omitempty"` // spray(multicast) to all policy segments? (no means to use PolicySegment.weight to loadbalance traffic) + SegmentLists []*Policy_SegmentList `protobuf:"bytes,5,rep,name=segment_lists,json=segmentLists,proto3" json:"segment_lists,omitempty"` +} + +func (x *Policy) Reset() { + *x = Policy{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *LocalSID) GetBaseEndFunction() *LocalSID_End { - if x, ok := m.GetEndFunction().(*LocalSID_BaseEndFunction); ok { - return x.BaseEndFunction - } - return nil +func (x *Policy) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LocalSID) GetEndFunctionX() *LocalSID_EndX { - if x, ok := m.GetEndFunction().(*LocalSID_EndFunctionX); ok { - return x.EndFunctionX - } - return nil -} +func (*Policy) ProtoMessage() {} -func (m *LocalSID) GetEndFunctionT() *LocalSID_EndT { - if x, ok := m.GetEndFunction().(*LocalSID_EndFunctionT); ok { - return x.EndFunctionT +func (x *Policy) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *LocalSID) GetEndFunctionDx2() *LocalSID_EndDX2 { - if x, ok := m.GetEndFunction().(*LocalSID_EndFunctionDx2); ok { - return x.EndFunctionDx2 - } - return nil +// Deprecated: Use Policy.ProtoReflect.Descriptor instead. +func (*Policy) Descriptor() ([]byte, []int) { + return file_ligato_vpp_srv6_srv6_proto_rawDescGZIP(), []int{1} } -func (m *LocalSID) GetEndFunctionDx4() *LocalSID_EndDX4 { - if x, ok := m.GetEndFunction().(*LocalSID_EndFunctionDx4); ok { - return x.EndFunctionDx4 +func (x *Policy) GetBsid() string { + if x != nil { + return x.Bsid } - return nil + return "" } -func (m *LocalSID) GetEndFunctionDx6() *LocalSID_EndDX6 { - if x, ok := m.GetEndFunction().(*LocalSID_EndFunctionDx6); ok { - return x.EndFunctionDx6 +func (x *Policy) GetInstallationVrfId() uint32 { + if x != nil { + return x.InstallationVrfId } - return nil + return 0 } -func (m *LocalSID) GetEndFunctionDt4() *LocalSID_EndDT4 { - if x, ok := m.GetEndFunction().(*LocalSID_EndFunctionDt4); ok { - return x.EndFunctionDt4 +func (x *Policy) GetSrhEncapsulation() bool { + if x != nil { + return x.SrhEncapsulation } - return nil + return false } -func (m *LocalSID) GetEndFunctionDt6() *LocalSID_EndDT6 { - if x, ok := m.GetEndFunction().(*LocalSID_EndFunctionDt6); ok { - return x.EndFunctionDt6 +func (x *Policy) GetSprayBehaviour() bool { + if x != nil { + return x.SprayBehaviour } - return nil + return false } -func (m *LocalSID) GetEndFunctionAd() *LocalSID_EndAD { - if x, ok := m.GetEndFunction().(*LocalSID_EndFunctionAd); ok { - return x.EndFunctionAd +func (x *Policy) GetSegmentLists() []*Policy_SegmentList { + if x != nil { + return x.SegmentLists } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*LocalSID) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*LocalSID_BaseEndFunction)(nil), - (*LocalSID_EndFunctionX)(nil), - (*LocalSID_EndFunctionT)(nil), - (*LocalSID_EndFunctionDx2)(nil), - (*LocalSID_EndFunctionDx4)(nil), - (*LocalSID_EndFunctionDx6)(nil), - (*LocalSID_EndFunctionDt4)(nil), - (*LocalSID_EndFunctionDt6)(nil), - (*LocalSID_EndFunctionAd)(nil), - } -} +// Model for steering traffic to SRv6 policy +type Steering struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -// End function behavior of simple endpoint -type LocalSID_End struct { - Psp bool `protobuf:"varint,1,opt,name=psp,proto3" json:"psp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // globally unique steering identification (used in keys when is steering stored in key-value stores(i.e. ETCD)) + // Referencing policy that should be used for steering traffic into (all policy references are mutual exclusive) + // Types that are assignable to PolicyRef: + // *Steering_PolicyBsid + // *Steering_PolicyIndex + PolicyRef isSteering_PolicyRef `protobuf_oneof:"policy_ref"` + // Traffic configuration (all traffic messages are mutual exclusive) + // Types that are assignable to Traffic: + // *Steering_L2Traffic_ + // *Steering_L3Traffic_ + Traffic isSteering_Traffic `protobuf_oneof:"traffic"` } -func (m *LocalSID_End) Reset() { *m = LocalSID_End{} } -func (m *LocalSID_End) String() string { return proto.CompactTextString(m) } -func (*LocalSID_End) ProtoMessage() {} -func (*LocalSID_End) Descriptor() ([]byte, []int) { - return fileDescriptor_f16c9933790ee176, []int{0, 0} +func (x *Steering) Reset() { + *x = Steering{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LocalSID_End) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LocalSID_End.Unmarshal(m, b) -} -func (m *LocalSID_End) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LocalSID_End.Marshal(b, m, deterministic) -} -func (m *LocalSID_End) XXX_Merge(src proto.Message) { - xxx_messageInfo_LocalSID_End.Merge(m, src) -} -func (m *LocalSID_End) XXX_Size() int { - return xxx_messageInfo_LocalSID_End.Size(m) -} -func (m *LocalSID_End) XXX_DiscardUnknown() { - xxx_messageInfo_LocalSID_End.DiscardUnknown(m) +func (x *Steering) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_LocalSID_End proto.InternalMessageInfo +func (*Steering) ProtoMessage() {} -func (m *LocalSID_End) GetPsp() bool { - if m != nil { - return m.Psp +func (x *Steering) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return false -} - -// End function behavior of endpoint with Layer-3 cross-connect (IPv6) -type LocalSID_EndX struct { - Psp bool `protobuf:"varint,1,opt,name=psp,proto3" json:"psp,omitempty"` - OutgoingInterface string `protobuf:"bytes,2,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"` - NextHop string `protobuf:"bytes,3,opt,name=next_hop,json=nextHop,proto3" json:"next_hop,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + return mi.MessageOf(x) } -func (m *LocalSID_EndX) Reset() { *m = LocalSID_EndX{} } -func (m *LocalSID_EndX) String() string { return proto.CompactTextString(m) } -func (*LocalSID_EndX) ProtoMessage() {} -func (*LocalSID_EndX) Descriptor() ([]byte, []int) { - return fileDescriptor_f16c9933790ee176, []int{0, 1} +// Deprecated: Use Steering.ProtoReflect.Descriptor instead. +func (*Steering) Descriptor() ([]byte, []int) { + return file_ligato_vpp_srv6_srv6_proto_rawDescGZIP(), []int{2} } -func (m *LocalSID_EndX) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LocalSID_EndX.Unmarshal(m, b) -} -func (m *LocalSID_EndX) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LocalSID_EndX.Marshal(b, m, deterministic) -} -func (m *LocalSID_EndX) XXX_Merge(src proto.Message) { - xxx_messageInfo_LocalSID_EndX.Merge(m, src) -} -func (m *LocalSID_EndX) XXX_Size() int { - return xxx_messageInfo_LocalSID_EndX.Size(m) -} -func (m *LocalSID_EndX) XXX_DiscardUnknown() { - xxx_messageInfo_LocalSID_EndX.DiscardUnknown(m) +func (x *Steering) GetName() string { + if x != nil { + return x.Name + } + return "" } -var xxx_messageInfo_LocalSID_EndX proto.InternalMessageInfo - -func (m *LocalSID_EndX) GetPsp() bool { +func (m *Steering) GetPolicyRef() isSteering_PolicyRef { if m != nil { - return m.Psp + return m.PolicyRef } - return false + return nil } -func (m *LocalSID_EndX) GetOutgoingInterface() string { - if m != nil { - return m.OutgoingInterface +func (x *Steering) GetPolicyBsid() string { + if x, ok := x.GetPolicyRef().(*Steering_PolicyBsid); ok { + return x.PolicyBsid } return "" } -func (m *LocalSID_EndX) GetNextHop() string { - if m != nil { - return m.NextHop +func (x *Steering) GetPolicyIndex() uint32 { + if x, ok := x.GetPolicyRef().(*Steering_PolicyIndex); ok { + return x.PolicyIndex } - return "" + return 0 } -// End function behavior of endpoint with specific IPv6 table lookup -type LocalSID_EndT struct { - Psp bool `protobuf:"varint,1,opt,name=psp,proto3" json:"psp,omitempty"` - VrfId uint32 `protobuf:"varint,2,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Steering) GetTraffic() isSteering_Traffic { + if m != nil { + return m.Traffic + } + return nil } -func (m *LocalSID_EndT) Reset() { *m = LocalSID_EndT{} } -func (m *LocalSID_EndT) String() string { return proto.CompactTextString(m) } -func (*LocalSID_EndT) ProtoMessage() {} -func (*LocalSID_EndT) Descriptor() ([]byte, []int) { - return fileDescriptor_f16c9933790ee176, []int{0, 2} +func (x *Steering) GetL2Traffic() *Steering_L2Traffic { + if x, ok := x.GetTraffic().(*Steering_L2Traffic_); ok { + return x.L2Traffic + } + return nil } -func (m *LocalSID_EndT) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LocalSID_EndT.Unmarshal(m, b) -} -func (m *LocalSID_EndT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LocalSID_EndT.Marshal(b, m, deterministic) +func (x *Steering) GetL3Traffic() *Steering_L3Traffic { + if x, ok := x.GetTraffic().(*Steering_L3Traffic_); ok { + return x.L3Traffic + } + return nil } -func (m *LocalSID_EndT) XXX_Merge(src proto.Message) { - xxx_messageInfo_LocalSID_EndT.Merge(m, src) + +type isSteering_PolicyRef interface { + isSteering_PolicyRef() } -func (m *LocalSID_EndT) XXX_Size() int { - return xxx_messageInfo_LocalSID_EndT.Size(m) + +type Steering_PolicyBsid struct { + PolicyBsid string `protobuf:"bytes,1,opt,name=policy_bsid,json=policyBsid,proto3,oneof"` // BSID identifier for policy to which we want to steer routing into (policyBSID and policyIndex are mutual exclusive) } -func (m *LocalSID_EndT) XXX_DiscardUnknown() { - xxx_messageInfo_LocalSID_EndT.DiscardUnknown(m) + +type Steering_PolicyIndex struct { + PolicyIndex uint32 `protobuf:"varint,2,opt,name=policy_index,json=policyIndex,proto3,oneof"` // (vpp-internal)Index identifier for policy to which we want to steer routing into (policyBSID and policyIndex are mutual exclusive) } -var xxx_messageInfo_LocalSID_EndT proto.InternalMessageInfo +func (*Steering_PolicyBsid) isSteering_PolicyRef() {} -func (m *LocalSID_EndT) GetPsp() bool { - if m != nil { - return m.Psp - } - return false -} +func (*Steering_PolicyIndex) isSteering_PolicyRef() {} -func (m *LocalSID_EndT) GetVrfId() uint32 { - if m != nil { - return m.VrfId - } - return 0 +type isSteering_Traffic interface { + isSteering_Traffic() } -// End function behavior of endpoint with decapsulation and Layer-2 cross-connect (or DX2 with egress VLAN rewrite when VLAN notzero - not supported this variant yet) -type LocalSID_EndDX2 struct { - VlanTag uint32 `protobuf:"varint,1,opt,name=vlan_tag,json=vlanTag,proto3" json:"vlan_tag,omitempty"` - OutgoingInterface string `protobuf:"bytes,2,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Steering_L2Traffic_ struct { + L2Traffic *Steering_L2Traffic `protobuf:"bytes,3,opt,name=l2_traffic,json=l2Traffic,proto3,oneof"` } -func (m *LocalSID_EndDX2) Reset() { *m = LocalSID_EndDX2{} } -func (m *LocalSID_EndDX2) String() string { return proto.CompactTextString(m) } -func (*LocalSID_EndDX2) ProtoMessage() {} -func (*LocalSID_EndDX2) Descriptor() ([]byte, []int) { - return fileDescriptor_f16c9933790ee176, []int{0, 3} +type Steering_L3Traffic_ struct { + L3Traffic *Steering_L3Traffic `protobuf:"bytes,4,opt,name=l3_traffic,json=l3Traffic,proto3,oneof"` } -func (m *LocalSID_EndDX2) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LocalSID_EndDX2.Unmarshal(m, b) -} -func (m *LocalSID_EndDX2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LocalSID_EndDX2.Marshal(b, m, deterministic) -} -func (m *LocalSID_EndDX2) XXX_Merge(src proto.Message) { - xxx_messageInfo_LocalSID_EndDX2.Merge(m, src) +func (*Steering_L2Traffic_) isSteering_Traffic() {} + +func (*Steering_L3Traffic_) isSteering_Traffic() {} + +// Global SRv6 config +type SRv6Global struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EncapSourceAddress string `protobuf:"bytes,1,opt,name=encap_source_address,json=encapSourceAddress,proto3" json:"encap_source_address,omitempty"` // IPv6 source address for sr encapsulated packets } -func (m *LocalSID_EndDX2) XXX_Size() int { - return xxx_messageInfo_LocalSID_EndDX2.Size(m) + +func (x *SRv6Global) Reset() { + *x = SRv6Global{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LocalSID_EndDX2) XXX_DiscardUnknown() { - xxx_messageInfo_LocalSID_EndDX2.DiscardUnknown(m) + +func (x *SRv6Global) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_LocalSID_EndDX2 proto.InternalMessageInfo +func (*SRv6Global) ProtoMessage() {} -func (m *LocalSID_EndDX2) GetVlanTag() uint32 { - if m != nil { - return m.VlanTag +func (x *SRv6Global) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (m *LocalSID_EndDX2) GetOutgoingInterface() string { - if m != nil { - return m.OutgoingInterface +// Deprecated: Use SRv6Global.ProtoReflect.Descriptor instead. +func (*SRv6Global) Descriptor() ([]byte, []int) { + return file_ligato_vpp_srv6_srv6_proto_rawDescGZIP(), []int{3} +} + +func (x *SRv6Global) GetEncapSourceAddress() string { + if x != nil { + return x.EncapSourceAddress } return "" } -// End function behavior of endpoint with decapsulation and IPv4 cross-connect -type LocalSID_EndDX4 struct { - OutgoingInterface string `protobuf:"bytes,1,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"` - NextHop string `protobuf:"bytes,2,opt,name=next_hop,json=nextHop,proto3" json:"next_hop,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +// End function behavior of simple endpoint +type LocalSID_End struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *LocalSID_EndDX4) Reset() { *m = LocalSID_EndDX4{} } -func (m *LocalSID_EndDX4) String() string { return proto.CompactTextString(m) } -func (*LocalSID_EndDX4) ProtoMessage() {} -func (*LocalSID_EndDX4) Descriptor() ([]byte, []int) { - return fileDescriptor_f16c9933790ee176, []int{0, 4} + Psp bool `protobuf:"varint,1,opt,name=psp,proto3" json:"psp,omitempty"` // use PSP (penultimate segment POP of the SRH) or by default use USP (Ultimate Segment Pop of the SRH) } -func (m *LocalSID_EndDX4) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LocalSID_EndDX4.Unmarshal(m, b) -} -func (m *LocalSID_EndDX4) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LocalSID_EndDX4.Marshal(b, m, deterministic) -} -func (m *LocalSID_EndDX4) XXX_Merge(src proto.Message) { - xxx_messageInfo_LocalSID_EndDX4.Merge(m, src) -} -func (m *LocalSID_EndDX4) XXX_Size() int { - return xxx_messageInfo_LocalSID_EndDX4.Size(m) +func (x *LocalSID_End) Reset() { + *x = LocalSID_End{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LocalSID_EndDX4) XXX_DiscardUnknown() { - xxx_messageInfo_LocalSID_EndDX4.DiscardUnknown(m) + +func (x *LocalSID_End) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_LocalSID_EndDX4 proto.InternalMessageInfo +func (*LocalSID_End) ProtoMessage() {} -func (m *LocalSID_EndDX4) GetOutgoingInterface() string { - if m != nil { - return m.OutgoingInterface +func (x *LocalSID_End) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *LocalSID_EndDX4) GetNextHop() string { - if m != nil { - return m.NextHop - } - return "" +// Deprecated: Use LocalSID_End.ProtoReflect.Descriptor instead. +func (*LocalSID_End) Descriptor() ([]byte, []int) { + return file_ligato_vpp_srv6_srv6_proto_rawDescGZIP(), []int{0, 0} } -// End function behavior of endpoint with decapsulation and IPv6 cross-connect -type LocalSID_EndDX6 struct { - OutgoingInterface string `protobuf:"bytes,1,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"` - NextHop string `protobuf:"bytes,2,opt,name=next_hop,json=nextHop,proto3" json:"next_hop,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *LocalSID_End) GetPsp() bool { + if x != nil { + return x.Psp + } + return false } -func (m *LocalSID_EndDX6) Reset() { *m = LocalSID_EndDX6{} } -func (m *LocalSID_EndDX6) String() string { return proto.CompactTextString(m) } -func (*LocalSID_EndDX6) ProtoMessage() {} -func (*LocalSID_EndDX6) Descriptor() ([]byte, []int) { - return fileDescriptor_f16c9933790ee176, []int{0, 5} -} +// End function behavior of endpoint with Layer-3 cross-connect (IPv6) +type LocalSID_EndX struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *LocalSID_EndDX6) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LocalSID_EndDX6.Unmarshal(m, b) + Psp bool `protobuf:"varint,1,opt,name=psp,proto3" json:"psp,omitempty"` // use PSP (penultimate segment POP of the SRH) or by default use USP (Ultimate Segment Pop of the SRH) + OutgoingInterface string `protobuf:"bytes,2,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"` // name of cross-connected outgoing interface + NextHop string `protobuf:"bytes,3,opt,name=next_hop,json=nextHop,proto3" json:"next_hop,omitempty"` // IPv6 next hop address for cross-connected link } -func (m *LocalSID_EndDX6) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LocalSID_EndDX6.Marshal(b, m, deterministic) + +func (x *LocalSID_EndX) Reset() { + *x = LocalSID_EndX{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LocalSID_EndDX6) XXX_Merge(src proto.Message) { - xxx_messageInfo_LocalSID_EndDX6.Merge(m, src) + +func (x *LocalSID_EndX) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LocalSID_EndDX6) XXX_Size() int { - return xxx_messageInfo_LocalSID_EndDX6.Size(m) + +func (*LocalSID_EndX) ProtoMessage() {} + +func (x *LocalSID_EndX) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *LocalSID_EndDX6) XXX_DiscardUnknown() { - xxx_messageInfo_LocalSID_EndDX6.DiscardUnknown(m) + +// Deprecated: Use LocalSID_EndX.ProtoReflect.Descriptor instead. +func (*LocalSID_EndX) Descriptor() ([]byte, []int) { + return file_ligato_vpp_srv6_srv6_proto_rawDescGZIP(), []int{0, 1} } -var xxx_messageInfo_LocalSID_EndDX6 proto.InternalMessageInfo +func (x *LocalSID_EndX) GetPsp() bool { + if x != nil { + return x.Psp + } + return false +} -func (m *LocalSID_EndDX6) GetOutgoingInterface() string { - if m != nil { - return m.OutgoingInterface +func (x *LocalSID_EndX) GetOutgoingInterface() string { + if x != nil { + return x.OutgoingInterface } return "" } -func (m *LocalSID_EndDX6) GetNextHop() string { - if m != nil { - return m.NextHop +func (x *LocalSID_EndX) GetNextHop() string { + if x != nil { + return x.NextHop } return "" } -// End function behavior of endpoint with decapsulation and specific IPv4 table lookup -type LocalSID_EndDT4 struct { - VrfId uint32 `protobuf:"varint,1,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +// End function behavior of endpoint with specific IPv6 table lookup +type LocalSID_EndT struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *LocalSID_EndDT4) Reset() { *m = LocalSID_EndDT4{} } -func (m *LocalSID_EndDT4) String() string { return proto.CompactTextString(m) } -func (*LocalSID_EndDT4) ProtoMessage() {} -func (*LocalSID_EndDT4) Descriptor() ([]byte, []int) { - return fileDescriptor_f16c9933790ee176, []int{0, 6} + Psp bool `protobuf:"varint,1,opt,name=psp,proto3" json:"psp,omitempty"` // use PSP (penultimate segment POP of the SRH) or by default use USP (Ultimate Segment Pop of the SRH) + VrfId uint32 `protobuf:"varint,2,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` } -func (m *LocalSID_EndDT4) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LocalSID_EndDT4.Unmarshal(m, b) -} -func (m *LocalSID_EndDT4) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LocalSID_EndDT4.Marshal(b, m, deterministic) -} -func (m *LocalSID_EndDT4) XXX_Merge(src proto.Message) { - xxx_messageInfo_LocalSID_EndDT4.Merge(m, src) -} -func (m *LocalSID_EndDT4) XXX_Size() int { - return xxx_messageInfo_LocalSID_EndDT4.Size(m) +func (x *LocalSID_EndT) Reset() { + *x = LocalSID_EndT{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LocalSID_EndDT4) XXX_DiscardUnknown() { - xxx_messageInfo_LocalSID_EndDT4.DiscardUnknown(m) + +func (x *LocalSID_EndT) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_LocalSID_EndDT4 proto.InternalMessageInfo +func (*LocalSID_EndT) ProtoMessage() {} -func (m *LocalSID_EndDT4) GetVrfId() uint32 { - if m != nil { - return m.VrfId +func (x *LocalSID_EndT) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -// End function behavior of endpoint with decapsulation and specific IPv6 table lookup -type LocalSID_EndDT6 struct { - VrfId uint32 `protobuf:"varint,1,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use LocalSID_EndT.ProtoReflect.Descriptor instead. +func (*LocalSID_EndT) Descriptor() ([]byte, []int) { + return file_ligato_vpp_srv6_srv6_proto_rawDescGZIP(), []int{0, 2} } -func (m *LocalSID_EndDT6) Reset() { *m = LocalSID_EndDT6{} } -func (m *LocalSID_EndDT6) String() string { return proto.CompactTextString(m) } -func (*LocalSID_EndDT6) ProtoMessage() {} -func (*LocalSID_EndDT6) Descriptor() ([]byte, []int) { - return fileDescriptor_f16c9933790ee176, []int{0, 7} +func (x *LocalSID_EndT) GetPsp() bool { + if x != nil { + return x.Psp + } + return false } -func (m *LocalSID_EndDT6) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LocalSID_EndDT6.Unmarshal(m, b) -} -func (m *LocalSID_EndDT6) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LocalSID_EndDT6.Marshal(b, m, deterministic) +func (x *LocalSID_EndT) GetVrfId() uint32 { + if x != nil { + return x.VrfId + } + return 0 } -func (m *LocalSID_EndDT6) XXX_Merge(src proto.Message) { - xxx_messageInfo_LocalSID_EndDT6.Merge(m, src) + +// End function behavior of endpoint with decapsulation and Layer-2 cross-connect (or DX2 with egress VLAN rewrite when VLAN notzero - not supported this variant yet) +type LocalSID_EndDX2 struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + VlanTag uint32 `protobuf:"varint,1,opt,name=vlan_tag,json=vlanTag,proto3" json:"vlan_tag,omitempty"` // Outgoing VLAN tag + OutgoingInterface string `protobuf:"bytes,2,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"` // name of cross-connected outgoing interface } -func (m *LocalSID_EndDT6) XXX_Size() int { - return xxx_messageInfo_LocalSID_EndDT6.Size(m) + +func (x *LocalSID_EndDX2) Reset() { + *x = LocalSID_EndDX2{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LocalSID_EndDT6) XXX_DiscardUnknown() { - xxx_messageInfo_LocalSID_EndDT6.DiscardUnknown(m) + +func (x *LocalSID_EndDX2) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_LocalSID_EndDT6 proto.InternalMessageInfo +func (*LocalSID_EndDX2) ProtoMessage() {} -func (m *LocalSID_EndDT6) GetVrfId() uint32 { - if m != nil { - return m.VrfId +func (x *LocalSID_EndDX2) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -// End function behavior of dynamic segment routing proxy endpoint -type LocalSID_EndAD struct { - OutgoingInterface string `protobuf:"bytes,2,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"` - IncomingInterface string `protobuf:"bytes,3,opt,name=incoming_interface,json=incomingInterface,proto3" json:"incoming_interface,omitempty"` - L3ServiceAddress string `protobuf:"bytes,4,opt,name=l3_service_address,json=l3ServiceAddress,proto3" json:"l3_service_address,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use LocalSID_EndDX2.ProtoReflect.Descriptor instead. +func (*LocalSID_EndDX2) Descriptor() ([]byte, []int) { + return file_ligato_vpp_srv6_srv6_proto_rawDescGZIP(), []int{0, 3} } -func (m *LocalSID_EndAD) Reset() { *m = LocalSID_EndAD{} } -func (m *LocalSID_EndAD) String() string { return proto.CompactTextString(m) } -func (*LocalSID_EndAD) ProtoMessage() {} -func (*LocalSID_EndAD) Descriptor() ([]byte, []int) { - return fileDescriptor_f16c9933790ee176, []int{0, 8} +func (x *LocalSID_EndDX2) GetVlanTag() uint32 { + if x != nil { + return x.VlanTag + } + return 0 } -func (m *LocalSID_EndAD) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LocalSID_EndAD.Unmarshal(m, b) -} -func (m *LocalSID_EndAD) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LocalSID_EndAD.Marshal(b, m, deterministic) +func (x *LocalSID_EndDX2) GetOutgoingInterface() string { + if x != nil { + return x.OutgoingInterface + } + return "" } -func (m *LocalSID_EndAD) XXX_Merge(src proto.Message) { - xxx_messageInfo_LocalSID_EndAD.Merge(m, src) + +// End function behavior of endpoint with decapsulation and IPv4 cross-connect +type LocalSID_EndDX4 struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OutgoingInterface string `protobuf:"bytes,1,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"` // name of cross-connected outgoing interface + NextHop string `protobuf:"bytes,2,opt,name=next_hop,json=nextHop,proto3" json:"next_hop,omitempty"` // next hop address for cross-connected link } -func (m *LocalSID_EndAD) XXX_Size() int { - return xxx_messageInfo_LocalSID_EndAD.Size(m) + +func (x *LocalSID_EndDX4) Reset() { + *x = LocalSID_EndDX4{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LocalSID_EndAD) XXX_DiscardUnknown() { - xxx_messageInfo_LocalSID_EndAD.DiscardUnknown(m) + +func (x *LocalSID_EndDX4) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_LocalSID_EndAD proto.InternalMessageInfo +func (*LocalSID_EndDX4) ProtoMessage() {} -func (m *LocalSID_EndAD) GetOutgoingInterface() string { - if m != nil { - return m.OutgoingInterface +func (x *LocalSID_EndDX4) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *LocalSID_EndAD) GetIncomingInterface() string { - if m != nil { - return m.IncomingInterface +// Deprecated: Use LocalSID_EndDX4.ProtoReflect.Descriptor instead. +func (*LocalSID_EndDX4) Descriptor() ([]byte, []int) { + return file_ligato_vpp_srv6_srv6_proto_rawDescGZIP(), []int{0, 4} +} + +func (x *LocalSID_EndDX4) GetOutgoingInterface() string { + if x != nil { + return x.OutgoingInterface } return "" } -func (m *LocalSID_EndAD) GetL3ServiceAddress() string { - if m != nil { - return m.L3ServiceAddress +func (x *LocalSID_EndDX4) GetNextHop() string { + if x != nil { + return x.NextHop } return "" } -// Model for SRv6 policy (policy without at least one policy segment is only cached in ligato and not written to VPP) -type Policy struct { - Bsid string `protobuf:"bytes,1,opt,name=bsid,proto3" json:"bsid,omitempty"` - InstallationVrfId uint32 `protobuf:"varint,2,opt,name=installation_vrf_id,json=installationVrfId,proto3" json:"installation_vrf_id,omitempty"` - SrhEncapsulation bool `protobuf:"varint,3,opt,name=srh_encapsulation,json=srhEncapsulation,proto3" json:"srh_encapsulation,omitempty"` - SprayBehaviour bool `protobuf:"varint,4,opt,name=spray_behaviour,json=sprayBehaviour,proto3" json:"spray_behaviour,omitempty"` - SegmentLists []*Policy_SegmentList `protobuf:"bytes,5,rep,name=segment_lists,json=segmentLists,proto3" json:"segment_lists,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Policy) Reset() { *m = Policy{} } -func (m *Policy) String() string { return proto.CompactTextString(m) } -func (*Policy) ProtoMessage() {} -func (*Policy) Descriptor() ([]byte, []int) { - return fileDescriptor_f16c9933790ee176, []int{1} -} +// End function behavior of endpoint with decapsulation and IPv6 cross-connect +type LocalSID_EndDX6 struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Policy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Policy.Unmarshal(m, b) -} -func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Policy.Marshal(b, m, deterministic) + OutgoingInterface string `protobuf:"bytes,1,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"` // name of cross-connected outgoing interface + NextHop string `protobuf:"bytes,2,opt,name=next_hop,json=nextHop,proto3" json:"next_hop,omitempty"` // next hop address for cross-connected link } -func (m *Policy) XXX_Merge(src proto.Message) { - xxx_messageInfo_Policy.Merge(m, src) -} -func (m *Policy) XXX_Size() int { - return xxx_messageInfo_Policy.Size(m) + +func (x *LocalSID_EndDX6) Reset() { + *x = LocalSID_EndDX6{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Policy) XXX_DiscardUnknown() { - xxx_messageInfo_Policy.DiscardUnknown(m) + +func (x *LocalSID_EndDX6) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Policy proto.InternalMessageInfo +func (*LocalSID_EndDX6) ProtoMessage() {} -func (m *Policy) GetBsid() string { - if m != nil { - return m.Bsid +func (x *LocalSID_EndDX6) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *Policy) GetInstallationVrfId() uint32 { - if m != nil { - return m.InstallationVrfId - } - return 0 +// Deprecated: Use LocalSID_EndDX6.ProtoReflect.Descriptor instead. +func (*LocalSID_EndDX6) Descriptor() ([]byte, []int) { + return file_ligato_vpp_srv6_srv6_proto_rawDescGZIP(), []int{0, 5} } -func (m *Policy) GetSrhEncapsulation() bool { - if m != nil { - return m.SrhEncapsulation +func (x *LocalSID_EndDX6) GetOutgoingInterface() string { + if x != nil { + return x.OutgoingInterface } - return false + return "" } -func (m *Policy) GetSprayBehaviour() bool { - if m != nil { - return m.SprayBehaviour +func (x *LocalSID_EndDX6) GetNextHop() string { + if x != nil { + return x.NextHop } - return false + return "" } -func (m *Policy) GetSegmentLists() []*Policy_SegmentList { - if m != nil { - return m.SegmentLists - } - return nil -} +// End function behavior of endpoint with decapsulation and specific IPv4 table lookup +type LocalSID_EndDT4 struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -// Model for SRv6 Segment List -type Policy_SegmentList struct { - Weight uint32 `protobuf:"varint,1,opt,name=weight,proto3" json:"weight,omitempty"` - Segments []string `protobuf:"bytes,2,rep,name=segments,proto3" json:"segments,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VrfId uint32 `protobuf:"varint,1,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` } -func (m *Policy_SegmentList) Reset() { *m = Policy_SegmentList{} } -func (m *Policy_SegmentList) String() string { return proto.CompactTextString(m) } -func (*Policy_SegmentList) ProtoMessage() {} -func (*Policy_SegmentList) Descriptor() ([]byte, []int) { - return fileDescriptor_f16c9933790ee176, []int{1, 0} +func (x *LocalSID_EndDT4) Reset() { + *x = LocalSID_EndDT4{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Policy_SegmentList) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Policy_SegmentList.Unmarshal(m, b) -} -func (m *Policy_SegmentList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Policy_SegmentList.Marshal(b, m, deterministic) -} -func (m *Policy_SegmentList) XXX_Merge(src proto.Message) { - xxx_messageInfo_Policy_SegmentList.Merge(m, src) -} -func (m *Policy_SegmentList) XXX_Size() int { - return xxx_messageInfo_Policy_SegmentList.Size(m) -} -func (m *Policy_SegmentList) XXX_DiscardUnknown() { - xxx_messageInfo_Policy_SegmentList.DiscardUnknown(m) +func (x *LocalSID_EndDT4) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Policy_SegmentList proto.InternalMessageInfo +func (*LocalSID_EndDT4) ProtoMessage() {} -func (m *Policy_SegmentList) GetWeight() uint32 { - if m != nil { - return m.Weight +func (x *LocalSID_EndDT4) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (m *Policy_SegmentList) GetSegments() []string { - if m != nil { - return m.Segments - } - return nil +// Deprecated: Use LocalSID_EndDT4.ProtoReflect.Descriptor instead. +func (*LocalSID_EndDT4) Descriptor() ([]byte, []int) { + return file_ligato_vpp_srv6_srv6_proto_rawDescGZIP(), []int{0, 6} } -// Model for steering traffic to SRv6 policy -type Steering struct { - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - // Referencing policy that should be used for steering traffic into (all policy references are mutual exclusive) - // - // Types that are valid to be assigned to PolicyRef: - // *Steering_PolicyBsid - // *Steering_PolicyIndex - PolicyRef isSteering_PolicyRef `protobuf_oneof:"policy_ref"` - // Traffic configuration (all traffic messages are mutual exclusive) - // - // Types that are valid to be assigned to Traffic: - // *Steering_L2Traffic_ - // *Steering_L3Traffic_ - Traffic isSteering_Traffic `protobuf_oneof:"traffic"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *LocalSID_EndDT4) GetVrfId() uint32 { + if x != nil { + return x.VrfId + } + return 0 } -func (m *Steering) Reset() { *m = Steering{} } -func (m *Steering) String() string { return proto.CompactTextString(m) } -func (*Steering) ProtoMessage() {} -func (*Steering) Descriptor() ([]byte, []int) { - return fileDescriptor_f16c9933790ee176, []int{2} -} +// End function behavior of endpoint with decapsulation and specific IPv6 table lookup +type LocalSID_EndDT6 struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Steering) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Steering.Unmarshal(m, b) -} -func (m *Steering) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Steering.Marshal(b, m, deterministic) -} -func (m *Steering) XXX_Merge(src proto.Message) { - xxx_messageInfo_Steering.Merge(m, src) + VrfId uint32 `protobuf:"varint,1,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` } -func (m *Steering) XXX_Size() int { - return xxx_messageInfo_Steering.Size(m) + +func (x *LocalSID_EndDT6) Reset() { + *x = LocalSID_EndDT6{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Steering) XXX_DiscardUnknown() { - xxx_messageInfo_Steering.DiscardUnknown(m) + +func (x *LocalSID_EndDT6) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Steering proto.InternalMessageInfo +func (*LocalSID_EndDT6) ProtoMessage() {} -func (m *Steering) GetName() string { - if m != nil { - return m.Name +func (x *LocalSID_EndDT6) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -type isSteering_PolicyRef interface { - isSteering_PolicyRef() +// Deprecated: Use LocalSID_EndDT6.ProtoReflect.Descriptor instead. +func (*LocalSID_EndDT6) Descriptor() ([]byte, []int) { + return file_ligato_vpp_srv6_srv6_proto_rawDescGZIP(), []int{0, 7} } -type Steering_PolicyBsid struct { - PolicyBsid string `protobuf:"bytes,1,opt,name=policy_bsid,json=policyBsid,proto3,oneof"` +func (x *LocalSID_EndDT6) GetVrfId() uint32 { + if x != nil { + return x.VrfId + } + return 0 } -type Steering_PolicyIndex struct { - PolicyIndex uint32 `protobuf:"varint,2,opt,name=policy_index,json=policyIndex,proto3,oneof"` +// End function behavior of dynamic segment routing proxy endpoint +type LocalSID_EndAD struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OutgoingInterface string `protobuf:"bytes,2,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"` // name of interface on segment routing proxy side sending data to segment routing unaware service + IncomingInterface string `protobuf:"bytes,3,opt,name=incoming_interface,json=incomingInterface,proto3" json:"incoming_interface,omitempty"` // name of interface on segment routing proxy side receiving data from segment routing unaware service + L3ServiceAddress string `protobuf:"bytes,4,opt,name=l3_service_address,json=l3ServiceAddress,proto3" json:"l3_service_address,omitempty"` // IPv6/IPv4 address of L3 SR-unaware service (address type depends whether service is IPv4 or IPv6 service), in case of L2 service it must be empty } -func (*Steering_PolicyBsid) isSteering_PolicyRef() {} +func (x *LocalSID_EndAD) Reset() { + *x = LocalSID_EndAD{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -func (*Steering_PolicyIndex) isSteering_PolicyRef() {} +func (x *LocalSID_EndAD) String() string { + return protoimpl.X.MessageStringOf(x) +} -func (m *Steering) GetPolicyRef() isSteering_PolicyRef { - if m != nil { - return m.PolicyRef +func (*LocalSID_EndAD) ProtoMessage() {} + +func (x *LocalSID_EndAD) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *Steering) GetPolicyBsid() string { - if x, ok := m.GetPolicyRef().(*Steering_PolicyBsid); ok { - return x.PolicyBsid +// Deprecated: Use LocalSID_EndAD.ProtoReflect.Descriptor instead. +func (*LocalSID_EndAD) Descriptor() ([]byte, []int) { + return file_ligato_vpp_srv6_srv6_proto_rawDescGZIP(), []int{0, 8} +} + +func (x *LocalSID_EndAD) GetOutgoingInterface() string { + if x != nil { + return x.OutgoingInterface } return "" } -func (m *Steering) GetPolicyIndex() uint32 { - if x, ok := m.GetPolicyRef().(*Steering_PolicyIndex); ok { - return x.PolicyIndex +func (x *LocalSID_EndAD) GetIncomingInterface() string { + if x != nil { + return x.IncomingInterface } - return 0 + return "" } -type isSteering_Traffic interface { - isSteering_Traffic() +func (x *LocalSID_EndAD) GetL3ServiceAddress() string { + if x != nil { + return x.L3ServiceAddress + } + return "" } -type Steering_L2Traffic_ struct { - L2Traffic *Steering_L2Traffic `protobuf:"bytes,3,opt,name=l2_traffic,json=l2Traffic,proto3,oneof"` +// Model for SRv6 Segment List +type Policy_SegmentList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Weight uint32 `protobuf:"varint,1,opt,name=weight,proto3" json:"weight,omitempty"` // used for loadbalancing in case of multiple policy segments in routing process (ignored in case of spray policies) + Segments []string `protobuf:"bytes,2,rep,name=segments,proto3" json:"segments,omitempty"` // list of sids creating one segmented road } -type Steering_L3Traffic_ struct { - L3Traffic *Steering_L3Traffic `protobuf:"bytes,4,opt,name=l3_traffic,json=l3Traffic,proto3,oneof"` +func (x *Policy_SegmentList) Reset() { + *x = Policy_SegmentList{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (*Steering_L2Traffic_) isSteering_Traffic() {} +func (x *Policy_SegmentList) String() string { + return protoimpl.X.MessageStringOf(x) +} -func (*Steering_L3Traffic_) isSteering_Traffic() {} +func (*Policy_SegmentList) ProtoMessage() {} -func (m *Steering) GetTraffic() isSteering_Traffic { - if m != nil { - return m.Traffic +func (x *Policy_SegmentList) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *Steering) GetL2Traffic() *Steering_L2Traffic { - if x, ok := m.GetTraffic().(*Steering_L2Traffic_); ok { - return x.L2Traffic - } - return nil +// Deprecated: Use Policy_SegmentList.ProtoReflect.Descriptor instead. +func (*Policy_SegmentList) Descriptor() ([]byte, []int) { + return file_ligato_vpp_srv6_srv6_proto_rawDescGZIP(), []int{1, 0} } -func (m *Steering) GetL3Traffic() *Steering_L3Traffic { - if x, ok := m.GetTraffic().(*Steering_L3Traffic_); ok { - return x.L3Traffic +func (x *Policy_SegmentList) GetWeight() uint32 { + if x != nil { + return x.Weight } - return nil + return 0 } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Steering) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Steering_PolicyBsid)(nil), - (*Steering_PolicyIndex)(nil), - (*Steering_L2Traffic_)(nil), - (*Steering_L3Traffic_)(nil), +func (x *Policy_SegmentList) GetSegments() []string { + if x != nil { + return x.Segments } + return nil } type Steering_L2Traffic struct { - InterfaceName string `protobuf:"bytes,1,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Steering_L2Traffic) Reset() { *m = Steering_L2Traffic{} } -func (m *Steering_L2Traffic) String() string { return proto.CompactTextString(m) } -func (*Steering_L2Traffic) ProtoMessage() {} -func (*Steering_L2Traffic) Descriptor() ([]byte, []int) { - return fileDescriptor_f16c9933790ee176, []int{2, 0} + InterfaceName string `protobuf:"bytes,1,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"` // name of interface with incoming traffic that should be steered to SR policy } -func (m *Steering_L2Traffic) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Steering_L2Traffic.Unmarshal(m, b) -} -func (m *Steering_L2Traffic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Steering_L2Traffic.Marshal(b, m, deterministic) -} -func (m *Steering_L2Traffic) XXX_Merge(src proto.Message) { - xxx_messageInfo_Steering_L2Traffic.Merge(m, src) -} -func (m *Steering_L2Traffic) XXX_Size() int { - return xxx_messageInfo_Steering_L2Traffic.Size(m) +func (x *Steering_L2Traffic) Reset() { + *x = Steering_L2Traffic{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Steering_L2Traffic) XXX_DiscardUnknown() { - xxx_messageInfo_Steering_L2Traffic.DiscardUnknown(m) + +func (x *Steering_L2Traffic) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Steering_L2Traffic proto.InternalMessageInfo +func (*Steering_L2Traffic) ProtoMessage() {} -func (m *Steering_L2Traffic) GetInterfaceName() string { - if m != nil { - return m.InterfaceName +func (x *Steering_L2Traffic) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" -} - -type Steering_L3Traffic struct { - InstallationVrfId uint32 `protobuf:"varint,1,opt,name=installation_vrf_id,json=installationVrfId,proto3" json:"installation_vrf_id,omitempty"` - PrefixAddress string `protobuf:"bytes,2,opt,name=prefix_address,json=prefixAddress,proto3" json:"prefix_address,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + return mi.MessageOf(x) } -func (m *Steering_L3Traffic) Reset() { *m = Steering_L3Traffic{} } -func (m *Steering_L3Traffic) String() string { return proto.CompactTextString(m) } -func (*Steering_L3Traffic) ProtoMessage() {} -func (*Steering_L3Traffic) Descriptor() ([]byte, []int) { - return fileDescriptor_f16c9933790ee176, []int{2, 1} +// Deprecated: Use Steering_L2Traffic.ProtoReflect.Descriptor instead. +func (*Steering_L2Traffic) Descriptor() ([]byte, []int) { + return file_ligato_vpp_srv6_srv6_proto_rawDescGZIP(), []int{2, 0} } -func (m *Steering_L3Traffic) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Steering_L3Traffic.Unmarshal(m, b) -} -func (m *Steering_L3Traffic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Steering_L3Traffic.Marshal(b, m, deterministic) -} -func (m *Steering_L3Traffic) XXX_Merge(src proto.Message) { - xxx_messageInfo_Steering_L3Traffic.Merge(m, src) -} -func (m *Steering_L3Traffic) XXX_Size() int { - return xxx_messageInfo_Steering_L3Traffic.Size(m) -} -func (m *Steering_L3Traffic) XXX_DiscardUnknown() { - xxx_messageInfo_Steering_L3Traffic.DiscardUnknown(m) +func (x *Steering_L2Traffic) GetInterfaceName() string { + if x != nil { + return x.InterfaceName + } + return "" } -var xxx_messageInfo_Steering_L3Traffic proto.InternalMessageInfo +type Steering_L3Traffic struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Steering_L3Traffic) GetInstallationVrfId() uint32 { - if m != nil { - return m.InstallationVrfId - } - return 0 + InstallationVrfId uint32 `protobuf:"varint,1,opt,name=installation_vrf_id,json=installationVrfId,proto3" json:"installation_vrf_id,omitempty"` + PrefixAddress string `protobuf:"bytes,2,opt,name=prefix_address,json=prefixAddress,proto3" json:"prefix_address,omitempty"` // IPv4/IPv6 prefix address(CIRD format) of traffic destination. All traffic with given destination will be steered to given SR policy } -func (m *Steering_L3Traffic) GetPrefixAddress() string { - if m != nil { - return m.PrefixAddress +func (x *Steering_L3Traffic) Reset() { + *x = Steering_L3Traffic{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -// Global SRv6 config -type SRv6Global struct { - EncapSourceAddress string `protobuf:"bytes,1,opt,name=encap_source_address,json=encapSourceAddress,proto3" json:"encap_source_address,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *Steering_L3Traffic) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SRv6Global) Reset() { *m = SRv6Global{} } -func (m *SRv6Global) String() string { return proto.CompactTextString(m) } -func (*SRv6Global) ProtoMessage() {} -func (*SRv6Global) Descriptor() ([]byte, []int) { - return fileDescriptor_f16c9933790ee176, []int{3} -} +func (*Steering_L3Traffic) ProtoMessage() {} -func (m *SRv6Global) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SRv6Global.Unmarshal(m, b) -} -func (m *SRv6Global) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SRv6Global.Marshal(b, m, deterministic) -} -func (m *SRv6Global) XXX_Merge(src proto.Message) { - xxx_messageInfo_SRv6Global.Merge(m, src) -} -func (m *SRv6Global) XXX_Size() int { - return xxx_messageInfo_SRv6Global.Size(m) +func (x *Steering_L3Traffic) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_srv6_srv6_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *SRv6Global) XXX_DiscardUnknown() { - xxx_messageInfo_SRv6Global.DiscardUnknown(m) + +// Deprecated: Use Steering_L3Traffic.ProtoReflect.Descriptor instead. +func (*Steering_L3Traffic) Descriptor() ([]byte, []int) { + return file_ligato_vpp_srv6_srv6_proto_rawDescGZIP(), []int{2, 1} } -var xxx_messageInfo_SRv6Global proto.InternalMessageInfo +func (x *Steering_L3Traffic) GetInstallationVrfId() uint32 { + if x != nil { + return x.InstallationVrfId + } + return 0 +} -func (m *SRv6Global) GetEncapSourceAddress() string { - if m != nil { - return m.EncapSourceAddress +func (x *Steering_L3Traffic) GetPrefixAddress() string { + if x != nil { + return x.PrefixAddress } return "" } -func init() { - proto.RegisterType((*LocalSID)(nil), "ligato.vpp.srv6.LocalSID") - proto.RegisterType((*LocalSID_End)(nil), "ligato.vpp.srv6.LocalSID.End") - proto.RegisterType((*LocalSID_EndX)(nil), "ligato.vpp.srv6.LocalSID.EndX") - proto.RegisterType((*LocalSID_EndT)(nil), "ligato.vpp.srv6.LocalSID.EndT") - proto.RegisterType((*LocalSID_EndDX2)(nil), "ligato.vpp.srv6.LocalSID.EndDX2") - proto.RegisterType((*LocalSID_EndDX4)(nil), "ligato.vpp.srv6.LocalSID.EndDX4") - proto.RegisterType((*LocalSID_EndDX6)(nil), "ligato.vpp.srv6.LocalSID.EndDX6") - proto.RegisterType((*LocalSID_EndDT4)(nil), "ligato.vpp.srv6.LocalSID.EndDT4") - proto.RegisterType((*LocalSID_EndDT6)(nil), "ligato.vpp.srv6.LocalSID.EndDT6") - proto.RegisterType((*LocalSID_EndAD)(nil), "ligato.vpp.srv6.LocalSID.EndAD") - proto.RegisterType((*Policy)(nil), "ligato.vpp.srv6.Policy") - proto.RegisterType((*Policy_SegmentList)(nil), "ligato.vpp.srv6.Policy.SegmentList") - proto.RegisterType((*Steering)(nil), "ligato.vpp.srv6.Steering") - proto.RegisterType((*Steering_L2Traffic)(nil), "ligato.vpp.srv6.Steering.L2Traffic") - proto.RegisterType((*Steering_L3Traffic)(nil), "ligato.vpp.srv6.Steering.L3Traffic") - proto.RegisterType((*SRv6Global)(nil), "ligato.vpp.srv6.SRv6Global") -} - -func init() { proto.RegisterFile("ligato/vpp/srv6/srv6.proto", fileDescriptor_f16c9933790ee176) } - -var fileDescriptor_f16c9933790ee176 = []byte{ - // 877 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x96, 0x6d, 0x6f, 0xea, 0x36, - 0x14, 0xc7, 0xa1, 0xb4, 0x94, 0x1c, 0x1e, 0x5a, 0xbc, 0xa7, 0x0c, 0x69, 0xbb, 0xac, 0x57, 0x57, - 0x43, 0xda, 0x0a, 0x13, 0x20, 0x34, 0x6d, 0xd2, 0xa4, 0x56, 0xf4, 0x2e, 0x68, 0xd5, 0x34, 0x19, - 0x34, 0x55, 0x7b, 0x63, 0x19, 0x62, 0x82, 0xa5, 0xd4, 0x89, 0x62, 0x93, 0xd1, 0xef, 0xb0, 0x77, - 0xfb, 0x08, 0xfb, 0x00, 0xfb, 0x8a, 0x53, 0x9c, 0x04, 0x42, 0xd3, 0x76, 0x54, 0xba, 0x6f, 0x90, - 0xcf, 0x83, 0x7f, 0x39, 0x3e, 0xf9, 0x1f, 0x13, 0x68, 0xb9, 0xdc, 0xa1, 0xca, 0xeb, 0x85, 0xbe, - 0xdf, 0x93, 0x41, 0x38, 0xd2, 0x3f, 0x5d, 0x3f, 0xf0, 0x94, 0x87, 0xce, 0xe2, 0x58, 0x37, 0xf4, - 0xfd, 0x6e, 0xe4, 0xbe, 0xf8, 0xab, 0x0a, 0x95, 0x5b, 0x6f, 0x41, 0xdd, 0xe9, 0x64, 0x8c, 0xce, - 0xa1, 0x24, 0xb9, 0x6d, 0x16, 0xdb, 0xc5, 0x8e, 0x81, 0xa3, 0x25, 0xea, 0xc2, 0x47, 0x5c, 0x48, - 0x45, 0x5d, 0x97, 0x2a, 0xee, 0x09, 0x12, 0x06, 0x4b, 0xc2, 0x6d, 0xf3, 0xa8, 0x5d, 0xec, 0xd4, - 0x71, 0x33, 0x1b, 0xfa, 0x3d, 0x58, 0x4e, 0x6c, 0xf4, 0x0b, 0x34, 0xe7, 0x54, 0x32, 0xc2, 0x84, - 0x4d, 0x96, 0x6b, 0xb1, 0x88, 0x22, 0x66, 0xa9, 0x5d, 0xec, 0x54, 0xfb, 0x5f, 0x74, 0x1f, 0x3d, - 0xbb, 0x9b, 0x3e, 0xb7, 0x7b, 0x23, 0x6c, 0xab, 0x80, 0xcf, 0xa2, 0x9d, 0x37, 0xc2, 0x7e, 0x9f, - 0xec, 0x43, 0xef, 0xa1, 0x91, 0xe5, 0x90, 0x8d, 0x79, 0xac, 0x49, 0x5f, 0xbe, 0x48, 0xba, 0xb3, - 0x0a, 0xb8, 0xc6, 0x76, 0x98, 0xbb, 0x1c, 0x47, 0x99, 0x27, 0x07, 0x70, 0x66, 0x8f, 0x38, 0x33, - 0x74, 0x0b, 0xe7, 0x7b, 0x1c, 0x7b, 0xd3, 0x37, 0xcb, 0x9a, 0xd4, 0x7e, 0x91, 0x34, 0xbe, 0xeb, - 0x5b, 0x05, 0xdc, 0xc8, 0xb0, 0xc6, 0x9b, 0xfe, 0x13, 0xb4, 0xa1, 0x79, 0x7a, 0x10, 0x6d, 0x98, - 0xa3, 0x0d, 0x9f, 0xa0, 0x8d, 0xcc, 0xca, 0x41, 0xb4, 0x51, 0x8e, 0x36, 0xca, 0xd3, 0xd4, 0xd0, - 0x34, 0x0e, 0xa1, 0xcd, 0x72, 0xb5, 0xa9, 0x27, 0x6a, 0x53, 0x23, 0x13, 0x0e, 0xa2, 0xe5, 0x6a, - 0x53, 0x23, 0x34, 0x81, 0xb3, 0x3d, 0x1a, 0xb5, 0xcd, 0xaa, 0x86, 0xbd, 0x79, 0x11, 0x76, 0x35, - 0xb6, 0x0a, 0xb8, 0x9e, 0x61, 0x5d, 0xd9, 0xad, 0xcf, 0xa0, 0x74, 0x23, 0xec, 0x48, 0xf6, 0xbe, - 0xf4, 0xb5, 0xec, 0x2b, 0x38, 0x5a, 0xb6, 0xe6, 0x70, 0x1c, 0x29, 0x29, 0x1f, 0x41, 0x97, 0x80, - 0xbc, 0xb5, 0x72, 0x3c, 0x2e, 0x1c, 0xc2, 0x85, 0x62, 0xc1, 0x92, 0x2e, 0x98, 0x9e, 0x07, 0x03, - 0x37, 0xd3, 0xc8, 0x24, 0x0d, 0xa0, 0xcf, 0xa1, 0x22, 0xd8, 0x46, 0x91, 0x95, 0xe7, 0xeb, 0x31, - 0x30, 0xf0, 0x69, 0x64, 0x5b, 0x9e, 0xdf, 0xea, 0xe9, 0x67, 0xcc, 0x9e, 0x78, 0xc6, 0x27, 0x50, - 0xde, 0x9b, 0xb3, 0x93, 0x30, 0x9a, 0xad, 0x16, 0x86, 0x72, 0x2c, 0xa6, 0x88, 0x1a, 0xba, 0x54, - 0x10, 0x45, 0x1d, 0xbd, 0xaf, 0x8e, 0x4f, 0x23, 0x7b, 0x46, 0x9d, 0x57, 0xd6, 0xb7, 0x65, 0x0e, - 0x9f, 0xd9, 0x58, 0x3c, 0xe4, 0x60, 0x47, 0xfb, 0x07, 0x4b, 0x99, 0xa3, 0x0f, 0xc8, 0x7c, 0x13, - 0x33, 0x67, 0xc3, 0x4c, 0x73, 0x8a, 0xd9, 0xe6, 0xa4, 0x09, 0xa3, 0xe7, 0x12, 0xfe, 0x2e, 0xc2, - 0x89, 0x96, 0xc1, 0x6b, 0x5f, 0xe1, 0x25, 0x20, 0x2e, 0x16, 0xde, 0xfd, 0x7e, 0x7a, 0xfc, 0x32, - 0x9b, 0x69, 0x64, 0x97, 0xfe, 0x2d, 0x20, 0x77, 0x40, 0x24, 0x0b, 0x42, 0xbe, 0x60, 0x84, 0xda, - 0x76, 0xc0, 0xa4, 0xd4, 0x17, 0x97, 0x81, 0xcf, 0xdd, 0xc1, 0x34, 0x0e, 0x5c, 0xc5, 0xfe, 0xeb, - 0x06, 0xd4, 0xb2, 0x62, 0xbe, 0xf8, 0xf7, 0x08, 0xca, 0xbf, 0x79, 0x2e, 0x5f, 0x3c, 0x20, 0x04, - 0xc7, 0xf3, 0xdd, 0x6d, 0xac, 0xd7, 0xaf, 0xbe, 0x8e, 0xbf, 0x81, 0xa6, 0x0c, 0x56, 0x84, 0x89, - 0x05, 0xf5, 0xe5, 0x3a, 0x8e, 0xe8, 0xd2, 0x2b, 0xf8, 0x5c, 0x06, 0xab, 0x9b, 0xac, 0x1f, 0x7d, - 0x0d, 0x67, 0xd2, 0x0f, 0xe8, 0x03, 0x99, 0xb3, 0x15, 0x0d, 0xb9, 0xb7, 0x0e, 0x74, 0xd9, 0x15, - 0xdc, 0xd0, 0xee, 0xeb, 0xd4, 0x8b, 0x2c, 0xa8, 0x4b, 0xe6, 0xdc, 0x33, 0xa1, 0x88, 0xcb, 0xa5, - 0x92, 0xe6, 0x49, 0xbb, 0xd4, 0xa9, 0xf6, 0xdf, 0xe6, 0xe6, 0x2f, 0x3e, 0x49, 0x77, 0x1a, 0x27, - 0xdf, 0x72, 0xa9, 0x70, 0x4d, 0xee, 0x0c, 0xd9, 0xba, 0x82, 0x6a, 0x26, 0x88, 0x3e, 0x85, 0xf2, - 0x9f, 0x8c, 0x3b, 0x2b, 0x95, 0xbc, 0xba, 0xc4, 0x42, 0x2d, 0xa8, 0x24, 0xdb, 0xa4, 0x79, 0xd4, - 0x2e, 0x75, 0x0c, 0xbc, 0xb5, 0x2f, 0xfe, 0x29, 0x41, 0x65, 0xaa, 0x18, 0x0b, 0xb8, 0x70, 0xa2, - 0x9e, 0x09, 0x7a, 0xcf, 0xf4, 0xfd, 0x6e, 0x60, 0xbd, 0x46, 0x5f, 0x41, 0xd5, 0xd7, 0x75, 0x90, - 0x5d, 0x3b, 0xad, 0x02, 0x86, 0xd8, 0x79, 0x1d, 0xb5, 0xf5, 0x2d, 0xd4, 0x92, 0x14, 0x2e, 0x6c, - 0xb6, 0x89, 0xfb, 0x69, 0x15, 0x70, 0xb2, 0x71, 0x12, 0x39, 0xd1, 0x18, 0xc0, 0xed, 0x13, 0x15, - 0xd0, 0xe5, 0x92, 0x2f, 0x92, 0xff, 0xb4, 0xfc, 0x91, 0xd3, 0x52, 0xba, 0xb7, 0xfd, 0x59, 0x9c, - 0x6a, 0x15, 0xb1, 0xe1, 0xa6, 0x86, 0xa6, 0x0c, 0xb6, 0x94, 0xe3, 0xff, 0xa5, 0x0c, 0xb2, 0x94, - 0xd4, 0x68, 0xf5, 0xc1, 0xd8, 0xf2, 0xd1, 0x3b, 0x68, 0x6c, 0x75, 0x49, 0xf4, 0xf1, 0x63, 0xc9, - 0xd4, 0xb7, 0xde, 0x5f, 0xe9, 0x3d, 0x6b, 0xcd, 0xc1, 0xd8, 0xd2, 0x9e, 0x13, 0x52, 0xf1, 0x39, - 0x21, 0xbd, 0x83, 0x86, 0x1f, 0xb0, 0x25, 0xdf, 0x6c, 0x15, 0x1d, 0xcf, 0x4b, 0x3d, 0xf6, 0xa6, - 0x72, 0xae, 0x41, 0xd2, 0x56, 0x12, 0xb0, 0xe5, 0xb5, 0x01, 0xa7, 0xc9, 0x41, 0x2f, 0x7e, 0x02, - 0x98, 0xe2, 0x70, 0xf4, 0xb3, 0xeb, 0xcd, 0xa9, 0x8b, 0xbe, 0x83, 0x8f, 0xb5, 0x24, 0x89, 0xf4, - 0xd6, 0x41, 0x66, 0x4a, 0xe2, 0xba, 0x91, 0x8e, 0x4d, 0x75, 0x28, 0x05, 0xff, 0xf0, 0xc7, 0xf7, - 0x8e, 0x97, 0xb6, 0x89, 0xeb, 0x6f, 0x9b, 0x4b, 0xea, 0x30, 0xa1, 0x7a, 0xe1, 0xa0, 0xa7, 0x3f, - 0x6d, 0x7a, 0x8f, 0xbe, 0x7a, 0x7e, 0x0c, 0x7d, 0x9f, 0x44, 0x8b, 0x79, 0x59, 0xc7, 0x07, 0xff, - 0x05, 0x00, 0x00, 0xff, 0xff, 0x24, 0xd2, 0xa3, 0xc9, 0x18, 0x09, 0x00, 0x00, +var File_ligato_vpp_srv6_srv6_proto protoreflect.FileDescriptor + +var file_ligato_vpp_srv6_srv6_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x73, 0x72, 0x76, + 0x36, 0x2f, 0x73, 0x72, 0x76, 0x36, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x73, 0x72, 0x76, 0x36, 0x22, 0x8c, 0x0b, + 0x0a, 0x08, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x53, 0x49, 0x44, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x13, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x72, 0x66, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x69, 0x6e, 0x73, 0x74, 0x61, + 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x72, 0x66, 0x49, 0x64, 0x12, 0x4b, 0x0a, 0x11, + 0x62, 0x61, 0x73, 0x65, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x73, 0x72, 0x76, 0x36, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x53, + 0x49, 0x44, 0x2e, 0x45, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x62, 0x61, 0x73, 0x65, 0x45, 0x6e, + 0x64, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x0e, 0x65, 0x6e, 0x64, + 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x73, + 0x72, 0x76, 0x36, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x53, 0x49, 0x44, 0x2e, 0x45, 0x6e, 0x64, + 0x58, 0x48, 0x00, 0x52, 0x0c, 0x65, 0x6e, 0x64, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x58, 0x12, 0x46, 0x0a, 0x0e, 0x65, 0x6e, 0x64, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x73, 0x72, 0x76, 0x36, 0x2e, 0x4c, 0x6f, 0x63, 0x61, + 0x6c, 0x53, 0x49, 0x44, 0x2e, 0x45, 0x6e, 0x64, 0x54, 0x48, 0x00, 0x52, 0x0c, 0x65, 0x6e, 0x64, + 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x12, 0x4c, 0x0a, 0x10, 0x65, 0x6e, 0x64, + 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x78, 0x32, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, + 0x2e, 0x73, 0x72, 0x76, 0x36, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x53, 0x49, 0x44, 0x2e, 0x45, + 0x6e, 0x64, 0x44, 0x58, 0x32, 0x48, 0x00, 0x52, 0x0e, 0x65, 0x6e, 0x64, 0x46, 0x75, 0x6e, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x78, 0x32, 0x12, 0x4c, 0x0a, 0x10, 0x65, 0x6e, 0x64, 0x5f, 0x66, + 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x78, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x73, + 0x72, 0x76, 0x36, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x53, 0x49, 0x44, 0x2e, 0x45, 0x6e, 0x64, + 0x44, 0x58, 0x34, 0x48, 0x00, 0x52, 0x0e, 0x65, 0x6e, 0x64, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x44, 0x78, 0x34, 0x12, 0x4c, 0x0a, 0x10, 0x65, 0x6e, 0x64, 0x5f, 0x66, 0x75, 0x6e, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x78, 0x36, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x20, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x73, 0x72, 0x76, + 0x36, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x53, 0x49, 0x44, 0x2e, 0x45, 0x6e, 0x64, 0x44, 0x58, + 0x36, 0x48, 0x00, 0x52, 0x0e, 0x65, 0x6e, 0x64, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x44, 0x78, 0x36, 0x12, 0x4c, 0x0a, 0x10, 0x65, 0x6e, 0x64, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x74, 0x34, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x73, 0x72, 0x76, 0x36, 0x2e, + 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x53, 0x49, 0x44, 0x2e, 0x45, 0x6e, 0x64, 0x44, 0x54, 0x34, 0x48, + 0x00, 0x52, 0x0e, 0x65, 0x6e, 0x64, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x74, + 0x34, 0x12, 0x4c, 0x0a, 0x10, 0x65, 0x6e, 0x64, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x64, 0x74, 0x36, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x73, 0x72, 0x76, 0x36, 0x2e, 0x4c, 0x6f, + 0x63, 0x61, 0x6c, 0x53, 0x49, 0x44, 0x2e, 0x45, 0x6e, 0x64, 0x44, 0x54, 0x36, 0x48, 0x00, 0x52, + 0x0e, 0x65, 0x6e, 0x64, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x74, 0x36, 0x12, + 0x49, 0x0a, 0x0f, 0x65, 0x6e, 0x64, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x61, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x73, 0x72, 0x76, 0x36, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, + 0x53, 0x49, 0x44, 0x2e, 0x45, 0x6e, 0x64, 0x41, 0x44, 0x48, 0x00, 0x52, 0x0d, 0x65, 0x6e, 0x64, + 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x1a, 0x17, 0x0a, 0x03, 0x45, 0x6e, + 0x64, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x73, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, + 0x70, 0x73, 0x70, 0x1a, 0x62, 0x0a, 0x04, 0x45, 0x6e, 0x64, 0x58, 0x12, 0x10, 0x0a, 0x03, 0x70, + 0x73, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x70, 0x73, 0x70, 0x12, 0x2d, 0x0a, + 0x12, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6f, 0x75, 0x74, 0x67, 0x6f, + 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, + 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x68, 0x6f, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x6e, 0x65, 0x78, 0x74, 0x48, 0x6f, 0x70, 0x1a, 0x2f, 0x0a, 0x04, 0x45, 0x6e, 0x64, 0x54, 0x12, + 0x10, 0x0a, 0x03, 0x70, 0x73, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x70, 0x73, + 0x70, 0x12, 0x15, 0x0a, 0x06, 0x76, 0x72, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x05, 0x76, 0x72, 0x66, 0x49, 0x64, 0x1a, 0x52, 0x0a, 0x06, 0x45, 0x6e, 0x64, 0x44, + 0x58, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x76, 0x6c, 0x61, 0x6e, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x6c, 0x61, 0x6e, 0x54, 0x61, 0x67, 0x12, 0x2d, 0x0a, + 0x12, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6f, 0x75, 0x74, 0x67, 0x6f, + 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x1a, 0x52, 0x0a, 0x06, + 0x45, 0x6e, 0x64, 0x44, 0x58, 0x34, 0x12, 0x2d, 0x0a, 0x12, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, + 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x11, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x68, 0x6f, + 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x78, 0x74, 0x48, 0x6f, 0x70, + 0x1a, 0x52, 0x0a, 0x06, 0x45, 0x6e, 0x64, 0x44, 0x58, 0x36, 0x12, 0x2d, 0x0a, 0x12, 0x6f, 0x75, + 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x65, 0x78, + 0x74, 0x5f, 0x68, 0x6f, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x78, + 0x74, 0x48, 0x6f, 0x70, 0x1a, 0x1f, 0x0a, 0x06, 0x45, 0x6e, 0x64, 0x44, 0x54, 0x34, 0x12, 0x15, + 0x0a, 0x06, 0x76, 0x72, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, + 0x76, 0x72, 0x66, 0x49, 0x64, 0x1a, 0x1f, 0x0a, 0x06, 0x45, 0x6e, 0x64, 0x44, 0x54, 0x36, 0x12, + 0x15, 0x0a, 0x06, 0x76, 0x72, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x05, 0x76, 0x72, 0x66, 0x49, 0x64, 0x1a, 0x93, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x64, 0x41, 0x44, + 0x12, 0x2d, 0x0a, 0x12, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6f, 0x75, + 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, + 0x2d, 0x0a, 0x12, 0x69, 0x6e, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x69, 0x6e, 0x63, + 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x2c, + 0x0a, 0x12, 0x6c, 0x33, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6c, 0x33, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x0e, 0x0a, 0x0c, + 0x65, 0x6e, 0x64, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x02, 0x0a, + 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x73, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x73, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x13, 0x69, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x72, 0x66, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, + 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x72, 0x66, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x73, + 0x72, 0x68, 0x5f, 0x65, 0x6e, 0x63, 0x61, 0x70, 0x73, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x73, 0x72, 0x68, 0x45, 0x6e, 0x63, 0x61, 0x70, + 0x73, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x70, 0x72, 0x61, + 0x79, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x75, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0e, 0x73, 0x70, 0x72, 0x61, 0x79, 0x42, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x75, + 0x72, 0x12, 0x48, 0x0a, 0x0d, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x69, 0x73, + 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x73, 0x72, 0x76, 0x36, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x2e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x0c, 0x73, + 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x73, 0x1a, 0x41, 0x0a, 0x0b, 0x53, + 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xa3, + 0x03, 0x0a, 0x08, 0x53, 0x74, 0x65, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x21, 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x62, 0x73, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x73, + 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x69, 0x6e, 0x64, + 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x44, 0x0a, 0x0a, 0x6c, 0x32, 0x5f, 0x74, 0x72, + 0x61, 0x66, 0x66, 0x69, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x73, 0x72, 0x76, 0x36, 0x2e, 0x53, 0x74, + 0x65, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4c, 0x32, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, + 0x48, 0x01, 0x52, 0x09, 0x6c, 0x32, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x12, 0x44, 0x0a, + 0x0a, 0x6c, 0x33, 0x5f, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x23, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x73, + 0x72, 0x76, 0x36, 0x2e, 0x53, 0x74, 0x65, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4c, 0x33, 0x54, + 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x48, 0x01, 0x52, 0x09, 0x6c, 0x33, 0x54, 0x72, 0x61, 0x66, + 0x66, 0x69, 0x63, 0x1a, 0x32, 0x0a, 0x09, 0x4c, 0x32, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, + 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x62, 0x0a, 0x09, 0x4c, 0x33, 0x54, 0x72, 0x61, + 0x66, 0x66, 0x69, 0x63, 0x12, 0x2e, 0x0a, 0x13, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x72, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x11, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, + 0x72, 0x66, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x72, + 0x65, 0x66, 0x69, 0x78, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x70, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x72, 0x65, 0x66, 0x42, 0x09, 0x0a, 0x07, 0x74, 0x72, 0x61, + 0x66, 0x66, 0x69, 0x63, 0x22, 0x3e, 0x0a, 0x0a, 0x53, 0x52, 0x76, 0x36, 0x47, 0x6c, 0x6f, 0x62, + 0x61, 0x6c, 0x12, 0x30, 0x0a, 0x14, 0x65, 0x6e, 0x63, 0x61, 0x70, 0x5f, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x12, 0x65, 0x6e, 0x63, 0x61, 0x70, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, + 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, + 0x70, 0x70, 0x2f, 0x73, 0x72, 0x76, 0x36, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x73, 0x72, 0x76, 0x36, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_srv6_srv6_proto_rawDescOnce sync.Once + file_ligato_vpp_srv6_srv6_proto_rawDescData = file_ligato_vpp_srv6_srv6_proto_rawDesc +) + +func file_ligato_vpp_srv6_srv6_proto_rawDescGZIP() []byte { + file_ligato_vpp_srv6_srv6_proto_rawDescOnce.Do(func() { + file_ligato_vpp_srv6_srv6_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_srv6_srv6_proto_rawDescData) + }) + return file_ligato_vpp_srv6_srv6_proto_rawDescData +} + +var file_ligato_vpp_srv6_srv6_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_ligato_vpp_srv6_srv6_proto_goTypes = []interface{}{ + (*LocalSID)(nil), // 0: ligato.vpp.srv6.LocalSID + (*Policy)(nil), // 1: ligato.vpp.srv6.Policy + (*Steering)(nil), // 2: ligato.vpp.srv6.Steering + (*SRv6Global)(nil), // 3: ligato.vpp.srv6.SRv6Global + (*LocalSID_End)(nil), // 4: ligato.vpp.srv6.LocalSID.End + (*LocalSID_EndX)(nil), // 5: ligato.vpp.srv6.LocalSID.EndX + (*LocalSID_EndT)(nil), // 6: ligato.vpp.srv6.LocalSID.EndT + (*LocalSID_EndDX2)(nil), // 7: ligato.vpp.srv6.LocalSID.EndDX2 + (*LocalSID_EndDX4)(nil), // 8: ligato.vpp.srv6.LocalSID.EndDX4 + (*LocalSID_EndDX6)(nil), // 9: ligato.vpp.srv6.LocalSID.EndDX6 + (*LocalSID_EndDT4)(nil), // 10: ligato.vpp.srv6.LocalSID.EndDT4 + (*LocalSID_EndDT6)(nil), // 11: ligato.vpp.srv6.LocalSID.EndDT6 + (*LocalSID_EndAD)(nil), // 12: ligato.vpp.srv6.LocalSID.EndAD + (*Policy_SegmentList)(nil), // 13: ligato.vpp.srv6.Policy.SegmentList + (*Steering_L2Traffic)(nil), // 14: ligato.vpp.srv6.Steering.L2Traffic + (*Steering_L3Traffic)(nil), // 15: ligato.vpp.srv6.Steering.L3Traffic +} +var file_ligato_vpp_srv6_srv6_proto_depIdxs = []int32{ + 4, // 0: ligato.vpp.srv6.LocalSID.base_end_function:type_name -> ligato.vpp.srv6.LocalSID.End + 5, // 1: ligato.vpp.srv6.LocalSID.end_function_x:type_name -> ligato.vpp.srv6.LocalSID.EndX + 6, // 2: ligato.vpp.srv6.LocalSID.end_function_t:type_name -> ligato.vpp.srv6.LocalSID.EndT + 7, // 3: ligato.vpp.srv6.LocalSID.end_function_dx2:type_name -> ligato.vpp.srv6.LocalSID.EndDX2 + 8, // 4: ligato.vpp.srv6.LocalSID.end_function_dx4:type_name -> ligato.vpp.srv6.LocalSID.EndDX4 + 9, // 5: ligato.vpp.srv6.LocalSID.end_function_dx6:type_name -> ligato.vpp.srv6.LocalSID.EndDX6 + 10, // 6: ligato.vpp.srv6.LocalSID.end_function_dt4:type_name -> ligato.vpp.srv6.LocalSID.EndDT4 + 11, // 7: ligato.vpp.srv6.LocalSID.end_function_dt6:type_name -> ligato.vpp.srv6.LocalSID.EndDT6 + 12, // 8: ligato.vpp.srv6.LocalSID.end_function_ad:type_name -> ligato.vpp.srv6.LocalSID.EndAD + 13, // 9: ligato.vpp.srv6.Policy.segment_lists:type_name -> ligato.vpp.srv6.Policy.SegmentList + 14, // 10: ligato.vpp.srv6.Steering.l2_traffic:type_name -> ligato.vpp.srv6.Steering.L2Traffic + 15, // 11: ligato.vpp.srv6.Steering.l3_traffic:type_name -> ligato.vpp.srv6.Steering.L3Traffic + 12, // [12:12] is the sub-list for method output_type + 12, // [12:12] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_srv6_srv6_proto_init() } +func file_ligato_vpp_srv6_srv6_proto_init() { + if File_ligato_vpp_srv6_srv6_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_srv6_srv6_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LocalSID); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_srv6_srv6_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Policy); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_srv6_srv6_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Steering); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_srv6_srv6_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SRv6Global); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_srv6_srv6_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LocalSID_End); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_srv6_srv6_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LocalSID_EndX); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_srv6_srv6_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LocalSID_EndT); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_srv6_srv6_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LocalSID_EndDX2); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_srv6_srv6_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LocalSID_EndDX4); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_srv6_srv6_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LocalSID_EndDX6); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_srv6_srv6_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LocalSID_EndDT4); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_srv6_srv6_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LocalSID_EndDT6); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_srv6_srv6_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LocalSID_EndAD); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_srv6_srv6_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Policy_SegmentList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_srv6_srv6_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Steering_L2Traffic); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_srv6_srv6_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Steering_L3Traffic); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_ligato_vpp_srv6_srv6_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*LocalSID_BaseEndFunction)(nil), + (*LocalSID_EndFunctionX)(nil), + (*LocalSID_EndFunctionT)(nil), + (*LocalSID_EndFunctionDx2)(nil), + (*LocalSID_EndFunctionDx4)(nil), + (*LocalSID_EndFunctionDx6)(nil), + (*LocalSID_EndFunctionDt4)(nil), + (*LocalSID_EndFunctionDt6)(nil), + (*LocalSID_EndFunctionAd)(nil), + } + file_ligato_vpp_srv6_srv6_proto_msgTypes[2].OneofWrappers = []interface{}{ + (*Steering_PolicyBsid)(nil), + (*Steering_PolicyIndex)(nil), + (*Steering_L2Traffic_)(nil), + (*Steering_L3Traffic_)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_srv6_srv6_proto_rawDesc, + NumEnums: 0, + NumMessages: 16, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_srv6_srv6_proto_goTypes, + DependencyIndexes: file_ligato_vpp_srv6_srv6_proto_depIdxs, + MessageInfos: file_ligato_vpp_srv6_srv6_proto_msgTypes, + }.Build() + File_ligato_vpp_srv6_srv6_proto = out.File + file_ligato_vpp_srv6_srv6_proto_rawDesc = nil + file_ligato_vpp_srv6_srv6_proto_goTypes = nil + file_ligato_vpp_srv6_srv6_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/stn/stn.pb.go b/proto/ligato/vpp/stn/stn.pb.go index db980c514f..768613b7b9 100644 --- a/proto/ligato/vpp/stn/stn.pb.go +++ b/proto/ligato/vpp/stn/stn.pb.go @@ -1,88 +1,161 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/stn/stn.proto package vpp_stn import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type Rule struct { - IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` - Interface string `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Rule) Reset() { *m = Rule{} } -func (m *Rule) String() string { return proto.CompactTextString(m) } -func (*Rule) ProtoMessage() {} -func (*Rule) Descriptor() ([]byte, []int) { - return fileDescriptor_f76a9726e8a218b9, []int{0} + IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` + Interface string `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"` } -func (m *Rule) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Rule.Unmarshal(m, b) -} -func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Rule.Marshal(b, m, deterministic) -} -func (m *Rule) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rule.Merge(m, src) +func (x *Rule) Reset() { + *x = Rule{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_stn_stn_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Rule) XXX_Size() int { - return xxx_messageInfo_Rule.Size(m) + +func (x *Rule) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Rule) XXX_DiscardUnknown() { - xxx_messageInfo_Rule.DiscardUnknown(m) + +func (*Rule) ProtoMessage() {} + +func (x *Rule) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_stn_stn_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Rule proto.InternalMessageInfo +// Deprecated: Use Rule.ProtoReflect.Descriptor instead. +func (*Rule) Descriptor() ([]byte, []int) { + return file_ligato_vpp_stn_stn_proto_rawDescGZIP(), []int{0} +} -func (m *Rule) GetIpAddress() string { - if m != nil { - return m.IpAddress +func (x *Rule) GetIpAddress() string { + if x != nil { + return x.IpAddress } return "" } -func (m *Rule) GetInterface() string { - if m != nil { - return m.Interface +func (x *Rule) GetInterface() string { + if x != nil { + return x.Interface } return "" } -func init() { - proto.RegisterType((*Rule)(nil), "ligato.vpp.stn.Rule") +var File_ligato_vpp_stn_stn_proto protoreflect.FileDescriptor + +var file_ligato_vpp_stn_stn_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x73, 0x74, 0x6e, + 0x2f, 0x73, 0x74, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x73, 0x74, 0x6e, 0x22, 0x43, 0x0a, 0x04, 0x52, 0x75, + 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x42, + 0x38, 0x5a, 0x36, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, + 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x73, 0x74, + 0x6e, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x73, 0x74, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_ligato_vpp_stn_stn_proto_rawDescOnce sync.Once + file_ligato_vpp_stn_stn_proto_rawDescData = file_ligato_vpp_stn_stn_proto_rawDesc +) + +func file_ligato_vpp_stn_stn_proto_rawDescGZIP() []byte { + file_ligato_vpp_stn_stn_proto_rawDescOnce.Do(func() { + file_ligato_vpp_stn_stn_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_stn_stn_proto_rawDescData) + }) + return file_ligato_vpp_stn_stn_proto_rawDescData } -func init() { proto.RegisterFile("ligato/vpp/stn/stn.proto", fileDescriptor_f76a9726e8a218b9) } - -var fileDescriptor_f76a9726e8a218b9 = []byte{ - // 154 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xc8, 0xc9, 0x4c, 0x4f, - 0x2c, 0xc9, 0xd7, 0x2f, 0x2b, 0x28, 0xd0, 0x2f, 0x2e, 0xc9, 0x03, 0x61, 0xbd, 0x82, 0xa2, 0xfc, - 0x92, 0x7c, 0x21, 0x3e, 0x88, 0x8c, 0x5e, 0x59, 0x41, 0x81, 0x5e, 0x71, 0x49, 0x9e, 0x92, 0x33, - 0x17, 0x4b, 0x50, 0x69, 0x4e, 0xaa, 0x90, 0x2c, 0x17, 0x57, 0x66, 0x41, 0x7c, 0x62, 0x4a, 0x4a, - 0x51, 0x6a, 0x71, 0xb1, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x67, 0x10, 0x67, 0x66, 0x81, 0x23, 0x44, - 0x40, 0x48, 0x86, 0x8b, 0x33, 0x33, 0xaf, 0x24, 0xb5, 0x28, 0x2d, 0x31, 0x39, 0x55, 0x82, 0x09, - 0x2a, 0x0b, 0x13, 0x70, 0xb2, 0x88, 0x32, 0x4b, 0xcf, 0xd7, 0x83, 0x9a, 0x9c, 0x09, 0xb6, 0x56, - 0x37, 0x31, 0x3d, 0x35, 0xaf, 0x44, 0xbf, 0xcc, 0x58, 0x1f, 0x6c, 0xaf, 0x3e, 0xaa, 0x83, 0xac, - 0xcb, 0x0a, 0x0a, 0xe2, 0x8b, 0x4b, 0xf2, 0x92, 0xd8, 0xc0, 0xb2, 0xc6, 0x80, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xa0, 0xe2, 0x6c, 0x64, 0xb1, 0x00, 0x00, 0x00, +var file_ligato_vpp_stn_stn_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_ligato_vpp_stn_stn_proto_goTypes = []interface{}{ + (*Rule)(nil), // 0: ligato.vpp.stn.Rule +} +var file_ligato_vpp_stn_stn_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_stn_stn_proto_init() } +func file_ligato_vpp_stn_stn_proto_init() { + if File_ligato_vpp_stn_stn_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_stn_stn_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Rule); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_stn_stn_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_stn_stn_proto_goTypes, + DependencyIndexes: file_ligato_vpp_stn_stn_proto_depIdxs, + MessageInfos: file_ligato_vpp_stn_stn_proto_msgTypes, + }.Build() + File_ligato_vpp_stn_stn_proto = out.File + file_ligato_vpp_stn_stn_proto_rawDesc = nil + file_ligato_vpp_stn_stn_proto_goTypes = nil + file_ligato_vpp_stn_stn_proto_depIdxs = nil } diff --git a/proto/ligato/vpp/vpp.pb.go b/proto/ligato/vpp/vpp.pb.go index 4a45f574d3..d6b6292ec5 100644 --- a/proto/ligato/vpp/vpp.pb.go +++ b/proto/ligato/vpp/vpp.pb.go @@ -1,10 +1,12 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 // source: ligato/vpp/vpp.proto package vpp import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" abf "go.ligato.io/vpp-agent/v3/proto/ligato/vpp/abf" acl "go.ligato.io/vpp-agent/v3/proto/ligato/vpp/acl" @@ -16,22 +18,29 @@ import ( nat "go.ligato.io/vpp-agent/v3/proto/ligato/vpp/nat" punt "go.ligato.io/vpp-agent/v3/proto/ligato/vpp/punt" srv6 "go.ligato.io/vpp-agent/v3/proto/ligato/vpp/srv6" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 // ConfigData holds the entire VPP configuration. type ConfigData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Interfaces []*interfaces.Interface `protobuf:"bytes,10,rep,name=interfaces,proto3" json:"interfaces,omitempty"` Spans []*interfaces.Span `protobuf:"bytes,11,rep,name=spans,proto3" json:"spans,omitempty"` Acls []*acl.ACL `protobuf:"bytes,20,rep,name=acls,proto3" json:"acls,omitempty"` @@ -65,426 +74,708 @@ type ConfigData struct { IpfixGlobal *ipfix.IPFIX `protobuf:"bytes,90,opt,name=ipfix_global,json=ipfixGlobal,proto3" json:"ipfix_global,omitempty"` IpfixFlowprobeParams *ipfix.FlowProbeParams `protobuf:"bytes,91,opt,name=ipfix_flowprobe_params,json=ipfixFlowprobeParams,proto3" json:"ipfix_flowprobe_params,omitempty"` IpfixFlowprobes []*ipfix.FlowProbeFeature `protobuf:"bytes,92,rep,name=ipfix_flowprobes,json=ipfixFlowprobes,proto3" json:"ipfix_flowprobes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *ConfigData) Reset() { *m = ConfigData{} } -func (m *ConfigData) String() string { return proto.CompactTextString(m) } -func (*ConfigData) ProtoMessage() {} -func (*ConfigData) Descriptor() ([]byte, []int) { - return fileDescriptor_0138a1608d5d59f2, []int{0} +func (x *ConfigData) Reset() { + *x = ConfigData{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_vpp_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ConfigData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ConfigData.Unmarshal(m, b) -} -func (m *ConfigData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ConfigData.Marshal(b, m, deterministic) +func (x *ConfigData) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ConfigData) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigData.Merge(m, src) -} -func (m *ConfigData) XXX_Size() int { - return xxx_messageInfo_ConfigData.Size(m) -} -func (m *ConfigData) XXX_DiscardUnknown() { - xxx_messageInfo_ConfigData.DiscardUnknown(m) + +func (*ConfigData) ProtoMessage() {} + +func (x *ConfigData) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_vpp_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ConfigData proto.InternalMessageInfo +// Deprecated: Use ConfigData.ProtoReflect.Descriptor instead. +func (*ConfigData) Descriptor() ([]byte, []int) { + return file_ligato_vpp_vpp_proto_rawDescGZIP(), []int{0} +} -func (m *ConfigData) GetInterfaces() []*interfaces.Interface { - if m != nil { - return m.Interfaces +func (x *ConfigData) GetInterfaces() []*interfaces.Interface { + if x != nil { + return x.Interfaces } return nil } -func (m *ConfigData) GetSpans() []*interfaces.Span { - if m != nil { - return m.Spans +func (x *ConfigData) GetSpans() []*interfaces.Span { + if x != nil { + return x.Spans } return nil } -func (m *ConfigData) GetAcls() []*acl.ACL { - if m != nil { - return m.Acls +func (x *ConfigData) GetAcls() []*acl.ACL { + if x != nil { + return x.Acls } return nil } -func (m *ConfigData) GetAbfs() []*abf.ABF { - if m != nil { - return m.Abfs +func (x *ConfigData) GetAbfs() []*abf.ABF { + if x != nil { + return x.Abfs } return nil } -func (m *ConfigData) GetBridgeDomains() []*l2.BridgeDomain { - if m != nil { - return m.BridgeDomains +func (x *ConfigData) GetBridgeDomains() []*l2.BridgeDomain { + if x != nil { + return x.BridgeDomains } return nil } -func (m *ConfigData) GetFibs() []*l2.FIBEntry { - if m != nil { - return m.Fibs +func (x *ConfigData) GetFibs() []*l2.FIBEntry { + if x != nil { + return x.Fibs } return nil } -func (m *ConfigData) GetXconnectPairs() []*l2.XConnectPair { - if m != nil { - return m.XconnectPairs +func (x *ConfigData) GetXconnectPairs() []*l2.XConnectPair { + if x != nil { + return x.XconnectPairs } return nil } -func (m *ConfigData) GetRoutes() []*l3.Route { - if m != nil { - return m.Routes +func (x *ConfigData) GetRoutes() []*l3.Route { + if x != nil { + return x.Routes } return nil } -func (m *ConfigData) GetArps() []*l3.ARPEntry { - if m != nil { - return m.Arps +func (x *ConfigData) GetArps() []*l3.ARPEntry { + if x != nil { + return x.Arps } return nil } -func (m *ConfigData) GetProxyArp() *l3.ProxyARP { - if m != nil { - return m.ProxyArp +func (x *ConfigData) GetProxyArp() *l3.ProxyARP { + if x != nil { + return x.ProxyArp } return nil } -func (m *ConfigData) GetIpscanNeighbor() *l3.IPScanNeighbor { - if m != nil { - return m.IpscanNeighbor +func (x *ConfigData) GetIpscanNeighbor() *l3.IPScanNeighbor { + if x != nil { + return x.IpscanNeighbor } return nil } -func (m *ConfigData) GetVrfs() []*l3.VrfTable { - if m != nil { - return m.Vrfs +func (x *ConfigData) GetVrfs() []*l3.VrfTable { + if x != nil { + return x.Vrfs } return nil } -func (m *ConfigData) GetL3Xconnects() []*l3.L3XConnect { - if m != nil { - return m.L3Xconnects +func (x *ConfigData) GetL3Xconnects() []*l3.L3XConnect { + if x != nil { + return x.L3Xconnects } return nil } -func (m *ConfigData) GetDhcpProxies() []*l3.DHCPProxy { - if m != nil { - return m.DhcpProxies +func (x *ConfigData) GetDhcpProxies() []*l3.DHCPProxy { + if x != nil { + return x.DhcpProxies } return nil } -func (m *ConfigData) GetTeibEntries() []*l3.TeibEntry { - if m != nil { - return m.TeibEntries +func (x *ConfigData) GetTeibEntries() []*l3.TeibEntry { + if x != nil { + return x.TeibEntries } return nil } -func (m *ConfigData) GetNat44Global() *nat.Nat44Global { - if m != nil { - return m.Nat44Global +func (x *ConfigData) GetNat44Global() *nat.Nat44Global { + if x != nil { + return x.Nat44Global } return nil } -func (m *ConfigData) GetDnat44S() []*nat.DNat44 { - if m != nil { - return m.Dnat44S +func (x *ConfigData) GetDnat44S() []*nat.DNat44 { + if x != nil { + return x.Dnat44S } return nil } -func (m *ConfigData) GetNat44Interfaces() []*nat.Nat44Interface { - if m != nil { - return m.Nat44Interfaces +func (x *ConfigData) GetNat44Interfaces() []*nat.Nat44Interface { + if x != nil { + return x.Nat44Interfaces } return nil } -func (m *ConfigData) GetNat44Pools() []*nat.Nat44AddressPool { - if m != nil { - return m.Nat44Pools +func (x *ConfigData) GetNat44Pools() []*nat.Nat44AddressPool { + if x != nil { + return x.Nat44Pools } return nil } -func (m *ConfigData) GetIpsecSpds() []*ipsec.SecurityPolicyDatabase { - if m != nil { - return m.IpsecSpds +func (x *ConfigData) GetIpsecSpds() []*ipsec.SecurityPolicyDatabase { + if x != nil { + return x.IpsecSpds } return nil } -func (m *ConfigData) GetIpsecSas() []*ipsec.SecurityAssociation { - if m != nil { - return m.IpsecSas +func (x *ConfigData) GetIpsecSas() []*ipsec.SecurityAssociation { + if x != nil { + return x.IpsecSas } return nil } -func (m *ConfigData) GetIpsecTunnelProtections() []*ipsec.TunnelProtection { - if m != nil { - return m.IpsecTunnelProtections +func (x *ConfigData) GetIpsecTunnelProtections() []*ipsec.TunnelProtection { + if x != nil { + return x.IpsecTunnelProtections } return nil } -func (m *ConfigData) GetIpsecSps() []*ipsec.SecurityPolicy { - if m != nil { - return m.IpsecSps +func (x *ConfigData) GetIpsecSps() []*ipsec.SecurityPolicy { + if x != nil { + return x.IpsecSps } return nil } -func (m *ConfigData) GetPuntIpredirects() []*punt.IPRedirect { - if m != nil { - return m.PuntIpredirects +func (x *ConfigData) GetPuntIpredirects() []*punt.IPRedirect { + if x != nil { + return x.PuntIpredirects } return nil } -func (m *ConfigData) GetPuntTohosts() []*punt.ToHost { - if m != nil { - return m.PuntTohosts +func (x *ConfigData) GetPuntTohosts() []*punt.ToHost { + if x != nil { + return x.PuntTohosts } return nil } -func (m *ConfigData) GetPuntExceptions() []*punt.Exception { - if m != nil { - return m.PuntExceptions +func (x *ConfigData) GetPuntExceptions() []*punt.Exception { + if x != nil { + return x.PuntExceptions } return nil } -func (m *ConfigData) GetSrv6Global() *srv6.SRv6Global { - if m != nil { - return m.Srv6Global +func (x *ConfigData) GetSrv6Global() *srv6.SRv6Global { + if x != nil { + return x.Srv6Global } return nil } -func (m *ConfigData) GetSrv6Localsids() []*srv6.LocalSID { - if m != nil { - return m.Srv6Localsids +func (x *ConfigData) GetSrv6Localsids() []*srv6.LocalSID { + if x != nil { + return x.Srv6Localsids } return nil } -func (m *ConfigData) GetSrv6Policies() []*srv6.Policy { - if m != nil { - return m.Srv6Policies +func (x *ConfigData) GetSrv6Policies() []*srv6.Policy { + if x != nil { + return x.Srv6Policies } return nil } -func (m *ConfigData) GetSrv6Steerings() []*srv6.Steering { - if m != nil { - return m.Srv6Steerings +func (x *ConfigData) GetSrv6Steerings() []*srv6.Steering { + if x != nil { + return x.Srv6Steerings } return nil } -func (m *ConfigData) GetIpfixGlobal() *ipfix.IPFIX { - if m != nil { - return m.IpfixGlobal +func (x *ConfigData) GetIpfixGlobal() *ipfix.IPFIX { + if x != nil { + return x.IpfixGlobal } return nil } -func (m *ConfigData) GetIpfixFlowprobeParams() *ipfix.FlowProbeParams { - if m != nil { - return m.IpfixFlowprobeParams +func (x *ConfigData) GetIpfixFlowprobeParams() *ipfix.FlowProbeParams { + if x != nil { + return x.IpfixFlowprobeParams } return nil } -func (m *ConfigData) GetIpfixFlowprobes() []*ipfix.FlowProbeFeature { - if m != nil { - return m.IpfixFlowprobes +func (x *ConfigData) GetIpfixFlowprobes() []*ipfix.FlowProbeFeature { + if x != nil { + return x.IpfixFlowprobes } return nil } type Notification struct { - Interface *interfaces.InterfaceNotification `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Notification) Reset() { *m = Notification{} } -func (m *Notification) String() string { return proto.CompactTextString(m) } -func (*Notification) ProtoMessage() {} -func (*Notification) Descriptor() ([]byte, []int) { - return fileDescriptor_0138a1608d5d59f2, []int{1} + Interface *interfaces.InterfaceNotification `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` } -func (m *Notification) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Notification.Unmarshal(m, b) -} -func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Notification.Marshal(b, m, deterministic) -} -func (m *Notification) XXX_Merge(src proto.Message) { - xxx_messageInfo_Notification.Merge(m, src) +func (x *Notification) Reset() { + *x = Notification{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_vpp_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Notification) XXX_Size() int { - return xxx_messageInfo_Notification.Size(m) + +func (x *Notification) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Notification) XXX_DiscardUnknown() { - xxx_messageInfo_Notification.DiscardUnknown(m) + +func (*Notification) ProtoMessage() {} + +func (x *Notification) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_vpp_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Notification proto.InternalMessageInfo +// Deprecated: Use Notification.ProtoReflect.Descriptor instead. +func (*Notification) Descriptor() ([]byte, []int) { + return file_ligato_vpp_vpp_proto_rawDescGZIP(), []int{1} +} -func (m *Notification) GetInterface() *interfaces.InterfaceNotification { - if m != nil { - return m.Interface +func (x *Notification) GetInterface() *interfaces.InterfaceNotification { + if x != nil { + return x.Interface } return nil } type Stats struct { - Interface *interfaces.InterfaceStats `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Interface *interfaces.InterfaceStats `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` +} + +func (x *Stats) Reset() { + *x = Stats{} + if protoimpl.UnsafeEnabled { + mi := &file_ligato_vpp_vpp_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Stats) Reset() { *m = Stats{} } -func (m *Stats) String() string { return proto.CompactTextString(m) } -func (*Stats) ProtoMessage() {} +func (x *Stats) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Stats) ProtoMessage() {} + +func (x *Stats) ProtoReflect() protoreflect.Message { + mi := &file_ligato_vpp_vpp_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Stats.ProtoReflect.Descriptor instead. func (*Stats) Descriptor() ([]byte, []int) { - return fileDescriptor_0138a1608d5d59f2, []int{2} -} - -func (m *Stats) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Stats.Unmarshal(m, b) -} -func (m *Stats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Stats.Marshal(b, m, deterministic) -} -func (m *Stats) XXX_Merge(src proto.Message) { - xxx_messageInfo_Stats.Merge(m, src) -} -func (m *Stats) XXX_Size() int { - return xxx_messageInfo_Stats.Size(m) -} -func (m *Stats) XXX_DiscardUnknown() { - xxx_messageInfo_Stats.DiscardUnknown(m) -} - -var xxx_messageInfo_Stats proto.InternalMessageInfo - -func (m *Stats) GetInterface() *interfaces.InterfaceStats { - if m != nil { - return m.Interface - } - return nil -} - -func init() { - proto.RegisterType((*ConfigData)(nil), "ligato.vpp.ConfigData") - proto.RegisterType((*Notification)(nil), "ligato.vpp.Notification") - proto.RegisterType((*Stats)(nil), "ligato.vpp.Stats") -} - -func init() { - proto.RegisterFile("ligato/vpp/vpp.proto", fileDescriptor_0138a1608d5d59f2) -} - -var fileDescriptor_0138a1608d5d59f2 = []byte{ - // 1124 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x56, 0x6f, 0x6f, 0xdb, 0xb6, - 0x13, 0x46, 0xf1, 0x6b, 0xfb, 0x6b, 0xe8, 0xfc, 0x03, 0x97, 0xa5, 0x6c, 0xb6, 0x75, 0x69, 0x80, - 0x60, 0x59, 0x9b, 0xda, 0x5b, 0x9c, 0xf5, 0xc5, 0x9a, 0x76, 0x75, 0x92, 0x3a, 0xf1, 0x90, 0x05, - 0x1a, 0x1d, 0x6c, 0x45, 0x56, 0x40, 0xa0, 0x64, 0xca, 0x21, 0xa0, 0x8a, 0x04, 0x8f, 0x71, 0x93, - 0xef, 0xb2, 0x0f, 0x3b, 0xf0, 0x24, 0xf9, 0x9f, 0x14, 0xf4, 0x85, 0x04, 0x1d, 0xef, 0x79, 0x1e, - 0x1e, 0x8f, 0x77, 0x14, 0xc9, 0x5a, 0xaa, 0x86, 0xc2, 0xe9, 0xd6, 0xc8, 0x18, 0xff, 0x34, 0x8d, - 0xd5, 0x4e, 0x53, 0x92, 0x8f, 0x36, 0x47, 0xc6, 0x6c, 0xb0, 0x29, 0x84, 0x88, 0x12, 0xff, 0xe4, - 0xa8, 0x59, 0x4f, 0x9c, 0xfa, 0xa7, 0xf0, 0x7c, 0x3b, 0xe5, 0x51, 0x26, 0x51, 0x37, 0xf9, 0xbb, - 0xf0, 0x6e, 0x56, 0xbc, 0x49, 0xaa, 0x3f, 0x1b, 0xab, 0x23, 0x59, 0x20, 0xb6, 0xa7, 0x11, 0x99, - 0x93, 0x36, 0x11, 0xb1, 0x84, 0xc9, 0x67, 0x9d, 0xd0, 0x04, 0x06, 0x46, 0x64, 0x05, 0xe2, 0xd9, - 0x1d, 0x08, 0x27, 0x9c, 0xac, 0x8d, 0x15, 0x64, 0x9c, 0xbf, 0x6b, 0x04, 0xd2, 0xbd, 0x56, 0x64, - 0xd5, 0x60, 0x28, 0xc3, 0x81, 0xfe, 0x24, 0x54, 0x39, 0xc7, 0xe3, 0x59, 0x48, 0xa2, 0xa2, 0x1a, - 0xe5, 0x74, 0xaf, 0x75, 0x13, 0xeb, 0x2c, 0x93, 0xb1, 0xab, 0xa3, 0xb5, 0x5b, 0xc2, 0x16, 0xc9, - 0xdf, 0x58, 0x9f, 0x75, 0xa4, 0xed, 0x9a, 0x74, 0xe3, 0xf8, 0x4d, 0x19, 0xe4, 0x93, 0x59, 0x8f, - 0xd5, 0xd7, 0xe3, 0xd5, 0xcd, 0x91, 0x9c, 0x1c, 0x47, 0x37, 0x37, 0xff, 0xc8, 0xd6, 0x6d, 0x6b, - 0x26, 0x9c, 0x7f, 0x0a, 0xcf, 0xc6, 0x94, 0xc7, 0x5c, 0x67, 0x0e, 0x5f, 0x35, 0x3e, 0xb0, 0xa3, - 0x57, 0xf8, 0xca, 0x7d, 0x5b, 0xff, 0xae, 0x12, 0x72, 0xa4, 0xb3, 0x44, 0x0d, 0x8f, 0x85, 0x13, - 0xf4, 0x1d, 0x21, 0x93, 0xbd, 0x60, 0x64, 0xf3, 0x7f, 0x3b, 0x8d, 0xbd, 0xcd, 0xe6, 0xa4, 0xe4, - 0x9a, 0x13, 0x6f, 0xb3, 0x57, 0x7e, 0xf2, 0x29, 0x0e, 0xfd, 0x99, 0x3c, 0xf0, 0x9b, 0x0c, 0xac, - 0x81, 0xe4, 0x6f, 0xee, 0x20, 0xf7, 0x8d, 0xc8, 0x78, 0x8e, 0xa4, 0x3f, 0x90, 0xfb, 0x22, 0x4e, - 0x81, 0xad, 0x21, 0xe3, 0xab, 0x69, 0x86, 0xaf, 0xdb, 0xce, 0xd1, 0x19, 0x47, 0x00, 0x02, 0xa3, - 0x04, 0xd8, 0xd7, 0x35, 0xc0, 0x28, 0x69, 0x76, 0x0e, 0xbb, 0x1c, 0x01, 0xf4, 0x90, 0x2c, 0xcf, - 0x94, 0x03, 0xb0, 0xa7, 0xd5, 0x68, 0xd2, 0xbd, 0xe6, 0x21, 0x82, 0x8e, 0x11, 0xc3, 0x97, 0xa2, - 0x29, 0x0b, 0xe8, 0x0b, 0x72, 0x3f, 0x51, 0x11, 0xb0, 0xef, 0x91, 0xf9, 0x78, 0x8e, 0xd9, 0xed, - 0x1d, 0xbe, 0xcf, 0x9c, 0xbd, 0xe5, 0x08, 0xf2, 0x13, 0x96, 0x35, 0x14, 0x1a, 0xa1, 0x2c, 0xb0, - 0xcd, 0xda, 0x09, 0x3f, 0x1c, 0xe5, 0xa0, 0x40, 0x28, 0xcb, 0x97, 0x4a, 0x8a, 0xb7, 0x80, 0xee, - 0x92, 0x87, 0x58, 0x1e, 0xc0, 0x76, 0x90, 0xbb, 0x36, 0xc3, 0x6d, 0x37, 0xb9, 0x77, 0xf2, 0x02, - 0xe3, 0xc3, 0x13, 0xd6, 0x00, 0xfb, 0xb1, 0x26, 0xbc, 0x76, 0xb3, 0xc3, 0x83, 0x22, 0x3c, 0x0f, - 0xa2, 0xfb, 0x64, 0xc1, 0x58, 0x7d, 0x73, 0x1b, 0x0a, 0x6b, 0xd8, 0xf3, 0xcd, 0x7b, 0x35, 0x8c, - 0xc0, 0xfb, 0x3b, 0x3c, 0xe0, 0x8f, 0x10, 0xd9, 0xb1, 0x86, 0x76, 0xc9, 0x8a, 0x32, 0x10, 0x8b, - 0x2c, 0xcc, 0xa4, 0x1a, 0x5e, 0x45, 0xda, 0xb2, 0x17, 0xc8, 0xfd, 0x6e, 0x8e, 0xdb, 0x0b, 0xfa, - 0xb1, 0xc8, 0xce, 0x0b, 0x10, 0x5f, 0xce, 0x59, 0xa5, 0xed, 0x43, 0x1d, 0xd9, 0x04, 0xd8, 0x6e, - 0x6d, 0xa8, 0x7f, 0xd9, 0xe4, 0x42, 0x44, 0xa9, 0xe4, 0x08, 0xa2, 0xaf, 0x49, 0xc3, 0xb7, 0x4f, - 0x9e, 0x18, 0x60, 0x2f, 0x91, 0xf3, 0x64, 0x8e, 0x73, 0xd6, 0x2e, 0x13, 0xc9, 0xa7, 0xd1, 0xf4, - 0x35, 0x59, 0x1c, 0x5c, 0xc5, 0x26, 0xf4, 0x4b, 0x50, 0x12, 0x58, 0x13, 0xd9, 0x6c, 0x8e, 0x7d, - 0x7c, 0x7a, 0x14, 0xe0, 0x72, 0x79, 0xc3, 0xa3, 0x83, 0x1c, 0xec, 0xc9, 0xbe, 0x07, 0x43, 0x99, - 0x39, 0xeb, 0xc9, 0xad, 0x5a, 0xf2, 0x85, 0x54, 0x51, 0x9e, 0xda, 0x86, 0x2b, 0x3e, 0x3d, 0xf9, - 0x2d, 0x59, 0xcc, 0x84, 0xdb, 0xdf, 0x0f, 0x87, 0xa9, 0x8e, 0x44, 0xca, 0xf6, 0x30, 0x51, 0x33, - 0xdb, 0xef, 0x9b, 0xf5, 0xdc, 0x63, 0x4e, 0x10, 0xc2, 0x1b, 0xd9, 0xc4, 0xa0, 0x3f, 0x91, 0xff, - 0x0f, 0xd0, 0x06, 0xd6, 0xc6, 0x79, 0xd7, 0xe7, 0xa9, 0xc7, 0xc8, 0xe5, 0x25, 0x8c, 0xf6, 0xc8, - 0x6a, 0x3e, 0xe3, 0x54, 0xc3, 0xee, 0x23, 0xf5, 0x69, 0xed, 0xac, 0x93, 0x76, 0x5d, 0xc9, 0x66, - 0x6c, 0xa0, 0x1d, 0x92, 0xc7, 0x12, 0x1a, 0xad, 0x53, 0x60, 0xbf, 0x54, 0xdb, 0x7e, 0xac, 0xd2, - 0x19, 0x0c, 0xac, 0x04, 0x08, 0xb4, 0x4e, 0x39, 0x41, 0x92, 0xff, 0x04, 0x7a, 0x42, 0x08, 0x9e, - 0xcd, 0x21, 0x98, 0x01, 0xb0, 0x03, 0x54, 0xd8, 0x99, 0xe9, 0x7d, 0x3c, 0xb9, 0xfb, 0x32, 0xbe, - 0xb6, 0xca, 0xdd, 0x06, 0x3a, 0x55, 0xf1, 0xad, 0x3f, 0x72, 0x22, 0x01, 0x92, 0x2f, 0xa0, 0xb7, - 0x6f, 0x06, 0xbe, 0x93, 0x16, 0x0a, 0x21, 0x01, 0xec, 0x0d, 0xea, 0x6c, 0xdf, 0xad, 0xd3, 0x01, - 0xd0, 0xb1, 0x12, 0x4e, 0xe9, 0x8c, 0x3f, 0xca, 0x45, 0x04, 0xd0, 0x8f, 0x84, 0xe5, 0x1a, 0xee, - 0x3a, 0xcb, 0x64, 0xea, 0xcb, 0xc1, 0xc9, 0xd8, 0x83, 0x80, 0xbd, 0x45, 0xc9, 0xad, 0xaa, 0xe4, - 0x05, 0x62, 0x83, 0x31, 0x94, 0xaf, 0xe3, 0xf8, 0xfc, 0x30, 0xd0, 0x37, 0xe3, 0x08, 0x0d, 0xb0, - 0xdf, 0x6a, 0x8e, 0xc8, 0x9a, 0x95, 0x96, 0xc1, 0x19, 0xa0, 0x5d, 0xb2, 0xea, 0xcf, 0xe6, 0x50, - 0x19, 0x2b, 0x07, 0xca, 0x62, 0x95, 0x77, 0xab, 0x87, 0x05, 0x9e, 0xdf, 0xbd, 0x80, 0x17, 0x18, - 0xbe, 0xe2, 0x07, 0x7a, 0x13, 0x0e, 0xfd, 0x95, 0x2c, 0xa2, 0x8e, 0xd3, 0x57, 0x1a, 0x1c, 0xb0, - 0x93, 0x6a, 0x77, 0xa1, 0xc6, 0x85, 0x3e, 0xd5, 0xe0, 0x78, 0xc3, 0x1b, 0x17, 0x39, 0x96, 0x1e, - 0x11, 0x94, 0x0b, 0xe5, 0x4d, 0x2c, 0x4d, 0x9e, 0x97, 0x53, 0xa4, 0x6f, 0x54, 0xe8, 0xef, 0x4b, - 0x08, 0x5f, 0xf6, 0xf6, 0xd8, 0x04, 0x7a, 0x40, 0x1a, 0xfe, 0x47, 0x52, 0x56, 0x7c, 0xbf, 0x5a, - 0xf1, 0xf8, 0x9f, 0xe9, 0xf3, 0xd1, 0xab, 0xa2, 0xe2, 0x89, 0x1f, 0x28, 0x0a, 0xfe, 0x1d, 0x59, - 0x46, 0x76, 0xaa, 0x63, 0x91, 0x82, 0x1a, 0x00, 0x0b, 0xaa, 0xad, 0x8e, 0x02, 0x67, 0x1e, 0xd1, - 0xef, 0x1d, 0xf3, 0x25, 0x6f, 0x9e, 0x95, 0x78, 0x7a, 0x40, 0x70, 0x20, 0x34, 0x3e, 0xc3, 0xbe, - 0x61, 0xff, 0xac, 0x66, 0x00, 0x05, 0x8a, 0x2d, 0x58, 0xf4, 0x46, 0x50, 0x80, 0xc7, 0xf3, 0x83, - 0x93, 0xd2, 0xaa, 0x6c, 0x08, 0x8c, 0xdf, 0x31, 0x7f, 0xbf, 0x40, 0xe4, 0xf3, 0x97, 0x16, 0x6e, - 0x00, 0x5e, 0x91, 0xca, 0x04, 0x5c, 0x56, 0xcf, 0xd5, 0xfc, 0x6a, 0xd5, 0x0b, 0xba, 0xbd, 0x0f, - 0xbc, 0x81, 0x46, 0xb1, 0xfa, 0xbf, 0xc9, 0x7a, 0xce, 0x1d, 0x5f, 0xaf, 0x42, 0x23, 0xac, 0xf8, - 0x04, 0xec, 0x1f, 0x54, 0x79, 0x56, 0x55, 0xe9, 0xa6, 0xfa, 0x73, 0xe0, 0x91, 0x01, 0x02, 0xf9, - 0x1a, 0x0e, 0x77, 0x4b, 0x7e, 0x3e, 0x4a, 0xff, 0x20, 0xab, 0x73, 0xc2, 0xc0, 0x3e, 0xd6, 0x95, - 0xfc, 0x8c, 0x64, 0x57, 0x0a, 0x77, 0x6d, 0x25, 0x5f, 0x99, 0xd5, 0x84, 0xad, 0x4b, 0xb2, 0x78, - 0xae, 0x9d, 0x4a, 0x54, 0x8c, 0x3d, 0x46, 0x7f, 0x27, 0x0b, 0xe3, 0xe3, 0x86, 0xdd, 0xc3, 0x50, - 0x77, 0xbf, 0x74, 0x3d, 0x98, 0x16, 0xe0, 0x13, 0xfa, 0xd6, 0x19, 0x79, 0xd0, 0x77, 0x02, 0xab, - 0xb1, 0x22, 0xba, 0xfd, 0x25, 0x51, 0x64, 0x4e, 0xa9, 0x1d, 0xee, 0x5e, 0x3e, 0x1f, 0xea, 0x92, - 0xa5, 0xf0, 0xb2, 0xf3, 0x52, 0x0c, 0x65, 0xe6, 0x5a, 0xa3, 0x76, 0x0b, 0xef, 0x3a, 0xad, 0xc9, - 0x35, 0x28, 0x7a, 0x88, 0x23, 0xed, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x79, 0x55, 0xbc, 0x95, - 0x64, 0x0b, 0x00, 0x00, + return file_ligato_vpp_vpp_proto_rawDescGZIP(), []int{2} +} + +func (x *Stats) GetInterface() *interfaces.InterfaceStats { + if x != nil { + return x.Interface + } + return nil +} + +var File_ligato_vpp_vpp_proto protoreflect.FileDescriptor + +var file_ligato_vpp_vpp_proto_rawDesc = []byte{ + 0x0a, 0x14, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x76, 0x70, 0x70, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, + 0x70, 0x70, 0x1a, 0x18, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x61, + 0x62, 0x66, 0x2f, 0x61, 0x62, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x61, 0x63, 0x6c, 0x2f, 0x61, 0x63, 0x6c, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, + 0x70, 0x70, 0x2f, 0x69, 0x70, 0x66, 0x69, 0x78, 0x2f, 0x69, 0x70, 0x66, 0x69, 0x78, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, + 0x2f, 0x69, 0x70, 0x66, 0x69, 0x78, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x70, 0x72, 0x6f, 0x62, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x25, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, + 0x70, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x73, 0x2f, 0x73, 0x70, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x21, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1c, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x69, + 0x70, 0x73, 0x65, 0x63, 0x2f, 0x69, 0x70, 0x73, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x21, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x32, 0x2f, + 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, + 0x6c, 0x32, 0x2f, 0x66, 0x69, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x32, 0x2f, 0x78, 0x63, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x33, 0x2f, 0x61, 0x72, 0x70, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, + 0x6c, 0x33, 0x2f, 0x6c, 0x33, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x6c, 0x69, 0x67, + 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x33, 0x2f, 0x6c, 0x33, 0x78, 0x63, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, + 0x70, 0x2f, 0x6c, 0x33, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x18, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x33, 0x2f, + 0x74, 0x65, 0x69, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x33, 0x2f, 0x76, 0x72, 0x66, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, + 0x6e, 0x61, 0x74, 0x2f, 0x6e, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x70, 0x75, 0x6e, 0x74, 0x2f, 0x70, + 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x73, 0x72, 0x76, 0x36, 0x2f, 0x73, 0x72, 0x76, 0x36, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x10, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x44, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, + 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, + 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x31, 0x0a, 0x05, 0x73, 0x70, 0x61, 0x6e, 0x73, 0x18, + 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, + 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x53, 0x70, + 0x61, 0x6e, 0x52, 0x05, 0x73, 0x70, 0x61, 0x6e, 0x73, 0x12, 0x27, 0x0a, 0x04, 0x61, 0x63, 0x6c, + 0x73, 0x18, 0x14, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x52, 0x04, 0x61, 0x63, + 0x6c, 0x73, 0x12, 0x27, 0x0a, 0x04, 0x61, 0x62, 0x66, 0x73, 0x18, 0x15, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x13, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x62, + 0x66, 0x2e, 0x41, 0x42, 0x46, 0x52, 0x04, 0x61, 0x62, 0x66, 0x73, 0x12, 0x42, 0x0a, 0x0e, 0x62, + 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x1e, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, + 0x2e, 0x6c, 0x32, 0x2e, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x52, 0x0d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, + 0x2b, 0x0a, 0x04, 0x66, 0x69, 0x62, 0x73, 0x18, 0x1f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x32, 0x2e, 0x46, 0x49, + 0x42, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x66, 0x69, 0x62, 0x73, 0x12, 0x42, 0x0a, 0x0e, + 0x78, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x73, 0x18, 0x20, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, + 0x70, 0x2e, 0x6c, 0x32, 0x2e, 0x58, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x50, 0x61, 0x69, + 0x72, 0x52, 0x0d, 0x78, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x50, 0x61, 0x69, 0x72, 0x73, + 0x12, 0x2c, 0x0a, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x28, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, + 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2b, + 0x0a, 0x04, 0x61, 0x72, 0x70, 0x73, 0x18, 0x29, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x2e, 0x41, 0x52, 0x50, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x61, 0x72, 0x70, 0x73, 0x12, 0x34, 0x0a, 0x09, 0x70, + 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x61, 0x72, 0x70, 0x18, 0x2a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x2e, 0x50, + 0x72, 0x6f, 0x78, 0x79, 0x41, 0x52, 0x50, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x41, 0x72, + 0x70, 0x12, 0x46, 0x0a, 0x0f, 0x69, 0x70, 0x73, 0x63, 0x61, 0x6e, 0x5f, 0x6e, 0x65, 0x69, 0x67, + 0x68, 0x62, 0x6f, 0x72, 0x18, 0x2b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6c, 0x69, 0x67, + 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x2e, 0x49, 0x50, 0x53, 0x63, 0x61, + 0x6e, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x52, 0x0e, 0x69, 0x70, 0x73, 0x63, 0x61, + 0x6e, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x12, 0x2b, 0x0a, 0x04, 0x76, 0x72, 0x66, + 0x73, 0x18, 0x2c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x2e, 0x56, 0x72, 0x66, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x52, 0x04, 0x76, 0x72, 0x66, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x6c, 0x33, 0x78, 0x63, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x73, 0x18, 0x2d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x2e, 0x4c, 0x33, 0x58, 0x43, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x52, 0x0b, 0x6c, 0x33, 0x78, 0x63, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x73, 0x12, 0x3b, 0x0a, 0x0c, 0x64, 0x68, 0x63, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x78, + 0x69, 0x65, 0x73, 0x18, 0x2e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x2e, 0x44, 0x48, 0x43, 0x50, 0x50, 0x72, + 0x6f, 0x78, 0x79, 0x52, 0x0b, 0x64, 0x68, 0x63, 0x70, 0x50, 0x72, 0x6f, 0x78, 0x69, 0x65, 0x73, + 0x12, 0x3b, 0x0a, 0x0c, 0x74, 0x65, 0x69, 0x62, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, + 0x18, 0x2f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, + 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x2e, 0x54, 0x65, 0x69, 0x62, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x0b, 0x74, 0x65, 0x69, 0x62, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x3e, 0x0a, + 0x0c, 0x6e, 0x61, 0x74, 0x34, 0x34, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x18, 0x32, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, + 0x2e, 0x6e, 0x61, 0x74, 0x2e, 0x4e, 0x61, 0x74, 0x34, 0x34, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, + 0x52, 0x0b, 0x6e, 0x61, 0x74, 0x34, 0x34, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x12, 0x30, 0x0a, + 0x07, 0x64, 0x6e, 0x61, 0x74, 0x34, 0x34, 0x73, 0x18, 0x33, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, + 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6e, 0x61, 0x74, 0x2e, + 0x44, 0x4e, 0x61, 0x74, 0x34, 0x34, 0x52, 0x07, 0x64, 0x6e, 0x61, 0x74, 0x34, 0x34, 0x73, 0x12, + 0x49, 0x0a, 0x10, 0x6e, 0x61, 0x74, 0x34, 0x34, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x73, 0x18, 0x34, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6e, 0x61, 0x74, 0x2e, 0x4e, 0x61, 0x74, 0x34, 0x34, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x0f, 0x6e, 0x61, 0x74, 0x34, 0x34, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x41, 0x0a, 0x0b, 0x6e, 0x61, + 0x74, 0x34, 0x34, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x35, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x20, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6e, 0x61, 0x74, + 0x2e, 0x4e, 0x61, 0x74, 0x34, 0x34, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6f, + 0x6c, 0x52, 0x0a, 0x6e, 0x61, 0x74, 0x34, 0x34, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x12, 0x47, 0x0a, + 0x0a, 0x69, 0x70, 0x73, 0x65, 0x63, 0x5f, 0x73, 0x70, 0x64, 0x73, 0x18, 0x3c, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x28, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, + 0x70, 0x73, 0x65, 0x63, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x09, 0x69, 0x70, 0x73, + 0x65, 0x63, 0x53, 0x70, 0x64, 0x73, 0x12, 0x42, 0x0a, 0x09, 0x69, 0x70, 0x73, 0x65, 0x63, 0x5f, + 0x73, 0x61, 0x73, 0x18, 0x3d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6c, 0x69, 0x67, 0x61, + 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x70, 0x73, 0x65, 0x63, 0x2e, 0x53, 0x65, 0x63, + 0x75, 0x72, 0x69, 0x74, 0x79, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x08, 0x69, 0x70, 0x73, 0x65, 0x63, 0x53, 0x61, 0x73, 0x12, 0x5c, 0x0a, 0x18, 0x69, 0x70, + 0x73, 0x65, 0x63, 0x5f, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x3e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x70, 0x73, 0x65, 0x63, 0x2e, + 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x16, 0x69, 0x70, 0x73, 0x65, 0x63, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x50, 0x72, 0x6f, + 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x09, 0x69, 0x70, 0x73, 0x65, + 0x63, 0x5f, 0x73, 0x70, 0x73, 0x18, 0x3f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6c, 0x69, + 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x70, 0x73, 0x65, 0x63, 0x2e, 0x53, + 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x08, 0x69, + 0x70, 0x73, 0x65, 0x63, 0x53, 0x70, 0x73, 0x12, 0x46, 0x0a, 0x10, 0x70, 0x75, 0x6e, 0x74, 0x5f, + 0x69, 0x70, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x73, 0x18, 0x46, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x70, + 0x75, 0x6e, 0x74, 0x2e, 0x49, 0x50, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x52, 0x0f, + 0x70, 0x75, 0x6e, 0x74, 0x49, 0x70, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x73, 0x12, + 0x3a, 0x0a, 0x0c, 0x70, 0x75, 0x6e, 0x74, 0x5f, 0x74, 0x6f, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, + 0x47, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, + 0x70, 0x70, 0x2e, 0x70, 0x75, 0x6e, 0x74, 0x2e, 0x54, 0x6f, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x0b, + 0x70, 0x75, 0x6e, 0x74, 0x54, 0x6f, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x43, 0x0a, 0x0f, 0x70, + 0x75, 0x6e, 0x74, 0x5f, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x48, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, + 0x70, 0x2e, 0x70, 0x75, 0x6e, 0x74, 0x2e, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x0e, 0x70, 0x75, 0x6e, 0x74, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x12, 0x3c, 0x0a, 0x0b, 0x73, 0x72, 0x76, 0x36, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x18, + 0x53, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, + 0x70, 0x70, 0x2e, 0x73, 0x72, 0x76, 0x36, 0x2e, 0x53, 0x52, 0x76, 0x36, 0x47, 0x6c, 0x6f, 0x62, + 0x61, 0x6c, 0x52, 0x0a, 0x73, 0x72, 0x76, 0x36, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x12, 0x40, + 0x0a, 0x0e, 0x73, 0x72, 0x76, 0x36, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x73, 0x69, 0x64, 0x73, + 0x18, 0x50, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, + 0x76, 0x70, 0x70, 0x2e, 0x73, 0x72, 0x76, 0x36, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x53, 0x49, + 0x44, 0x52, 0x0d, 0x73, 0x72, 0x76, 0x36, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x73, 0x69, 0x64, 0x73, + 0x12, 0x3c, 0x0a, 0x0d, 0x73, 0x72, 0x76, 0x36, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, + 0x73, 0x18, 0x51, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x73, 0x72, 0x76, 0x36, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x52, 0x0c, 0x73, 0x72, 0x76, 0x36, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x40, + 0x0a, 0x0e, 0x73, 0x72, 0x76, 0x36, 0x5f, 0x73, 0x74, 0x65, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x73, + 0x18, 0x52, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, + 0x76, 0x70, 0x70, 0x2e, 0x73, 0x72, 0x76, 0x36, 0x2e, 0x53, 0x74, 0x65, 0x65, 0x72, 0x69, 0x6e, + 0x67, 0x52, 0x0d, 0x73, 0x72, 0x76, 0x36, 0x53, 0x74, 0x65, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x73, + 0x12, 0x3a, 0x0a, 0x0c, 0x69, 0x70, 0x66, 0x69, 0x78, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, + 0x18, 0x5a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, + 0x76, 0x70, 0x70, 0x2e, 0x69, 0x70, 0x66, 0x69, 0x78, 0x2e, 0x49, 0x50, 0x46, 0x49, 0x58, 0x52, + 0x0b, 0x69, 0x70, 0x66, 0x69, 0x78, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x12, 0x57, 0x0a, 0x16, + 0x69, 0x70, 0x66, 0x69, 0x78, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x5f, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x5b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x70, 0x66, 0x69, 0x78, 0x2e, + 0x46, 0x6c, 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, + 0x14, 0x69, 0x70, 0x66, 0x69, 0x78, 0x46, 0x6c, 0x6f, 0x77, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x4d, 0x0a, 0x10, 0x69, 0x70, 0x66, 0x69, 0x78, 0x5f, 0x66, + 0x6c, 0x6f, 0x77, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x73, 0x18, 0x5c, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x22, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x70, 0x66, + 0x69, 0x78, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x46, 0x65, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x52, 0x0f, 0x69, 0x70, 0x66, 0x69, 0x78, 0x46, 0x6c, 0x6f, 0x77, 0x70, 0x72, + 0x6f, 0x62, 0x65, 0x73, 0x22, 0x5a, 0x0a, 0x0c, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4a, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, + 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x22, 0x4c, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x43, 0x0a, 0x09, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6c, + 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x53, 0x74, + 0x61, 0x74, 0x73, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x42, 0x2c, + 0x5a, 0x2a, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, + 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ligato_vpp_vpp_proto_rawDescOnce sync.Once + file_ligato_vpp_vpp_proto_rawDescData = file_ligato_vpp_vpp_proto_rawDesc +) + +func file_ligato_vpp_vpp_proto_rawDescGZIP() []byte { + file_ligato_vpp_vpp_proto_rawDescOnce.Do(func() { + file_ligato_vpp_vpp_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_vpp_proto_rawDescData) + }) + return file_ligato_vpp_vpp_proto_rawDescData +} + +var file_ligato_vpp_vpp_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_ligato_vpp_vpp_proto_goTypes = []interface{}{ + (*ConfigData)(nil), // 0: ligato.vpp.ConfigData + (*Notification)(nil), // 1: ligato.vpp.Notification + (*Stats)(nil), // 2: ligato.vpp.Stats + (*interfaces.Interface)(nil), // 3: ligato.vpp.interfaces.Interface + (*interfaces.Span)(nil), // 4: ligato.vpp.interfaces.Span + (*acl.ACL)(nil), // 5: ligato.vpp.acl.ACL + (*abf.ABF)(nil), // 6: ligato.vpp.abf.ABF + (*l2.BridgeDomain)(nil), // 7: ligato.vpp.l2.BridgeDomain + (*l2.FIBEntry)(nil), // 8: ligato.vpp.l2.FIBEntry + (*l2.XConnectPair)(nil), // 9: ligato.vpp.l2.XConnectPair + (*l3.Route)(nil), // 10: ligato.vpp.l3.Route + (*l3.ARPEntry)(nil), // 11: ligato.vpp.l3.ARPEntry + (*l3.ProxyARP)(nil), // 12: ligato.vpp.l3.ProxyARP + (*l3.IPScanNeighbor)(nil), // 13: ligato.vpp.l3.IPScanNeighbor + (*l3.VrfTable)(nil), // 14: ligato.vpp.l3.VrfTable + (*l3.L3XConnect)(nil), // 15: ligato.vpp.l3.L3XConnect + (*l3.DHCPProxy)(nil), // 16: ligato.vpp.l3.DHCPProxy + (*l3.TeibEntry)(nil), // 17: ligato.vpp.l3.TeibEntry + (*nat.Nat44Global)(nil), // 18: ligato.vpp.nat.Nat44Global + (*nat.DNat44)(nil), // 19: ligato.vpp.nat.DNat44 + (*nat.Nat44Interface)(nil), // 20: ligato.vpp.nat.Nat44Interface + (*nat.Nat44AddressPool)(nil), // 21: ligato.vpp.nat.Nat44AddressPool + (*ipsec.SecurityPolicyDatabase)(nil), // 22: ligato.vpp.ipsec.SecurityPolicyDatabase + (*ipsec.SecurityAssociation)(nil), // 23: ligato.vpp.ipsec.SecurityAssociation + (*ipsec.TunnelProtection)(nil), // 24: ligato.vpp.ipsec.TunnelProtection + (*ipsec.SecurityPolicy)(nil), // 25: ligato.vpp.ipsec.SecurityPolicy + (*punt.IPRedirect)(nil), // 26: ligato.vpp.punt.IPRedirect + (*punt.ToHost)(nil), // 27: ligato.vpp.punt.ToHost + (*punt.Exception)(nil), // 28: ligato.vpp.punt.Exception + (*srv6.SRv6Global)(nil), // 29: ligato.vpp.srv6.SRv6Global + (*srv6.LocalSID)(nil), // 30: ligato.vpp.srv6.LocalSID + (*srv6.Policy)(nil), // 31: ligato.vpp.srv6.Policy + (*srv6.Steering)(nil), // 32: ligato.vpp.srv6.Steering + (*ipfix.IPFIX)(nil), // 33: ligato.vpp.ipfix.IPFIX + (*ipfix.FlowProbeParams)(nil), // 34: ligato.vpp.ipfix.FlowProbeParams + (*ipfix.FlowProbeFeature)(nil), // 35: ligato.vpp.ipfix.FlowProbeFeature + (*interfaces.InterfaceNotification)(nil), // 36: ligato.vpp.interfaces.InterfaceNotification + (*interfaces.InterfaceStats)(nil), // 37: ligato.vpp.interfaces.InterfaceStats +} +var file_ligato_vpp_vpp_proto_depIdxs = []int32{ + 3, // 0: ligato.vpp.ConfigData.interfaces:type_name -> ligato.vpp.interfaces.Interface + 4, // 1: ligato.vpp.ConfigData.spans:type_name -> ligato.vpp.interfaces.Span + 5, // 2: ligato.vpp.ConfigData.acls:type_name -> ligato.vpp.acl.ACL + 6, // 3: ligato.vpp.ConfigData.abfs:type_name -> ligato.vpp.abf.ABF + 7, // 4: ligato.vpp.ConfigData.bridge_domains:type_name -> ligato.vpp.l2.BridgeDomain + 8, // 5: ligato.vpp.ConfigData.fibs:type_name -> ligato.vpp.l2.FIBEntry + 9, // 6: ligato.vpp.ConfigData.xconnect_pairs:type_name -> ligato.vpp.l2.XConnectPair + 10, // 7: ligato.vpp.ConfigData.routes:type_name -> ligato.vpp.l3.Route + 11, // 8: ligato.vpp.ConfigData.arps:type_name -> ligato.vpp.l3.ARPEntry + 12, // 9: ligato.vpp.ConfigData.proxy_arp:type_name -> ligato.vpp.l3.ProxyARP + 13, // 10: ligato.vpp.ConfigData.ipscan_neighbor:type_name -> ligato.vpp.l3.IPScanNeighbor + 14, // 11: ligato.vpp.ConfigData.vrfs:type_name -> ligato.vpp.l3.VrfTable + 15, // 12: ligato.vpp.ConfigData.l3xconnects:type_name -> ligato.vpp.l3.L3XConnect + 16, // 13: ligato.vpp.ConfigData.dhcp_proxies:type_name -> ligato.vpp.l3.DHCPProxy + 17, // 14: ligato.vpp.ConfigData.teib_entries:type_name -> ligato.vpp.l3.TeibEntry + 18, // 15: ligato.vpp.ConfigData.nat44_global:type_name -> ligato.vpp.nat.Nat44Global + 19, // 16: ligato.vpp.ConfigData.dnat44s:type_name -> ligato.vpp.nat.DNat44 + 20, // 17: ligato.vpp.ConfigData.nat44_interfaces:type_name -> ligato.vpp.nat.Nat44Interface + 21, // 18: ligato.vpp.ConfigData.nat44_pools:type_name -> ligato.vpp.nat.Nat44AddressPool + 22, // 19: ligato.vpp.ConfigData.ipsec_spds:type_name -> ligato.vpp.ipsec.SecurityPolicyDatabase + 23, // 20: ligato.vpp.ConfigData.ipsec_sas:type_name -> ligato.vpp.ipsec.SecurityAssociation + 24, // 21: ligato.vpp.ConfigData.ipsec_tunnel_protections:type_name -> ligato.vpp.ipsec.TunnelProtection + 25, // 22: ligato.vpp.ConfigData.ipsec_sps:type_name -> ligato.vpp.ipsec.SecurityPolicy + 26, // 23: ligato.vpp.ConfigData.punt_ipredirects:type_name -> ligato.vpp.punt.IPRedirect + 27, // 24: ligato.vpp.ConfigData.punt_tohosts:type_name -> ligato.vpp.punt.ToHost + 28, // 25: ligato.vpp.ConfigData.punt_exceptions:type_name -> ligato.vpp.punt.Exception + 29, // 26: ligato.vpp.ConfigData.srv6_global:type_name -> ligato.vpp.srv6.SRv6Global + 30, // 27: ligato.vpp.ConfigData.srv6_localsids:type_name -> ligato.vpp.srv6.LocalSID + 31, // 28: ligato.vpp.ConfigData.srv6_policies:type_name -> ligato.vpp.srv6.Policy + 32, // 29: ligato.vpp.ConfigData.srv6_steerings:type_name -> ligato.vpp.srv6.Steering + 33, // 30: ligato.vpp.ConfigData.ipfix_global:type_name -> ligato.vpp.ipfix.IPFIX + 34, // 31: ligato.vpp.ConfigData.ipfix_flowprobe_params:type_name -> ligato.vpp.ipfix.FlowProbeParams + 35, // 32: ligato.vpp.ConfigData.ipfix_flowprobes:type_name -> ligato.vpp.ipfix.FlowProbeFeature + 36, // 33: ligato.vpp.Notification.interface:type_name -> ligato.vpp.interfaces.InterfaceNotification + 37, // 34: ligato.vpp.Stats.interface:type_name -> ligato.vpp.interfaces.InterfaceStats + 35, // [35:35] is the sub-list for method output_type + 35, // [35:35] is the sub-list for method input_type + 35, // [35:35] is the sub-list for extension type_name + 35, // [35:35] is the sub-list for extension extendee + 0, // [0:35] is the sub-list for field type_name +} + +func init() { file_ligato_vpp_vpp_proto_init() } +func file_ligato_vpp_vpp_proto_init() { + if File_ligato_vpp_vpp_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ligato_vpp_vpp_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConfigData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_vpp_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Notification); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ligato_vpp_vpp_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Stats); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ligato_vpp_vpp_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ligato_vpp_vpp_proto_goTypes, + DependencyIndexes: file_ligato_vpp_vpp_proto_depIdxs, + MessageInfos: file_ligato_vpp_vpp_proto_msgTypes, + }.Build() + File_ligato_vpp_vpp_proto = out.File + file_ligato_vpp_vpp_proto_rawDesc = nil + file_ligato_vpp_vpp_proto_goTypes = nil + file_ligato_vpp_vpp_proto_depIdxs = nil } diff --git a/scripts/make/buf.make b/scripts/make/buf.make index 9b9659b4f9..272be27a30 100644 --- a/scripts/make/buf.make +++ b/scripts/make/buf.make @@ -11,12 +11,14 @@ endif REMOTE_GIT := https://github.com/ligato/vpp-agent.git CHECK_BREAKING_BRANCH := master -# https://github.com/bufbuild/buf/releases 20200625 -BUF_VERSION := 0.18.1 -# https://github.com/golang/protobuf/releases 20190709 -PROTOC_GEN_GO_VERSION ?= v1.3.3 -# https://github.com/protocolbuffers/protobuf/releases 20191213 -PROTOC_VERSION ?= 3.11.2 +# https://github.com/bufbuild/buf/releases 20200724 +BUF_VERSION := 0.20.5 +# https://github.com/protocolbuffers/protobuf-go 20200624 +PROTOC_GEN_GO_VERSION ?= v1.25.0 +# https://github.com/grpc/grpc-go 20200730 +PROTOC_GEN_GO_GRPC_VERSION ?= v1.31.0 +# https://github.com/protocolbuffers/protobuf/releases 20200729 +PROTOC_VERSION ?= 3.12.4 GO_BINS := $(GO_BINS) \ buf \ @@ -26,7 +28,7 @@ GO_BINS := $(GO_BINS) \ PROTO_PATH := proto PROTOC_GEN_GO_OUT := proto -PROTOC_GEN_GO_PARAMETER ?= plugins=grpc,paths=source_relative +PROTOC_GEN_GO_PARAMETER ?= paths=source_relative ifeq ($(UNAME_OS),Darwin) PROTOC_OS := osx @@ -79,12 +81,25 @@ PROTOC_GEN_GO := $(CACHE_VERSIONS)/protoc-gen-go/$(PROTOC_GEN_GO_VERSION) $(PROTOC_GEN_GO): @rm -f $(GOBIN)/protoc-gen-go $(eval PROTOC_GEN_GO_TMP := $(shell mktemp -d)) - cd $(PROTOC_GEN_GO_TMP); go get github.com/golang/protobuf/protoc-gen-go@$(PROTOC_GEN_GO_VERSION) + cd $(PROTOC_GEN_GO_TMP); go get google.golang.org/protobuf/cmd/protoc-gen-go@$(PROTOC_GEN_GO_VERSION) @rm -rf $(PROTOC_GEN_GO_TMP) @rm -rf $(dir $(PROTOC_GEN_GO)) @mkdir -p $(dir $(PROTOC_GEN_GO)) @touch $(PROTOC_GEN_GO) +PROTOC_GEN_GO_GRPC := $(CACHE_VERSIONS)/protoc-gen-go-grpc/$(PROTOC_GEN_GO_GRPC_VERSION) +$(PROTOC_GEN_GO_GRPC): + @if ! command -v git >/dev/null 2>/dev/null; then echo "error: git must be installed" >&2; exit 1; fi + @rm -f $(GOBIN)/protoc-gen-go-grpc + $(eval PROTOC_GEN_GO_GRPC_TMP := $(shell mktemp -d)) + #cd $(PROTOC_GEN_GO_GRPC_TMP); go get -u -v google.golang.org/grpc/cmd/protoc-gen-go-grpc@$(PROTOC_GEN_GO_GRPC_VERSION) + cd $(PROTOC_GEN_GO_GRPC_TMP); git clone -b $(PROTOC_GEN_GO_GRPC_VERSION) https://github.com/grpc/grpc-go + cd $(PROTOC_GEN_GO_GRPC_TMP); cd grpc-go/cmd/protoc-gen-go-grpc && go install . + @rm -rf $(PROTOC_GEN_GO_GRPC_TMP) + @rm -rf $(dir $(PROTOC_GEN_GO_GRPC)) + @mkdir -p $(dir $(PROTOC_GEN_GO_GRPC)) + @touch $(PROTOC_GEN_GO_GRPC) + .PHONY: buf-ls-packages buf-ls-packages: buf image build --exclude-imports --exclude-source-info \ @@ -128,5 +143,5 @@ protocgengoclean: find "$(PROTOC_GEN_GO_OUT)" -name "*.pb.go" -exec rm -drfv '{}' \; .PHONY: protocgengo -protocgengo: protocgengoclean $(PROTOC) $(PROTOC_GEN_GO) +protocgengo: protocgengoclean $(PROTOC) $(PROTOC_GEN_GO) $(PROTOC_GEN_GO_GRPC) bash scripts/protoc_gen_go.sh "$(PROTO_PATH)" "$(PROTOC_GEN_GO_OUT)" "$(PROTOC_GEN_GO_PARAMETER)" diff --git a/scripts/protoc_gen_go.sh b/scripts/protoc_gen_go.sh index 9e939dce5b..b611c18f84 100755 --- a/scripts/protoc_gen_go.sh +++ b/scripts/protoc_gen_go.sh @@ -31,5 +31,6 @@ for dir in $protodirs; do echo "$protofiles" protoc --proto_path="${PROTO_PATH}" \ - --go_out="${PROTOC_GEN_GO_ARGS}" $protofiles + --go_out="${PROTOC_GEN_GO_ARGS}" $protofiles \ + --go-grpc_out="${PROTOC_GEN_GO_ARGS}" $protofiles done diff --git a/tests/integration/vpp/110_srv6_test.go b/tests/integration/vpp/110_srv6_test.go index 9480c767b6..0e7d963876 100644 --- a/tests/integration/vpp/110_srv6_test.go +++ b/tests/integration/vpp/110_srv6_test.go @@ -21,6 +21,7 @@ import ( . "github.com/onsi/gomega" "go.ligato.io/cn-infra/v2/logging/logrus" + "google.golang.org/protobuf/proto" netalloc_mock "go.ligato.io/vpp-agent/v3/plugins/netalloc/mock" "go.ligato.io/vpp-agent/v3/plugins/vpp/ifplugin/ifaceidx" @@ -383,7 +384,8 @@ func TestLocalsidCRUD(t *testing.T) { if test.expectedDump != nil { expected = test.expectedDump } - Expect(localsids).Should(ConsistOf(expected)) + Expect(localsids).To(HaveLen(1)) + Expect(proto.Equal(localsids[0], expected)).To(BeTrue()) // Update (for localsids it means delete + create) if test.updatedInput != nil { @@ -396,7 +398,8 @@ func TestLocalsidCRUD(t *testing.T) { if test.updatedExpectedDump != nil { expected = test.updatedExpectedDump } - Expect(localsids).Should(ConsistOf(expected)) + Expect(localsids).To(HaveLen(1)) + Expect(proto.Equal(localsids[0], expected)).To(BeTrue()) } // Delete if test.updatedInput != nil {