summaryrefslogtreecommitdiffstats
path: root/ospf-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2011-07-05 19:10:57 -0400
committerTed Trask <ttrask01@yahoo.com>2011-07-05 19:10:57 -0400
commit99495b2f4e12b98a58132bfcfac6e7d54a7ed3e5 (patch)
tree5c5610a29339681dfdf3efe87fcacb904fd05262 /ospf-model.lua
parente14a5488926bb5f9aaeb40e3b74803ef0daf9467 (diff)
downloadacf-quagga-99495b2f4e12b98a58132bfcfac6e7d54a7ed3e5.tar.bz2
acf-quagga-99495b2f4e12b98a58132bfcfac6e7d54a7ed3e5.tar.xz
Cleanup of model, menu, and file permissions
Diffstat (limited to 'ospf-model.lua')
-rw-r--r--[-rwxr-xr-x]ospf-model.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/ospf-model.lua b/ospf-model.lua
index eb9c96b..67ff868 100755..100644
--- a/ospf-model.lua
+++ b/ospf-model.lua
@@ -37,10 +37,9 @@ local function telnetshowip()
local output = {}
local configfile = parseconfigfile() or {}
local cmd = path .. "echo -e '" .. format.escapespecialcharacters(configfile.password) .. "\nshow ip ospf route\nquit\n' | nc localhost ospfd 2>/dev/null"
- logevent(cmd)
local f = io.popen( cmd )
local result = f:read("*a") or ""
- local validoutput
+ f:close()
if result == "" then
result = "Failed to find routes"
end