...
Mantychore is a framework which is developed through the OSGi technology. OSGi consists of a set of components (named bundles) which provide the necessary operations. In this point, Mantychore adds our bundles with their operations. All these operations represent the capabilities for the end users. When you executes execute Mantychore ( ./mantychore.sh (Linux) or ./mantychore.bat (Windows), it will appear provide a command line (cli) prompt and you will be able to check the different loaded capabilities ( if you type <tab> or list).
...
The first step in Mantychore is the resource virtualization. In this step, it is added a new device is added to the Mantychore system. For this action, it is necessary to create a file to describe what features and capabilities this virtual resource will be able to have.
For this tutorial, can you use a template from this list template can be used as example (for more information, the wiki has a section to describe each parameter). The command will be:
...
- router:junos20 - specify resource type (router) and resource name (junos20) . It specifies what resource will use this protocolfor the resource we want to assign a protocol to.
- netconf - name to identify the protocol configuration.
- ssh://myuser:mypassword@1.1.1.1:22/netconf - URI to describe connection parameters.
The information about the used protocols is in this link.
...
A resource is in a set of states which it permits do or not each allow a set of operations. This picture describes these states:
Mainly, a resource will activate enable all its capabilities if it is when started. For this reason, the next step will be start our resource:
...
A resource includes a set of capabilities or features. These capabilities form which are the available operations have a device , has. Mantychore supports:
Removing a resource
Finally, if you donthe resource isn't need more our resource, you can stop and remove itneeded anymore, it can be stopped and removed. First, we need to stop it:
Code Block |
---|
resource:stop router:junos20 |
The resource will deactivate all its capabilities and it will be reset. After, we will 'll destroy it and we will delete any resource information in Mantychore..
Code Block |
---|
resource:remove router:junos20 |