TrafficManagementAPI_Templates.ttcn 10.5 KB
Newer Older
module TrafficManagementAPI_Templates {
YannGarcia's avatar
YannGarcia committed
  
  // JSON
  import from JSON all;
  
  // LibCommon
  import from LibCommon_BasicTypesAndValues all;

  // LibMec/TrafficManagementAPI
  import from TrafficManagementAPI_TypesAndValues all;
  import from TrafficManagementAPI_Pixits all;
YannGarcia's avatar
YannGarcia committed
  template (omit) BwInfo m_bw_info(
                                   in AppInsId p_appInsId := PX_APP_INSTANCE_ID,
                                   in BwRequestType p_requestType,
                                   in FixedAllocation p_fixedAllocation,
                                   in AllocationDirection p_allocationDirection,
                                   in template (omit) SessionFilter p_sessionFilter := omit,
                                   in template (omit) FixedBWPriority p_fixedBWPriority := omit
                                   ) := {
YannGarcia's avatar
YannGarcia committed
    timeStamp           := omit,
    appInsId            := p_appInsId,
    requestType         := p_requestType,
YannGarcia's avatar
YannGarcia committed
    sessionFilter       := p_sessionFilter,
    fixedBWPriority     := p_fixedBWPriority,
YannGarcia's avatar
YannGarcia committed
    fixedAllocation     := p_fixedAllocation,
    allocationDirection := p_allocationDirection
  } // End of template m_bw_info

YannGarcia's avatar
YannGarcia committed
  template BwInfo mw_bw_info(
                             template (present) AppInsId p_appInsId := ?,
                             template (present) BwRequestType p_requestType := ?,
                             template (present) FixedAllocation p_fixedAllocation := ?,
                             template (present) AllocationDirection p_allocationDirection := ?,
                             template SessionFilter p_sessionFilter := *,
                             template FixedBWPriority p_fixedBWPriority := *
                             ) := {
YannGarcia's avatar
YannGarcia committed
    timeStamp           := *,
    appInsId            := p_appInsId,
    requestType         := p_requestType,
YannGarcia's avatar
YannGarcia committed
    sessionFilter       := p_sessionFilter,
YannGarcia's avatar
YannGarcia committed
    fixedBWPriority     := p_fixedBWPriority,
    fixedAllocation     := p_fixedAllocation,
    allocationDirection := p_allocationDirection
  } // End of template mw_bw_info

YannGarcia's avatar
YannGarcia committed
  template (omit) BwInfoDeltas m_bw_info_deltas(
                                                in AppInsId p_appInsId := PX_APP_INSTANCE_ID,
YannGarcia's avatar
YannGarcia committed
                                                in BwRequestType p_requestType,
                                                in template (omit) SessionFilter p_sessionFilter := omit,
                                                in template (omit) FixedAllocation p_fixedAllocation := omit,
                                                in template (omit) AllocationDirection p_allocationDirection := omit,
                                                in template (omit) FixedBWPriority p_fixedBWPriority := omit
YannGarcia's avatar
YannGarcia committed
                                                ) := {
    appInsId            := p_appInsId,
    requestType         := p_requestType,
    sessionFilter       := p_sessionFilter,
    fixedBWPriority     := p_fixedBWPriority,
    fixedAllocation     := p_fixedAllocation,
    allocationDirection := p_allocationDirection
YannGarcia's avatar
YannGarcia committed
  } // End of template m_bw_info_deltas
YannGarcia's avatar
YannGarcia committed
  template BwInfoDeltas mw_bw_info_deltas(
                                          template (present) AppInsId p_appInsId := ?,
                                          template (present) BwRequestType p_requestType := ?,
                                          template (present) SessionFilter p_sessionFilter := ?,
                                          template (present) FixedAllocation p_fixedAllocation := ?,
                                          template (present) AllocationDirection p_allocationDirection := ?,
                                          template FixedBWPriority p_fixedBWPriority := *
                                          ) := {
YannGarcia's avatar
YannGarcia committed
    appInsId            := p_appInsId,
    requestType         := p_requestType,
    sessionFilter       := p_sessionFilter,
    fixedBWPriority     := p_fixedBWPriority,
    fixedAllocation     := p_fixedAllocation,
    allocationDirection := p_allocationDirection
YannGarcia's avatar
YannGarcia committed
  } // End of template mw_bw_info_deltas

  template (omit) SessionFilterItems m_session_filter(
                                                      in template (value) SourceIp p_sourceIp,
                                                      in template (value) SourcePort p_sourcePort,
                                                      in template (omit) DstAddress p_dstAddress := omit,
                                                      in template (omit) DstPort p_dstPort := omit,
                                                      in template (omit) Protocol p_protocol := omit
                                                      ) := {
    sourceIp   := p_sourceIp,
    sourcePort := p_sourcePort,
    dstAddress := p_dstAddress,
    dstPort    := p_dstPort,
    protocol   := p_protocol
  } // End of template m_session_filter

