Skip to content

Commit

Permalink
changed the folder names
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-w-du committed Jul 24, 2021
1 parent 07dfcaf commit c6f68e8
Show file tree
Hide file tree
Showing 16 changed files with 29 additions and 5 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python3
# encoding: utf-8

from seedemu.layers import Base, Routing, Ebgp
from seedemu.services import WebService
from seedemu.compiler import Docker
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions examples/01-transit-as/01-transit-as.py → examples/A01-transit-as/transit-as.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python3
# encoding: utf-8

from seedemu.layers import Base, Routing, Ebgp, PeerRelationship, Ibgp, Ospf
from seedemu.services import WebService
from seedemu.core import Emulator, Binding, Filter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Transit AS (MPLS)

This topology of this example is exactly the same as that in `01-transit-as`.
This topology of this example is exactly the same as that in `A01-transit-as`.
The only difference in this example is that we will now use MPLS instead of OSPF and
IBGP in the transit network. With MPLS, non-edge routers don't need to carry
the BGP routing table at all. Non-edge routes only need to keep track of a
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python3
# encoding: utf-8

from seedemu.layers import Base, Routing, Ebgp, PeerRelationship, Mpls
from seedemu.services import WebService
from seedemu.core import Emulator, Binding, Filter
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions examples/03-real-world/03-real-world.py → examples/A03-real-world/real-world.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python3
# encoding: utf-8

from seedemu.layers import Base, Routing, Ebgp, PeerRelationship, Ibgp, Ospf
from seedemu.services import WebService
from seedemu.core import Emulator, Binding, Filter
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python3
# encoding: utf-8

from seedemu.core import Emulator, Binding, Filter
from seedemu.layers import Base, Routing, Ebgp, PeerRelationship
from seedemu.services import WebService
Expand All @@ -9,7 +12,7 @@
# Need to go to 01-transit-as and generate the component first

emu = Emulator()
emu.load('../01-transit-as/base-component.bin')
emu.load('../A01-transit-as/base-component.bin')

base: Base = emu.getLayer('Base')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Using a Pre-built Component

In Example `01-transit-as`, we have saved the emulator in
In Example `A01-transit-as`, we have saved the emulator in
a file as a component. In this example, we demonstrate how
we can load it into another emulation.

Expand Down
5 changes: 4 additions & 1 deletion examples/05-components/05-components.py → examples/A05-components/components.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python3
# encoding: utf-8

from seedemu.core import Emulator, Binding, Filter
from seedemu.layers import Base, Routing, Ebgp, PeerRelationship
from seedemu.services import WebService
Expand All @@ -9,7 +12,7 @@
# Need to go to 01-transit-as and generate the component first

emu = Emulator()
emu.load('../01-transit-as/base-component.bin')
emu.load('../A01-transit-as/base-component.bin')


###############################################################################
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python3
# encoding: utf-8

from seedemu.core import Emulator
from seedemu.mergers import DEFAULT_MERGERS
from seedemu.layers import Base, Routing, Ebgp
Expand Down
File renamed without changes.
5 changes: 4 additions & 1 deletion examples/07-compilers/07-compilers.py → examples/A07-compilers/compilers.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python3
# encoding: utf-8

from seedemu.layers import Base, Routing, Ebgp, PeerRelationship, Mpls
from seedemu.compiler import Docker, DistributedDocker, GcpDistributedDocker, Graphviz
from seedemu.services import WebService
Expand All @@ -9,7 +12,7 @@
# Need to go to 01-transit-as and generate the component first

emu = Emulator()
emu.load('../01-transit-as/base-component.bin')
emu.load('../A01-transit-as/base-component.bin')

###############################################################################
# Render the emulation
Expand Down

0 comments on commit c6f68e8

Please sign in to comment.