Success is indicated by a return code of zero and the following JSON printed to stdout in the case of the ADD command. This should be the same output as was returned by the IPAM plugin (see [IP Allocation](#ip-allocation) for details).
-```json
+```
{
"ip4": {
"ip": <ipv4-and-subnet-in-CIDR>,
```
Errors are indicated by a non-zero return code and the following JSON being printed to stdout:
-```json
+```
{
"code": <numeric-error-code>,
"msg": <short-error-message>,
"type": "ovs",
// type (plugin) specific
"bridge": "ovs0",
- "vxlanID": 42
+ "vxlanID": 42,
"ipam": {
- "type": "dhcp"
- "routes": [ "10.3.0.0/16", "10.4.0.0/16" ]
+ "type": "dhcp",
+ "routes": [ { "dst": "10.3.0.0/16" }, { "dst": "10.4.0.0/16" } ]
}
}
```
"type": "macvlan",
// ipam specific
"ipam": {
- "type": "dhcp"
- "routes": [ "10.0.0.0/8" ]
+ "type": "dhcp",
+ "routes": [ { "dst": "10.0.0.0/8", "gw": "10.0.0.1" } ]
},
}
```
Success is indicated by a zero return code and the following JSON being printed to stdout (in the case of the ADD command):
-```json
+```
{
"ip4": {
"ip": <ipv4-and-subnet-in-CIDR>,