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