diff options
author | Martin Mares <mj@ucw.cz> | 2000-05-30 21:25:32 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-05-30 21:25:32 +0000 |
commit | 5919c66e8fdd87ee7e5c5a1e0ce01893e0ce103d (patch) | |
tree | 75b628dcafbbfbb58c0689e7fc28649a1c5fa6d2 /proto/ospf/config.Y | |
parent | 2cec475b8fbaa6cb0865ceacd900ffb678818330 (diff) |
Route attributes for OSPF.
Diffstat (limited to 'proto/ospf/config.Y')
-rw-r--r-- | proto/ospf/config.Y | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/proto/ospf/config.Y b/proto/ospf/config.Y index dcd7500e..95741410 100644 --- a/proto/ospf/config.Y +++ b/proto/ospf/config.Y @@ -12,7 +12,7 @@ CF_HDR CF_DECLS -CF_KEYWORDS(OSPF, AREA) +CF_KEYWORDS(OSPF, AREA, OSPF_METRIC1, OSPF_METRIC2, OSPF_TAG) CF_GRAMMAR @@ -35,6 +35,10 @@ ospf_area: AREA idval { } ; +CF_ADDTO(dynamic_attr, OSPF_METRIC1 { $$ = f_new_dynamic_attr(EAF_TYPE_INT | EAF_TEMP, T_INT, EA_OSPF_METRIC1); }) +CF_ADDTO(dynamic_attr, OSPF_METRIC2 { $$ = f_new_dynamic_attr(EAF_TYPE_INT | EAF_TEMP, T_INT, EA_OSPF_METRIC2); }) +CF_ADDTO(dynamic_attr, OSPF_TAG { $$ = f_new_dynamic_attr(EAF_TYPE_INT | EAF_TEMP, T_INT, EA_OSPF_TAG); }) + CF_CODE CF_END |