blob: b760b6ea466c6a27550c6a7462457adf3210c47d [file] [log] [blame]
Jian Li841a8b92017-11-23 01:31:22 +09001/*
2 * Copyright 2017-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
shivani vaidya530917c2017-07-11 11:27:48 -070016syntax = "proto3";
17option java_package = "org.onosproject.grpc.net.models";
18
19package net;
20
21import "net/region/RegionEnumsProto.proto";
22
23// Corresponds to org.onosproject.net.Region.
24
25message RegionProto {
26 string region_id = 1;
27 net.region.RegionTypeProto type = 2;
28 string name = 3;
29
30 // List<Set<NodeId>> masters();
31 // Since masters is a list of set of NodeIds,
32 // the following message is required.
33 message NodeIdSet {
34 repeated string node_id = 1;
35 }
36
37 repeated NodeIdSet masters = 4;
38 map<string, string> annotations = 5;
39}