blob: 4094bf4f4d2603308a55340866970377360c2a69 [file] [log] [blame]
Sapan Bhatiaf3699482017-05-02 21:20:31 +02001option name = "metronetwork";
2
3message MetroNetworkSystem (PlCoreBase){
4 option verbose_name = "Metro Network System";
5
6 required string name = 1 [db_index = False, max_length = 256, null = False, blank = False];
7 required string description = 2 [db_index = False, max_length = 1024, null = False, blank = False];
8 required string restUrl = 3 [db_index = False, max_length = 256, null = False, blank = False];
9 required string administrativeState = 4 [default = "disabled", choices = "(('enabled', 'Enabled'), ('disabled', 'Disabled'))", max_length = 16, blank = False, null = False, db_index = False];
10 required string operationalState = 5 [blank = False, max_length = 256, null = False, db_index = False, choices = "(('active', 'Active'), ('inactive', 'Inactive'))"];
11}
12
13message NetworkDevice (PlCoreBase){
14 option verbose_name = "Network Device";
15
16 optional string name = 1 [help_text = "Device friendly name", max_length = 20, null = True, db_index = False, blank = True];
17 required string restCtrlUrl = 2 [db_index = False, max_length = 256, null = False, blank = False];
18 required string authType = 3 [blank = False, max_length = 16, null = False, db_index = False, choices = "(('basic', 'Basic'), ('key', 'Key'), ('oauth', 'OAuth'))"];
19 required string username = 4 [db_index = False, max_length = 32, null = False, blank = True];
20 required string password = 5 [db_index = False, max_length = 32, null = False, blank = True];
21 required string administrativeState = 6 [default = "disabled", choices = "(('enabled', 'Enabled'), ('disabled', 'Disabled'), ('syncrequested', 'SyncRequested'), ('syncinprogress', 'SyncInProgress'))", max_length = 16, blank = False, null = False, db_index = False];
22}
23
24message NetworkEdgePort (PlCoreBase){
25 option verbose_name = "Network Edge Port";
26
27 required manytoone element->NetworkDevice:networkedgeport = 1 [db_index = True, null = False, blank = False];
28 required string pid = 2 [db_index = False, max_length = 256, null = False, blank = False];
29 required int32 bwpCfgCbs = 3 [db_index = False, null = False, blank = True];
30 required int32 bwpCfgEbs = 4 [db_index = False, null = False, blank = True];
31 required int32 bwpCfgCir = 5 [db_index = False, null = False, blank = True];
32 required int32 bwpCfgEir = 6 [db_index = False, null = False, blank = True];
33 required string name = 7 [db_index = False, max_length = 256, null = False, blank = True];
34 required string location = 8 [db_index = False, max_length = 256, null = False, blank = True];
35 required string latlng = 9 [db_index = False, max_length = 50, null = False, blank = True];
36}
37
38
39message NetworkEdgeToEdgePointConnection (Service){
40 option verbose_name = "E-Line Service";
41
42 required string sid = 1 [db_index = False, max_length = 256, null = False, blank = True];
43 required string type = 2 [blank = False, max_length = 256, null = False, db_index = False, choices = "(('direct', 'Direct'), ('tunnel', 'Tunnel'), ('optical', 'Optical'), ('virtual', 'Virtual'), ('Point_To_Point', 'Point To Point'))"];
44 required string vlanid = 3 [db_index = False, max_length = 64, null = False, blank = False];
45 required manytoone uni1->NetworkEdgePort:EdgePointToEdgePointSrc = 4 [db_index = True, null = False, blank = False];
46 required manytoone uni2->NetworkEdgePort:EdgePointToEdgePointDst = 5 [db_index = True, null = False, blank = False];
47 required string operstate = 6 [blank = False, max_length = 256, null = False, db_index = False, choices = "(('active', 'Active'), ('inactive', 'Inactive'))"];
48 required string adminstate = 7 [blank = False, max_length = 256, null = False, db_index = False, choices = "(('disabled', 'Disabled'), ('activationrequested', 'ActivationRequested'), ('enabled', 'Enabled'), ('invalid', 'Invalid'), ('deactivationrequested', 'DeactivationRequested'))"];
49}
50
51
52message NetworkEdgeToMultipointConnection (Service){
53 option verbose_name = "E-Line Service";
54
55 required string sid = 1 [db_index = False, max_length = 256, null = False, blank = True];
56 required string type = 2 [blank = False, max_length = 256, null = False, db_index = False, choices = "(('vlan', 'VLAN'), ('ip', 'IP'), ('ethernet', 'Ethernet'), ('Root_Multipoint', 'Root Multipoint'))"];
57 required string vlanid = 3 [db_index = False, max_length = 64, null = False, blank = False];
58 required manytoone root->NetworkEdgePort:EdgeToMultipointRoot = 4 [db_index = True, null = False, blank = False];
59 required string operstate = 5 [blank = False, max_length = 256, null = False, db_index = False, choices = "(('active', 'Active'), ('inactive', 'Inactive'))"];
60 required string adminstate = 6 [blank = False, max_length = 256, null = False, db_index = False, choices = "(('disabled', 'Disabled'), ('activationrequested', 'ActivationRequested'), ('enabled', 'Enabled'), ('invalid', 'Invalid'), ('deactivationrequested', 'DeactivationRequested'))"];
61 required manytomany eps->NetworkEdgePort/NetworkMultipointToMultipointConnection_eps:networkedgetomultipointconnection_eps = 7 [db_index = False, null = False, blank = False];
62}
63
64
65message NetworkMultipointToMultipointConnection (Service){
66 option verbose_name = "E-LAN Service";
67
68 required string sid = 1 [db_index = False, max_length = 256, null = False, blank = True];
69 required string type = 2 [blank = False, max_length = 256, null = False, db_index = False, choices = "(('vlan', 'VLAN'), ('ip', 'IP'), ('ethernet', 'Ethernet'), ('Multipoint_To_Multipoint', 'Multipoint To Multipoint'))"];
70 required string vlanid = 3 [db_index = False, max_length = 64, null = False, blank = False];
71 required string operstate = 4 [blank = False, max_length = 256, null = False, db_index = False, choices = "(('active', 'Active'), ('inactive', 'Inactive'))"];
72 required string adminstate = 5 [blank = False, max_length = 256, null = False, db_index = False, choices = "(('disabled', 'Disabled'), ('activationrequested', 'ActivationRequested'), ('enabled', 'Enabled'), ('invalid', 'Invalid'), ('deactivationrequested', 'DeactivationRequested'))"];
73 required manytomany eps->NetworkEdgePort/NetworkMultipointToMultipointConnection_eps:networkmultipointtomultipointconnection_eps = 6 [db_index = False, null = False, blank = False];
74}
75
76message BandwidthProfile (PlCoreBase){
77 option verbose_name = "Bandwidth Profile";
78
79 required int32 bwpcfgcbs = 1 [db_index = False, null = False, blank = False];
80 required int32 bwpcfgebs = 2 [db_index = False, null = False, blank = False];
81 required int32 bwpcfgcir = 3 [db_index = False, null = False, blank = False];
82 required int32 bwpcfgeir = 4 [db_index = False, null = False, blank = False];
83 required string name = 5 [db_index = False, max_length = 256, null = False, blank = False];
84}
85
86message RemotePort (PlCoreBase){
87 option verbose_name = "Remote Port";
88
89 required manytoone remoteportsite->Site:RemotePortSite = 1 [db_index = True, null = False, blank = False];
90 required manytoone edgeport->NetworkEdgePort:RemotePortEdgePort = 2 [db_index = True, null = False, blank = False];
91 required string name = 3 [db_index = False, max_length = 256, null = False, blank = False];
92}
93
94
95message ServiceSpoke (PlCoreBase){
96 option verbose_name = "Service Spoke";
97
98 required manytoone vnodlocalsite->Site:VnodLocalSite = 1 [db_index = True, null = False, blank = False];
99 required manytoone vnodlocalport->RemotePort:VnodLocalPort = 2 [db_index = True, null = False, blank = False];
100 required string name = 3 [db_index = False, max_length = 256, null = False, blank = False];
101 required string remotesubscriber = 4 [db_index = False, max_length = 256, null = False, blank = True];
102 required string remotevnodid = 5 [db_index = False, max_length = 256, null = False, blank = True];
103 required bool autoattached = 6 [default = False, null = False, db_index = False, blank = True];
104 required string operstate = 7 [default = "inactive", choices = "(('active', 'Active'), ('inactive', 'Inactive'))", max_length = 256, blank = False, null = False, db_index = False];
105 required string adminstate = 8 [default = "disabled", choices = "(('disabled', 'Disabled'), ('configured', 'Configured'), ('impaired', 'Impaired'), ('enabled', 'Enabled'))", max_length = 64, blank = False, null = False, db_index = False];
106}
107
108message VnodGlobalService (Service){
109 option verbose_name = "Virtual Network On Demand Global Service";
110
111 required string servicehandle = 1 [db_index = False, max_length = 64, null = False, blank = False];
112 required string vlanid = 2 [db_index = False, max_length = 64, null = False, blank = False];
113 required string type = 3 [blank = False, max_length = 256, null = False, db_index = False, choices = "(('eline', 'E-Line Service'), ('elan', 'E-LAN Service'), ('etree', 'E-Tree Service'))"];
114 optional manytoone metronetworkroottomultipoint->NetworkEdgeToMultipointConnection:EtreeService = 4 [db_index = True, null = True, blank = False];
115 optional manytoone metronetworkmultipoint->NetworkMultipointToMultipointConnection:ElanService = 5 [db_index = True, null = True, blank = False];
116 optional manytoone metronetworkpointtopoint->NetworkEdgeToEdgePointConnection:ElineService = 6 [db_index = True, null = True, blank = False];
117 required string operstate = 7 [blank = False, max_length = 256, null = False, db_index = False, choices = "(('active', 'Active'), ('inactive', 'Inactive'))"];
118 required string adminstate = 8 [default = "enabled", choices = "(('disabled', 'Disabled'), ('activationrequested', 'ActivationRequested'), ('enabled', 'Enabled'), ('invalid', 'Invalid'), ('deactivationrequested', 'DeactivationRequested'))", max_length = 256, blank = False, null = False, db_index = False];
119 required manytoone bandwidthProfile->BandwidthProfile:BandwidthProfile = 9 [db_index = True, null = False, blank = False];
120 required manytomany spokes->ServiceSpoke/VnodGlobalService_spokes:ServiceSpokes = 10 [db_index = False, null = False, blank = False];
121}
122
123message UserNetworkInterface (PlCoreBase){
124 option verbose_name = "User Network Interface";
125
126 required int32 enabled = 1 [db_index = False, null = False, blank = False];
127 required int32 capacity = 2 [db_index = False, null = False, blank = False];
128 required int32 bw_used = 3 [db_index = False, null = False, blank = False];
129 required string vlanIds = 4 [db_index = False, max_length = 256, null = False, blank = False];
130 required string location = 5 [db_index = False, max_length = 256, null = False, blank = True];
131 required string latlng = 6 [db_index = False, max_length = 50, null = False, blank = True];
132 required string name = 7 [db_index = False, max_length = 256, null = False, blank = False];
133}
134
135
136