Re: [libvirt PATCH v2 3/4] Add virNetworkObj Get and Set Methods for Metadata

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 19/07/23 21:47, K Shiva Kiran wrote:
- Introduces virNetworkObjGetMetadata() and
  virNetworkObjSetMetadata().
- These functions implement common behaviour that can be reused by
  network drivers that use the virNetworkObj struct.
- Introduces virNetworkObjUpdateModificationImpact() among other
  helper functions that resolve the live/persistent state of
  the network before setting metadata.
- Replace redundant flag resolving code with the forementioned 
  function in bridge_driver.c and test_driver.c 
- Eliminates redundant call of virNetworkObjSetDefTransient() in
  virNetworkConfigChangeSetup().

Signed-off-by: K Shiva Kiran <shiva_kr@xxxxxxxxxx>
---

This patch is a v2 of:
https://listman.redhat.com/archives/libvir-list/2023-July/240662.html

Diff to v1:
- Replace redundant call of virNetworkObjSetDefTransient() in
  virNetworkConfigChangeSetup()
- Replace redundant virNetworkFlags setting code with
  virNetworkObjUpdateModificationImpact() in bridge_driver.c
  and test_driver.c
- Eliminated newlines in message strings that followed the
  80 character limit.

Shiva


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux