]> git.puffer.fish Git - matthieu/frr.git/commit
vtysh: Add an option to set banner motd from an input
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Tue, 22 Oct 2019 15:06:03 +0000 (18:06 +0300)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Thu, 31 Oct 2019 13:02:47 +0000 (15:02 +0200)
commit19d61463df7b08828dde99ef290cc8c62fda3530
treec4d529fd716a34175196c25cebe5521c447780d3
parente1a3c0effa627eb9e5d20da8782708425417f970
vtysh: Add an option to set banner motd from an input

This allows to set motd from an input instead of creating a file.

Example:

root@exit2-debian-9:~/frr# telnet 127.0.0.1 2605
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Hello, this is bgpd
User Access Verification

Password:
exit2-debian-9> enable
exit2-debian-9# sh run

Current configuration:
!
frr version 7.3-dev-MyOwnFRRVersion
frr defaults traditional
!
hostname exit2-debian-9
password belekas
log file /var/log/frr/labas.log
log syslog informational
banner motd line Hello, this is bgpd
!
!
!
line vty
!
end
exit2-debian-9#

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
lib/command.c
lib/command.h
vtysh/vtysh_user.c