File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 1111@dataclass
1212class VPCSubnetLinodeInterface (JSONObject ):
1313 id : int = 0
14+ config_id : Optional [int ] = None
1415 active : bool = False
1516
1617
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments