File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -469,7 +469,6 @@ class Config(DerivedBase):
469
469
"virt_mode" : Property (mutable = True ),
470
470
"memory_limit" : Property (mutable = True ),
471
471
"interfaces" : Property (mutable = True , json_object = ConfigInterface ),
472
- "interface_generation" : Property (),
473
472
}
474
473
475
474
@property
@@ -723,6 +722,7 @@ class Instance(Base):
723
722
"disk_encryption" : Property (),
724
723
"lke_cluster_id" : Property (),
725
724
"capabilities" : Property (unordered = True ),
725
+ "interface_generation" : Property (),
726
726
}
727
727
728
728
@property
Original file line number Diff line number Diff line change 7
7
build_interface_options_vpc ,
8
8
)
9
9
10
- from linode_api4 import InstanceDiskEncryptionType , NetworkInterface
10
+ from linode_api4 import (
11
+ InstanceDiskEncryptionType ,
12
+ InterfaceGeneration ,
13
+ NetworkInterface ,
14
+ )
11
15
from linode_api4 .objects import (
12
16
Config ,
13
17
ConfigInterface ,
@@ -477,6 +481,8 @@ def test_get_interfaces(self):
477
481
478
482
instance = Instance (self .client , 124 )
479
483
484
+ assert instance .interface_generation == InterfaceGeneration .LINODE
485
+
480
486
interfaces = instance .interfaces
481
487
482
488
LinodeInterfaceTest .assert_linode_124_interface_123 (
You can’t perform that action at this time.
0 commit comments