Exemplo n.º 1
0
 def test_switch_style_persona_not_specific(self):
     self.facts['personality'] = 'PTX'
     self.facts['model'] = 'abc'
     switch_style(self.dev, self.facts)
     self.assertEqual(self.facts['switch_style'], 'NONE')
Exemplo n.º 2
0
 def test_switch_style_model_not_specific(self):
     self.facts['personality'] = 'SWITCH'
     self.facts['model'] = 'abc'
     switch_style(self.dev, self.facts)
     self.assertEqual(self.facts['switch_style'], 'VLAN')
Exemplo n.º 3
0
 def test_switch_style_model_firefly(self):
     self.facts['personality'] = 'SWITCH'
     self.facts['model'] = 'FIReFly'
     switch_style(self.dev, self.facts)
     self.assertEqual(self.facts['switch_style'], 'NONE')
Exemplo n.º 4
0
 def test_switch_style_model_ex9000(self):
     self.facts['personality'] = 'SWITCH'
     self.facts['model'] = 'EX9000'
     switch_style(self.dev, self.facts)
     self.assertEqual(self.facts['switch_style'], 'VLAN_L2NG')
Exemplo n.º 5
0
 def test_switch_style_mx_srx(self):
     self.facts['personality'] = 'SRX_HIGHEND'
     switch_style(self.dev, self.facts)
     self.assertEqual(self.facts['switch_style'], 'BRIDGE_DOMAIN')