From: Tomek Mrugalski Date: Fri, 28 Sep 2018 12:25:08 +0000 (+0200) Subject: [#5,!49] Rename Control-Netconf => Netconf X-Git-Tag: 5-netconf-doc-config_base~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd963287369e0cf385fe223bc5b7e289e18e29a8;p=thirdparty%2Fkea.git [#5,!49] Rename Control-Netconf => Netconf --- diff --git a/src/bin/netconf/netconf_lexer.ll b/src/bin/netconf/netconf_lexer.ll index fef6c5499d..ada8236526 100644 --- a/src/bin/netconf/netconf_lexer.ll +++ b/src/bin/netconf/netconf_lexer.ll @@ -111,9 +111,9 @@ ControlCharacterFill [^"\\]|\\{JSONEscapeSequence} /* We currently have 3 points of entries defined: START_JSON - which expects any valid JSON - START_NETCONF - which expects full configuration (with outer map and Control-netconf + START_NETCONF - which expects full configuration (with outer map and Netconf object in it. - START_SUB_NETCONF - which expects only content of the Control-netconf, this is + START_SUB_NETCONF - which expects only content of the Netconf, this is primarily useful for testing. */ if (start_token_flag) { start_token_flag = false; diff --git a/src/bin/netconf/netconf_parser.yy b/src/bin/netconf/netconf_parser.yy index 21c1e3ee40..2ea2daed78 100644 --- a/src/bin/netconf/netconf_parser.yy +++ b/src/bin/netconf/netconf_parser.yy @@ -84,7 +84,7 @@ using namespace std; // Not real tokens, just a way to signal what the parser is expected to // parse. This define the starting point. It either can be full grammar - // (START_NETCONF), part of the grammar related to control-netconf (START_SUB_NETCONF) + // (START_NETCONF), part of the grammar related to Netconf (START_SUB_NETCONF) // or can be any valid JSON (START_JSON) START_JSON START_NETCONF @@ -105,7 +105,7 @@ using namespace std; %% // The whole grammar starts with a map, because the config file -// consists of Control-Netconf, DhcpX, Logger and DhcpDdns entries in one big { }. +// consists of Netconf, DhcpX, Logger and DhcpDdns entries in one big { }. %start start; // The starting token can be one of those listed below. Note these are @@ -118,11 +118,11 @@ start: START_JSON { ctx.ctx_ = ctx.NO_KEYWORDS; } json // This rule defines a "shortcut". Instead of specifying the whole structure // expected by full grammar, we can tell the parser to start from content of -// the Control-netconf. This is very useful for unit-testing, so we don't need -// to repeat the outer map and "Control-netconf" map. We can simply provide +// the Netconf. This is very useful for unit-testing, so we don't need +// to repeat the outer map and "Netconf" map. We can simply provide // the contents of that map. sub_netconf: LCURLY_BRACKET { - // Parse the Control-netconf map + // Parse the Netconf map ElementPtr m(new MapElement(ctx.loc2pos(@1))); ctx.stack_.push_back(m); } global_params RCURLY_BRACKET { @@ -230,7 +230,7 @@ netconf_syntax_map: LCURLY_BRACKET { // for it. }; -// This represents top-level entries: Control-netconf, Logging, possibly others +// This represents top-level entries: Netconf, Logging, possibly others global_objects: global_object | global_objects COMMA global_object ; @@ -240,7 +240,7 @@ global_object: netconf_object | logging_object ; -// This define the Control-netconf object. +// This define the Netconf object. netconf_object: NETCONF { // Let's create a MapElement that will represent it, add it to the @@ -252,7 +252,7 @@ netconf_object: NETCONF { ctx.stack_.push_back(m); ctx.enter(ctx.NETCONF); } COLON LCURLY_BRACKET global_params RCURLY_BRACKET { - // Ok, we're done with parsing control-netconf. Let's take the map + // Ok, we're done with parsing Netconf. Let's take the map // off the stack. ctx.stack_.pop_back(); ctx.leave();