summaryrefslogtreecommitdiff
path: root/nest/config.Y
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-11-27 19:37:57 +0000
committerMartin Mares <mj@ucw.cz>1998-11-27 19:37:57 +0000
commitda87782278cdb38a90f5236fbbc4928c9ca2ee15 (patch)
tree85e50e65b4d30a10f26ef803f04a828100156da9 /nest/config.Y
parent70591fa06481e7935dcf66ec79812c470c71f4c8 (diff)
Parser fragment for the core. Now handles only router ID setting.
Diffstat (limited to 'nest/config.Y')
-rw-r--r--nest/config.Y32
1 files changed, 32 insertions, 0 deletions
diff --git a/nest/config.Y b/nest/config.Y
new file mode 100644
index 00000000..f14331b3
--- /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