Skip to content

Commit

Permalink
Merge pull request #25 from slankdev/slankdev-example-mpbgp-labeled-u…
Browse files Browse the repository at this point in the history
…nicast

examples: basic_bgp/mpbgp_ipv4_labeled_unicast
  • Loading branch information
AkiRa committed Feb 3, 2020
2 parents 4504182 + 6815a0a commit 936df27
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/basic_bgp/mpbgp_ipv4_labeled_unicast/README.md
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
```

68 changes: 68 additions & 0 deletions examples/basic_bgp/mpbgp_ipv4_labeled_unicast/spec.yaml
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 "!"

0 comments on commit 936df27

Please sign in to comment.