summaryrefslogtreecommitdiff
path: root/nest/config.Y
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-08-02 13:11:53 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2010-08-02 13:11:53 +0200
commitba5e5940aa1f11128c76a3964823bda22e47ab04 (patch)
tree7bd7dc426fb1d3ee2b940d981159fdf9780883ec /nest/config.Y
parentd395fe48553062413a85fd04cda0752f933e70c6 (diff)
Adds igp_metric attribute.
Diffstat (limited to 'nest/config.Y')
-rw-r--r--nest/config.Y5
1 files changed, 4 insertions, 1 deletions
diff --git a/nest/config.Y b/nest/config.Y
index a8e6bf8c..39cd9015 100644
--- a/nest/config.Y
+++ b/nest/config.Y
@@ -45,7 +45,7 @@ CF_KEYWORDS(INTERFACE, IMPORT, EXPORT, FILTER, NONE, TABLE, STATES, ROUTES, FILT
CF_KEYWORDS(PASSWORD, FROM, PASSIVE, TO, ID, EVENTS, PACKETS, PROTOCOLS, INTERFACES)
CF_KEYWORDS(PRIMARY, STATS, COUNT, FOR, COMMANDS, PREEXPORT, GENERATE)
CF_KEYWORDS(LISTEN, BGP, V6ONLY, ADDRESS, PORT, PASSWORDS, DESCRIPTION)
-CF_KEYWORDS(RELOAD, IN, OUT, MRTDUMP, MESSAGES, RESTRICT, MEMORY)
+CF_KEYWORDS(RELOAD, IN, OUT, MRTDUMP, MESSAGES, RESTRICT, MEMORY, IGP_METRIC)
CF_ENUM(T_ENUM_RTS, RTS_, DUMMY, STATIC, INHERIT, DEVICE, STATIC_DEVICE, REDIRECT,
RIP, OSPF, OSPF_IA, OSPF_EXT1, OSPF_EXT2, BGP, PIPE)
@@ -497,6 +497,9 @@ proto_patt2:
| TEXT { $$.ptr = $1; $$.patt = 1; }
;
+CF_ADDTO(dynamic_attr, IGP_METRIC
+ { $$ = f_new_dynamic_attr(EAF_TYPE_INT, T_INT, EA_GEN_IGP_METRIC); })
+
CF_CODE