Enable tf-api-cli¶
The tf-api-cli container provides access to the Tungsten Fabric
API through the command-line interface (CLI). See the
contrail-api-cli documentation
for details.
Note
The tf-api-cli tool was initially called contrail-api-cli.
To enable the Tungsten Fabric API CLI Deployment:
Enable the
tf-cliDeployment in theTFOperatorcustom resource to start the Pod with utilities to access the Tungsten Fabric API CLI:spec: features: tfTools: tfCliEnabled: true
Wait for the
tf-tool-cliPod to start running in thetfnamespace.
Once the tf-tool-cli Pod is running, use the interactive shell to
access the Tungsten Fabric API CLI:
kubectl -n tf exec tf-tool-cli -it -- bash
The following example illustrates the use of the tf-api-cli command inside
a container:
tf-api-cli ls virtual-network
To disable the Tungsten Fabric API CLI Deployment:
Update the TFOperator custom resource and disable the tf-cli
Deployment:
kubectl -n tf patch tfoperator.tf.mirantis.com <TFOperator CR name> --type='json' -p='[{"op": "replace", "path": "/spec/features/tfTools/tfCliEnabled", "value": false}]'