Skip to content

Commit

Permalink
Merge branch 'master' into v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrik Thostrup Jensen committed Jan 22, 2020
2 parents a24bbac + 52c2b25 commit 362decd
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions docs/migration
Original file line number Diff line number Diff line change
@@ -1,31 +1,38 @@

== Migration from network to domain ==
Python 2 -> Configuration Migration
===================================

With the port of OpenNSA from Python 2 to Python 3, support for multiple
backends was added. For this, some changes in the configuration format was
needed.

The changes are:
* Use domain instead of network in ```[service]``` block
* Each backend must specify a network name in its block
* NRM Map must now be specified per backend

Old style:

Example of old style:

```
[service]
network=aruba.net
nrmmap=aruba.nrm

[dud]
```

Equivalent config in new style:

```
[service]
domain=aruba.net

[dud:topology]
nrmmap=aruba.nrm
```

An example with multiple backends shows why the change was needed:

Multiple backends:

```
[service]
domain=aruba.net

Expand All @@ -34,7 +41,8 @@ nrmmap=aruba-topo1.nrm

[dud:topology1]
nrmmap=aruba-topo2.nrm
```

Feel free to call your networks something better than topology, but use
'topology' if you want to support the old STP names.
'topology' if you want to keep the old STP names.

0 comments on commit 362decd

Please sign in to comment.