Skip to content

Commit

Permalink
Update commands
Browse files Browse the repository at this point in the history
  • Loading branch information
watal committed Jun 10, 2022
1 parent f2ec8c5 commit 107d4ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions examples/sr-mpls_l3vpn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ Connect to PCEP container, check PCEP session and SR policy
```
$ docker exec -it pola /bin/bash
# /root/go/bin/pola session
# pola session
peerAddr(0): 10.0.255.1
# /root/go/bin/pola lsp list
# pola lsp list
```

Create policy1.yaml (Apply Segment List 16002/16004/16003 to pe01)
Expand All @@ -59,9 +59,9 @@ srPolicy:

Apply and check SR Policy
```
# /root/go/bin/pola lsp add -f policy1.yaml
# pola lsp add -f policy1.yaml
success!
# /root/go/bin/pola lsp list
# pola lsp list
lsp(0):
peerAddr: 10.0.255.1
policyName: name
Expand All @@ -71,7 +71,7 @@ lsp(0):
```

Move to container pe01 and check SR Policy
Enter container pe01 and check SR Policy
```
# exit
$ docker exec -it pe01 /bin/bash
Expand Down
5 changes: 3 additions & 2 deletions examples/sr-mpls_l3vpn/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ node_configs:
- name: pola
cmds:
- cmd: 'ip a add 10.0.255.254/24 dev net0'
- cmd: '/root/go/bin/polad -f config.yaml > /dev/null 2>&1 &'
- cmd: '/usr/local/go/bin/polad -f config.yaml > /dev/null 2>&1 &'
- name: pe01
cmds:
- cmd: /usr/lib/frr/frr start
Expand Down Expand Up @@ -298,9 +298,10 @@ node_configs:

test:
- cmds:
## Add SR-TE Color
- cmd: docker exec pe01 vtysh -c 'conf t' -c 'router bgp 65000' -c 'address-family ipv4 vpn' -c 'neighbor 10.255.0.3 route-map color1 in'
## Show Status
- cmd: docker exec pe01 vtysh -c 'show sr-te policy'
- cmd: docker exec pe01 vtysh -c 'show ip route vrf cust-a 192.168.1.0/24'
- cmd: docker exec pe01 vtysh -c 'conf t' -c 'router bgp 65000' -c 'address-family ipv4 vpn' -c 'neighbor 10.255.0.3 route-map color1 in'
## L3VPN Test
- cmd: docker exec host01 ping -c3 192.168.1.2

0 comments on commit 107d4ff

Please sign in to comment.