VOL-5476 Proto changes for UpdateDevice for ipaddress
Change-Id: Iec4b824b3afcdb57a656736415f3d9368dcddb58
Signed-off-by: Abhilash Laxmeshwar <abhilash.laxmeshwar@radisys.com>
Change-Id: I9fe3792e37e69b5189007bf4f3acf83a9be48bf9
diff --git a/protos/voltha_protos/adapter_service.proto b/protos/voltha_protos/adapter_service.proto
index 31891ce..11c945e 100755
--- a/protos/voltha_protos/adapter_service.proto
+++ b/protos/voltha_protos/adapter_service.proto
@@ -89,4 +89,5 @@
rpc EnableOnuDevice (device.Device) returns(google.protobuf.Empty);
rpc DisableOnuSerialNumber(device.OnuSerialNumberOnOLTPon) returns (google.protobuf.Empty);
rpc EnableOnuSerialNumber(device.OnuSerialNumberOnOLTPon) returns (google.protobuf.Empty);
+ rpc UpdateDevice(device.UpdateDevice) returns(google.protobuf.Empty);
}
diff --git a/protos/voltha_protos/device.proto b/protos/voltha_protos/device.proto
index 7345074..b76c5a7 100755
--- a/protos/voltha_protos/device.proto
+++ b/protos/voltha_protos/device.proto
@@ -501,3 +501,19 @@
string serial_number = 3;
}
+message UpdateDevice {
+ string id = 1; //Device id of the device, for now only updating the OLT device is supported, and only ip address of the OLT
+ oneof address {
+
+ // Device contact IPv4 address (format: "a.b.c.d" or can use hostname too)
+ string ipv4_address = 2;
+
+ // Device contact IPv6 address using the canonical string form
+ // ("xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx")
+ string ipv6_address = 3;
+
+ string host_and_port = 4;
+
+ };
+}
+
diff --git a/protos/voltha_protos/voltha.proto b/protos/voltha_protos/voltha.proto
index 9d9abeb..7230113 100755
--- a/protos/voltha_protos/voltha.proto
+++ b/protos/voltha_protos/voltha.proto
@@ -638,5 +638,12 @@
};
}
+ // Update the Device configuration, for now only ip address updation is supported
+ rpc UpdateDevice(device.UpdateDevice) returns(google.protobuf.Empty) {
+ option (google.api.http) = {
+ post: "/api/v1/update_device"
+ };
+ }
+
}