blob: ba3168feb31e8ccbe90310b14d52387385705e1f [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'))",
12 db_index = False,
13 max_length = 30];
Matteo Scandolod1707b32018-05-04 12:42:53 -070014}
15
16message RCORDSubscriber (ServiceInstance) {
17 option kind = "RCORDSubscriber";
18 option verbose_name = "RCORD Subscriber";
19 option owner_class_name = "RCORDService";
Scott Bakerfcd15f12019-01-24 13:14:42 -080020 option description = "A residential subscriber";
Scott Baker4eb615b2017-05-05 16:55:22 -070021
Matteo Scandolocc94e902018-05-22 15:25:25 -070022 // vsg related configurations
Scott Bakerfcd15f12019-01-24 13:14:42 -080023 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 Scandolof5a8cf92018-04-10 14:42:21 -070033
Matteo Scandolocc94e902018-05-22 15:25:25 -070034 // parameters for r-cord lite
Scott Bakerfcd15f12019-01-24 13:14:42 -080035 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 Scandolo86801bd2018-08-08 08:55:18 -070051
52 // operator specific fields
Scott Bakerfcd15f12019-01-24 13:14:42 -080053 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 Baker4eb615b2017-05-05 16:55:22 -070062}
Luca Preted6700ba2018-09-12 16:40:49 -070063
64message RCORDIpAddress(XOSBase) {
65 option verbose_name = "IP address";
Scott Bakerfcd15f12019-01-24 13:14:42 -080066 option description = "An IP Address assinged to a residential subscriber";
Luca Preted6700ba2018-09-12 16:40:49 -070067
Scott Bakerfcd15f12019-01-24 13:14:42 -080068 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 Preted6700ba2018-09-12 16:40:49 -070086}