diff options
Diffstat (limited to 'scripts/vyatta-interfaces.pl')
-rwxr-xr-x | scripts/vyatta-interfaces.pl | 4 |
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"); |