diff options
Diffstat (limited to 'templates')
14 files changed, 65 insertions, 0 deletions
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/rpki/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/rpki/node.def new file mode 100644 index 00000000..3b1f8b47 --- /dev/null +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/rpki/node.def @@ -0,0 +1,15 @@ +type: txt +help: Match RPKI validation result + +syntax:expression: $VAR(@) in "notfound", "invalid", "valid"; "Must be either notfound, invalid, or valid" + +commit:expression: $VAR(../../action/) != ""; "You must specify an action" + +update: vtysh -c "configure terminal" \ + -c "route-map $VAR(../../../@) $VAR(../../action/@) $VAR(../../@)" \ + -c "match rpki $VAR(@)" + +delete: vtysh -c "configure terminal" \ + -c "route-map $VAR(../../../@) $VAR(../../action/@) $VAR(../../@)" \ + -c "no match rpki $VAR(@)" + diff --git a/templates/protocols/rpki/cache/node.def b/templates/protocols/rpki/cache/node.def new file mode 100644 index 00000000..f28cf2c6 --- /dev/null +++ b/templates/protocols/rpki/cache/node.def @@ -0,0 +1,3 @@ +tag: +type: txt +help: RPKI cache server instance diff --git a/templates/protocols/rpki/cache/node.tag/address/node.def b/templates/protocols/rpki/cache/node.tag/address/node.def new file mode 100644 index 00000000..de110206 --- /dev/null +++ b/templates/protocols/rpki/cache/node.tag/address/node.def @@ -0,0 +1,2 @@ +type: txt +help: RPKI cache server address diff --git a/templates/protocols/rpki/cache/node.tag/port/node.def b/templates/protocols/rpki/cache/node.tag/port/node.def new file mode 100644 index 00000000..e97c2477 --- /dev/null +++ b/templates/protocols/rpki/cache/node.tag/port/node.def @@ -0,0 +1,3 @@ +type: u32 +help: TCP port number +val_help: u32:1-65535; TCP port number diff --git a/templates/protocols/rpki/cache/node.tag/ssh/known-hosts-file/node.def b/templates/protocols/rpki/cache/node.tag/ssh/known-hosts-file/node.def new file mode 100644 index 00000000..40f2c3dc --- /dev/null +++ b/templates/protocols/rpki/cache/node.tag/ssh/known-hosts-file/node.def @@ -0,0 +1,5 @@ +type: txt +help: RPKI SSH known hosts file + +syntax:expression: exec "test -f $VAR(@)"; "Must be an existing file path" + diff --git a/templates/protocols/rpki/cache/node.tag/ssh/node.def b/templates/protocols/rpki/cache/node.tag/ssh/node.def new file mode 100644 index 00000000..2fb48499 --- /dev/null +++ b/templates/protocols/rpki/cache/node.tag/ssh/node.def @@ -0,0 +1 @@ +help: RPKI SSH connection settings diff --git a/templates/protocols/rpki/cache/node.tag/ssh/private-key-file/node.def b/templates/protocols/rpki/cache/node.tag/ssh/private-key-file/node.def new file mode 100644 index 00000000..8cfb580f --- /dev/null +++ b/templates/protocols/rpki/cache/node.tag/ssh/private-key-file/node.def @@ -0,0 +1,5 @@ +type: txt +help: RPKI SSH private key file + +syntax:expression: exec "test -f $VAR(@)"; "Must be an existing file path" + diff --git a/templates/protocols/rpki/cache/node.tag/ssh/public-key-file/node.def b/templates/protocols/rpki/cache/node.tag/ssh/public-key-file/node.def new file mode 100644 index 00000000..31de9562 --- /dev/null +++ b/templates/protocols/rpki/cache/node.tag/ssh/public-key-file/node.def @@ -0,0 +1,4 @@ +type: txt +help: RPKI SSH public key file path + +syntax:expression: exec "test -f $VAR(@)"; "Must be an existing file path" diff --git a/templates/protocols/rpki/cache/node.tag/ssh/username/node.def b/templates/protocols/rpki/cache/node.tag/ssh/username/node.def new file mode 100644 index 00000000..4391509d --- /dev/null +++ b/templates/protocols/rpki/cache/node.tag/ssh/username/node.def @@ -0,0 +1,2 @@ +type: txt +help: RPKI SSH username diff --git a/templates/protocols/rpki/initial-synchronization-timeout/node.def b/templates/protocols/rpki/initial-synchronization-timeout/node.def new file mode 100644 index 00000000..43d2016f --- /dev/null +++ b/templates/protocols/rpki/initial-synchronization-timeout/node.def @@ -0,0 +1,7 @@ +type: u32 +help: Initial RPKI cache synchronization timeout + +create: vtysh -c 'conf t' -c 'rpki' -c 'rpki initial-synchronisation-timeout $VAR(@)' +update: vtysh -c 'conf t' -c 'rpki' -c 'rpki initial-synchronisation-timeout $VAR(@)' +delete: vtysh -c 'conf t' -c 'rpki' -c 'no rpki initial-synchronisation-timeout' + diff --git a/templates/protocols/rpki/node.def b/templates/protocols/rpki/node.def new file mode 100644 index 00000000..28d77a9e --- /dev/null +++ b/templates/protocols/rpki/node.def @@ -0,0 +1,3 @@ +help: BGP prefix origin validation + +end: ${vyatta_sbindir}/vyos-update-rpki-cache.py diff --git a/templates/protocols/rpki/polling-period/node.def b/templates/protocols/rpki/polling-period/node.def new file mode 100644 index 00000000..ee8d0a2d --- /dev/null +++ b/templates/protocols/rpki/polling-period/node.def @@ -0,0 +1,7 @@ +type: u32 +help: RPKI cache polling period +val_help: u32:1-1300; Polling period + +create: vtysh -c 'conf t' -c 'rpki' -c 'rpki polling_period $VAR(@)' +update: vtysh -c 'conf t' -c 'rpki' -c 'rpki polling_period $VAR(@)' +delete: vtysh -c 'conf t' -c 'rpki' -c 'no rpki polling_period' diff --git a/templates/protocols/rpki/preference/node.def b/templates/protocols/rpki/preference/node.def new file mode 100644 index 00000000..f946fc0b --- /dev/null +++ b/templates/protocols/rpki/preference/node.def @@ -0,0 +1,2 @@ +type: u32 +help: RPKI cache preference diff --git a/templates/protocols/rpki/timeout/node.def b/templates/protocols/rpki/timeout/node.def new file mode 100644 index 00000000..2ea31cbf --- /dev/null +++ b/templates/protocols/rpki/timeout/node.def @@ -0,0 +1,6 @@ +type: u32 +help: RPKI cache reply timeout + +create: vtysh -c 'conf t' -c 'rpki' -c 'rpki timeout $VAR(@)' +update: vtysh -c 'conf t' -c 'rpki' -c 'rpki timeout $VAR(@)' +delete: vtysh -c 'conf t' -c 'rpki' -c 'no rpki timeout' |