def getRoutes(self):
routes = []<EOL>try:<EOL><INDENT>out = subprocess.Popen([routeCmd, "<STR_LIT>"], <EOL>stdout=subprocess.PIPE).communicate()[<NUM_LIT:0>]<EOL><DEDENT>except:<EOL><INDENT>raise Exception('<STR_LIT>' % ipCmd)<EOL><DEDENT>lines = out.splitlines()<EOL>if len(lines) > <NUM_LIT:1>:<EOL><INDENT>headers = [col.lower() for col in lines[<NUM_LIT:1>].split()]<EOL>for line in lines[<NUM_LIT:2>:]:<EOL><INDENT>routes.append(dict(zip(headers, line.split())))<EOL><DEDENT><DEDENT>return routes<EOL>
Get routing table.

        @return: List of routes.