File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
test/integration/models/linode/interfaces Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -277,3 +277,32 @@ def test_linode_interface_create_vpc(
277277 assert iface .vpc .ipv4 .addresses [0 ].nat_1_1_address is None
278278
279279 assert iface .vpc .ipv4 .ranges [0 ].range .split ("/" )[1 ] == "29"
280+
281+
282+ def test_linode_interface_create_vlan (
283+ test_linode_client ,
284+ e2e_test_firewall ,
285+ instance_with_interface_generation_linode ,
286+ ):
287+ instance : Instance = instance_with_interface_generation_linode
288+
289+ iface = instance .interface_create (
290+ vlan = LinodeInterfaceVLANOptions (
291+ vlan_label = "test-vlan" , ipam_address = "10.0.0.5/32"
292+ ),
293+ )
294+
295+ assert iface .id is not None
296+ assert iface .linode_id == instance .id
297+
298+ assert iface .created is not None
299+ assert iface .updated is not None
300+
301+ assert isinstance (iface .mac_address , str )
302+ assert iface .version
303+
304+ assert not iface .default_route .ipv4
305+ assert not iface .default_route .ipv6
306+
307+ assert iface .vlan .vlan_label == "test-vlan"
308+ assert iface .vlan .ipam_address == "10.0.0.5/32"
You can’t perform that action at this time.
0 commit comments