Skip to content

Commit bbb021e

Browse files
oops
1 parent 543145a commit bbb021e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

linode_api4/objects/linode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,6 @@ class Config(DerivedBase):
469469
"virt_mode": Property(mutable=True),
470470
"memory_limit": Property(mutable=True),
471471
"interfaces": Property(mutable=True, json_object=ConfigInterface),
472-
"interface_generation": Property(),
473472
}
474473

475474
@property
@@ -723,6 +722,7 @@ class Instance(Base):
723722
"disk_encryption": Property(),
724723
"lke_cluster_id": Property(),
725724
"capabilities": Property(unordered=True),
725+
"interface_generation": Property(),
726726
}
727727

728728
@property

test/unit/objects/linode_test.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
build_interface_options_vpc,
88
)
99

10-
from linode_api4 import InstanceDiskEncryptionType, NetworkInterface
10+
from linode_api4 import (
11+
InstanceDiskEncryptionType,
12+
InterfaceGeneration,
13+
NetworkInterface,
14+
)
1115
from linode_api4.objects import (
1216
Config,
1317
ConfigInterface,
@@ -477,6 +481,8 @@ def test_get_interfaces(self):
477481

478482
instance = Instance(self.client, 124)
479483

484+
assert instance.interface_generation == InterfaceGeneration.LINODE
485+
480486
interfaces = instance.interfaces
481487

482488
LinodeInterfaceTest.assert_linode_124_interface_123(

0 commit comments

Comments
 (0)