コード例 #1
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']))
コード例 #2
0
ファイル: ofa_neutron_agent.py プロジェクト: rodis/neutron
 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
ファイル: test_ofa_ports.py プロジェクト: Jieming/neutron
 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'))