diff options
author | Martin Mares <mj@ucw.cz> | 1998-11-27 20:37:57 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1998-11-27 20:37:57 +0100 |
commit | da87782278cdb38a90f5236fbbc4928c9ca2ee15 (patch) | |
tree | 85e50e65b4d30a10f26ef803f04a828100156da9 /nest/config.Y | |
parent | 70591fa06481e7935dcf66ec79812c470c71f4c8 (diff) | |
download | bird-da87782278cdb38a90f5236fbbc4928c9ca2ee15.tar bird-da87782278cdb38a90f5236fbbc4928c9ca2ee15.zip |
Parser fragment for the core. Now handles only router ID setting.
Diffstat (limited to 'nest/config.Y')
-rw-r--r-- | nest/config.Y | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nest/config.Y b/nest/config.Y new file mode 100644 index 0000000..f14331b --- /dev/null +++ b/nest/config.Y @@ -0,0 +1,32 @@ +/* + * BIRD -- Core Configuration + * + * (c) 1998 Martin Mares <mj@ucw.cz> + * + * Can be freely distributed and used under the terms of the GNU GPL. + */ + +CF_HDR + +CF_DECLS + +CF_KEYWORDS(ROUTER, ID) + +%type <i> idval + +CF_GRAMMAR + +CF_ADDTO(conf, rtrid) +rtrid: ROUTER ID idval { + router_id = $3; + } + ; + +idval: + NUM + | IPA { $$ = ipa_to_u32($1); } + ; + +CF_CODE + +CF_END |