summaryrefslogtreecommitdiff
path: root/smoketest/configs
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-02-15 15:22:06 +0000
committerGitHub <noreply@github.com>2024-02-15 15:22:06 +0000
commitcefa21ae6425355cf22fbe5123b720c5881d9174 (patch)
treecd037790007081d444b0ada93e5a1db55f587c7f /smoketest/configs
parenteb079e4a49150934dec082861176f5a5213c1206 (diff)
parent506f4b87951f91833cc43562bca2efa1ed9d2bd7 (diff)
downloadvyos-1x-cefa21ae6425355cf22fbe5123b720c5881d9174.tar.gz
vyos-1x-cefa21ae6425355cf22fbe5123b720c5881d9174.zip
Merge pull request #3014 from vyos/mergify/bp/sagitta/pr-3011
rpki: T6034: extend config migration testcase (backport #3011)
Diffstat (limited to 'smoketest/configs')
-rw-r--r--smoketest/configs/rpki-only51
1 files changed, 51 insertions, 0 deletions
diff --git a/smoketest/configs/rpki-only b/smoketest/configs/rpki-only
index 0f89b9a1b..98e9892ad 100644
--- a/smoketest/configs/rpki-only
+++ b/smoketest/configs/rpki-only
@@ -3,11 +3,62 @@ interfaces {
duplex auto
speed auto
address 192.0.2.1/24
+ address 2001:db8::1/64
}
loopback lo {
}
}
+policy {
+ route-map ROUTES-IN {
+ rule 10 {
+ action permit
+ match {
+ rpki valid
+ }
+ set {
+ local-preference 300
+ }
+ }
+ rule 20 {
+ action permit
+ match {
+ rpki notfound
+ }
+ set {
+ local-preference 125
+ }
+ }
+ rule 30 {
+ action deny
+ match {
+ rpki invalid
+ }
+ }
+ }
+}
protocols {
+ bgp 100 {
+ neighbor 192.0.2.200 {
+ address-family {
+ ipv4-unicast {
+ route-map {
+ import ROUTES-IN
+ }
+ }
+ }
+ remote-as 200
+ }
+ neighbor 2001:db8::200 {
+ address-family {
+ ipv6-unicast {
+ route-map {
+ import ROUTES-IN
+ }
+ }
+ }
+ remote-as 200
+ }
+ }
rpki {
cache 1.2.3.4 {
port 3323