import VTY code from zebra/quagga (from my cardshell project)

10 files changed