Generation of configuration files for a DHCP module executing within a virtualized container
First Claim
1. For an application operating on a host machine, a method comprising:
- receiving a plurality of database table entries for generating a configuration file for a Dynamic Host Configuration Protocol (DHCP) module executing within a virtualized container operating on the host machine;
determining, based on a particular entry in the received database table entries, whether the virtualized container exists on the host machine;
when the virtualized container is determined not to exist on the host machine;
creating the virtualized container on the host machine;
generating the configuration file for use by the DHCP module that executes in the virtualized container by (i) converting a first subset of the plurality of received database table entries that define a set of logical switches of a logical network for which DHCP service is provided into subnet data that is stored in the configuration file for use by the DHCP module and (ii) converting a second subset of the plurality of received database table entries that define machines connected to the logical switches into address bindings that are stored in the configuration file for use by the DHCP module; and
initializing the DHCP module in the virtualized container, wherein the DHCP module reads the configuration file in order to provide DHCP service for the machines connected to the set of logical switches, wherein the machines connected to a particular one of the logical switches operate on a plurality of additional host machines and communicate with the DHCP module on the host machine.
1 Assignment
0 Petitions
Accused Products
Abstract
Some embodiments provide a method for an application operating on a host machine. The method receives a configuration of a Dynamic Host Configuration Protocol (DHCP) service for implementation within a virtualized container on the host machine. The configuration includes several database table entries. The method converts the several database table entries into a configuration file for use by a process that operates in the virtualized container. the method initializes the process in the virtualized container. The process in the virtualized container reads the configuration file in order to perform DHCP services for machines connected to at least one logical forwarding element of a logical network.
-
Citations
14 Claims
-
1. For an application operating on a host machine, a method comprising:
-
receiving a plurality of database table entries for generating a configuration file for a Dynamic Host Configuration Protocol (DHCP) module executing within a virtualized container operating on the host machine; determining, based on a particular entry in the received database table entries, whether the virtualized container exists on the host machine; when the virtualized container is determined not to exist on the host machine; creating the virtualized container on the host machine; generating the configuration file for use by the DHCP module that executes in the virtualized container by (i) converting a first subset of the plurality of received database table entries that define a set of logical switches of a logical network for which DHCP service is provided into subnet data that is stored in the configuration file for use by the DHCP module and (ii) converting a second subset of the plurality of received database table entries that define machines connected to the logical switches into address bindings that are stored in the configuration file for use by the DHCP module; and initializing the DHCP module in the virtualized container, wherein the DHCP module reads the configuration file in order to provide DHCP service for the machines connected to the set of logical switches, wherein the machines connected to a particular one of the logical switches operate on a plurality of additional host machines and communicate with the DHCP module on the host machine. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A non-transitory machine readable medium storing a program for execution by at least one processing unit of a host machine, the program comprising sets of instructions for:
-
receiving a plurality of database table entries for generating a configuration file for a Dynamic Host Configuration Protocol (DHCP) module executing within a virtualized container operating on the host machine; determining, based on a particular entry in the received database table entries, whether the virtualized container exists on the host machine; when the virtualized container is determined not to exist on the host machine; creating the virtualized container on the host machine; generating the configuration file for use by the DHCP module that executes in the virtualized container by (i) converting a first subset of the plurality of received database table entries that define a set of logical switches of a logical network for which DHCP service is provided into subnet data that is stored in the configuration file for use by the DHCP module and (ii) converting a second subset of the plurality of received database table entries that define machines connected to the logical switches into address bindings that are stored in the configuration file for use by the DHCP module; and initializing the DHCP module in the virtualized container, wherein the DHCP module reads the configuration file in order to provide DHCP service for the machines connected to the set of logical switches, wherein the machines connected to a particular one of the logical switches operate on a plurality of additional host machines and communicate with the DHCP module on the host machine. - View Dependent Claims (7, 8, 9)
-
-
10. A host machine comprising:
-
a set of processing units; and a non-transitory machine readable medium storing a program for execution by at least one of the processing units, the program comprising sets of instructions for; receiving a plurality of database table entries for generating a configuration file for a Dynamic Host Configuration Protocol (DHCP) module executing within a virtualized container operating on the host machine; determining, based on a particular entry in the received database table entries, whether the virtualized container exists on the host machine; when the virtualized container is determined not to exist on the host machine; creating the virtualized container on the host machine; generating the configuration file for use by the DHCP module that executes in the virtualized container by (i) converting a first subset of the plurality of received database table entries that define a set of logical switches of a logical network for which DHCP service is provided into subnet data that is stored in the configuration file for use by the DHCP module and (ii) converting a second subset of the plurality of received database table entries that define machines connected to the logical switches into address bindings that are stored in the configuration file for use by the DHCP module; and initializing the DHCP module in the virtualized container, wherein the DHCP module reads the configuration file in order to provide DHCP service for the machines connected to the set of logical switches, wherein the machines connected to a particular one of the logical switches operate on a plurality of additional host machines and communicate with the DHCP module on the host machine. - View Dependent Claims (11, 12, 13, 14)
-
Specification