-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from slankdev/slankdev-example-mpbgp-labeled-u…
…nicast examples: basic_bgp/mpbgp_ipv4_labeled_unicast
- Loading branch information
Showing
2 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
# MP-BGP labeled unicast example | ||
|
||
``` | ||
bgp unnumbered | ||
ipv4-labeld-unicast enabled | ||
[R0]-----------------[R1] | ||
AS1 AS2 | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
|
||
precmd: | ||
- cmds: | ||
- cmd: export IMAGE=slankdev/frr:centos-7-stable-7.0 | ||
|
||
nodes: | ||
- name: R0 | ||
image: $IMAGE | ||
interfaces: | ||
- { name: net0, type: direct, args: R1#net0 } | ||
- name: R1 | ||
image: $IMAGE | ||
interfaces: | ||
- { name: net0, type: direct, args: R0#net0 } | ||
|
||
node_configs: | ||
- name: R0 | ||
cmds: | ||
- cmd: sh -c 'enable_seg6_router.py | sh' | ||
- cmd: /usr/lib/frr/frrinit.sh start | ||
- cmd: >- | ||
vtysh -c "conf t" | ||
-c "router bgp 1" | ||
-c " bgp router-id 1.1.1.1" | ||
-c " no bgp default ipv4-unicast" | ||
-c " bgp bestpath as-path multipath-relax" | ||
-c " bgp bestpath compare-routerid" | ||
-c " neighbor FABRIC peer-group" | ||
-c " neighbor FABRIC remote-as external" | ||
-c " neighbor FABRIC capability extended-nexthop" | ||
-c " neighbor net0 interface peer-group FABRIC" | ||
-c " !" | ||
-c " address-family ipv4 unicast" | ||
-c " redistribute connected" | ||
-c " redistribute kernel" | ||
-c " exit-address-family" | ||
-c " !" | ||
-c " address-family ipv4 labeled-unicast" | ||
-c " neighbor FABRIC activate" | ||
-c " exit-address-family" | ||
-c "!" | ||
- name: R1 | ||
cmds: | ||
- cmd: sh -c 'enable_seg6_router.py | sh' | ||
- cmd: /usr/lib/frr/frrinit.sh start | ||
- cmd: >- | ||
vtysh -c "conf t" | ||
-c "router bgp 2" | ||
-c " bgp router-id 2.2.2.2" | ||
-c " no bgp default ipv4-unicast" | ||
-c " bgp bestpath as-path multipath-relax" | ||
-c " bgp bestpath compare-routerid" | ||
-c " neighbor FABRIC peer-group" | ||
-c " neighbor FABRIC remote-as external" | ||
-c " neighbor FABRIC capability extended-nexthop" | ||
-c " neighbor net0 interface peer-group FABRIC" | ||
-c " !" | ||
-c " address-family ipv4 unicast" | ||
-c " redistribute connected" | ||
-c " redistribute kernel" | ||
-c " exit-address-family" | ||
-c " !" | ||
-c " address-family ipv4 labeled-unicast" | ||
-c " neighbor FABRIC activate" | ||
-c " exit-address-family" | ||
-c "!" | ||