GenericSubversionStitcher

The Oracle Communications Unified Assurance Topology Subversion Stitcher is used to create device relationships in the graph database using data gathered from a subversion repository. The stitcher connects to the given SVN repository, retrieves a file list and contents and makes it available to the rules files for special processing and entry into the graph database.

You can run this application as a scheduled job using the Jobs UI.

Subversion Stitcher Setup

  1. Update the URL in the configuration so the application connects to the correct subversion repository.

  2. Review the logic in the rules files referenced in the configuration to see the processing that will be done on the devices that are selected:

    • LoadRules will be run during application startup to load data that might be needed during processing.

    • IncludeRules will be read during application startup to load additional files that might be called during processing.

    • BaseRules will be run for each device that is selected based on the configuration.

    Update the logic as needed.

  3. Enable the default Service, unless a specific configuration option is needed:

    Configuration -> Broker Control -> Services

Default Scheduled Job

The following table shows the settings for the default job. Actual values are in bold, descriptions of values are in plaintext.

Field Value
Package coreCollection-app
Name Topology Subversion Stitcher
Program bin/core/collection/GenericSubversionStitcher
Arguments This field is blank. There is no default value.
Description Topology rules-based create and update Hierarchy from network inventory via subversion repository
Failover Type Standalone (Supported: Standalone, Primary, Redundant/Backup)
Status Disabled
Privileged This option is selected.
Minutes 0
Hours 20
Days *
Months *
WeekDays *

See Jobs in Unified Assurance User's Guide for general information about the settings for jobs.

See Using Application Primary/Backup Failover for more information about the different failover types.

Default Configuration

The following table shows the default configurations for the application. Actual values are in bold, descriptions of values are in plaintext.

Name Default Value Possible Values Notes
BaseRules collection/topology/svn/base.rules Text, 255 characters The relative path to the application Base Rules file.
BranchDir core/default Text, 255 characters The relative path to the rules directory.
IncludeRules collection/topology/svn/base.includes Text, 255 characters The relative path to the application Include Rules file.
LoadRules collection/topology/svn/base.load Text, 255 characters The relative path to the application Load Rules file.
LogFile logs/TopologySubversionStitcher.log Text, 255 characters The relative path to the log file.
LogLevel ERROR OFF, FATAL, ERROR, WARN, INFO, DEBUG The logging level for the application.
Threads 3 An integer The number of process threads created.
URL https://<FQDN>/repos/config Text, 255 characters The web address of the SVN repository. Should be in the format http://YOUR-SERVER-NAME/ADDITIONAL/PATHS/.

Rules

This application uses the Unified Assurance standard rules architecture in Perl syntax. For information about creating rules, see the following in Unified Assurance Developer's Guide:

Tokens

The stitcher exposes the following tokens for use in rules processing.

Token Description
$AppConfig Hash reference to the application configuration name-value pairs that were configured. (i.e. use $AppConfig->{'Host'} to retrieve the set value for 'Host'.)
$DataRow->{'BaseURL'} URL of repository (same value as $AppConfig->{'URL'}).
$DataRow->{'FileURL'} URL of current file.
$DataRow->{'FileContents'} Current file contents (results of the svn cat).

Administration Details

The following list shows the technical details you will need for advanced administration of the application: