]> git.proxmox.com Git - mirror_ifupdown2.git/commit
Check for unexpected characters (specifically the ones which look like
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Mon, 1 Dec 2014 05:44:46 +0000 (21:44 -0800)
committerRoopa Prabhu <roopa@cumulusnetworks.com>
Mon, 1 Dec 2014 05:48:56 +0000 (21:48 -0800)
commitef892cccd96ec22a2f9c95ed1d6f08dd4aa07270
tree0ce4fede5e901e08fc7b6721f30e793e2b9f8970
parenta3c7ba7a09fb83602ab6b4b4635ed68f3a3dc528
Check for unexpected characters (specifically the ones which look like
variable names) + also fix a condition that looks incorrect

Ticket:
Reviewed By: wkok
Testing Done: Tested with the failing

This was seen in a case where mako is unable to render the template
or incorrectly renders it due to user template
errors, leaving interface names with
mako variables in them. There is no easy way to
recognize and warn about these. This patch tries to warn the user
of such cases by looking for variable patterns ('$') in interface names.
(cherry picked from commit fc0d45a794a61f7e6a3fd2c2ebce3d621bf0c7b2)
ifupdown/networkinterfaces.py