Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ksator authored Oct 16, 2017
1 parent 045e88a commit 1019eda
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ Playbooks are at the root of the repositories.
- [**findmac.py**](https://github.com/ksator/EVPN_DCI_automation/blob/master/findmac.py) locates a mac address accross the network.
- [**generate_yml_vars.py**](https://github.com/ksator/EVPN_DCI_automation/blob/master/generate_yml_vars.py) generates yaml variables for Ansible from the [**CSV**](https://github.com/ksator/EVPN_DCI_automation/blob/master/test.csv) file.

#### YAML variables generation

[**generate_yml_vars.py**](https://github.com/ksator/EVPN_DCI_automation/blob/master/generate_yml_vars.py) generates yaml variables for Ansible from the [**CSV**](https://github.com/ksator/EVPN_DCI_automation/blob/master/vars.csv) file.

### Requirements

#### Requirements on ubuntu 16.04:
Expand Down Expand Up @@ -614,39 +610,43 @@ protocols {
}
}
```
#### enforce the desired state against the network:

#### execute this playbook in dry-run mode to know what changes will happens:
```
ansible-playbook pb.removevlans.yml --check --diff --limit Superfast
```
#### execute this playbook if you want to remove vlans:
##### execute this playbook in dry-run mode to know what changes will happens on one specific device:
```
ansible-playbook pb.check.vlans.yml
ansible-playbook pb.removevlans.yml
ls backup
ansible-playbook pb.replacevlans.yml --check --diff --limit Superfast
```
#### execute this playbook if you want to add vlans:
##### execute this playbook to enforce the desired state against the network:
```
ansible-playbook pb.addvlans.yml
ansible-playbook pb.replacevlans.yml
ls backup
ansible-playbook pb.check.vlans.yml
```
#### enforce desired state:
#### login on junos devices and run some show commands:
```
ansible-playbook pb.replacevlans.yml
ls backup
show system commit
show configuration | compare rollback 1
show configuration vlans
...
```
#### rollback the setup for the next demo:
```
ansible-playbook pb.rollaback --extra-vars rbid=1
ls rollback
```
#### login on junos devices and run some show commands:
#### additionnal playbooks

##### execute this playbook if you want to remove vlans:

```
show system commit
show configuration | compare rollback 1
show configuration vlans
...
ansible-playbook pb.check.vlans.yml
ansible-playbook pb.removevlans.yml
ls backup
```
##### execute this playbook if you want to add vlans:
```
ansible-playbook pb.addvlans.yml
ls backup
ansible-playbook pb.check.vlans.yml
```
#### search for a mac address accross the network
```
Expand Down

0 comments on commit 1019eda

Please sign in to comment.