diff options
author | Christian Hesse <mail@eworm.de> | 2018-11-09 21:35:56 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2018-11-09 21:35:56 +0100 |
commit | 7fcb253f323b80a90a4f934717fd293afe4caa60 (patch) | |
tree | 1874dff0e858153372741186d25d25eaceaca53f | |
parent | cb08d5280b32821a716da9a6fa12f147e76209c3 (diff) |
learn-mac-based-vlan: move log inside condition
-rw-r--r-- | learn-mac-based-vlan | 5 |
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; -}; +} |