Skip to content

Commit 1d0fec7

Browse files
committed
brk: changes to IPv4 and IPv6 response objects
1 parent 14cb6af commit 1d0fec7

File tree

3 files changed

+26
-22
lines changed

3 files changed

+26
-22
lines changed

src/data/endpoints/networking.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ endpoints:
107107
can be as compressed as you want.
108108
methods:
109109
GET:
110-
response: ipv6pool
110+
response: ipv6-address
111111
oauth: ips:view
112112
description: >
113113
Return a single IPv6 Address.

src/data/objects/ipaddress.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,32 @@ schema:
1010
type: String
1111
value: 97.107.143.1
1212
description: The default gateway. Gateways for private IP's are always null.
13-
subnet_mask:
14-
type: String
15-
value: 255.255.255.0
16-
description: The subnet mask.
13+
linode_id:
14+
type: Integer
15+
value: 42
16+
description: The Linode this IP is associated with.
1717
prefix:
1818
type: String
1919
value: 24
2020
description: The network prefix.
21-
type:
22-
type: Enum
23-
subtype: IPAddressType
24-
value: public
25-
description: The type of IP Address, either public or private.
2621
rdns:
2722
editable: true
2823
type: String
2924
value: null
3025
description: Reverse DNS address for this IP Address. Null to reset.
31-
linode_id:
32-
type: Integer
33-
description: The Linode this IP is associated with.
34-
value: 42
3526
region:
3627
type: String
3728
value: us-east-1a
3829
description: The region this IP is in.
30+
subnet_mask:
31+
type: String
32+
value: 255.255.255.0
33+
description: The subnet mask.
34+
type:
35+
type: Enum
36+
subtype: IPAddressType
37+
value: public
38+
description: The type of IP Address, either public or private.
3939
enums:
4040
IPAddressType:
4141
public: Public IP Address.

src/data/objects/ipv6-address.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,22 @@ schema:
1010
type: String
1111
value: "fe80::1"
1212
description: The default gateway.
13-
range:
14-
type: String
15-
value: "2600:3c01::2:5000"
16-
description: The IPv6 range.
17-
rdns:
18-
type: String
19-
value: "example.org"
20-
description: Optional reverse DNS address for this IPv6 Address.
13+
linode_id:
14+
type: Integer
15+
value: 42
16+
description: The Linode this IP is associated with.
2117
prefix:
2218
type: Integer
2319
value: 116
2420
description: The network prefix.
21+
rdns:
22+
type: String
23+
value: "example.org"
24+
description: Optional reverse DNS address for this IPv6 Address.
25+
region:
26+
type: String
27+
value: us-east-1a
28+
description: The region this IP is in.
2529
subnet_mask:
2630
type: String
2731
value: "ffff:ffff:ffff:ffff:ffff:ffff:ffff:f000"

0 commit comments

Comments
 (0)