summaryrefslogtreecommitdiffstats
path: root/src/share/api/network4-add.json
blob: 623bb584072a19d558cb76a5bf5986704b4e9b63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
    "access": "write",
    "avail": "1.3.0",
    "brief": [
        "This command adds a new shared network."
    ],
    "cmd-syntax": [
        "{",
        "    \"command\": \"network4-add\",",
        "    \"arguments\": {",
        "        \"shared-networks\": [ {",
        "            \"name\": \"floor13\",",
        "            \"subnet4\": [",
        "            {",
        "                \"id\": 100,",
        "                \"pools\": [ { \"pool\": \"192.0.2.2-192.0.2.99\" } ],",
        "                \"subnet\": \"192.0.2.0/24\",",
        "                \"option-data\": [",
        "                    {",
        "                        \"name\": \"routers\",",
        "                        \"data\": \"192.0.2.1\"",
        "                    }",
        "                ]",
        "            },",
        "            {",
        "                \"id\": 101,",
        "                \"pools\": [ { \"pool\": \"192.0.3.2-192.0.3.99\" } ],",
        "                \"subnet\": \"192.0.3.0/24\",",
        "                \"option-data\": [",
        "                    {",
        "                        \"name\": \"routers\",",
        "                        \"data\": \"192.0.3.1\"",
        "                    }",
        "                ]",
        "            } ]",
        "        } ]",
        "    }",
        "}"
    ],
    "description": "See <xref linkend=\"idp75\"/>",
    "hook": "subnet_cmds",
    "name": "network4-add",
    "resp-syntax": [
        "{",
        "    \"arguments\": {",
        "        \"shared-networks\": [ { \"name\": \"floor13\" } ]",
        "    },",
        "    \"result\": 0,",
        "    \"text\": \"A new IPv4 shared network 'floor13' added\"",
        "}"
    ],
    "support": [
        "kea-dhcp4"
    ]
}