blob: eaf549802dcf47f55ce637081f909ab4b57bb316 [file] [log] [blame]
Sapan Bhatiaf3699482017-05-02 21:20:31 +02001option name = "metronetwork";
Matteo Scandolo8a5c7f62017-09-07 09:47:43 -07002option app_label = "metronetwork";
Sapan Bhatiaf3699482017-05-02 21:20:31 +02003
Max Chua1109432017-07-11 13:15:04 -07004message MetroNetworkSystem (XOSBase){
Sapan Bhatiaf3699482017-05-02 21:20:31 +02005 option verbose_name = "Metro Network System";
6
7 required string name = 1 [db_index = False, max_length = 256, null = False, blank = False];
8 required string description = 2 [db_index = False, max_length = 1024, null = False, blank = False];
9 required string restUrl = 3 [db_index = False, max_length = 256, null = False, blank = False];
10 required string administrativeState = 4 [default = "disabled", choices = "(('enabled', 'Enabled'), ('disabled', 'Disabled'))", max_length = 16, blank = False, null = False, db_index = False];
11 required string operationalState = 5 [blank = False, max_length = 256, null = False, db_index = False, choices = "(('active', 'Active'), ('inactive', 'Inactive'))"];
12}
13
Max Chua1109432017-07-11 13:15:04 -070014message NetworkDevice (XOSBase){
Sapan Bhatiaf3699482017-05-02 21:20:31 +020015 option verbose_name = "Network Device";
16
17 optional string name = 1 [help_text = "Device friendly name", max_length = 20, null = True, db_index = False, blank = True];
18 required string restCtrlUrl = 2 [db_index = False, max_length = 256, null = False, blank = False];
19 required string authType = 3 [blank = False, max_length = 16, null = False, db_index = False, choices = "(('basic', 'Basic'), ('key', 'Key'), ('oauth', 'OAuth'))"];
20 required string username = 4 [db_index = False, max_length = 32, null = False, blank = True];
21 required string password = 5 [db_index = False, max_length = 32, null = False, blank = True];
22 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];
23}
24
Max Chua1109432017-07-11 13:15:04 -070025message NetworkEdgePort (XOSBase){
Sapan Bhatiaf3699482017-05-02 21:20:31 +020026 option verbose_name = "Network Edge Port";
27
28 required manytoone element->NetworkDevice:networkedgeport = 1 [db_index = True, null = False, blank = False];
29 required string pid = 2 [db_index = False, max_length = 256, null = False, blank = False];
30 required int32 bwpCfgCbs = 3 [db_index = False, null = False, blank = True];
31 required int32 bwpCfgEbs = 4 [db_index = False, null = False, blank = True];
32 required int32 bwpCfgCir = 5 [db_index = False, null = False, blank = True];
33 required int32 bwpCfgEir = 6 [db_index = False, null = False, blank = True];
34 required string name = 7 [db_index = False, max_length = 256, null = False, blank = True];
35 required string location = 8 [db_index = False, max_length = 256, null = False, blank = True];
36 required string latlng = 9 [db_index = False, max_length = 50, null = False, blank = True];
37}
38
39
40message NetworkEdgeToEdgePointConnection (Service){
41 option verbose_name = "E-Line Service";
42
43 required string sid = 1 [db_index = False, max_length = 256, null = False, blank = True];
44 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'))"];
45 required string vlanid = 3 [db_index = False, max_length = 64, null = False, blank = False];
46 required manytoone uni1->NetworkEdgePort:EdgePointToEdgePointSrc = 4 [db_index = True, null = False, blank = False];
47 required manytoone uni2->NetworkEdgePort:EdgePointToEdgePointDst = 5 [db_index = True, null = False, blank = False];
48 required string operstate = 6 [blank = False, max_length = 256, null = False, db_index = False, choices = "(('active', 'Active'), ('inactive', 'Inactive'))"];
49 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'))"];
50}
51
52
53message NetworkEdgeToMultipointConnection (Service){
54 option verbose_name = "E-Line Service";
55
56 required string sid = 1 [db_index = False, max_length = 256, null = False, blank = True];
57 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'))"];
58 required string vlanid = 3 [db_index = False, max_length = 64, null = False, blank = False];
59 required manytoone root->NetworkEdgePort:EdgeToMultipointRoot = 4 [db_index = True, null = False, blank = False];
60 required string operstate = 5 [blank = False, max_length = 256, null = False, db_index = False, choices = "(('active', 'Active'), ('inactive', 'Inactive'))"];
61 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'))"];
62 required manytomany eps->NetworkEdgePort/NetworkMultipointToMultipointConnection_eps:networkedgetomultipointconnection_eps = 7 [db_index = False, null = False, blank = False];
63}
64
65
66message NetworkMultipointToMultipointConnection (Service){
67 option verbose_name = "E-LAN Service";
68
69 required string sid = 1 [db_index = False, max_length = 256, null = False, blank = True];
70 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'))"];
71 required string vlanid = 3 [db_index = False, max_length = 64, null = False, blank = False];
72 required string operstate = 4 [blank = False, max_length = 256, null = False, db_index = False, choices = "(('active', 'Active'), ('inactive', 'Inactive'))"];
73 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'))"];
74 required manytomany eps->NetworkEdgePort/NetworkMultipointToMultipointConnection_eps:networkmultipointtomultipointconnection_eps = 6 [db_index = False, null = False, blank = False];
75}
76
Max Chua1109432017-07-11 13:15:04 -070077message BandwidthProfile (XOSBase){
Sapan Bhatiaf3699482017-05-02 21:20:31 +020078 option verbose_name = "Bandwidth Profile";
79
80 required int32 bwpcfgcbs = 1 [db_index = False, null = False, blank = False];
81 required int32 bwpcfgebs = 2 [db_index = False, null = False, blank = False];
82 required int32 bwpcfgcir = 3 [db_index = False, null = False, blank = False];
83 required int32 bwpcfgeir = 4 [db_index = False, null = False, blank = False];
84 required string name = 5 [db_index = False, max_length = 256, null = False, blank = False];
85}
86
Max Chua1109432017-07-11 13:15:04 -070087message RemotePort (XOSBase){
Sapan Bhatiaf3699482017-05-02 21:20:31 +020088 option verbose_name = "Remote Port";
89
90 required manytoone remoteportsite->Site:RemotePortSite = 1 [db_index = True, null = False, blank = False];
91 required manytoone edgeport->NetworkEdgePort:RemotePortEdgePort = 2 [db_index = True, null = False, blank = False];
92 required string name = 3 [db_index = False, max_length = 256, null = False, blank = False];
93}
94
95
Max Chua1109432017-07-11 13:15:04 -070096message ServiceSpoke (XOSBase){
Sapan Bhatiaf3699482017-05-02 21:20:31 +020097 option verbose_name = "Service Spoke";
98
99 required manytoone vnodlocalsite->Site:VnodLocalSite = 1 [db_index = True, null = False, blank = False];
100 required manytoone vnodlocalport->RemotePort:VnodLocalPort = 2 [db_index = True, null = False, blank = False];
101 required string name = 3 [db_index = False, max_length = 256, null = False, blank = False];
102 required string remotesubscriber = 4 [db_index = False, max_length = 256, null = False, blank = True];
103 required string remotevnodid = 5 [db_index = False, max_length = 256, null = False, blank = True];
104 required bool autoattached = 6 [default = False, null = False, db_index = False, blank = True];
105 required string operstate = 7 [default = "inactive", choices = "(('active', 'Active'), ('inactive', 'Inactive'))", max_length = 256, blank = False, null = False, db_index = False];
106 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];
107}
108
109message VnodGlobalService (Service){
110 option verbose_name = "Virtual Network On Demand Global Service";
111
112 required string servicehandle = 1 [db_index = False, max_length = 64, null = False, blank = False];
113 required string vlanid = 2 [db_index = False, max_length = 64, null = False, blank = False];
114 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'))"];
115 optional manytoone metronetworkroottomultipoint->NetworkEdgeToMultipointConnection:EtreeService = 4 [db_index = True, null = True, blank = False];
116 optional manytoone metronetworkmultipoint->NetworkMultipointToMultipointConnection:ElanService = 5 [db_index = True, null = True, blank = False];
117 optional manytoone metronetworkpointtopoint->NetworkEdgeToEdgePointConnection:ElineService = 6 [db_index = True, null = True, blank = False];
118 required string operstate = 7 [blank = False, max_length = 256, null = False, db_index = False, choices = "(('active', 'Active'), ('inactive', 'Inactive'))"];
119 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];
120 required manytoone bandwidthProfile->BandwidthProfile:BandwidthProfile = 9 [db_index = True, null = False, blank = False];
121 required manytomany spokes->ServiceSpoke/VnodGlobalService_spokes:ServiceSpokes = 10 [db_index = False, null = False, blank = False];
122}
123
Max Chua1109432017-07-11 13:15:04 -0700124message UserNetworkInterface (XOSBase){
Sapan Bhatiaf3699482017-05-02 21:20:31 +0200125 option verbose_name = "User Network Interface";
126
127 required int32 enabled = 1 [db_index = False, null = False, blank = False];
128 required int32 capacity = 2 [db_index = False, null = False, blank = False];
129 required int32 bw_used = 3 [db_index = False, null = False, blank = False];
130 required string vlanIds = 4 [db_index = False, max_length = 256, null = False, blank = False];
131 required string location = 5 [db_index = False, max_length = 256, null = False, blank = True];
132 required string latlng = 6 [db_index = False, max_length = 50, null = False, blank = True];
133 required string name = 7 [db_index = False, max_length = 256, null = False, blank = False];
134}
135
136
137