summaryrefslogtreecommitdiff
path: root/scripts/vyatta-interfaces.pl
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-05-09 17:50:05 -0700
committerStig Thormodsrud <stig@vyatta.com>2008-05-09 17:50:05 -0700
commit04f1b8990af194e436c8581f1ca1a7f60596899c (patch)
tree23ac48ee5810ba94392b46102cca5150b2844c69 /scripts/vyatta-interfaces.pl
parent07d3641ca62cfede93708d366bb3e5410feba519 (diff)
downloadvyatta-cfg-04f1b8990af194e436c8581f1ca1a7f60596899c.tar.gz
vyatta-cfg-04f1b8990af194e436c8581f1ca1a7f60596899c.zip
Fix vlan regex.
Diffstat (limited to 'scripts/vyatta-interfaces.pl')
-rwxr-xr-xscripts/vyatta-interfaces.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl
index ec3a873..310ee0e 100755
--- a/scripts/vyatta-interfaces.pl
+++ b/scripts/vyatta-interfaces.pl
@@ -221,7 +221,7 @@ sub is_dhcp_enabled {
my $config = new VyattaConfig;
if ($intf =~ m/^eth/) {
- if ($intf =~ m/(\w+)\.(\d)/) {
+ if ($intf =~ m/(\w+)\.(\d+)/) {
$config->setLevel("interfaces ethernet $1 vif $2");
} else {
$config->setLevel("interfaces ethernet $intf");
@@ -250,7 +250,7 @@ sub is_address_enabled {
my $config = new VyattaConfig;
if ($intf =~ m/^eth/) {
- if ($intf =~ m/(\w+)\.(\d)/) {
+ if ($intf =~ m/(\w+)\.(\d+)/) {
$config->setLevel("interfaces ethernet $1 vif $2");
} else {
$config->setLevel("interfaces ethernet $intf");