blob: 68c4352ce1988fcdf7ae7794fa1ff4741c063fb2 [file] [log] [blame]
Andy Bavier03df22b2017-08-30 14:46:02 -07001option name = "volt";
Matteo Scandolobfc31332018-03-29 09:06:52 -07002option app_label = "volt";
Andy Bavier03df22b2017-08-30 14:46:02 -07003
4message VOLTService (Service){
Matteo Scandolo43473812018-03-02 10:55:54 -08005 option verbose_name = "vOLT Service";
6 option kind = "vOLT";
Andy Bavier03df22b2017-08-30 14:46:02 -07007}
8
Matteo Scandolod2458012018-03-01 13:40:36 -08009message VOLTServiceInstance (ServiceInstance){
Matteo Scandolo43473812018-03-02 10:55:54 -080010 option kind = "vOLT";
11 option owner_class_name = "VOLTService";
12 option verbose_name = "vOLT Service Instance";
Andy Bavier03df22b2017-08-30 14:46:02 -070013
Matteo Scandolo43473812018-03-02 10:55:54 -080014 required string onu_type = 2 [help_text = "ONU Type", default = "v-ontani", null = False, db_index = False, blank = False];
15 optional string description = 3 [max_length = 254, null = True, db_index = False, blank = True];
Andy Bavier03df22b2017-08-30 14:46:02 -070016}
17
18message VOLTDevice (XOSBase){
Matteo Scandolo43473812018-03-02 10:55:54 -080019 option verbose_name = "vOLT Device";
Andy Bavier03df22b2017-08-30 14:46:02 -070020
Matteo Scandolo43473812018-03-02 10:55:54 -080021 required manytoone volt_service->VOLTService:volt_devices = 1 [db_index = True, null = False, blank = False];
22 required string name = 2 [help_text = "name of device", max_length = 254, null = False, db_index = False, blank = False];
23 required string device_id = 3 [help_text = "Device ID", max_length = 254, null = False, db_index = False, blank = False];
24 required string device_type = 4 [help_text = "Device Type", default = "asfvolt16_olt", max_length = 254, null = False, db_index = False, blank = False];
25 required string host = 5 [help_text = "Host", max_length = 254, null = False, db_index = False, blank = False];
26 required int32 port = 6 [help_text = "Fabric port", null = False, db_index = False, blank = False];
Andy Bavier03df22b2017-08-30 14:46:02 -070027}
28
Matteo Scandolo43473812018-03-02 10:55:54 -080029message VOLTDevicePort (XOSBase){
30 option verbose_name = "vOLT Device Port";
Andy Bavier03df22b2017-08-30 14:46:02 -070031
Matteo Scandolo43473812018-03-02 10:55:54 -080032 required manytoone volt_device->VOLTDevice:ports = 1 [db_index = True, null = False, blank = False];
33 required string port_id = 2 [help_text = "Port ID", max_length = 254, null = False, db_index = False, blank = False, tosca_key = True];
34 required int32 s_tag = 3 [help_text = "S Tag", null = False, db_index = False, blank = False];
Andy Bavier03df22b2017-08-30 14:46:02 -070035}