def port_update(self, context, **kwargs):
     port = kwargs.get('port')
     # Put the port identifier in the updated_ports set.
     # Even if full port details might be provided to this call,
     # they are not used since there is no guarantee the notifications
     # are processed in the same order as the relevant API requests
     self.updated_ports.add(ports.get_normalized_port_name(port['id']))
示例#2
0
 def port_update(self, context, **kwargs):
     port = kwargs.get('port')
     # Put the port identifier in the updated_ports set.
     # Even if full port details might be provided to this call,
     # they are not used since there is no guarantee the notifications
     # are processed in the same order as the relevant API requests
     self.updated_ports.add(ports.get_normalized_port_name(port['id']))
示例#3
0
 def test_get_normalized_port_name(self):
     self.assertEqual('tap03b9a237-0b',
                      ports.get_normalized_port_name(
                          '03b9a237-0b1b-11e4-b537-08606e7f74e7'))
示例#4
0
 def test_get_normalized_port_name(self):
     self.assertEqual(
         'tap03b9a237-0b',
         ports.get_normalized_port_name(
             '03b9a237-0b1b-11e4-b537-08606e7f74e7'))