Additional check when native VLAN 1 is set. Previously this always resulted in native vlan untagged. Line 220-223 is an additional if statement to check native_vlan_tag.
Line 236 - 238 is to allow a default posture whereby native_vlan_tag is True but no native_vlan_id is set. This defaults to native VLAN 1 tagged. N.B. With the CLI it is not possible to have a state in which the native vlan is set to tagged but no native vlan for the port is set. The tagged keyword follows the vlan trunk command: vlan trunk native 1 tag
Tested with 8320 running TL.10.03.0040