Open
Description
To ease handling many physical appliances
- A template like the following defines a physical appliance (eg. Juniper SSG 5) on a switch appliance like a Liquid Metal.
% cat ./ssg5_config.json
{
"title": "Juniper SSG 5",
"template": {
"type": "physical/appliance",
"nics": {
# mapping nics on SSG5 to switch ethers
"eth0/0": "eth0",
"eth0/1", "eth1",
...(snip)...
"eth0/7", "eth7"
}
}
}
- The appliance is registered as a group named "juniper/ssg5".
% openvdc register ./ssg5_config.json --group "juniper/ssg5"
- The following command sequence will provision the resource and return the resource to reuse.
% openvdc run juniper/ssg5
abdcefg12345678
% openvdc ssh abdcefg12345678
Could not support a ssh connection.
% openvdc console abdcefg12345678
Could not support a serial console connection.
% openvdc destroy abdcefg12345678
If administrator want to append a same kind of resource, edit the configuration file and register it using a same group name on the switch appliance which is connected the target resource.