Page 1 of 1

vlan-mon script

Posted: 02 May 2018, 16:29
by andlui9
Friends, the need arose to adjust some parameters in the interfaces that are created by vlan-mon, I would suggest the possibility of a script that is executed at the moment vlan-mon creates the interface, is it possible?

Re: vlan-mon script

Posted: 03 May 2018, 06:26
by nik247
[ipoe]
vlan-name=lua:make_vlan_name

Code: Select all

function make_vlan_name(ifname, svid, cvid)
    -- ifname:  parent interface name
    -- svid:    parent vlan number
    -- cvid:    vlan number caused vlan creation