minimega.configure_ips

This MC ensures that, default gateways are set and if any VM types have a special method of configuring their IP addresses, those actions should be scheduled now. For example, Linux hosts have a different way of configuring/setting IP addresses than Windows hosts. Therefore, the LinuxHost class has implemented a configure_ips method to add a VMR which correctly configures the VMs IPs. This MC calls the configure_ips method for all Vertexes and ignores errors when a Vertex can’t call that method.

Attribute Provides:
  • ips

Attribute Depends:
  • mac_addresses

Plugin

class minimega.configure_ips_plugin.ConfigureIps(graph, log)[source]

Bases: AbstractPlugin

This Plugin ensures that default gateways are set and then, if any VM types have a special method of configuring their IP addresses, those actions should be scheduled immediately.

__annotations__ = {}
run()[source]

For each Vertex in the graph, set any default gateway information and then call the configure_ips method and ignore possible attribute errors.