Esempio n. 1
0
 def feature_status(self):
     """
     Create Feature object and enable bgp and disable dhcp
     """
     feature = Feature()
     feature.enable('bgp')
     feature.disable('dhcp')
     return feature
Esempio n. 2
0
 def test_feature(self):
     session = self.login_to_switch()
     self.assertRaises(TypeError, Feature.get, None)
     feature = Feature(session=session)
     self.assertTrue(isinstance(feature, Feature))
Esempio n. 3
0
 def feature_status(self):
     feature = Feature()
     feature.enable('bgp')
     feature.disable('dhcp')
     return feature
Esempio n. 4
0
 def feature_status(self):
     feature = Feature()
     feature.enable('bgp')
     feature.disable('dhcp')
     return feature