Commit 0fb5ac93 authored by YannGarcia's avatar YannGarcia
Browse files

Continue implementing MEC-10-2 V2.2.1 with MEX-LCM

parent 266814b4
Loading
Loading
Loading
Loading
+1662 −111

File changed.

Preview size limit exceeded, changes collapsed.

+5 −1
Original line number Diff line number Diff line
@@ -8,7 +8,9 @@ module ApplicationPackageLifecycleAndOperationGrantingAPI_Pixits {

  modulepar JSON.String PX_APP_INSTANCE_ID := "5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1a";
  
  modulepar JSON.String PX_APP_ID := "5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1b";
  modulepar JSON.String PX_NON_EXISTING_APP_INSTANCE_ID := "5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1b";
  
  modulepar JSON.String PX_APP_ID := "5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1c";
  
  modulepar OperationType PX_APP_OPERATION := INSTANTIATE;

@@ -40,6 +42,8 @@ module ApplicationPackageLifecycleAndOperationGrantingAPI_Pixits {
  
  modulepar JSON.String PX_NON_EXISTENT_APP_PKG_ID := "NON_EXISTENT_APP_PKG_ID"
  
  modulepar JSON.String PX_NON_EXISTENT_ON_BOARDED_APP_PKG_ID := "NON_ON_BOARDED_EXISTENT_APP_PKG_ID"
  
  modulepar JSON.AnyURI PX_CALLBACK_URI := "http://127.0.0.1/callback"
  
  modulepar JSON.String PX_SUBSCRIPTION_ID := "e0deee2b-6e50-4f33-ab09-8bf0585025d3"
+229 −11
Original line number Diff line number Diff line
@@ -3,6 +3,12 @@ module ApplicationPackageLifecycleAndOperationGrantingAPI_Templates {
  // JSON
  import from JSON all;

  // LibMec_EdgePlatformApplicationEnablementAPI
  import from EdgePlatformApplicationEnablementAPI_TypesAndValues all;

  // LibMec_ApplicationMobilityServiceAPI
  import from ApplicationMobilityServiceAPI_TypesAndValues all;

  // LibMec_ApplicationPackageLifecycleAndOperationGrantingAPI
  import from ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues all;
  import from ApplicationPackageLifecycleAndOperationGrantingAPI_Pixits all;
@@ -68,28 +74,28 @@ module ApplicationPackageLifecycleAndOperationGrantingAPI_Templates {
    } // End of template mw_grant
    
    template (value) GrantRequest_Link m_grant_request_link(
                                                            in template (value) LinkType p_appLcmOpOcc,
                                                            in template (value) LinkType p_appInstance
                                                            in template (value) ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues.LinkType p_appLcmOpOcc,
                                                            in template (value) ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues.LinkType p_appInstance
                                                            ) := {
      appLcmOpOcc := p_appLcmOpOcc,
      appInstance := p_appInstance
    } // End of template m_grant_request_link
    
    template (present) GrantRequest_Link mw_grant_request_link(
                                                               template (present) LinkType p_appLcmOpOcc := ?,
                                                               template (present) LinkType p_appInstance := ?
                                                               template (present) ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues.LinkType p_appLcmOpOcc := ?,
                                                               template (present) ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues.LinkType p_appInstance := ?
                                                               ) := {
      appLcmOpOcc := p_appLcmOpOcc,
      appInstance := p_appInstance
    } // End of template mw_grant_request_link
    
    template (value) LinkType m_link_type(
    template (value) ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues.LinkType m_link_type(
                                                                                                            in template (value) JSON.AnyURI p_href
                                                                                                            ) := {
        href := p_href
    } // End of template m_link_type
    
    template (present) LinkType mw_link_type(
    template (present) ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues.LinkType mw_link_type(
                                                                                                               template (present) JSON.AnyURI p_href := ?
                                                                                                               ) := {
        href := p_href
@@ -226,7 +232,7 @@ module ApplicationPackageLifecycleAndOperationGrantingAPI_Templates {
                                                                  template (present) JSON.String p_id := ?,
                                                                  template (present) JSON.String p_notificationType := ?,
                                                                  template (present) JSON.String p_subscriptionId := ?,
                                                                  template (present) TimeStamp p_timeStamp := ?,
                                                                  template (present) ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues.TimeStamp p_timeStamp := ?,
                                                                  template (present) JSON.String p_appPkgId := ?,
                                                                  template (present) JSON.String p_appDId := ?,
                                                                  template (present) AppPkgInfo_OperationalState p_operationalState := ?,
@@ -256,4 +262,216 @@ module ApplicationPackageLifecycleAndOperationGrantingAPI_Templates {
    
  } // End of group pkgmgt
  
  group mepm_lifcyclemgt {
    
    template (omit) ConfigPlatformForAppRequest m_config_platform_for_app_request(
                                                                                  in template (value) ServiceDependency p_appServiceRequired,
                                                                                  in template (omit) ServiceDependency p_appServiceOptional := omit,
                                                                                  in template (omit) ServiceDependency p_appServiceProduced := omit,
                                                                                  in template (omit) FeatureDependency p_appFeatureRequired := omit,
                                                                                  in template (omit) FeatureDependency p_appFeatureOptional := omit,
                                                                                  in template (omit)  TransportDependency p_transportDependencies := omit,
                                                                                  in template (omit) TrafficRuleDescriptor p_appTrafficRule := omit,
                                                                                  in template (omit) DNSRuleDescriptor p_appDNSRule := omit,
                                                                                  in template (omit) LatencyDescriptor p_appLatency := omit,
                                                                                  in template (omit) UserContextTransferCapability p_userContextTransferCapability := omit,
                                                                                  in template (omit) AppNetworkPolicy p_appNetworkPolicy := omit
                                                                                  ) := {
      appServiceRequired            := p_appServiceRequired,
      appServiceOptional            := p_appServiceOptional,
      appServiceProduced            := p_appServiceProduced,
      appFeatureRequired            := p_appFeatureRequired,
      appFeatureOptional            := p_appFeatureOptional,
      transportDependencies         := p_transportDependencies,
      appTrafficRule                := p_appTrafficRule,
      appDNSRule                    := p_appDNSRule,
      appLatency                    := p_appLatency,
      userContextTransferCapability := p_userContextTransferCapability,
      appNetworkPolicy              := p_appNetworkPolicy
    } // End of template m_config_platform_for_app_request
    
    template (present) ConfigPlatformForAppRequest mw_config_platform_for_app_request(
                                                                                      template (present) ServiceDependency p_appServiceRequired := ?,
                                                                                      template ServiceDependency p_appServiceOptional := *,
                                                                                      template ServiceDependency p_appServiceProduced := *,
                                                                                      template FeatureDependency p_appFeatureRequired := *,
                                                                                      template FeatureDependency p_appFeatureOptional := *,
                                                                                      template TransportDependency p_transportDependencies := *,
                                                                                      template TrafficRuleDescriptor p_appTrafficRule := *,
                                                                                      template DNSRuleDescriptor p_appDNSRule := *,
                                                                                      template LatencyDescriptor p_appLatency := *,
                                                                                      template UserContextTransferCapability p_userContextTransferCapability := *,
                                                                                      template AppNetworkPolicy p_appNetworkPolicy := *
                                                                                      ) := {
      appServiceRequired            := p_appServiceRequired,
      appServiceOptional            := p_appServiceOptional,
      appServiceProduced            := p_appServiceProduced,
      appFeatureRequired            := p_appFeatureRequired,
      appFeatureOptional            := p_appFeatureOptional,
      transportDependencies         := p_transportDependencies,
      appTrafficRule                := p_appTrafficRule,
      appDNSRule                    := p_appDNSRule,
      appLatency                    := p_appLatency,
      userContextTransferCapability := p_userContextTransferCapability,
      appNetworkPolicy              := p_appNetworkPolicy
    } // End of template mw_config_platform_for_app_request
    
    template (omit) ServiceDependency m_service_dependency(
                                                           in JSON.String p_serName,
                                                           in JSON.String p_version,
                                                           in template (omit) CategoryRef p_serCategory := omit,
                                                           in template (omit) TransportDependency p_serTransportDependencies := omit,
                                                           in template (omit) JSON.String p_requestedPermissions := omit
                                                           ) := {
      serName                  := p_serName,
      serCategory              := p_serCategory,
      version                  := p_version,
      serTransportDependencies := p_serTransportDependencies,
      requestedPermissions     := p_requestedPermissions
    } // End of template m_service_dependency
    
    template (present) ServiceDependency mw_service_dependency(
                                                               template (present) JSON.String p_serName := ?,
                                                               template (present) JSON.String p_version := ?,
                                                               template CategoryRef p_serCategory := *,
                                                               template TransportDependency p_serTransportDependencies := *,
                                                               template JSON.String p_requestedPermissions := *
                                                               ) := {
      serName                  := p_serName,
      serCategory              := p_serCategory,
      version                  := p_version,
      serTransportDependencies := p_serTransportDependencies,
      requestedPermissions     := p_requestedPermissions
    } // End of template mw_service_dependency
    
  } // End of group mepm_lifcyclemgt
  
  group mex_lifcyclemgt {
    
    template (omit) CreateAppInstanceRequest m_create_app_instance_request(
                                                                           in JSON.String p_appDId,
                                                                           in template (omit) JSON.String p_appInstanceName  := omit,
                                                                           in template (omit) JSON.String p_appInstanceDescription  := omit,
                                                                           in template (omit) MepInformation p_appPlacementInfo := omit
    ) := {
      appDId                 := p_appDId,
      appInstanceName        := p_appInstanceName,
      appInstanceDescription := p_appInstanceDescription,
      appPlacementInfo       := p_appPlacementInfo
    } // End of template m_create_app_instance_request
    
    template (present) CreateAppInstanceRequest mw_create_app_instance_request(
                                                                               template (present) JSON.String p_appDId := ?,
                                                                               template JSON.String p_appInstanceName  := *,
                                                                               template JSON.String p_appInstanceDescription  := *,
                                                                               template MepInformation p_appPlacementInfo := *
    ) := {
      appDId                 := p_appDId,
      appInstanceName        := p_appInstanceName,
      appInstanceDescription := p_appInstanceDescription,
      appPlacementInfo       := p_appPlacementInfo
    } // End of template mw_create_app_instance_request
    
    template (omit) AppInstanceInfo m_app_instance_info(
                                                        in JSON.String p_id,
                                                        in JSON.String p_appDId,
                                                        in JSON.String p_appProvider,
                                                        in JSON.String p_appName,
                                                        in JSON.String p_appSoftVersion,
                                                        in JSON.String p_appDVersion,
                                                        in InstantiationState p_instantiationState,
                                                        in JSON.String p_appPkgId,
                                                        in template (value) Link p_links,
                                                        in template (omit) JSON.String p_appInstanceName := omit,
                                                        in template (omit) JSON.String p_appInstanceDescription := omit,
                                                        in template (omit) VimConnectionInfo p_vimConnectionInfo := omit,
                                                        in template (omit) JSON.String p_nsInstanceId := omit,
                                                        in template (omit) JSON.String p_vnfInstanceId := omit,
                                                        in template (omit) InstantiatedAppState p_instantiatedAppState := omit,
                                                        in template (omit) CommunicationInterface p_communicationInterface := omit
    ) := {
      id                     := p_id,
      appInstanceName        := p_appInstanceName,
      appInstanceDescription := p_appInstanceDescription,
      appDId                 := p_appDId,
      appProvider            := p_appProvider,
      appName                := p_appName,
      appSoftVersion         := p_appSoftVersion,
      appDVersion            := p_appDVersion,
      appPkgId               := p_appPkgId,
      vimConnectionInfo      := p_vimConnectionInfo,
      nsInstanceId           := p_nsInstanceId,
      vnfInstanceId          := p_vnfInstanceId,
      instantiationState     := p_instantiationState,
      instantiatedAppState   := p_instantiatedAppState,
      communicationInterface := p_communicationInterface,
      links                  := p_links
    } // End of template m_app_instance_info
    
    template (present) AppInstanceInfo mw_app_instance_info(
                                                            template (present) JSON.String p_id := ?,
                                                            template (present) JSON.String p_appDId := ?,
                                                            template (present) JSON.String p_appProvider := ?,
                                                            template (present) JSON.String p_appName := ?,
                                                            template (present) JSON.String p_appSoftVersion := ?,
                                                            template (present) JSON.String p_appDVersion := ?,
                                                            template (present) JSON.String p_appPkgId := ?,
                                                            template (present) InstantiationState p_instantiationState := ?,
                                                            template (present) Link p_links := ?,
                                                            template JSON.String p_appInstanceName := *,
                                                            template JSON.String p_appInstanceDescription := *,
                                                            template VimConnectionInfo p_vimConnectionInfo := *,
                                                            template JSON.String p_nsInstanceId := *,
                                                            template JSON.String p_vnfInstanceId := *,
                                                            template InstantiatedAppState p_instantiatedAppState := *,
                                                            template CommunicationInterface p_communicationInterface := * 
    ) := {
      id                     := p_id,
      appInstanceName        := p_appInstanceName,
      appInstanceDescription := p_appInstanceDescription,
      appDId                 := p_appDId,
      appProvider            := p_appProvider,
      appName                := p_appName,
      appSoftVersion         := p_appSoftVersion,
      appDVersion            := p_appDVersion,
      appPkgId               := p_appPkgId,
      vimConnectionInfo      := p_vimConnectionInfo,
      nsInstanceId           := p_nsInstanceId,
      vnfInstanceId          := p_vnfInstanceId,
      instantiationState     := p_instantiationState,
      instantiatedAppState   := p_instantiatedAppState,
      communicationInterface := p_communicationInterface,
      links                  := p_links
    } // End of template mw_app_instance_info
    
    template (omit) Link m_link(
                                in template (value) ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues.LinkType p_self,
                                in template (omit) ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues.LinkType p_instantiate := omit,
                                in template (omit) ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues.LinkType p_terminate  := omit,
                                in template (omit) ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues.LinkType p_operate  := omit,
                                in template (omit) ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues.LinkType p_configure_platform_for_app  := omit
    ) := {
      self_                      := p_self,
      instantiate                := p_instantiate,
      terminate                  := p_terminate,
      operate                    := p_operate,
      configure_platform_for_app := p_configure_platform_for_app
    } // End of template m_link
    
    template (present) Link mw_link(
                                    template (present) ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues.LinkType p_self := ?,
                                    template ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues.LinkType p_instantiate := *,
                                    template ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues.LinkType p_terminate  := *,
                                    template ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues.LinkType p_operate  := *,
                                    template ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues.LinkType p_configure_platform_for_app  := *
    ) := {
      self_                      := p_self,
      instantiate                := p_instantiate,
      terminate                  := p_terminate,
      operate                    := p_operate,
      configure_platform_for_app := p_configure_platform_for_app
    } // End of template mw_link
    
  } // End of group mex_lifcyclemgt
  
} // End of module ApplicationPackageLifecycleAndOperationGrantingAPI_Templates
+1 −0
Original line number Diff line number Diff line
@@ -505,6 +505,7 @@ module ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues {
    } with {
      variant (links) "name as '_links'";
    }
    type record of AppInstanceInfo AppInstanceInfoList;

    type record Link {
      LinkType self_,
+3 −9
Original line number Diff line number Diff line
@@ -18,10 +18,6 @@ module LibMec_Pics {
  
  modulepar boolean PICS_APP_PACKAGE := true;
  
  modulepar boolean PICS_APP_PACKAGE_MANAGEMENT := true;
  
  modulepar boolean PICS_APP_PACKAGE_NOTIFICATIONS := true;
  
  modulepar boolean PICS_RNIS_QUERY := true;
  
  modulepar boolean PICS_RNIS_ALL_SUBSCRIPTIONS := true;
@@ -34,16 +30,14 @@ module LibMec_Pics {
  
  modulepar boolean PICS_AMS_NOTIFICATIONS := true;
  
  modulepar boolean PIC_GRANTS_MANAGEMENT := true;
  modulepar boolean PICS_GRANTS_MANAGEMENT := true;
  
  modulepar boolean PIC_APP_PACKAGE_MANAGEMENT := true;
  modulepar boolean PICS_APP_PACKAGE_MANAGEMENT := true;
  
  modulepar boolean PIC_APP_PACKAGE_NOTIFICATIONS := true;
  modulepar boolean PICS_APP_PACKAGE_NOTIFICATIONS := true;
    
  modulepar charstring PICS_ROOT_API := "exampleAPI";
  
  modulepar boolean PIC_APP_LCM_MANAGEMENT := true;
  
  modulepar boolean PIC_APP_LCM_NOTIFICATIONS := true;
  
} // End of module LibMec_Pics 
Loading