- my @tags = ( "host=$host", $ENV{TAGS} || 'no_tags=true' );
-
- my $port = $if[$i];
- if ( $port =~ m/if(\d\d)(\d\d\d\d)/ ) {
- push @tags, "prefix=$1,vlan=$2";
- } elsif ( m/if(\d+)/ ) {
- push @tags, "port=$1";
+ my $if = $if[$i];
+
+ my @tags = ( "if=$if", "host=$host_tags", $ENV{TAGS} || 'no_tags=true' );
+=for later
+ if ( $if =~ m/if(\d\d)(\d\d\d\d)/ ) {
+ push @tags, "is_vlan=T,prefix=$1,vlan=$2";
+ } elsif ( $if =~ m/if(\d+)/ ) {
+ push @tags, "is_vlan=F,port=$1";
+ } else {
+ push @tags, "unknown_if=$if";