Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Commit

Permalink
Added tests for network-instance/eos
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop committed May 6, 2017
1 parent 491a17c commit 78bb9ac
Show file tree
Hide file tree
Showing 7 changed files with 533 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
{
"network_instances": {
"network-instance": {
"devel": {
"config": {
"enabled": true,
"route-distinguisher": "1:2",
"type": "L3VRF"
},
"name": "devel",
"protocols": {
"protocol": {
"static static": {
"identifier": "static",
"name": "static",
"static-routes": {
"static": {
"10.0.0.0/24": {
"next-hops": {
"next-hop": {
"192.168.2.2": {
"config": {
"metric": 1,
"next-hop": "192.168.2.2"
},
"index": "192.168.2.2"
}
}
},
"prefix": "10.0.0.0/24"
},
"10.0.1.0/24": {
"next-hops": {
"next-hop": {
"192.168.2.2": {
"config": {
"metric": 1,
"next-hop": "192.168.2.2"
},
"index": "192.168.2.2"
}
}
},
"prefix": "10.0.1.0/24"
}
}
}
}
}
}
},
"global": {
"config": {
"enabled": true,
"type": "L3VRF"
},
"name": "global",
"protocols": {
"protocol": {
"bgp bgp": {
"bgp": {
"global": {
"config": {
"as": 65001,
"router-id": "1.1.1.1"
}
},
"neighbors": {
"neighbor": {
"192.168.0.200": {
"config": {
"description": "asdasd qweq asdasd",
"enabled": true,
"neighbor-address": "192.168.0.200",
"peer-as": 65100
},
"neighbor-address": "192.168.0.200"
}
}
}
},
"identifier": "bgp",
"name": "bgp"
},
"static static": {
"identifier": "static",
"name": "static",
"static-routes": {
"static": {
"10.0.0.0/24": {
"next-hops": {
"next-hop": {
"192.168.0.2": {
"config": {
"metric": 1,
"next-hop": "192.168.0.2"
},
"index": "192.168.0.2"
},
"192.168.0.3": {
"config": {
"metric": 1,
"next-hop": "192.168.0.3"
},
"index": "192.168.0.3"
}
}
},
"prefix": "10.0.0.0/24"
},
"10.0.1.0/24": {
"next-hops": {
"next-hop": {
"192.168.0.2": {
"config": {
"metric": 1,
"next-hop": "192.168.0.2"
},
"index": "192.168.0.2"
}
}
},
"prefix": "10.0.1.0/24"
}
}
}
}
}
}
},
"frontend": {
"config": {
"description": "Production VRF",
"enabled": true,
"route-distinguisher": "1:1",
"type": "L3VRF"
},
"name": "frontend",
"protocols": {
"protocol": {
"bgp bgp": {
"bgp": {
"global": {
"config": {
"as": 65001,
"router-id": "2.2.2.2"
}
},
"neighbors": {
"neighbor": {
"172.20.0.200": {
"config": {
"enabled": true,
"local-as": 100,
"neighbor-address": "172.20.0.200",
"peer-as": 65100
},
"neighbor-address": "172.20.0.200"
}
}
}
},
"identifier": "bgp",
"name": "bgp"
},
"static static": {
"identifier": "static",
"name": "static",
"static-routes": {
"static": {
"10.0.0.0/24": {
"next-hops": {
"next-hop": {
"172.20.0.2": {
"config": {
"metric": 1,
"next-hop": "172.20.0.2"
},
"index": "172.20.0.2"
}
}
},
"prefix": "10.0.0.0/24"
},
"10.0.1.0/24": {
"next-hops": {
"next-hop": {
"172.20.0.2": {
"config": {
"metric": 1,
"next-hop": "172.20.0.2"
},
"index": "172.20.0.2"
}
}
},
"prefix": "10.0.1.0/24"
}
}
}
}
}
}
}
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ ip virtual-router mac-address advertisement-interval 30
!
no ipv6 hardware fib nexthop-index
!
ip route 10.0.0.0/24 192.168.0.2 1 tag 0
ip route 10.0.0.0/24 192.168.0.2 10 tag 0
ip route 10.0.0.0/24 192.168.0.3 1 tag 0
ip route 10.0.1.0/24 192.168.0.2 1 tag 0
ip route vrf prod 10.0.0.0/24 172.20.0.2 1 tag 0
Expand Down
Loading

0 comments on commit 78bb9ac

Please sign in to comment.