mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 16:26:10 +00:00
quagga-reload.py needs a --stdout option
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-11791
This commit is contained in:
parent
655f79c9d2
commit
cc146ecc00
@ -624,13 +624,14 @@ if __name__ == '__main__':
|
|||||||
group.add_argument('--reload', action='store_true', help='Apply the deltas', default=False)
|
group.add_argument('--reload', action='store_true', help='Apply the deltas', default=False)
|
||||||
group.add_argument('--test', action='store_true', help='Show the deltas', default=False)
|
group.add_argument('--test', action='store_true', help='Show the deltas', default=False)
|
||||||
parser.add_argument('--debug', action='store_true', help='Enable debugs', default=False)
|
parser.add_argument('--debug', action='store_true', help='Enable debugs', default=False)
|
||||||
|
parser.add_argument('--stdout', action='store_true', help='Log to STDOUT', default=False)
|
||||||
parser.add_argument('filename', help='Location of new quagga config file')
|
parser.add_argument('filename', help='Location of new quagga config file')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
# For --test log to stdout
|
# For --test log to stdout
|
||||||
# For --reload log to /var/log/quagga/quagga-reload.log
|
# For --reload log to /var/log/quagga/quagga-reload.log
|
||||||
if args.test:
|
if args.test or args.stdout:
|
||||||
logging.basicConfig(level=logging.INFO,
|
logging.basicConfig(level=logging.INFO,
|
||||||
format='%(asctime)s %(levelname)5s: %(message)s')
|
format='%(asctime)s %(levelname)5s: %(message)s')
|
||||||
elif args.reload:
|
elif args.reload:
|
||||||
|
Loading…
Reference in New Issue
Block a user