FixedAccessInformationServiceAPI_Templates.ttcn 12.5 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
module FixedAccessInformationServiceAPI_Templates {
  
  // JSON
  import from JSON all;
  
  // LibCommon
  import from LibCommon_BasicTypesAndValues all;
  
  // LibMec_FixedAccessInformationServiceAPI
  import from FixedAccessInformationServiceAPI_TypesAndValues all;
  import from FixedAccessInformationServiceAPI_Pixits all;
  
  template (omit) FaInfo m_fa_info(
                                   in template (value) CpInfo p_customerPremisesInfo,
                                   in template (omit) TimeStamp p_timeStamp := omit,
                                   in template (omit) ConnectivityInfo p_connectivityInfo := omit
    ) := {
      timeStamp            := p_timeStamp,
      customerPremisesInfo := p_customerPremisesInfo,
      connectivityInfo     := p_connectivityInfo
    } // End of template m_fa_info
  
  template FaInfo mw_fa_info(
                             template (present) CpInfo p_customerPremisesInfo := ?,
                             template TimeStamp p_timeStamp := *,
                             template ConnectivityInfo p_connectivityInfo := *
    ) := {
      timeStamp            := p_timeStamp,
      customerPremisesInfo := p_customerPremisesInfo,
      connectivityInfo     := p_connectivityInfo
    } // End of template mw_fa_info
  
  template (omit) DeviceInfo m_device_info(
                                           in template (value) GatewayId p_gwId,
                                           in template (value) DeviceStatus p_deviceStatus,
                                           in template (value) JSON.Number p_upTime,
                                           in template (value) JSON.Number p_iPConnectionUpTime,
                                           in template (value) JSON.Number p_totalBytesSent,
                                           in template (value) JSON.Number p_totalBytesReceived,
                                           in template (value) JSON.Number p_totalPacketsSent,
                                           in template (value) JSON.Number p_totalPacketsReceived,
                                           in template (omit) TimeStamp p_timeStamp := omit,
                                           in template (omit) DeviceId p_deviceId := omit,
                                           in template (omit) IPPingDiagnostics p_iPPingDiagnostics := omit,
                                           in template (omit) TraceRouteDiagnostics p_traceRouteDiagnostics := omit,
                                           in template (omit) DownloadDiagnostics p_downloadDiagnostics := omit,
                                           in template (omit) UploadDiagnostics p_uploadDiagnostics := omit
    ) := {
      timeStamp             := p_timeStamp,
      gwId                  := p_gwId,
      deviceId              := p_deviceId,
      deviceStatus          := p_deviceStatus,
      upTime                := p_upTime,
      iPConnectionUpTime    := p_iPConnectionUpTime,
      totalBytesSent        := p_totalBytesSent,
      totalBytesReceived    := p_totalBytesReceived,
      totalPacketsSent      := p_totalPacketsSent,
      totalPacketsReceived  := p_totalPacketsReceived,
      iPPingDiagnostics     := p_iPPingDiagnostics,
      traceRouteDiagnostics := p_traceRouteDiagnostics,
      downloadDiagnostics   := p_downloadDiagnostics,
      uploadDiagnostics     := p_uploadDiagnostics
    } // End of template m_device_info
  
  template DeviceInfo mw_device_info(
                                     template (present) GatewayId p_gwId := ?,
                                     template (present) DeviceStatus p_deviceStatus := ?,
                                     template (present) JSON.Number p_upTime := ?,
                                     template (present) JSON.Number p_iPConnectionUpTime := ?,
                                     template (present) JSON.Number p_totalBytesSent := ?,
                                     template (present) JSON.Number p_totalBytesReceived := ?,
                                     template (present) JSON.Number p_totalPacketsSent := ?,
                                     template (present) JSON.Number p_totalPacketsReceived := ?,
                                     template TimeStamp p_timeStamp := *,
                                     template DeviceId p_deviceId := *,
                                     template IPPingDiagnostics p_iPPingDiagnostics := *,
                                     template TraceRouteDiagnostics p_traceRouteDiagnostics := *,
                                     template DownloadDiagnostics p_downloadDiagnostics := *,
                                     template UploadDiagnostics p_uploadDiagnostics := *
    ) := {
      timeStamp             := p_timeStamp,
      gwId                  := p_gwId,
      deviceId              := p_deviceId,
      deviceStatus          := p_deviceStatus,
      upTime                := p_upTime,
      iPConnectionUpTime    := p_iPConnectionUpTime,
      totalBytesSent        := p_totalBytesSent,
      totalBytesReceived    := p_totalBytesReceived,
      totalPacketsSent      := p_totalPacketsSent,
      totalPacketsReceived  := p_totalPacketsReceived,
      iPPingDiagnostics     := p_iPPingDiagnostics,
      traceRouteDiagnostics := p_traceRouteDiagnostics,
      downloadDiagnostics   := p_downloadDiagnostics,
      uploadDiagnostics     := p_uploadDiagnostics
    } // End of template mw_device_info
  
  template (omit) CableLineInfo m_cable_line_info(
                                                  in template (value) CpInfo p_customerPremisesInfo,
                                                  in template (value) CmdInfo p_cmdInfo,
                                                  in template (omit) TimeStamp p_timeStamp := omit
                                                  ) := {
    timeStamp            := p_timeStamp,
    customerPremisesInfo := p_customerPremisesInfo,
    cmdInfo              := p_cmdInfo
  } // End of template m_cable_line_info
  
