From 66186e072d9a6605509def4bf6895cfaab0900c0 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 8 Oct 2014 21:17:07 +0200 Subject: Even more specific regex. --- scripts/vyos-intfwatchd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/vyos-intfwatchd b/scripts/vyos-intfwatchd index 27ae35f3..d5f6753b 100644 --- a/scripts/vyos-intfwatchd +++ b/scripts/vyos-intfwatchd @@ -131,7 +131,7 @@ $SIG{'KILL'} = sub { exit(0); }; while() { - if( $_ =~ /^[0-9]+:\s+(.*)(@.*)*:\s+<.*UP,.*>/ ) + if( $_ =~ /^[0-9]+:\s+([^@]+)(@.*)*:\s+<.*UP,.*>/ ) { my $intf_name = $1; my $intf = new Vyatta::Interface($intf_name); -- cgit v1.2.3