Skip to content

Commit

Permalink
Correctly set VlanMode for scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
KeiranY committed Apr 23, 2019
1 parent 3094056 commit 6d0de00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scenarios/VlanDoubleTagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def create_network(self, controller=None):
self.receive_mode = random.choice([VlanMode.ACCESS, VlanMode.TAGGED])
self.switches[1].addMode(link.intf1, self.receive_mode)

# Replace the mode on Kali1 with native-untagged
self.switches[0].addMode(self.kali.defaultIntf().link.intf1, VlanMode.UNTAGGED)

def run_network(self):
super(Import, self).run_network()
defaultintf = str(self.kali.defaultIntf())
Expand Down

0 comments on commit 6d0de00

Please sign in to comment.