In this topic, you can find information on how to create automatic Dynamic Model Sync.

Prerequisites

  1. Make sure you place the model files under local/model directory in Presentation SAM.
  2. Ensure that you start the Presentation SAM server using --dynamic mode.
  3. If multiple local directories are used, ensure that SM_SITEMOD variable is defined under runcmd_env.sh file in Presentation SAM.
  4. All model files must be compiled successfully in the Presentation SAM. After that, models can be uploaded to VMware Telco Cloud Service Assurance successfully. Otherwise, it can result in errors, and models will not be reflected in the VMware Telco Cloud Service Assurance.
    Following is an example to compile .mdl file.
    [/bin]# ./dynmodel ../local/model/sample.mdl
    For reference, below is a simple sample mdl file.
    interface DM_Printer:UnitaryComputerSystem
    "Create a printer class inheriting from UCS"
    {
            stored attribute string DispName = "DM_PRINTER"
            " Attribute for instance DM_Printer" ;
            relationshipset
                ConnectionTo, Router;
     
    }

Procedure

  1. Navigate to Administration > Configuration > Collectors and Connectors > Smarts Integrations.
  2. Add a Presentation SAM under Smarts Integration. For steps, see Create Smarts Integration topic.
  3. Once Presentation SAM is added, a driver will be automatically triggered to sync Dynamic Models from the SAM Domain Manager and Topology will be synced with the uploaded models.
  4. To view the status of the Dynamic Model Sync, navigate to Tasks.DynamicModelSyncTask
  5. If you want Dynamic Models to be synced manually, restart the Presentation SAM Domain Manager after successful compilation of Dynamic Models so that Topology is updated properly. In VMware Telco Cloud Service Assurance UI, click the vertical ellipsis against a Presentation SAM.
    PresentationSAMDynamicModelSync
  6. Click Sync Dynamic model.
    DynamicModeSync
  7. Use the Tasks page to track the progress of the Dynamic Model sync.
  8. Under Tasks, click the required task to view the details of it.DynamciModelSyncTaskDetails
  9. Under Presentation SAM, restart the Topology Collector in order to see the uploaded models.DynamicModelSyncTopologyCollector
  10. Under Presentation SAM, a new column named Dynamic Model Last Sync is introduced that displays the timestamp of the last model synchronisation. It provides a direct link to the specific task.