blob: d050849f7ef6a223668a9aa7e958a3e800ac5a6f [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
Scott Bakerfa330332019-04-09 15:43:11 -070020 required string name = 3 [
21 help_text = "Name of bandwidth profile",
22 max_length = 256];
Matteo Scandoloa4a279a2019-03-14 15:56:22 -070023 required int32 cir = 4;
24 required int32 cbs = 5;
25 required int32 eir = 6;
26 required int32 ebs = 7;
27 required int32 air = 8;
28}
29
Matteo Scandolod1707b32018-05-04 12:42:53 -070030message RCORDSubscriber (ServiceInstance) {
31 option kind = "RCORDSubscriber";
32 option verbose_name = "RCORD Subscriber";
33 option owner_class_name = "RCORDService";
Scott Bakerfcd15f12019-01-24 13:14:42 -080034 option description = "A residential subscriber";
vigneshethirajd9b1f8e2019-06-04 19:00:14 +053035 option policy_implemented = "True";
Scott Baker4eb615b2017-05-05 16:55:22 -070036
Matteo Scandolocc94e902018-05-22 15:25:25 -070037 // vsg related configurations
Scott Bakerfcd15f12019-01-24 13:14:42 -080038 optional manytoone creator->User:created_rcord_subscribers = 15 [
39 help_text = "User who created this RCORDSubscriber object",
40 db_index = True];
41 optional string status = 11 [
42 help_text = "Status of subscriber provisioning and authentication",
43 content_type = "stripped",
Scott Bakerfcd15f12019-01-24 13:14:42 -080044 default = "enabled",
45 choices = "(('enabled', 'Enabled'), ('disabled', 'Disabled'), ('pre-provisioned', 'Pre Provisioned'), ('awaiting-auth', 'Awaiting Authentication'), ('auth-failed', 'Authentication Failed'))",
46 max_length = 30];
Matteo Scandolof5a8cf92018-04-10 14:42:21 -070047
Matteo Scandolocc94e902018-05-22 15:25:25 -070048 // parameters for r-cord lite
Scott Bakerfcd15f12019-01-24 13:14:42 -080049 optional int32 c_tag = 12 [
50 help_text = "Customer VLAN Tag, one half of the double-tag that identifies this subscriber's traffic",
Scott Bakerfcd15f12019-01-24 13:14:42 -080051 min_value = 0,
52 max_value = 4096];
53 optional int32 s_tag = 19 [
54 help_text = "Service VLAN Tag, one half of the double-tag that identifies this subscriber's traffic",
Scott Bakerfcd15f12019-01-24 13:14:42 -080055 min_value = 0,
56 max_value = 4096];
57 required string onu_device = 13 [
Scott Bakerfa330332019-04-09 15:43:11 -070058 help_text = "ONUDevice serial number",
Matteo Scandoloda74d0d2019-05-24 14:15:06 -070059 max_length = 256,
60 tosca_key = True];
Scott Bakerfcd15f12019-01-24 13:14:42 -080061 optional string mac_address = 18 [
Scott Bakerfa330332019-04-09 15:43:11 -070062 help_text = "Subscriber MAC Address",
63 max_length = 256];
Matteo Scandolo86801bd2018-08-08 08:55:18 -070064
65 // operator specific fields
Scott Bakerfcd15f12019-01-24 13:14:42 -080066 optional string nas_port_id = 20 [
Scott Bakerfa330332019-04-09 15:43:11 -070067 help_text = "NAS Port ID used in Radius to identify physical interface used to authenticate subscriber",
68 max_length = 256];
Scott Bakerfcd15f12019-01-24 13:14:42 -080069 optional string circuit_id = 21 [
Scott Bakerfa330332019-04-09 15:43:11 -070070 help_text = "Option 82 Circuit ID for DHCP relay agent",
71 max_length = 256];
Scott Bakerfcd15f12019-01-24 13:14:42 -080072 optional string remote_id = 22 [
Scott Bakerfa330332019-04-09 15:43:11 -070073 help_text = "Option 82 Remote ID for DHCP relay agent",
74 max_length = 256];
selvamuthukumaran_c1fd8b4a2019-05-20 13:09:18 +000075 optional int32 tech_profile_id = 23 [
76 help_text = "Technology profile id to be used along with Technology type to retreive the profile",
77 min_value = 0,
78 max_value = 65535];
Matteo Scandoloa4a279a2019-03-14 15:56:22 -070079
80 required manytoone upstream_bps->BandwidthProfile:us_subscriber = 31:1001 [
81 help_text = "The subscriber the IP address belongs to"];
82 required manytoone downstream_bps->BandwidthProfile:ds_subscriber = 32:1002 [
83 help_text = "The subscriber the IP address belongs to"];
Scott Baker4eb615b2017-05-05 16:55:22 -070084}
Luca Preted6700ba2018-09-12 16:40:49 -070085
86message RCORDIpAddress(XOSBase) {
87 option verbose_name = "IP address";
Scott Bakerfcd15f12019-01-24 13:14:42 -080088 option description = "An IP Address assinged to a residential subscriber";
Luca Preted6700ba2018-09-12 16:40:49 -070089
Scott Bakerfcd15f12019-01-24 13:14:42 -080090 required manytoone subscriber->RCORDSubscriber:ips = 1:1001 [
91 help_text = "The subscriber the IP address belongs to",
Scott Bakerbf209942019-03-08 10:53:43 -080092 db_index = True];
Scott Bakerfcd15f12019-01-24 13:14:42 -080093 required string ip = 2 [
94 help_text = "The unique IP address (either IPv4 or IPv6 / netmask)",
Scott Bakerfcd15f12019-01-24 13:14:42 -080095 max_length = 52,
Scott Bakerfcd15f12019-01-24 13:14:42 -080096 unique_with = "subscriber"];
97 optional string description = 3 [
98 help_text = "A short description of the IP address",
Scott Bakerfa330332019-04-09 15:43:11 -070099 text = True];
Scott Bakerbf209942019-03-08 10:53:43 -0800100}