From 21c81c212b168d29c2e0c7153ca5b0710198c259 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 26 Feb 2009 14:12:22 -0800 Subject: 0.14.27 --- debian/changelog | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/debian/changelog b/debian/changelog index 614f315..5c18a1d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,16 @@ +vyatta-cfg (0.14.27) unstable; urgency=low + + [ slioch ] + * added protocols to root nodes at end of priority listing. + * handle seg violation if an empty line is found in the priority file. + + [ Stephen Hemminger ] + * Fix regex for VIF name extraction + * Add option to show VIF for interface + * Handle MTU on all types of interface + + -- Stephen Hemminger Thu, 26 Feb 2009 14:12:19 -0800 + vyatta-cfg (0.14.26) unstable; urgency=low [ slioch ] -- cgit v1.2.3 From c484e8f1eecc8812803612d7e21e27104f839f49 Mon Sep 17 00:00:00 2001 From: slioch Date: Thu, 26 Feb 2009 17:18:15 -0800 Subject: new option added to commit to disable partial commit behavior. This allows the user to support the 'old' cli behavior if desired via the -o flag. --- src/commit2.c | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/src/commit2.c b/src/commit2.c index 6d358c5..871c085 100644 --- a/src/commit2.c +++ b/src/commit2.c @@ -95,13 +95,14 @@ void usage() { printf("commit2\n"); - printf("-d\t\tdebug mode\n"); - printf("-s\t\tdump sorted transactions and exit\n"); - printf("-p\t\tdisable priority mode\n"); - printf("-t\t\ttest mode (don't apply directory modifications)\n"); - printf("-e\t\tprint node where error occurred\n"); - printf("-c\t\tdump node coverage and execution times\n"); - printf("-h\t\thelp\n"); + printf("\t-d\t\tdebug mode\n"); + printf("\t-s\t\tdump sorted transactions and exit\n"); + printf("\t-p\t\tdisable priority mode\n"); + printf("\t-t\t\ttest mode (don't apply directory modifications)\n"); + printf("\t-e\t\tprint node where error occurred\n"); + printf("\t-c\t\tdump node coverage and execution times\n"); + printf("\t-o\t\tdisable partial commit\n"); + printf("\t-h\t\thelp\n"); } /** @@ -114,9 +115,10 @@ main(int argc, char** argv) int ch; boolean priority_mode = TRUE; boolean test_mode = FALSE; + boolean disable_partial_commit = FALSE; //grab inputs - while ((ch = getopt(argc, argv, "dpthsec")) != -1) { + while ((ch = getopt(argc, argv, "dpthseco")) != -1) { switch (ch) { case 'd': g_debug = TRUE; @@ -140,6 +142,9 @@ main(int argc, char** argv) case 'c': g_coverage = TRUE; break; + case 'o': + disable_partial_commit = TRUE; + break; default: usage(); exit(0); @@ -214,7 +219,9 @@ main(int argc, char** argv) //no op, need better way to define true root } else { - complete(comp_cp_node, test_mode); + if (disable_partial_commit == FALSE) { + complete(comp_cp_node, test_mode); + } } } -- cgit v1.2.3