diff options
author | Ondrej Filip <feela@network.cz> | 2000-06-01 17:53:06 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-06-01 17:53:06 +0200 |
commit | a783e259d8d710208280126177487cc790418515 (patch) | |
tree | 961bb067c8e7e9c608b839f7abc1128eedec89a3 /proto/ospf/config.Y | |
parent | b594ad238692738352cd8827d71038a356b0d5a5 (diff) | |
download | bird-a783e259d8d710208280126177487cc790418515.tar bird-a783e259d8d710208280126177487cc790418515.zip |
Cisco-like "show ospf neighbors" implemented.
Diffstat (limited to 'proto/ospf/config.Y')
-rw-r--r-- | proto/ospf/config.Y | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/proto/ospf/config.Y b/proto/ospf/config.Y index 9574141..9019759 100644 --- a/proto/ospf/config.Y +++ b/proto/ospf/config.Y @@ -13,6 +13,7 @@ CF_HDR CF_DECLS CF_KEYWORDS(OSPF, AREA, OSPF_METRIC1, OSPF_METRIC2, OSPF_TAG) +CF_KEYWORDS(NEIGHBORS) CF_GRAMMAR @@ -39,6 +40,9 @@ CF_ADDTO(dynamic_attr, OSPF_METRIC1 { $$ = f_new_dynamic_attr(EAF_TYPE_INT | EAF 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_CLI(SHOW OSPF NEIGHBORS, optsym, [<name>], [[Show information about ospf neighbors]]) +{ ospf_sh_neigh(proto_get_named($4, &proto_ospf)); } ; + CF_CODE CF_END |