deviceplan = if interface[:interface] =~ /^(.*)\.(\d+)$/
netplan["network"]["vlans"][interface[:interface]] ||= {
"id" => Regexp.last_match(2).to_i,
deviceplan = if interface[:interface] =~ /^(.*)\.(\d+)$/
netplan["network"]["vlans"][interface[:interface]] ||= {
"id" => Regexp.last_match(2).to_i,