Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 1 | option name = "volt"; |
| 2 | |
| 3 | message VOLTService (Service){ |
Matteo Scandolo | 4347381 | 2018-03-02 10:55:54 -0800 | [diff] [blame] | 4 | option verbose_name = "vOLT Service"; |
| 5 | option kind = "vOLT"; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 6 | } |
| 7 | |
Matteo Scandolo | d245801 | 2018-03-01 13:40:36 -0800 | [diff] [blame] | 8 | message VOLTServiceInstance (ServiceInstance){ |
Matteo Scandolo | 4347381 | 2018-03-02 10:55:54 -0800 | [diff] [blame] | 9 | option kind = "vOLT"; |
| 10 | option owner_class_name = "VOLTService"; |
| 11 | option verbose_name = "vOLT Service Instance"; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 12 | |
Matteo Scandolo | 4347381 | 2018-03-02 10:55:54 -0800 | [diff] [blame] | 13 | required string onu_type = 2 [help_text = "ONU Type", default = "v-ontani", null = False, db_index = False, blank = False]; |
| 14 | optional string description = 3 [max_length = 254, null = True, db_index = False, blank = True]; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 15 | } |
| 16 | |
| 17 | message VOLTDevice (XOSBase){ |
Matteo Scandolo | 4347381 | 2018-03-02 10:55:54 -0800 | [diff] [blame] | 18 | option verbose_name = "vOLT Device"; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 19 | |
Matteo Scandolo | 4347381 | 2018-03-02 10:55:54 -0800 | [diff] [blame] | 20 | required manytoone volt_service->VOLTService:volt_devices = 1 [db_index = True, null = False, blank = False]; |
| 21 | required string name = 2 [help_text = "name of device", max_length = 254, null = False, db_index = False, blank = False]; |
| 22 | required string device_id = 3 [help_text = "Device ID", max_length = 254, null = False, db_index = False, blank = False]; |
| 23 | required string device_type = 4 [help_text = "Device Type", default = "asfvolt16_olt", max_length = 254, null = False, db_index = False, blank = False]; |
| 24 | required string host = 5 [help_text = "Host", max_length = 254, null = False, db_index = False, blank = False]; |
| 25 | required int32 port = 6 [help_text = "Fabric port", null = False, db_index = False, blank = False]; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 26 | } |
| 27 | |
Matteo Scandolo | 4347381 | 2018-03-02 10:55:54 -0800 | [diff] [blame] | 28 | message VOLTDevicePort (XOSBase){ |
| 29 | option verbose_name = "vOLT Device Port"; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 30 | |
Matteo Scandolo | 4347381 | 2018-03-02 10:55:54 -0800 | [diff] [blame] | 31 | required manytoone volt_device->VOLTDevice:ports = 1 [db_index = True, null = False, blank = False]; |
| 32 | required string port_id = 2 [help_text = "Port ID", max_length = 254, null = False, db_index = False, blank = False, tosca_key = True]; |
| 33 | required int32 s_tag = 3 [help_text = "S Tag", null = False, db_index = False, blank = False]; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 34 | } |