blob: 651957e65b2732939c68f85ca8ba6601a3c68bb5 [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";
Matteo Scandolo4a8b4d62018-03-06 17:18:46 -08007
8 required string voltha_url = 2 [max_length = 254, null = False, db_index = False, blank = False];
9 optional string voltha_user = 3 [max_length = 254, null = True, db_index = False, blank = True];
10 optional string voltha_pass = 4 [max_length = 254, null = True, db_index = False, blank = True];
11 required string p_onos_url = 5 [max_length = 254, null = False, db_index = False, blank = False];
12 optional string p_onos_user = 6 [max_length = 254, null = True, db_index = False, blank = True];
13 optional string p_onos_pass = 7 [max_length = 254, null = True, db_index = False, blank = True];
14
15 required string onu_provisioning = 8 [default = "allow_all", choices = "(('allow_all', 'Allow All'), ('pre_provisioned', 'Pre-provisione'), ('oss', 'OSS'))", null = False, db_index = False, blank = False];
Andy Bavier03df22b2017-08-30 14:46:02 -070016}
17
Matteo Scandolod2458012018-03-01 13:40:36 -080018message VOLTServiceInstance (ServiceInstance){
Matteo Scandolo43473812018-03-02 10:55:54 -080019 option kind = "vOLT";
20 option owner_class_name = "VOLTService";
21 option verbose_name = "vOLT Service Instance";
Andy Bavier03df22b2017-08-30 14:46:02 -070022
Matteo Scandolo4a8b4d62018-03-06 17:18:46 -080023 optional string description = 1 [max_length = 254, null = True, db_index = False, blank = True];
Andy Bavier03df22b2017-08-30 14:46:02 -070024}
25
Matteo Scandolo4a8b4d62018-03-06 17:18:46 -080026message OLTDevice (XOSBase){
27 option verbose_name = "OLT Device";
28 option description="Represents a physical OLT device";
Andy Bavier03df22b2017-08-30 14:46:02 -070029
Matteo Scandolo43473812018-03-02 10:55:54 -080030 required manytoone volt_service->VOLTService:volt_devices = 1 [db_index = True, null = False, blank = False];
31 required string name = 2 [help_text = "name of device", max_length = 254, null = False, db_index = False, blank = False];
Matteo Scandolo4a8b4d62018-03-06 17:18:46 -080032 required string device_type = 3 [help_text = "Device Type", default = "asfvolt16_olt", max_length = 254, null = False, db_index = False, blank = False];
33 required string host = 4 [help_text = "Host", max_length = 254, null = False, db_index = False, blank = False];
34 required int32 port = 5 [help_text = "Fabric port", null = False, db_index = False, blank = False];
35
36 optional string device_id = 10 [help_text = "Device ID", null = True, db_index = False, blank = False, feedback_state = True];
37 optional string admin_state = 11 [help_text = "admin_state", null = True, db_index = False, blank = False, feedback_state = True];
38 optional string oper_status = 12 [help_text = "oper_status", null = True, db_index = False, blank = False, feedback_state = True];
39 optional string of_id = 13 [help_text = "openflow id", null = True, db_index = False, blank = False, feedback_state = True];
40
41 required string uplink = 14 [default="129", help_text = "uplink port", null = False, db_index = False, blank = False];
42 required string vlan = 15 [default="3", help_text = "same as S-Tag", null = True, db_index = False, blank = False];
43 required string driver = 16 [default="pmc-olt", help_text = "Olt driver", null = True, db_index = False, blank = False];
Andy Bavier03df22b2017-08-30 14:46:02 -070044}
45
Matteo Scandolo4a8b4d62018-03-06 17:18:46 -080046message ONUDevice (XOSBase){
47 option verbose_name = "ONU Device";
48 option description = "Represents a physical ONU device";
Andy Bavier03df22b2017-08-30 14:46:02 -070049
Matteo Scandolo4a8b4d62018-03-06 17:18:46 -080050 required manytoone volt_device->OLTDevice:onu_devices = 1 [db_index = True, null = False, blank = False];
51 required string serial_number = 1 [max_length = 254, null = False, db_index = False, blank = False];
52}
53
54message PONPort (XOSBase){
55 option verbose_name = "PON Port";
56
57 required string name = 1 [db_index = True, null = False, blank = False];
58 required manytoone volt_device->OLTDevice:ports = 2 [db_index = True, null = False, blank = False];
59 required string port_id = 3 [help_text = "Port ID (Feedback State)", max_length = 254, null = False, db_index = False, blank = False, tosca_key = True];
60 required int32 s_tag = 4 [help_text = "S Tag", null = False, db_index = False, blank = False];
Andy Bavier03df22b2017-08-30 14:46:02 -070061}