ironic_inspector/plugins/base_physnet.py
def _get_physnet_patch(self, physnet, port):
        """Return a patch to update the port's physical network.

        :param physnet: The physical network to set.
        :param port: The ironic port to patch.
        :returns: A dict to be used as a patch for the port, or None.
        """
        if (not CONF.processing.overwrite_existing
                or port.physical_network == physnet):
            return
        return {'op': 'add', 'path': '/physical_network', 'value': physnet}
Return a patch to update the port's physical network.

        :param physnet: The physical network to set.
        :param port: The ironic port to patch.
        :returns: A dict to be used as a patch for the port, or None.
        
Return a patch to update the port's physical network.
Return a patch to update the port ' s physical network .
def _get_physnet_patch(self, physnet, port):
        if (not CONF.processing.overwrite_existing
                or port.physical_network == physnet):
            return
        return {'op': 'add', 'path': '/physical_network', 'value': physnet}
def _get_physnet_patch ( self , physnet , port ) : if ( not CONF . processing . overwrite_existing or port . physical_network == physnet ) : return return { 'op' : 'add' , 'path' : '/physical_network' , 'value' : physnet }
Return a patch to update the port's physical network.
Return a patch to update the port ' s physical network .
"""Return a patch to update the port's physical network.

        :param physnet: The physical network to set.
        :param port: The ironic port to patch.
        :returns: A dict to be used as a patch for the port, or None.
        """
A dict to be used as a patch for the port, or None.
A dict to be used as a patch for the port or None .
self
physnet
The physical network to set.
The physical network to set .
port
The ironic port to patch.
The ironic port to patch .