Skip to content

Commit

Permalink
Merge pull request #14 from opensourcerouting/ldp_vpls_topo1
Browse files Browse the repository at this point in the history
LDP VPLS Topology
  • Loading branch information
rzalamena authored Aug 24, 2017
2 parents 1463578 + 98ff277 commit b30dd38
Show file tree
Hide file tree
Showing 39 changed files with 1,493 additions and 8 deletions.
Empty file added ldp-vpls-topo1/__init__.py
Empty file.
12 changes: 12 additions & 0 deletions ldp-vpls-topo1/ce1/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
log file /tmp/ce1-zebra.log
!
hostname ce1
!
interface ce1-eth0
ip address 172.16.1.1/24
no link-detect
!
ip forwarding
!
line vty
!
12 changes: 12 additions & 0 deletions ldp-vpls-topo1/ce2/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
log file /tmp/ce2-zebra.log
!
hostname ce2
!
interface ce2-eth0
ip address 172.16.1.2/24
no link-detect
!
ip forwarding
!
line vty
!
12 changes: 12 additions & 0 deletions ldp-vpls-topo1/ce3/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
log file /tmp/ce3-zebra.log
!
hostname ce3
!
interface ce3-eth0
ip address 172.16.1.3/24
no link-detect
!
ip forwarding
!
line vty
!
34 changes: 34 additions & 0 deletions ldp-vpls-topo1/r1/ldpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
hostname r1
log file /tmp/r1-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
label local allocate host-routes
!
interface r1-eth1
!
interface r1-eth2
!
!
!
l2vpn CUST_A type vpls
member interface r1-eth0
!
member pseudowire r1-mpw0
neighbor lsr-id 2.2.2.2
pw-id 100
!
!
line vty
!
Empty file added ldp-vpls-topo1/r1/ospf-nbrs.txt
Empty file.
7 changes: 7 additions & 0 deletions ldp-vpls-topo1/r1/ospfd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
hostname r1
log file /tmp/r1-ospfd.log
!
router ospf
router-id 1.1.1.1
network 0.0.0.0/0 area 0
!
14 changes: 14 additions & 0 deletions ldp-vpls-topo1/r1/show_ip_ospf_neighbor.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"2.2.2.2":{
"priority":1,
"state":"Full/DR",
"address":"10.0.1.2",
"ifaceName":"r1-eth1:10.0.1.1"
},
"3.3.3.3":{
"priority":1,
"state":"Full/DR",
"address":"10.0.2.3",
"ifaceName":"r1-eth2:10.0.2.1"
}
}
157 changes: 157 additions & 0 deletions ldp-vpls-topo1/r1/show_ip_route.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
{
"1.1.1.1/32":[
{
"prefix":"1.1.1.1/32",
"protocol":"ospf",
"distance":110,
"metric":0,
"nexthops":[
{
"directlyConnected":true,
"interfaceIndex":1,
"interfaceName":"lo",
"active":true
}
]
},
{
"prefix":"1.1.1.1/32",
"protocol":"connected",
"selected":true,
"nexthops":[
{
"fib":true,
"directlyConnected":true,
"interfaceIndex":1,
"interfaceName":"lo",
"active":true
}
]
}
],
"2.2.2.2/32":[
{
"prefix":"2.2.2.2/32",
"protocol":"ospf",
"selected":true,
"distance":110,
"metric":10,
"nexthops":[
{
"fib":true,
"ip":"10.0.1.2",
"afi":"ipv4",
"interfaceIndex":3,
"interfaceName":"r1-eth1",
"active":true
}
]
}
],
"3.3.3.3/32":[
{
"prefix":"3.3.3.3/32",
"protocol":"ospf",
"selected":true,
"distance":110,
"metric":10,
"nexthops":[
{
"fib":true,
"ip":"10.0.2.3",
"afi":"ipv4",
"interfaceIndex":4,
"interfaceName":"r1-eth2",
"active":true
}
]
}
],
"10.0.1.0/24":[
{
"prefix":"10.0.1.0/24",
"protocol":"ospf",
"distance":110,
"metric":10,
"nexthops":[
{
"directlyConnected":true,
"interfaceIndex":3,
"interfaceName":"r1-eth1",
"active":true
}
]
},
{
"prefix":"10.0.1.0/24",
"protocol":"connected",
"selected":true,
"nexthops":[
{
"fib":true,
"directlyConnected":true,
"interfaceIndex":3,
"interfaceName":"r1-eth1",
"active":true
}
]
}
],
"10.0.2.0/24":[
{
"prefix":"10.0.2.0/24",
"protocol":"ospf",
"distance":110,
"metric":10,
"nexthops":[
{
"directlyConnected":true,
"interfaceIndex":4,
"interfaceName":"r1-eth2",
"active":true
}
]
},
{
"prefix":"10.0.2.0/24",
"protocol":"connected",
"selected":true,
"nexthops":[
{
"fib":true,
"directlyConnected":true,
"interfaceIndex":4,
"interfaceName":"r1-eth2",
"active":true
}
]
}
],
"10.0.3.0/24":[
{
"prefix":"10.0.3.0/24",
"protocol":"ospf",
"selected":true,
"distance":110,
"metric":20,
"nexthops":[
{
"fib":true,
"ip":"10.0.1.2",
"afi":"ipv4",
"interfaceIndex":3,
"interfaceName":"r1-eth1",
"active":true
},
{
"fib":true,
"ip":"10.0.2.3",
"afi":"ipv4",
"interfaceIndex":4,
"interfaceName":"r1-eth2",
"active":true
}
]
}
]
}
16 changes: 16 additions & 0 deletions ldp-vpls-topo1/r1/show_l2vpn_binding.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"2.2.2.2: 100":{
"destination":"2.2.2.2",
"vcId":100,
"localLabel":16,
"localControlWord":1,
"localVcType":"Ethernet",
"localGroupID":0,
"localIfMtu":1500,
"remoteLabel":16,
"remoteControlWord":1,
"remoteVcType":"Ethernet",
"remoteGroupID":0,
"remoteIfMtu":1500
}
}
8 changes: 8 additions & 0 deletions ldp-vpls-topo1/r1/show_l2vpn_vc.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"r1-mpw0":{
"peerId":"2.2.2.2",
"vcId":100,
"VpnName":"CUST_A",
"status":"up"
}
}
52 changes: 52 additions & 0 deletions ldp-vpls-topo1/r1/show_ldp_binding.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"bindings":[
{
"addressFamily":"ipv4",
"prefix":"1.1.1.1/32",
"neighborId":"2.2.2.2",
"localLabel":"imp-null",
"remoteLabel":"17",
"inUse":0
},
{
"addressFamily":"ipv4",
"prefix":"1.1.1.1/32",
"neighborId":"3.3.3.3",
"localLabel":"imp-null",
"remoteLabel":"16",
"inUse":0
},
{
"addressFamily":"ipv4",
"prefix":"2.2.2.2/32",
"neighborId":"2.2.2.2",
"localLabel":"17",
"remoteLabel":"imp-null",
"inUse":1
},
{
"addressFamily":"ipv4",
"prefix":"2.2.2.2/32",
"neighborId":"3.3.3.3",
"localLabel":"17",
"remoteLabel":"17",
"inUse":0
},
{
"addressFamily":"ipv4",
"prefix":"3.3.3.3/32",
"neighborId":"2.2.2.2",
"localLabel":"18",
"remoteLabel":"18",
"inUse":0
},
{
"addressFamily":"ipv4",
"prefix":"3.3.3.3/32",
"neighborId":"3.3.3.3",
"localLabel":"18",
"remoteLabel":"imp-null",
"inUse":1
}
]
}
25 changes: 25 additions & 0 deletions ldp-vpls-topo1/r1/show_ldp_discovery.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"adjacencies":[
{
"addressFamily":"ipv4",
"neighborId":"2.2.2.2",
"type":"link",
"interface":"r1-eth1",
"helloHoldtime":15
},
{
"addressFamily":"ipv4",
"neighborId":"2.2.2.2",
"type":"targeted",
"peer":"2.2.2.2",
"helloHoldtime":45
},
{
"addressFamily":"ipv4",
"neighborId":"3.3.3.3",
"type":"link",
"interface":"r1-eth2",
"helloHoldtime":15
}
]
}
16 changes: 16 additions & 0 deletions ldp-vpls-topo1/r1/show_ldp_neighbor.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"neighbors":[
{
"addressFamily":"ipv4",
"neighborId":"2.2.2.2",
"state":"OPERATIONAL",
"transportAddress":"2.2.2.2"
},
{
"addressFamily":"ipv4",
"neighborId":"3.3.3.3",
"state":"OPERATIONAL",
"transportAddress":"3.3.3.3"
}
]
}
Loading

0 comments on commit b30dd38

Please sign in to comment.