예제 #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')
예제 #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')
예제 #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')
예제 #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')
예제 #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')