1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

more fixes + cleanup + support for --exclude argument

Ticket: CM-1438
Reviewed By:
Testing Done:
This commit is contained in:
roopa
2013-11-13 16:07:15 -08:00
parent eab25b7c62
commit 3e8ee54f30
15 changed files with 161 additions and 149 deletions

View File

@@ -1,10 +1,16 @@
#!/usr/bin/python
#
# Copyright 2013. Cumulus Networks, Inc.
# Author: Roopa Prabhu, roopa@cumulusnetworks.com
#
# networkInterfaces --
# ifupdown network interfaces file parser
#
import collections
from iface import *
import logging
import glob
from iface import *
class networkInterfaces():
@@ -38,7 +44,7 @@ class networkInterfaces():
return 0
def process_allow(self, lines, cur_idx, lineno):
allow_line = self.lines[cur_idx]
allow_line = lines[cur_idx]
words = allow_line.split()
if len(words) <= 1: