ipoe: implemented ability to use lua to make vlan name

News of development process
Post Reply
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

ipoe: implemented ability to use lua to make vlan name

Post by Dmitry »

Code: Select all

commit b1c5ae767273119283089b35a79f1a64952234af
Author: Dmitry Kozlov <xeb@mail.ru>
Date:   Tue Dec 1 18:43:11 2015 +0300

    ipoe: implemented ability to use lua to make vlan name
    
    [ipoe]
    vlan-name=lua:make_vlan_name
    
    lua function accepts three arguments: parent interface name, parent vlan number and vlan number caused vlan creation
    
    sample lua function:
    function make_vlan_name(ifname, svid, cvid)
        print('make_vlan_name: '..ifname..','..svid..','..cvid)
        return ifname..'.'..cvid
    end
nik247
Posts: 108
Joined: 11 Oct 2014, 15:57

Re: ipoe: implemented ability to use lua to make vlan name

Post by nik247 »

Спасибо.
Работает.
Post Reply