blob: 13df2f61233ffb38a4a6d9631a6b600cac6cfa7d [file] [log] [blame]
Scott Baker4eb615b2017-05-05 16:55:22 -07001option name = "rcord";
Matteo Scandolo7689e1c2018-02-23 10:53:29 -08002option app_label = "rcord";
Matteo Scandolo62a83f02018-03-01 15:59:18 -08003option legacy="True";
Scott Baker4eb615b2017-05-05 16:55:22 -07004
Matteo Scandolod1707b32018-05-04 12:42:53 -07005message RCORDService (Service) {
6 option verbose_name = "RCORD Service";
Scott Bakerfcd15f12019-01-24 13:14:42 -08007 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 Bakerfcd15f12019-01-24 13:14:42 -080012 max_length = 30];
Matteo Scandolod1707b32018-05-04 12:42:53 -070013}
14
15message RCORDSubscriber (ServiceInstance) {
16 option kind = "RCORDSubscriber";
17 option verbose_name = "RCORD Subscriber";
18 option owner_class_name = "RCORDService";
Scott Bakerfcd15f12019-01-24 13:14:42 -080019 option description = "A residential subscriber";
Scott Baker4eb615b2017-05-05 16:55:22 -070020
Matteo Scandolocc94e902018-05-22 15:25:25 -070021 // vsg related configurations
Scott Bakerfcd15f12019-01-24 13:14:42 -080022 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 Bakerfcd15f12019-01-24 13:14:42 -080028 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 Scandolof5a8cf92018-04-10 14:42:21 -070031
Matteo Scandolocc94e902018-05-22 15:25:25 -070032 // parameters for r-cord lite
Scott Bakerfcd15f12019-01-24 13:14:42 -080033 optional int32 c_tag = 12 [
34 help_text = "Customer VLAN Tag, one half of the double-tag that identifies this subscriber's traffic",
Scott Bakerfcd15f12019-01-24 13:14:42 -080035 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 Bakerfcd15f12019-01-24 13:14:42 -080039 min_value = 0,
40 max_value = 4096];
41 required string onu_device = 13 [
Scott Baker8782a542019-03-12 15:38:14 -070042 help_text = "ONUDevice serial number"];
Scott Bakerfcd15f12019-01-24 13:14:42 -080043 optional string mac_address = 18 [
Scott Baker8782a542019-03-12 15:38:14 -070044 help_text = "Subscriber MAC Address"];
Matteo Scandolo86801bd2018-08-08 08:55:18 -070045
46 // operator specific fields
Scott Bakerfcd15f12019-01-24 13:14:42 -080047 optional string nas_port_id = 20 [
Scott Baker8782a542019-03-12 15:38:14 -070048 help_text = "NAS Port ID used in Radius to identify physical interface used to authenticate subscriber"];
Scott Bakerfcd15f12019-01-24 13:14:42 -080049 optional string circuit_id = 21 [
Scott Baker8782a542019-03-12 15:38:14 -070050 help_text = "Option 82 Circuit ID for DHCP relay agent"];
Scott Bakerfcd15f12019-01-24 13:14:42 -080051 optional string remote_id = 22 [
Scott Baker8782a542019-03-12 15:38:14 -070052 help_text = "Option 82 Remote ID for DHCP relay agent"];
Scott Baker4eb615b2017-05-05 16:55:22 -070053}
Luca Preted6700ba2018-09-12 16:40:49 -070054
55message RCORDIpAddress(XOSBase) {
56 option verbose_name = "IP address";
Scott Bakerfcd15f12019-01-24 13:14:42 -080057 option description = "An IP Address assinged to a residential subscriber";
Luca Preted6700ba2018-09-12 16:40:49 -070058
Scott Bakerfcd15f12019-01-24 13:14:42 -080059 required manytoone subscriber->RCORDSubscriber:ips = 1:1001 [
60 help_text = "The subscriber the IP address belongs to",
Scott Bakerbf209942019-03-08 10:53:43 -080061 db_index = True];
Scott Bakerfcd15f12019-01-24 13:14:42 -080062 required string ip = 2 [
63 help_text = "The unique IP address (either IPv4 or IPv6 / netmask)",
Scott Bakerfcd15f12019-01-24 13:14:42 -080064 max_length = 52,
Scott Bakerfcd15f12019-01-24 13:14:42 -080065 unique_with = "subscriber"];
66 optional string description = 3 [
67 help_text = "A short description of the IP address",
Scott Bakerbf209942019-03-08 10:53:43 -080068 max_length = 254];
69}