  template CableLineInfo mw_cable_line_info(
                                            template (present) CpInfo p_customerPremisesInfo := ?,
                                            template (present) CmdInfo p_cmdInfo := ?,
                                            template TimeStamp p_timeStamp := *
                                            ) := {
    timeStamp            := p_timeStamp,
    customerPremisesInfo := p_customerPremisesInfo,
    cmdInfo              := p_cmdInfo
  } // End of template mw_cable_line_info
  
  template (omit) PonInfo m_pon_info(
                                     in template (value) CpInfo p_customerPremisesInfo,
                                     in template (value) PonSYS_ID p_ponSYS_ID,
                                     in template (value) OpticalNetworkInfo p_opticalNetworkInfo,
                                     in template (omit) TimeStamp p_timeStamp := omit
  ) := {
    timeStamp            := p_timeStamp,
    customerPremisesInfo := p_customerPremisesInfo,
    ponSYS_ID            := p_ponSYS_ID,
    opticalNetworkInfo   := p_opticalNetworkInfo
  } // End of template m_pon_info
  
  template PonInfo mw_pon_info(
                               template (present) CpInfo p_customerPremisesInfo := ?,
                               template (present) PonSYS_ID p_ponSYS_ID := ?,
                               template (present) OpticalNetworkInfo p_opticalNetworkInfo := ?,
                               template TimeStamp p_timeStamp := *
  ) := {
    timeStamp            := p_timeStamp,
    customerPremisesInfo := p_customerPremisesInfo,
    ponSYS_ID            := p_ponSYS_ID,
    opticalNetworkInfo   := p_opticalNetworkInfo
  } // End of template mw_pon_info
  
  template (omit) SubscriptionLinkList m_subscription_link_list(
                                                                in template (value) Links p_links,
                                                                in template (omit) Subscriptions p_subscription := omit
  ) := {
    links        := p_links,
    subscription := p_subscription
  } // End of template m_subscription_link_list
  
  template SubscriptionLinkList mw_subscription_link_list(
                                                          template (present) Links p_links := ?,
                                                          template Subscriptions p_subscription := *
  ) := {
    links        := p_links,
    subscription := p_subscription
  } // End of template m_wsubscription_link_list
  
  template (omit) OnuAlarmSubscription m_onu_alarm_subscription(
                                                                in template (value) JSON.AnyURI p_callbackReference,
                                                                in template (value) FilterCriteriaOnuAlarm p_filterCriteriaOnuAlarm,
                                                                in template (omit) Links p_links := omit,
                                                                in template (omit) TimeStamp p_expiryDeadline := omit
  ) := {
    subscriptionType       := "OnuAlarmSubscription",
    callbackReference      := p_callbackReference,
    links                  := p_links,
    filterCriteriaOnuAlarm := p_filterCriteriaOnuAlarm,
    expiryDeadline         := p_expiryDeadline
  } // End of template m_onu_alarm_subscription
  
  template (omit) OnuAlarmSubscription m_onu_alarm_subscription_bad_request(
                                                                            in template (value) JSON.AnyURI p_callbackReference,
                                                                            in template (value) FilterCriteriaOnuAlarm p_filterCriteriaOnuAlarm,
                                                                            in template (omit) Links p_links := omit,
                                                                            in template (omit) TimeStamp p_expiryDeadline := omit
  ) modifies m_onu_alarm_subscription := {
    subscriptionType       := "BadSubscriptionType"
  } // End of template m_onu_alarm_subscription_bad_request
  
  template OnuAlarmSubscription mw_onu_alarm_subscription(
                                                          template (present) JSON.AnyURI p_callbackReference := ?,
                                                          template (present) FilterCriteriaOnuAlarm p_filterCriteriaOnuAlarm := ?,
                                                          template Links p_links := *,
                                                          template TimeStamp p_expiryDeadline := *
  ) := {
    subscriptionType       := "OnuAlarmSubscription",
    callbackReference      := p_callbackReference,
    links                  := p_links,
    filterCriteriaOnuAlarm := p_filterCriteriaOnuAlarm,
    expiryDeadline         := p_expiryDeadline
  } // End of template mw_onu_alarm_subscription
  
  template (omit) FilterCriteriaOnuAlarm m_filter_criteria_onu_alarm(
                                                                     in template (value) OnuIds p_onuId := { PX_FAI_ONU_ID },
                                                                     in template (omit) CpInfo p_customerPremisesIxnfo := omit,
                                                                     in template (omit) Alarms p_alarms := omit
  ) := {
    customerPremisesInfo := p_customerPremisesIxnfo,
    onuId                := p_onuId,
    alarms               := p_alarms
  } // End of template m_filter_criteria_onu_alarm
  
  template FilterCriteriaOnuAlarm mw_filter_criteria_onu_alarm(
                                                               template (present) OnuIds p_onuId := ?,
                                                               template CpInfo p_customerPremisesIxnfo := *,
                                                               template Alarms p_alarms := *
  ) := {
    customerPremisesInfo := p_customerPremisesIxnfo,
    onuId                := p_onuId,
    alarms               := p_alarms
  } // End of template mw_filter_criteria_onu_alarm
  
  template (value) TimeStamp m_time_stamp(
                                          in UInt32 p_seconds,
                                          in UInt32 p_nanoSeconds := 0
  ) := {
    seconds     := p_seconds,
    nanoSeconds := p_nanoSeconds
  } // End of temlate m_time_stamp
  
  template (present) TimeStamp mw_time_stamp(
                                             template (present) UInt32 p_seconds := ?,
                                             template (present) UInt32 p_nanoSeconds := ?
  ) := {
    seconds     := p_seconds,
    nanoSeconds := p_nanoSeconds
  } // End of temlate mw_time_stamp
  
} // End of module FixedAccessInformationServiceAPI_Templates