Skip to content

Commit eada81c

Browse files
progress
1 parent 1feb792 commit eada81c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

linode_api4/objects/networking.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ class IPAddress(Base):
8787
"public": Property(),
8888
"rdns": Property(mutable=True),
8989
"linode_id": Property(),
90+
"interface_id": Property(),
9091
"region": Property(slug_relationship=Region),
9192
"vpc_nat_1_1": Property(json_object=InstanceIPNAT1To1),
9293
}

linode_api4/objects/vpc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
@dataclass
1212
class VPCSubnetLinodeInterface(JSONObject):
1313
id: int = 0
14+
config_id: Optional[int] = None
1415
active: bool = False
1516

1617

test/unit/objects/networking_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,15 @@ def __validate_ip(_ip: IPAddress):
132132
assert _ip.address == "127.0.0.1"
133133
assert _ip.gateway == "127.0.0.1"
134134
assert _ip.linode_id == 123
135-
assert _ip.interface_id == 123
135+
assert _ip.interface_id == 456
136136
assert _ip.prefix == 24
137137
assert _ip.public
138138
assert _ip.rdns == "test.example.org"
139-
assert _ip.region == "us-east"
139+
assert _ip.region.id == "us-east"
140140
assert _ip.subnet_mask == "255.255.255.0"
141141
assert _ip.type == "ipv4"
142142
assert _ip.vpc_nat_1_1.vpc_id == 242
143-
assert _ip.vpc_nat_1_1.subnet_id == 243
143+
assert _ip.vpc_nat_1_1.subnet_id == 194
144144
assert _ip.vpc_nat_1_1.address == "139.144.244.36"
145145

146146
__validate_ip(ip)

0 commit comments

Comments
 (0)