From e2bbf175a2184bd76f6c54ccf8456babeb1a46fc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 9 Apr 2024 15:16:35 +0200 Subject: Adding upstream version 9.1. Signed-off-by: Daniel Baumann --- tests/topotests/ldp_topo1/r1/ip_mpls_route.ref | 6 ++++++ tests/topotests/ldp_topo1/r1/ldpd.conf | 23 ++++++++++++++++++++++ tests/topotests/ldp_topo1/r1/ospfd.conf | 11 +++++++++++ .../ldp_topo1/r1/show_ip_ospf_neighbor.json | 14 +++++++++++++ tests/topotests/ldp_topo1/r1/show_ipv4_route.ref | 7 +++++++ .../ldp_topo1/r1/show_mpls_ldp_binding.ref | 8 ++++++++ .../ldp_topo1/r1/show_mpls_ldp_discovery.ref | 2 ++ .../ldp_topo1/r1/show_mpls_ldp_interface.ref | 2 ++ .../ldp_topo1/r1/show_mpls_ldp_neighbor.ref | 2 ++ tests/topotests/ldp_topo1/r1/show_mpls_table.ref | 8 ++++++++ tests/topotests/ldp_topo1/r1/zebra.conf | 17 ++++++++++++++++ 11 files changed, 100 insertions(+) create mode 100644 tests/topotests/ldp_topo1/r1/ip_mpls_route.ref create mode 100644 tests/topotests/ldp_topo1/r1/ldpd.conf create mode 100644 tests/topotests/ldp_topo1/r1/ospfd.conf create mode 100644 tests/topotests/ldp_topo1/r1/show_ip_ospf_neighbor.json create mode 100644 tests/topotests/ldp_topo1/r1/show_ipv4_route.ref create mode 100644 tests/topotests/ldp_topo1/r1/show_mpls_ldp_binding.ref create mode 100644 tests/topotests/ldp_topo1/r1/show_mpls_ldp_discovery.ref create mode 100644 tests/topotests/ldp_topo1/r1/show_mpls_ldp_interface.ref create mode 100644 tests/topotests/ldp_topo1/r1/show_mpls_ldp_neighbor.ref create mode 100644 tests/topotests/ldp_topo1/r1/show_mpls_table.ref create mode 100644 tests/topotests/ldp_topo1/r1/zebra.conf (limited to 'tests/topotests/ldp_topo1/r1') diff --git a/tests/topotests/ldp_topo1/r1/ip_mpls_route.ref b/tests/topotests/ldp_topo1/r1/ip_mpls_route.ref new file mode 100644 index 0000000..a13c1d4 --- /dev/null +++ b/tests/topotests/ldp_topo1/r1/ip_mpls_route.ref @@ -0,0 +1,6 @@ +xx as to xx via inet 10.0.1.2 dev r1-eth0 proto xx +xx as to xx via inet 10.0.1.2 dev r1-eth0 proto xx +xx via inet 10.0.1.2 dev r1-eth0 proto xx +xx via inet 10.0.1.2 dev r1-eth0 proto xx +xx via inet 10.0.1.2 dev r1-eth0 proto xx + diff --git a/tests/topotests/ldp_topo1/r1/ldpd.conf b/tests/topotests/ldp_topo1/r1/ldpd.conf new file mode 100644 index 0000000..f7f2714 --- /dev/null +++ b/tests/topotests/ldp_topo1/r1/ldpd.conf @@ -0,0 +1,23 @@ +hostname r1 +log file ldpd.log +! +! debug mpls ldp zebra +! debug mpls ldp event +! debug mpls ldp errors +! debug mpls ldp messages recv +! debug mpls ldp messages sent +! debug mpls ldp discovery hello recv +! debug mpls ldp discovery hello sent +! +mpls ldp + router-id 1.1.1.1 + ! + address-family ipv4 + discovery transport-address 1.1.1.1 + ! + interface r1-eth0 + ! + ! +! +line vty +! diff --git a/tests/topotests/ldp_topo1/r1/ospfd.conf b/tests/topotests/ldp_topo1/r1/ospfd.conf new file mode 100644 index 0000000..87d5703 --- /dev/null +++ b/tests/topotests/ldp_topo1/r1/ospfd.conf @@ -0,0 +1,11 @@ +hostname r1 +log file ospfd.log +! +router ospf + router-id 1.1.1.1 + network 0.0.0.0/0 area 0 +! +int r1-eth0 + ip ospf hello-interval 2 + ip ospf dead-interval 10 +! diff --git a/tests/topotests/ldp_topo1/r1/show_ip_ospf_neighbor.json b/tests/topotests/ldp_topo1/r1/show_ip_ospf_neighbor.json new file mode 100644 index 0000000..f47c2df --- /dev/null +++ b/tests/topotests/ldp_topo1/r1/show_ip_ospf_neighbor.json @@ -0,0 +1,14 @@ +{ + "neighbors": { + "2.2.2.2": [ + { + "databaseSummaryListCounter": 0, + "linkStateRetransmissionListCounter": 0, + "nbrPriority": 1, + "converged": "Full", + "ifaceAddress": "10.0.1.2", + "linkStateRequestListCounter": 0 + } + ] + } +} diff --git a/tests/topotests/ldp_topo1/r1/show_ipv4_route.ref b/tests/topotests/ldp_topo1/r1/show_ipv4_route.ref new file mode 100644 index 0000000..7d39888 --- /dev/null +++ b/tests/topotests/ldp_topo1/r1/show_ipv4_route.ref @@ -0,0 +1,7 @@ +O 1.1.1.1/32 [110/0] is directly connected, lo, weight 1 +O>* 2.2.2.2/32 [110/10] via 10.0.1.2, r1-eth0, label implicit-null, weight 1 +O>* 3.3.3.3/32 [110/20] via 10.0.1.2, r1-eth0, label xxx, weight 1 +O>* 4.4.4.4/32 [110/20] via 10.0.1.2, r1-eth0, label xxx, weight 1 +O 10.0.1.0/24 [110/10] is directly connected, r1-eth0, weight 1 +O>* 10.0.2.0/24 [110/20] via 10.0.1.2, r1-eth0, label implicit-null, weight 1 +O>* 10.0.3.0/24 [110/20] via 10.0.1.2, r1-eth0, label implicit-null, weight 1 diff --git a/tests/topotests/ldp_topo1/r1/show_mpls_ldp_binding.ref b/tests/topotests/ldp_topo1/r1/show_mpls_ldp_binding.ref new file mode 100644 index 0000000..32aa60c --- /dev/null +++ b/tests/topotests/ldp_topo1/r1/show_mpls_ldp_binding.ref @@ -0,0 +1,8 @@ +AF Destination Nexthop Local Label Remote Label In Use +ipv4 1.1.1.1/32 2.2.2.2 imp-null xxx no +ipv4 2.2.2.2/32 2.2.2.2 xxx imp-null yes +ipv4 3.3.3.3/32 2.2.2.2 xxx xxx yes +ipv4 4.4.4.4/32 2.2.2.2 xxx xxx yes +ipv4 10.0.1.0/24 2.2.2.2 imp-null imp-null no +ipv4 10.0.2.0/24 2.2.2.2 xxx imp-null yes +ipv4 10.0.3.0/24 2.2.2.2 xxx imp-null yes diff --git a/tests/topotests/ldp_topo1/r1/show_mpls_ldp_discovery.ref b/tests/topotests/ldp_topo1/r1/show_mpls_ldp_discovery.ref new file mode 100644 index 0000000..373755a --- /dev/null +++ b/tests/topotests/ldp_topo1/r1/show_mpls_ldp_discovery.ref @@ -0,0 +1,2 @@ +AF ID Type Source Holdtime +ipv4 2.2.2.2 Link r1-eth0 15 diff --git a/tests/topotests/ldp_topo1/r1/show_mpls_ldp_interface.ref b/tests/topotests/ldp_topo1/r1/show_mpls_ldp_interface.ref new file mode 100644 index 0000000..0fb15d2 --- /dev/null +++ b/tests/topotests/ldp_topo1/r1/show_mpls_ldp_interface.ref @@ -0,0 +1,2 @@ +AF Interface State Uptime Hello Timers ac +ipv4 r1-eth0 ACTIVE xx:xx:xx 5/15 1 diff --git a/tests/topotests/ldp_topo1/r1/show_mpls_ldp_neighbor.ref b/tests/topotests/ldp_topo1/r1/show_mpls_ldp_neighbor.ref new file mode 100644 index 0000000..29e264f --- /dev/null +++ b/tests/topotests/ldp_topo1/r1/show_mpls_ldp_neighbor.ref @@ -0,0 +1,2 @@ +AF ID State Remote Address Uptime +ipv4 2.2.2.2 OPERATIONAL 2.2.2.2 xx:xx:xx diff --git a/tests/topotests/ldp_topo1/r1/show_mpls_table.ref b/tests/topotests/ldp_topo1/r1/show_mpls_table.ref new file mode 100644 index 0000000..7e24359 --- /dev/null +++ b/tests/topotests/ldp_topo1/r1/show_mpls_table.ref @@ -0,0 +1,8 @@ + Inbound Label Type Nexthop Outbound Label + ----------------------------------------------- + XX LDP 10.0.1.2 XX + XX LDP 10.0.1.2 XX + XX LDP 10.0.1.2 implicit-null + XX LDP 10.0.1.2 implicit-null + XX LDP 10.0.1.2 implicit-null + diff --git a/tests/topotests/ldp_topo1/r1/zebra.conf b/tests/topotests/ldp_topo1/r1/zebra.conf new file mode 100644 index 0000000..55b4b0e --- /dev/null +++ b/tests/topotests/ldp_topo1/r1/zebra.conf @@ -0,0 +1,17 @@ +log file zebra.log +! +hostname r1 +! +interface lo + ip address 1.1.1.1/32 +! +interface r1-eth0 + description to sw0 + ip address 10.0.1.1/24 + no link-detect +! +ip forwarding +! +! +line vty +! -- cgit v1.2.3