]> git.proxmox.com Git - mirror_ifupdown2.git/commit - pkg/ifupdownmain.py
some fixes + template support
authorroopa <roopa@cumulusnetworks.com>
Fri, 20 Dec 2013 21:59:37 +0000 (13:59 -0800)
committerroopa <roopa@cumulusnetworks.com>
Fri, 20 Dec 2013 21:59:37 +0000 (13:59 -0800)
commit579b3f255dd9227dd4669c0ff9d01d19adebc77e
tree6499729db1f397bd8bb94a1be45704b0732360b0
parent551a3627d439d5ddacceeb1be807a7bddd437a5a
some fixes + template support

Ticket: CM-1438
Reviewed By:
Testing Done:

This patch adds support for mako style templates.

Example:
% for v in [20,30,40]:
auto vlan${v}
    iface vlan${v} inet static
    address 10.20.${v}.3/24
    mstpctl_ports  glob swp1-52.${v}
    mstpctl_stp on
% endfor

open items:
    - currently templates will only work if python-mako is installed
      (Its apt-gettable from debian wheezy).
init.d/networking
pkg/ifupdownmain.py
pkg/networkinterfaces.py