@@ -81,42 +81,20 @@ def assert_linode_124_interface_456(iface: LinodeInterface):
8181
8282 @staticmethod
8383 def assert_linode_124_interface_789 (iface : LinodeInterface ):
84- assert iface .id == 123
84+ assert iface .id == 789
8585
8686 assert isinstance (iface .created , datetime )
8787 assert isinstance (iface .updated , datetime )
8888
89- assert iface .default_route .ipv4
90- assert iface .default_route .ipv6
89+ assert iface .default_route .ipv4 is None
90+ assert iface .default_route .ipv6 is None
9191
9292 assert iface .mac_address == "22:00:AB:CD:EF:01"
9393 assert iface .version == 1
9494
95- assert iface .vlan is None
95+ assert iface .public is None
9696 assert iface .vpc is None
9797
98- # public.ipv4 assertions
99- assert iface .public .ipv4 .addresses [0 ].address == "172.30.0.50"
100- assert iface .public .ipv4 .addresses [0 ].primary
101-
102- assert iface .public .ipv4 .shared [0 ].address == "172.30.0.51"
103- assert iface .public .ipv4 .shared [0 ].linode_id == 125
104-
105- # public.ipv6 assertions
106- assert iface .public .ipv6 .ranges [0 ].range == "2600:3cO9:e001:59::/64"
107- assert (
108- iface .public .ipv6 .ranges [0 ].route_target
109- == "2600:3cO9::ff:feab:cdef"
110- )
111-
112- assert iface .public .ipv6 .ranges [1 ].range == "2600:3cO9:e001:5a::/64"
113- assert (
114- iface .public .ipv6 .ranges [1 ].route_target
115- == "2600:3cO9::ff:feab:cdef"
116- )
117-
118- assert iface .public .ipv6 .shared [0 ].range == "2600:3cO9:e001:2a::/64"
119- assert iface .public .ipv6 .shared [0 ].route_target is None
120-
121- assert iface .public .ipv6 .slaac [0 ].address == "2600:3cO9::ff:feab:cdef"
122- assert iface .public .ipv6 .slaac [0 ].prefix == 64
98+ # vlan assertions
99+ assert iface .vlan .vlan_label == "my_vlan"
100+ assert iface .vlan .ipam_address == "10.0.0.1/24"
0 commit comments