Skip to content

Commit 98b86d5

Browse files
Fix VLAN test
1 parent 24aad98 commit 98b86d5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

linode_api4/objects/linode_interfaces.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,8 @@ class LinodeInterface(DerivedBase):
319319
"updated": Property(is_datetime=True),
320320
"version": Property(),
321321
"default_route": Property(
322-
mutable=True, json_object=LinodeInterfaceDefaultRoute
322+
mutable=True,
323+
json_object=LinodeInterfaceDefaultRoute,
323324
),
324325
"public": Property(mutable=True, json_object=LinodeInterfacePublic),
325326
"vlan": Property(mutable=True, json_object=LinodeInterfaceVLAN),

test/unit/objects/linode_interface_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,10 @@ def test_update_vlan(self):
233233
assert m.called
234234

235235
assert m.call_data == {
236+
# TODO (Enhanced Interfaces): Ensure this doesn't cause an API validation error.
237+
"default_route": {},
236238
"vlan": {
237239
"vlan_label": "my_vlan_updated",
238-
"ipam_address": "10.0.0.1/24",
240+
"ipam_address": "10.0.0.2/24",
239241
},
240242
}

0 commit comments

Comments
 (0)