The following packages are required:
- git
- python3
- pip3
- service-mapping-plugin-framework
Please refer to service-mapping-plugin-framework Installation Guide to install service-mapping-plugin-framework.
git clone https://github.com/free5gmano/free5gmano-cli.git
cd free5gmano-cli
git checkout v2.0.0
pip3 install -e .
Setup free5gmano host and port
cd free5gmano-cli/nm
vim setting.py
- register plugin
nmctl register plugin <plugin_name> -f <your plugin folder>
- create template
nmctl create template -n <plugin_name> -t <VNF or NSD or NRM>
- onboard template
nmctl onboard template <template_id> -f <your template folder>
- create NSST
nmctl create nsst -n <plugin_name> <VNF template_id> <NSD template_id> <NRM template_id>
- Allocate NSSI
nmctl allocate nssi <NSST template_id>
Other Operation
- get plugin
nmctl get plugin
nmctl get plugin <plugin_name>
- update plugin
nmctl update plugin <plugin_name> -f <your plugin folder>
- delete plugin
nmctl delete plugin <plugin_name>
- get template
nmctl get template
nmctl get template <template_id>
- delete template
nmctl delete template <template_id>
- get NSST
nmctl get nsst
nmctl get nsst <NSST template_id>
- delete NSST
nmctl delete nsst <NSST template_id>
- subscribe NSSI (Fault Management)
nmctl create subscriptions <NSS_INSTANCE_ID>
- unsubscribe NSSI (Fault Management)
nmctl delete subscriptions <NSS_INSTANCE_ID>