diff options
Diffstat (limited to 'tests/topotests/ldp_topo1/r3')
-rw-r--r-- | tests/topotests/ldp_topo1/r3/ip_mpls_route.ref | 4 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r3/ldpd.conf | 23 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r3/ospfd.conf | 16 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r3/show_ip_ospf_neighbor.json | 32 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r3/show_ipv4_route.ref | 7 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r3/show_mpls_ldp_binding.ref | 15 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r3/show_mpls_ldp_discovery.ref | 3 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r3/show_mpls_ldp_interface.ref | 2 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r3/show_mpls_ldp_neighbor.ref | 3 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r3/show_mpls_table.ref | 10 | ||||
-rw-r--r-- | tests/topotests/ldp_topo1/r3/zebra.conf | 22 |
11 files changed, 137 insertions, 0 deletions
diff --git a/tests/topotests/ldp_topo1/r3/ip_mpls_route.ref b/tests/topotests/ldp_topo1/r3/ip_mpls_route.ref new file mode 100644 index 0000000..21750b4 --- /dev/null +++ b/tests/topotests/ldp_topo1/r3/ip_mpls_route.ref @@ -0,0 +1,4 @@ +xx proto xx nexthopvia inet 10.0.2.2 dev r3-eth0 nexthopvia inet 10.0.3.2 dev r3-eth1 +xx proto xx nexthopvia inet 10.0.2.2 dev r3-eth0 nexthopvia inet 10.0.3.2 dev r3-eth1 +xx proto xx nexthopvia inet 10.0.2.2 dev r3-eth0 nexthopvia inet 10.0.3.2 dev r3-eth1 +xx via inet 10.0.2.4 dev r3-eth0 proto xx diff --git a/tests/topotests/ldp_topo1/r3/ldpd.conf b/tests/topotests/ldp_topo1/r3/ldpd.conf new file mode 100644 index 0000000..48956cb --- /dev/null +++ b/tests/topotests/ldp_topo1/r3/ldpd.conf @@ -0,0 +1,23 @@ +hostname r3 +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 3.3.3.3 + ! + address-family ipv4 + discovery transport-address 3.3.3.3 + ! + interface r3-eth0 + ! + ! +! +line vty +! diff --git a/tests/topotests/ldp_topo1/r3/ospfd.conf b/tests/topotests/ldp_topo1/r3/ospfd.conf new file mode 100644 index 0000000..bd86fe4 --- /dev/null +++ b/tests/topotests/ldp_topo1/r3/ospfd.conf @@ -0,0 +1,16 @@ +hostname r3 +password 1 +log file ospfd.log +! +router ospf + router-id 3.3.3.3 + network 0.0.0.0/0 area 0 +! +int r3-eth0 + ip ospf hello-interval 2 + ip ospf dead-interval 10 +! +int r3-eth1 + ip ospf hello-interval 2 + ip ospf dead-interval 10 +! diff --git a/tests/topotests/ldp_topo1/r3/show_ip_ospf_neighbor.json b/tests/topotests/ldp_topo1/r3/show_ip_ospf_neighbor.json new file mode 100644 index 0000000..164040a --- /dev/null +++ b/tests/topotests/ldp_topo1/r3/show_ip_ospf_neighbor.json @@ -0,0 +1,32 @@ +{ + "neighbors": { + "2.2.2.2": [ + { + "databaseSummaryListCounter": 0, + "linkStateRetransmissionListCounter": 0, + "nbrPriority": 1, + "converged": "Full", + "ifaceAddress": "10.0.2.2", + "linkStateRequestListCounter": 0 + }, + { + "databaseSummaryListCounter": 0, + "linkStateRetransmissionListCounter": 0, + "nbrPriority": 1, + "converged": "Full", + "ifaceAddress": "10.0.3.2", + "linkStateRequestListCounter": 0 + } + ], + "4.4.4.4": [ + { + "databaseSummaryListCounter": 0, + "linkStateRetransmissionListCounter": 0, + "nbrPriority": 1, + "converged": "Full", + "ifaceAddress": "10.0.2.4", + "linkStateRequestListCounter": 0 + } + ] + } +} diff --git a/tests/topotests/ldp_topo1/r3/show_ipv4_route.ref b/tests/topotests/ldp_topo1/r3/show_ipv4_route.ref new file mode 100644 index 0000000..9b9c763 --- /dev/null +++ b/tests/topotests/ldp_topo1/r3/show_ipv4_route.ref @@ -0,0 +1,7 @@ +O>* 1.1.1.1/32 [110/20] via 10.0.2.2, r3-eth0, label xxx, weight 1 +O>* 2.2.2.2/32 [110/10] via 10.0.2.2, r3-eth0, label implicit-null, weight 1 +O 3.3.3.3/32 [110/0] is directly connected, lo, weight 1 +O>* 4.4.4.4/32 [110/10] via 10.0.2.4, r3-eth0, label implicit-null, weight 1 +O>* 10.0.1.0/24 [110/20] via 10.0.2.2, r3-eth0, label implicit-null, weight 1 +O 10.0.2.0/24 [110/10] is directly connected, r3-eth0, weight 1 +O 10.0.3.0/24 [110/10] is directly connected, r3-eth1, weight 1 diff --git a/tests/topotests/ldp_topo1/r3/show_mpls_ldp_binding.ref b/tests/topotests/ldp_topo1/r3/show_mpls_ldp_binding.ref new file mode 100644 index 0000000..058a245 --- /dev/null +++ b/tests/topotests/ldp_topo1/r3/show_mpls_ldp_binding.ref @@ -0,0 +1,15 @@ +AF Destination Nexthop Local Label Remote Label In Use +ipv4 1.1.1.1/32 2.2.2.2 xxx xxx yes +ipv4 1.1.1.1/32 4.4.4.4 xxx xxx no +ipv4 2.2.2.2/32 2.2.2.2 xxx imp-null yes +ipv4 2.2.2.2/32 4.4.4.4 xxx xxx no +ipv4 3.3.3.3/32 2.2.2.2 imp-null xxx no +ipv4 3.3.3.3/32 4.4.4.4 imp-null xxx no +ipv4 4.4.4.4/32 2.2.2.2 xxx xxx no +ipv4 4.4.4.4/32 4.4.4.4 xxx imp-null yes +ipv4 10.0.1.0/24 2.2.2.2 xxx imp-null yes +ipv4 10.0.1.0/24 4.4.4.4 xxx xxx no +ipv4 10.0.2.0/24 2.2.2.2 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 2.2.2.2 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/r3/show_mpls_ldp_discovery.ref b/tests/topotests/ldp_topo1/r3/show_mpls_ldp_discovery.ref new file mode 100644 index 0000000..e3dbf06 --- /dev/null +++ b/tests/topotests/ldp_topo1/r3/show_mpls_ldp_discovery.ref @@ -0,0 +1,3 @@ +AF ID Type Source Holdtime +ipv4 2.2.2.2 Link r3-eth0 15 +ipv4 4.4.4.4 Link r3-eth0 15 diff --git a/tests/topotests/ldp_topo1/r3/show_mpls_ldp_interface.ref b/tests/topotests/ldp_topo1/r3/show_mpls_ldp_interface.ref new file mode 100644 index 0000000..243811e --- /dev/null +++ b/tests/topotests/ldp_topo1/r3/show_mpls_ldp_interface.ref @@ -0,0 +1,2 @@ +AF Interface State Uptime Hello Timers ac +ipv4 r3-eth0 ACTIVE xx:xx:xx 5/15 2 diff --git a/tests/topotests/ldp_topo1/r3/show_mpls_ldp_neighbor.ref b/tests/topotests/ldp_topo1/r3/show_mpls_ldp_neighbor.ref new file mode 100644 index 0000000..769f782 --- /dev/null +++ b/tests/topotests/ldp_topo1/r3/show_mpls_ldp_neighbor.ref @@ -0,0 +1,3 @@ +AF ID State Remote Address Uptime +ipv4 2.2.2.2 OPERATIONAL 2.2.2.2 xx:xx:xx +ipv4 4.4.4.4 OPERATIONAL 4.4.4.4 xx:xx:xx diff --git a/tests/topotests/ldp_topo1/r3/show_mpls_table.ref b/tests/topotests/ldp_topo1/r3/show_mpls_table.ref new file mode 100644 index 0000000..3978895 --- /dev/null +++ b/tests/topotests/ldp_topo1/r3/show_mpls_table.ref @@ -0,0 +1,10 @@ + Inbound Label Type Nexthop Outbound Label + ----------------------------------------------- + XX LDP 10.0.2.2 XX + XX LDP 10.0.2.2 implicit-null + XX LDP 10.0.2.2 implicit-null + XX LDP 10.0.2.4 implicit-null + XX LDP 10.0.3.2 XX + XX LDP 10.0.3.2 implicit-null + XX LDP 10.0.3.2 implicit-null + diff --git a/tests/topotests/ldp_topo1/r3/zebra.conf b/tests/topotests/ldp_topo1/r3/zebra.conf new file mode 100644 index 0000000..456820f --- /dev/null +++ b/tests/topotests/ldp_topo1/r3/zebra.conf @@ -0,0 +1,22 @@ +log file zebra.log +! +hostname r3 +! +interface lo + ip address 3.3.3.3/32 +! +interface r3-eth0 + description to sw1 + ip address 10.0.2.3/24 + no link-detect +! +interface r3-eth1 + description to sw2 + ip address 10.0.3.3/24 + no link-detect +! +ip forwarding +! +! +line vty +! |