Subscription installation automation¶
This script is used to create, show and delete subscriptions.
Prerequisites¶
OpenStack Environment
A running OpenStack Tacker environment.Tacker CLI and OpenStack CLI must be installed and configured on the system.
VNF instance is created and instantiated
Notification server is reachable.
Configuration changes¶
The script uses a config.env file to define all necessary input parameters. User must update this file according to their system requirements before executing the script.
Script execution¶
Make the Script and configuration file Executable
$ chmod +x subscription.sh $ chmod +x config.env
Create Subscription
To create a new FM subscription:
./subscription.sh create
Show Subscription(s)
Show all subscriptions:
./subscription.sh show
Show a specific subscription:
We can check the subscription ID’s using below command
openstack vnffm sub list --os-tacker-api-version 2
./subscription.sh show <subscription_id>
Delete Subscription(s)
Delete a specific subscription:
./subscription.sh delete <subscription_id>
It also deletes the associated JSON file if it exists in format <id>_sample_param_file_fm_sub.json.
Delete all subscriptions:
./subscription.sh delete
It deletes all subscriptions via the Tacker CLI and removes all JSON files ending with _sample_param_file_fm_sub.json.