]> git.puffer.fish Git - matthieu/frr.git/commitdiff
quagga-reload.py needs a --stdout option
authorDaniel Walton <dwalton@cumulusnetworks.com>
Tue, 12 Jul 2016 20:10:05 +0000 (20:10 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Tue, 12 Jul 2016 20:10:05 +0000 (20:10 +0000)
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-11791

tools/quagga-reload.py

index 9c0cbb48d617601b8e904de67577b8d7c27a787e..9650822d1e2cc7ac85485f959d692756e9af497f 100755 (executable)
@@ -624,13 +624,14 @@ if __name__ == '__main__':
     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)
     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')
     args = parser.parse_args()
 
     # Logging
     # For --test log to stdout
     # For --reload log to /var/log/quagga/quagga-reload.log
-    if args.test:
+    if args.test or args.stdout:
         logging.basicConfig(level=logging.INFO,
                             format='%(asctime)s %(levelname)5s: %(message)s')
     elif args.reload: