Scott Baker | 4eb615b | 2017-05-05 16:55:22 -0700 | [diff] [blame] | 1 | option name = "rcord"; |
Matteo Scandolo | 7689e1c | 2018-02-23 10:53:29 -0800 | [diff] [blame] | 2 | option app_label = "rcord"; |
Matteo Scandolo | 62a83f0 | 2018-03-01 15:59:18 -0800 | [diff] [blame] | 3 | option legacy="True"; |
Scott Baker | 4eb615b | 2017-05-05 16:55:22 -0700 | [diff] [blame] | 4 | |
Matteo Scandolo | d1707b3 | 2018-05-04 12:42:53 -0700 | [diff] [blame] | 5 | message RCORDService (Service) { |
| 6 | option verbose_name = "RCORD Service"; |
Scott Baker | fcd15f1 | 2019-01-24 13:14:42 -0800 | [diff] [blame] | 7 | option description = "Service that manages residential subscribers"; |
| 8 | |
| 9 | required string access = 11 [ |
| 10 | help_text = "Name of service that is managing the Access Network", |
| 11 | default = "voltha", choices = "(('voltha', 'VOLTHA'), ('unknown', 'Unknown'))", |
Scott Baker | fcd15f1 | 2019-01-24 13:14:42 -0800 | [diff] [blame] | 12 | max_length = 30]; |
Matteo Scandolo | d1707b3 | 2018-05-04 12:42:53 -0700 | [diff] [blame] | 13 | } |
| 14 | |
| 15 | message RCORDSubscriber (ServiceInstance) { |
| 16 | option kind = "RCORDSubscriber"; |
| 17 | option verbose_name = "RCORD Subscriber"; |
| 18 | option owner_class_name = "RCORDService"; |
Scott Baker | fcd15f1 | 2019-01-24 13:14:42 -0800 | [diff] [blame] | 19 | option description = "A residential subscriber"; |
Scott Baker | 4eb615b | 2017-05-05 16:55:22 -0700 | [diff] [blame] | 20 | |
Matteo Scandolo | cc94e90 | 2018-05-22 15:25:25 -0700 | [diff] [blame] | 21 | // vsg related configurations |
Scott Baker | fcd15f1 | 2019-01-24 13:14:42 -0800 | [diff] [blame] | 22 | optional manytoone creator->User:created_rcord_subscribers = 15 [ |
| 23 | help_text = "User who created this RCORDSubscriber object", |
| 24 | db_index = True]; |
| 25 | optional string status = 11 [ |
| 26 | help_text = "Status of subscriber provisioning and authentication", |
| 27 | content_type = "stripped", |
Scott Baker | fcd15f1 | 2019-01-24 13:14:42 -0800 | [diff] [blame] | 28 | default = "enabled", |
| 29 | choices = "(('enabled', 'Enabled'), ('disabled', 'Disabled'), ('pre-provisioned', 'Pre Provisioned'), ('awaiting-auth', 'Awaiting Authentication'), ('auth-failed', 'Authentication Failed'))", |
| 30 | max_length = 30]; |
Matteo Scandolo | f5a8cf9 | 2018-04-10 14:42:21 -0700 | [diff] [blame] | 31 | |
Matteo Scandolo | cc94e90 | 2018-05-22 15:25:25 -0700 | [diff] [blame] | 32 | // parameters for r-cord lite |
Scott Baker | fcd15f1 | 2019-01-24 13:14:42 -0800 | [diff] [blame] | 33 | optional int32 c_tag = 12 [ |
| 34 | help_text = "Customer VLAN Tag, one half of the double-tag that identifies this subscriber's traffic", |
Scott Baker | fcd15f1 | 2019-01-24 13:14:42 -0800 | [diff] [blame] | 35 | min_value = 0, |
| 36 | max_value = 4096]; |
| 37 | optional int32 s_tag = 19 [ |
| 38 | help_text = "Service VLAN Tag, one half of the double-tag that identifies this subscriber's traffic", |
Scott Baker | fcd15f1 | 2019-01-24 13:14:42 -0800 | [diff] [blame] | 39 | min_value = 0, |
| 40 | max_value = 4096]; |
| 41 | required string onu_device = 13 [ |
Scott Baker | 8782a54 | 2019-03-12 15:38:14 -0700 | [diff] [blame] | 42 | help_text = "ONUDevice serial number"]; |
Scott Baker | fcd15f1 | 2019-01-24 13:14:42 -0800 | [diff] [blame] | 43 | optional string mac_address = 18 [ |
Scott Baker | 8782a54 | 2019-03-12 15:38:14 -0700 | [diff] [blame] | 44 | help_text = "Subscriber MAC Address"]; |
Matteo Scandolo | 86801bd | 2018-08-08 08:55:18 -0700 | [diff] [blame] | 45 | |
| 46 | // operator specific fields |
Scott Baker | fcd15f1 | 2019-01-24 13:14:42 -0800 | [diff] [blame] | 47 | optional string nas_port_id = 20 [ |
Scott Baker | 8782a54 | 2019-03-12 15:38:14 -0700 | [diff] [blame] | 48 | help_text = "NAS Port ID used in Radius to identify physical interface used to authenticate subscriber"]; |
Scott Baker | fcd15f1 | 2019-01-24 13:14:42 -0800 | [diff] [blame] | 49 | optional string circuit_id = 21 [ |
Scott Baker | 8782a54 | 2019-03-12 15:38:14 -0700 | [diff] [blame] | 50 | help_text = "Option 82 Circuit ID for DHCP relay agent"]; |
Scott Baker | fcd15f1 | 2019-01-24 13:14:42 -0800 | [diff] [blame] | 51 | optional string remote_id = 22 [ |
Scott Baker | 8782a54 | 2019-03-12 15:38:14 -0700 | [diff] [blame] | 52 | help_text = "Option 82 Remote ID for DHCP relay agent"]; |
Scott Baker | 4eb615b | 2017-05-05 16:55:22 -0700 | [diff] [blame] | 53 | } |
Luca Prete | d6700ba | 2018-09-12 16:40:49 -0700 | [diff] [blame] | 54 | |
| 55 | message RCORDIpAddress(XOSBase) { |
| 56 | option verbose_name = "IP address"; |
Scott Baker | fcd15f1 | 2019-01-24 13:14:42 -0800 | [diff] [blame] | 57 | option description = "An IP Address assinged to a residential subscriber"; |
Luca Prete | d6700ba | 2018-09-12 16:40:49 -0700 | [diff] [blame] | 58 | |
Scott Baker | fcd15f1 | 2019-01-24 13:14:42 -0800 | [diff] [blame] | 59 | required manytoone subscriber->RCORDSubscriber:ips = 1:1001 [ |
| 60 | help_text = "The subscriber the IP address belongs to", |
Scott Baker | bf20994 | 2019-03-08 10:53:43 -0800 | [diff] [blame] | 61 | db_index = True]; |
Scott Baker | fcd15f1 | 2019-01-24 13:14:42 -0800 | [diff] [blame] | 62 | required string ip = 2 [ |
| 63 | help_text = "The unique IP address (either IPv4 or IPv6 / netmask)", |
Scott Baker | fcd15f1 | 2019-01-24 13:14:42 -0800 | [diff] [blame] | 64 | max_length = 52, |
Scott Baker | fcd15f1 | 2019-01-24 13:14:42 -0800 | [diff] [blame] | 65 | unique_with = "subscriber"]; |
| 66 | optional string description = 3 [ |
| 67 | help_text = "A short description of the IP address", |
Scott Baker | bf20994 | 2019-03-08 10:53:43 -0800 | [diff] [blame] | 68 | max_length = 254]; |
| 69 | } |