summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-09-23 21:50:58 +0200
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-09-23 21:50:58 +0200
commitba4c5c830745e84b6943362e7077e4b1846b8bdf (patch)
tree6f61aa8fd0fa8d1792c15f0eb71733ff3f335626 /tools
parentbgpd: add 'int idx_foo' argv index variables (diff)
downloadfrr-ba4c5c830745e84b6943362e7077e4b1846b8bdf.tar.xz
frr-ba4c5c830745e84b6943362e7077e4b1846b8bdf.zip
isisd: add 'int idx_foo' argv index variables
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/argv_translator.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/tools/argv_translator.py b/tools/argv_translator.py
index c98f0d69f..f39457ab7 100755
--- a/tools/argv_translator.py
+++ b/tools/argv_translator.py
@@ -313,9 +313,21 @@ def get_token_index_variable_name(line_number, token):
elif token == '(1-500)|WORD' or token == '(1-99)|(100-500)|WORD':
return 'idx_comm_list'
- elif token == 'ipv4|ipv6':
+ elif token == 'ipv4|ipv6' or token == 'ip|ipv6':
return 'idx_afi'
+ elif token == 'md5|clear':
+ return 'idx_encryption'
+
+ elif token == 'narrow|transition|wide':
+ return 'idx_metric_style'
+
+ elif token == 'area-password|domain-password':
+ return 'idx_password'
+
+ elif token == 'param':
+ return 'idx_param'
+
elif token == 'advertised-routes|received-routes':
return 'idx_adv_rcvd_routes'
@@ -334,6 +346,12 @@ def get_token_index_variable_name(line_number, token):
elif token == 'A.B.C.D/M|X:X::X:X/M':
return 'idx_ipv4_ipv6_prefixlen'
+ elif token == 'level-1|level-2' or token == 'level-1|level-1-2|level-2-only':
+ return 'idx_level'
+
+ elif token == 'metric (0-16777215)|route-map WORD' or token == 'always|metric (0-16777215)|route-map WORD':
+ return 'idx_metric_rmap'
+
elif token == 'urib-only|mrib-only|mrib-then-urib|lower-distance|longer-prefix':
return 'idx_rpf_lookup_mode'