Exemple #1
0
 def test_clear_device_tracking_database_3(self):
     result = clear_device_tracking_database(device=self.device,
                                             options=[{
                                                 'vlanid': 10
                                             }])
     expected_output = None
     self.assertEqual(result, expected_output)
Exemple #2
0
 def test_clear_device_tracking_database_2(self):
     result = clear_device_tracking_database(device=self.device,
                                             options=[{
                                                 'policy': 'test'
                                             }])
     expected_output = None
     self.assertEqual(result, expected_output)
Exemple #3
0
 def test_clear_device_tracking_database_1(self):
     result = clear_device_tracking_database(device=self.device,
                                             options=[{
                                                 'force': True
                                             }])
     expected_output = None
     self.assertEqual(result, expected_output)
Exemple #4
0
 def test_clear_device_tracking_database_5(self):
     result = clear_device_tracking_database(device=self.device,
                                             options=[{
                                                 'interface': {
                                                     'interface': 'te1/0/1',
                                                     'vlanid': 10
                                                 }
                                             }])
     expected_output = None
     self.assertEqual(result, expected_output)
Exemple #5
0
 def test_clear_device_tracking_database_6(self):
     result = clear_device_tracking_database(device=self.device,
                                             options=[{
                                                 'mac': {
                                                     'address':
                                                     'dead.beef.0001',
                                                     'target': {
                                                         'force': True
                                                     }
                                                 }
                                             }])
     expected_output = None
     self.assertEqual(result, expected_output)
Exemple #6
0
 def test_clear_device_tracking_database_17(self):
     result = clear_device_tracking_database(device=self.device,
                                             options=[{
                                                 'prefix': {
                                                     'address':
                                                     '3001::1/48',
                                                     'target': {
                                                         'vlanid': 10
                                                     }
                                                 }
                                             }])
     expected_output = None
     self.assertEqual(result, expected_output)
Exemple #7
0
 def test_clear_device_tracking_database_12(self):
     result = clear_device_tracking_database(device=self.device,
                                             options=[{
                                                 'address': {
                                                     'address':
                                                     '20.20.20.20',
                                                     'target': {
                                                         'policy': 'test'
                                                     }
                                                 }
                                             }])
     expected_output = None
     self.assertEqual(result, expected_output)