blob: 0e84d0f647409c3041637a2aa36851f2004a4cc2 [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
Matteo Scandoloa4a279a2019-03-14 15:56:22 -070015message BandwidthProfile(XOSBase) {
16 option verbose_name = "Bandwidth Profile";
17 option description = "The Bandwidth Profile assinged to a residential subscriber";
18
19 // TODO add help_text
20 required string name = 3;
21 required int32 cir = 4;
22 required int32 cbs = 5;
23 required int32 eir = 6;
24 required int32 ebs = 7;
25 required int32 air = 8;
26}
27
Matteo Scandolod1707b32018-05-04 12:42:53 -070028message RCORDSubscriber (ServiceInstance) {
29 option kind = "RCORDSubscriber";
30 option verbose_name = "RCORD Subscriber";
31 option owner_class_name = "RCORDService";
Scott Bakerfcd15f12019-01-24 13:14:42 -080032 option description = "A residential subscriber";
Scott Baker4eb615b2017-05-05 16:55:22 -070033
Matteo Scandolocc94e902018-05-22 15:25:25 -070034 // vsg related configurations
Scott Bakerfcd15f12019-01-24 13:14:42 -080035 optional manytoone creator->User:created_rcord_subscribers = 15 [
36 help_text = "User who created this RCORDSubscriber object",
37 db_index = True];
38 optional string status = 11 [
39 help_text = "Status of subscriber provisioning and authentication",
40 content_type = "stripped",
Scott Bakerfcd15f12019-01-24 13:14:42 -080041 default = "enabled",
42 choices = "(('enabled', 'Enabled'), ('disabled', 'Disabled'), ('pre-provisioned', 'Pre Provisioned'), ('awaiting-auth', 'Awaiting Authentication'), ('auth-failed', 'Authentication Failed'))",
43 max_length = 30];
Matteo Scandolof5a8cf92018-04-10 14:42:21 -070044
Matteo Scandolocc94e902018-05-22 15:25:25 -070045 // parameters for r-cord lite
Scott Bakerfcd15f12019-01-24 13:14:42 -080046 optional int32 c_tag = 12 [
47 help_text = "Customer VLAN Tag, one half of the double-tag that identifies this subscriber's traffic",
Scott Bakerfcd15f12019-01-24 13:14:42 -080048 min_value = 0,
49 max_value = 4096];
50 optional int32 s_tag = 19 [
51 help_text = "Service VLAN Tag, one half of the double-tag that identifies this subscriber's traffic",
Scott Bakerfcd15f12019-01-24 13:14:42 -080052 min_value = 0,
53 max_value = 4096];
54 required string onu_device = 13 [
Scott Baker8782a542019-03-12 15:38:14 -070055 help_text = "ONUDevice serial number"];
Scott Bakerfcd15f12019-01-24 13:14:42 -080056 optional string mac_address = 18 [
Scott Baker8782a542019-03-12 15:38:14 -070057 help_text = "Subscriber MAC Address"];
Matteo Scandolo86801bd2018-08-08 08:55:18 -070058
59 // operator specific fields
Scott Bakerfcd15f12019-01-24 13:14:42 -080060 optional string nas_port_id = 20 [
Scott Baker8782a542019-03-12 15:38:14 -070061 help_text = "NAS Port ID used in Radius to identify physical interface used to authenticate subscriber"];
Scott Bakerfcd15f12019-01-24 13:14:42 -080062 optional string circuit_id = 21 [
Scott Baker8782a542019-03-12 15:38:14 -070063 help_text = "Option 82 Circuit ID for DHCP relay agent"];
Scott Bakerfcd15f12019-01-24 13:14:42 -080064 optional string remote_id = 22 [
Scott Baker8782a542019-03-12 15:38:14 -070065 help_text = "Option 82 Remote ID for DHCP relay agent"];
Matteo Scandoloa4a279a2019-03-14 15:56:22 -070066
67 required manytoone upstream_bps->BandwidthProfile:us_subscriber = 31:1001 [
68 help_text = "The subscriber the IP address belongs to"];
69 required manytoone downstream_bps->BandwidthProfile:ds_subscriber = 32:1002 [
70 help_text = "The subscriber the IP address belongs to"];
Scott Baker4eb615b2017-05-05 16:55:22 -070071}
Luca Preted6700ba2018-09-12 16:40:49 -070072
73message RCORDIpAddress(XOSBase) {
74 option verbose_name = "IP address";
Scott Bakerfcd15f12019-01-24 13:14:42 -080075 option description = "An IP Address assinged to a residential subscriber";
Luca Preted6700ba2018-09-12 16:40:49 -070076
Scott Bakerfcd15f12019-01-24 13:14:42 -080077 required manytoone subscriber->RCORDSubscriber:ips = 1:1001 [
78 help_text = "The subscriber the IP address belongs to",
Scott Bakerbf209942019-03-08 10:53:43 -080079 db_index = True];
Scott Bakerfcd15f12019-01-24 13:14:42 -080080 required string ip = 2 [
81 help_text = "The unique IP address (either IPv4 or IPv6 / netmask)",
Scott Bakerfcd15f12019-01-24 13:14:42 -080082 max_length = 52,
Scott Bakerfcd15f12019-01-24 13:14:42 -080083 unique_with = "subscriber"];
84 optional string description = 3 [
85 help_text = "A short description of the IP address",
Scott Bakerbf209942019-03-08 10:53:43 -080086 max_length = 254];
87}