Skip to content

Commit

Permalink
fixed bgp once runs on local, added default command handler
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadrad committed Jul 14, 2016
1 parent 3396dd7 commit d3f62c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mylg.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func main() {
}
}
c.Next()
case cmd == "bgp":
case cmd == "bgp" && cPName != "local":
providers[cPName].Set(args, "ipv4")
for l := range providers[cPName].BGP() {
println(l)
Expand Down Expand Up @@ -239,7 +239,9 @@ func main() {
case cmd == "exit", cmd == "quit":
c.Close(nxt)
close(req)
// todo
// todo
default:
c.Next()
}
}
}
Expand Down

0 comments on commit d3f62c4

Please sign in to comment.