diff options
Diffstat (limited to 'tests/topotests/ldp_topo1/r2')
-rw-r--r-- | tests/topotests/ldp_topo1/r2/ip_mpls_route.ref | 3 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r2/ldpd.conf | 25 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r2/ospfd.conf | 19 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r2/show_ip_ospf_neighbor.json | 42 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r2/show_ipv4_route.ref | 7 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r2/show_mpls_ldp_binding.ref | 22 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r2/show_mpls_ldp_discovery.ref | 4 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r2/show_mpls_ldp_interface.ref | 3 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r2/show_mpls_ldp_neighbor.ref | 4 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r2/show_mpls_table.ref | 7 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r2/zebra.conf | 27 |
11 files changed, 163 insertions, 0 deletions
diff --git a/tests/topotests/ldp_topo1/r2/ip_mpls_route.ref b/tests/topotests/ldp_topo1/r2/ip_mpls_route.ref new file mode 100644 index 0000000..f962070 --- /dev/null +++ b/tests/topotests/ldp_topo1/r2/ip_mpls_route.ref @@ -0,0 +1,3 @@ +xx proto xx nexthopvia inet 10.0.2.3 dev r2-eth1 nexthopvia inet 10.0.3.3 dev r2-eth2 +xx via inet 10.0.1.1 dev r2-eth0 proto xx +xx via inet 10.0.2.4 dev r2-eth1 proto xx diff --git a/tests/topotests/ldp_topo1/r2/ldpd.conf b/tests/topotests/ldp_topo1/r2/ldpd.conf new file mode 100644 index 0000000..c4056e0 --- /dev/null +++ b/tests/topotests/ldp_topo1/r2/ldpd.conf @@ -0,0 +1,25 @@ +hostname r2 +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 2.2.2.2 + ! + address-family ipv4 + discovery transport-address 2.2.2.2 + ! + interface r2-eth0 + ! + interface r2-eth1 + ! + ! +! +line vty +! diff --git a/tests/topotests/ldp_topo1/r2/ospfd.conf b/tests/topotests/ldp_topo1/r2/ospfd.conf new file mode 100644 index 0000000..dbed618 --- /dev/null +++ b/tests/topotests/ldp_topo1/r2/ospfd.conf @@ -0,0 +1,19 @@ +hostname r2 +log file ospfd.log +! +router ospf + router-id 2.2.2.2 + network 0.0.0.0/0 area 0 +! +int r2-eth0 + ip ospf hello-interval 2 + ip ospf dead-interval 10 +! +int r2-eth1 + ip ospf hello-interval 2 + ip ospf dead-interval 10 +! +int r2-eth2 + ip ospf hello-interval 2 + ip ospf dead-interval 10 +! diff --git a/tests/topotests/ldp_topo1/r2/show_ip_ospf_neighbor.json b/tests/topotests/ldp_topo1/r2/show_ip_ospf_neighbor.json new file mode 100644 index 0000000..ea78592 --- /dev/null +++ b/tests/topotests/ldp_topo1/r2/show_ip_ospf_neighbor.json @@ -0,0 +1,42 @@ +{ + "neighbors": { + "1.1.1.1": [ + { + "dbSummaryCounter": 0, + "retransmitCounter": 0, + "priority": 1, + "converged": "Full", + "address": "10.0.1.1", + "requestCounter": 0 + } + ], + "3.3.3.3": [ + { + "dbSummaryCounter": 0, + "retransmitCounter": 0, + "priority": 1, + "converged": "Full", + "address": "10.0.2.3", + "requestCounter": 0 + }, + { + "dbSummaryCounter": 0, + "retransmitCounter": 0, + "priority": 1, + "converged": "Full", + "address": "10.0.3.3", + "requestCounter": 0 + } + ], + "4.4.4.4": [ + { + "dbSummaryCounter": 0, + "retransmitCounter": 0, + "priority": 1, + "converged": "Full", + "address": "10.0.2.4", + "requestCounter": 0 + } + ] + } +} diff --git a/tests/topotests/ldp_topo1/r2/show_ipv4_route.ref b/tests/topotests/ldp_topo1/r2/show_ipv4_route.ref new file mode 100644 index 0000000..90e1896 --- /dev/null +++ b/tests/topotests/ldp_topo1/r2/show_ipv4_route.ref @@ -0,0 +1,7 @@ +O>* 1.1.1.1/32 [110/10] via 10.0.1.1, r2-eth0, label implicit-null, weight 1 +O 2.2.2.2/32 [110/0] is directly connected, lo, weight 1 +O>* 3.3.3.3/32 [110/10] via 10.0.2.3, r2-eth1, label implicit-null, weight 1 +O>* 4.4.4.4/32 [110/10] via 10.0.2.4, r2-eth1, label implicit-null, weight 1 +O 10.0.1.0/24 [110/10] is directly connected, r2-eth0, weight 1 +O 10.0.2.0/24 [110/10] is directly connected, r2-eth1, weight 1 +O 10.0.3.0/24 [110/10] is directly connected, r2-eth2, weight 1 diff --git a/tests/topotests/ldp_topo1/r2/show_mpls_ldp_binding.ref b/tests/topotests/ldp_topo1/r2/show_mpls_ldp_binding.ref new file mode 100644 index 0000000..d7df72e --- /dev/null +++ b/tests/topotests/ldp_topo1/r2/show_mpls_ldp_binding.ref @@ -0,0 +1,22 @@ +AF Destination Nexthop Local Label Remote Label In Use +ipv4 1.1.1.1/32 1.1.1.1 xxx imp-null yes +ipv4 1.1.1.1/32 3.3.3.3 xxx xxx no +ipv4 1.1.1.1/32 4.4.4.4 xxx xxx no +ipv4 2.2.2.2/32 1.1.1.1 imp-null xxx no +ipv4 2.2.2.2/32 3.3.3.3 imp-null xxx no +ipv4 2.2.2.2/32 4.4.4.4 imp-null xxx no +ipv4 3.3.3.3/32 1.1.1.1 xxx xxx no +ipv4 3.3.3.3/32 3.3.3.3 xxx imp-null yes +ipv4 3.3.3.3/32 4.4.4.4 xxx xxx no +ipv4 4.4.4.4/32 1.1.1.1 xxx xxx no +ipv4 4.4.4.4/32 3.3.3.3 xxx xxx no +ipv4 4.4.4.4/32 4.4.4.4 xxx imp-null yes +ipv4 10.0.1.0/24 1.1.1.1 imp-null imp-null no +ipv4 10.0.1.0/24 3.3.3.3 imp-null xxx no +ipv4 10.0.1.0/24 4.4.4.4 imp-null xxx no +ipv4 10.0.2.0/24 1.1.1.1 imp-null xxx no +ipv4 10.0.2.0/24 3.3.3.3 imp-null imp-null no +ipv4 10.0.2.0/24 4.4.4.4 imp-null imp-null no +ipv4 10.0.3.0/24 1.1.1.1 imp-null xxx no +ipv4 10.0.3.0/24 3.3.3.3 imp-null imp-null no +ipv4 10.0.3.0/24 4.4.4.4 imp-null xxx no diff --git a/tests/topotests/ldp_topo1/r2/show_mpls_ldp_discovery.ref b/tests/topotests/ldp_topo1/r2/show_mpls_ldp_discovery.ref new file mode 100644 index 0000000..6405b5e --- /dev/null +++ b/tests/topotests/ldp_topo1/r2/show_mpls_ldp_discovery.ref @@ -0,0 +1,4 @@ +AF ID Type Source Holdtime +ipv4 1.1.1.1 Link r2-eth0 15 +ipv4 3.3.3.3 Link r2-eth1 15 +ipv4 4.4.4.4 Link r2-eth1 15 diff --git a/tests/topotests/ldp_topo1/r2/show_mpls_ldp_interface.ref b/tests/topotests/ldp_topo1/r2/show_mpls_ldp_interface.ref new file mode 100644 index 0000000..f9fc984 --- /dev/null +++ b/tests/topotests/ldp_topo1/r2/show_mpls_ldp_interface.ref @@ -0,0 +1,3 @@ +AF Interface State Uptime Hello Timers ac +ipv4 r2-eth0 ACTIVE xx:xx:xx 5/15 1 +ipv4 r2-eth1 ACTIVE xx:xx:xx 5/15 2 diff --git a/tests/topotests/ldp_topo1/r2/show_mpls_ldp_neighbor.ref b/tests/topotests/ldp_topo1/r2/show_mpls_ldp_neighbor.ref new file mode 100644 index 0000000..1172cbf --- /dev/null +++ b/tests/topotests/ldp_topo1/r2/show_mpls_ldp_neighbor.ref @@ -0,0 +1,4 @@ +AF ID State Remote Address Uptime +ipv4 1.1.1.1 OPERATIONAL 1.1.1.1 xx:xx:xx +ipv4 3.3.3.3 OPERATIONAL 3.3.3.3 xx:xx:xx +ipv4 4.4.4.4 OPERATIONAL 4.4.4.4 xx:xx:xx diff --git a/tests/topotests/ldp_topo1/r2/show_mpls_table.ref b/tests/topotests/ldp_topo1/r2/show_mpls_table.ref new file mode 100644 index 0000000..df05a6b --- /dev/null +++ b/tests/topotests/ldp_topo1/r2/show_mpls_table.ref @@ -0,0 +1,7 @@ + Inbound Label Type Nexthop Outbound Label + ----------------------------------------------- + XX LDP 10.0.1.1 implicit-null + XX LDP 10.0.2.3 implicit-null + XX LDP 10.0.2.4 implicit-null + XX LDP 10.0.3.3 implicit-null + diff --git a/tests/topotests/ldp_topo1/r2/zebra.conf b/tests/topotests/ldp_topo1/r2/zebra.conf new file mode 100644 index 0000000..dd1dbac --- /dev/null +++ b/tests/topotests/ldp_topo1/r2/zebra.conf @@ -0,0 +1,27 @@ +log file zebra.log +! +hostname r2 +! +interface lo + ip address 2.2.2.2/32 +! +interface r2-eth0 + description to sw0 + ip address 10.0.1.2/24 + no link-detect +! +interface r2-eth1 + description to sw1 + ip address 10.0.2.2/24 + no link-detect +! +interface r2-eth2 + description to sw2 + ip address 10.0.3.2/24 + no link-detect +! +ip forwarding +! +! +line vty +! |