aboutsummaryrefslogtreecommitdiffstats
path: root/learn-mac-based-vlan
diff options
context:
space:
mode:
Diffstat (limited to 'learn-mac-based-vlan')
-rw-r--r--learn-mac-based-vlan5
1 files changed, 2 insertions, 3 deletions
diff --git a/learn-mac-based-vlan b/learn-mac-based-vlan
index fa43299..82e3ca5 100644
--- a/learn-mac-based-vlan
+++ b/learn-mac-based-vlan
@@ -6,8 +6,7 @@
:local NewVlanId 33;
-/ log info ("MAC-based-VLAN: learning MAC address " . $leaseActMAC . " for VLAN " . $NewVlanId . ".");
-
:if ( [ / interface ethernet switch mac-based-vlan print count-only where src-mac-address=$leaseActMAC ] = 0 ) do={
+ :log info ("MAC-based-VLAN: learning MAC address " . $leaseActMAC . " for VLAN " . $NewVlanId . ".");
/ interface ethernet switch mac-based-vlan add src-mac-address=$leaseActMAC new-customer-vid=$NewVlanId;
-};
+}