  template SessionFilterItems mw_session_filter(
                                                template (present) SourceIp p_sourceIp := ?,
                                                template (present) SourcePort p_sourcePort := ?,
                                                template DstAddress p_dstAddress := *,
                                                template DstPort p_dstPort := *,
                                                template Protocol p_protocol := *
                                                ) := {
    sourceIp   := p_sourceIp,
    sourcePort := p_sourcePort,
    dstAddress := p_dstAddress,
    dstPort    := p_dstPort,
    protocol   := p_protocol
  } // End of template mw_session_filter

  template (omit) MtsCapabilityInfo m_mts_capability_info(
                                                          in template (value) MtsAccessInfos p_mtsAccessInfo,
                                                          in template (value) MtsModes p_mtsMode,
                                                          in template (omit) TimeStamp p_timeStamp := omit
                                                          ) := {
    timeStamp     := p_timeStamp,
    mtsAccessInfo := p_mtsAccessInfo,
    mtsMode       := p_mtsMode
  } // End of template m_mts_capability_info

  template MtsCapabilityInfo mw_mts_capability_info(
                                                    template (present) MtsAccessInfos p_mtsAccessInfo := ?,
                                                    template (present) MtsModes p_mtsMode := ?,
                                                    template TimeStamp p_timeStamp := *
                                                    ) := {
    timeStamp     := p_timeStamp,
    mtsAccessInfo := p_mtsAccessInfo,
    mtsMode       := p_mtsMode
  } // End of template mw_mts_capability_info

  template (omit) MtsSessionInfo m_mts_session_info(
                                                    in template (value) AppInsId p_appInsId,
                                                    in template (value) MtsRequestType p_requestType,
                                                    in template (value) QosD p_qosD,
                                                    in template (value) MtsMode p_mtsMode,
                                                    in template (value) TrafficDirection p_trafficDirection,
                                                    in template (omit) FlowFilter p_flowFilter := omit,
                                                    in template (omit) TimeStamp p_timeStamp := omit
                                                    ) := {
    timeStamp        := p_timeStamp,
    appInsId         := p_appInsId,
    requestType      := p_requestType,
    flowFilter       := p_flowFilter,
    qosD             := p_qosD,
    mtsMode          := p_mtsMode,
    trafficDirection := p_trafficDirection
  } // End of template m_mts_session_info
  
  template MtsSessionInfo mw_mts_session_info(
                                              template (present) AppInsId p_appInsId := ?,
                                              template (present) MtsRequestType p_requestType := ?,
                                              template (present) QosD p_qosD := ?,
                                              template (present) MtsMode p_mtsMode := ?,
                                              template (present) TrafficDirection p_trafficDirection := ?,
                                              template FlowFilter p_flowFilter := *,
                                              template TimeStamp p_timeStamp := *
                                              ) := {
    timeStamp        := p_timeStamp,
    appInsId         := p_appInsId,
    requestType      := p_requestType,
    flowFilter       := p_flowFilter,
    qosD             := p_qosD,
    mtsMode          := p_mtsMode,
    trafficDirection := p_trafficDirection
  } // End of template mw_mts_session_info

  template (value) QosD m_qosd(
                               in UInt32 p_minTpt := 128,
                               in UInt32 p_maxLatency := 128,
                               in UInt32 p_maxLoss := 128,
                               in UInt32 p_maxJitter := 128,
                               in Priority p_priority := Low
                               ) := {
    minTpt     := p_minTpt,
    maxLatency := p_maxLatency,
    maxLoss    := p_maxLoss,
    maxJitter  := p_maxJitter,
    priority   := p_priority
  } // End of template m_qosd

  template (value) QosD m_qosd_1(
                                 in UInt32 p_minTpt := 64,
                                 in UInt32 p_maxLatency := 64
                                 ) := {
    minTpt     := p_minTpt,
    maxLatency := p_maxLatency,
    maxLoss    := omit,
    maxJitter  := omit,
    priority   := omit
  } // End of template m_qosd_1

  template QosD mw_qosd(
                        template UInt32 p_minTpt := *,
                        template UInt32 p_maxLatency := *,
                        template UInt32 p_maxLoss := *,
                        template UInt32 p_maxJitter := *,
                        template Priority p_priority := *
                        ) := {
    minTpt     := p_minTpt,
    maxLatency := p_maxLatency,
    maxLoss    := p_maxLoss,
    maxJitter  := p_maxJitter,
    priority   := p_priority
  } // End of template mw_qosd

  template QosD mw_qosd_1(
                          template UInt32 p_minTpt := ?,
                          template UInt32 p_maxLatency := ?
                        ) := {
    minTpt     := p_minTpt,
    maxLatency := p_maxLatency,
    maxLoss    := omit,
    maxJitter  := omit,
    priority   := omit
  } // End of template mw_qos1
YannGarcia's avatar
YannGarcia committed
} // End of module TrafficManagementAPI_Templates