Fix for vlan end calculation

https://mirantis.jira.com/browse/PRD-1651 fix