Parcourir la source

[5305] Stub entry for shared-networks element in server's config added.

Marcin Siodelski il y a 7 ans
Parent
commit
fbadec7947
2 fichiers modifiés avec 18 ajouts et 0 suppressions
  1. 9 0
      src/bin/dhcp4/json_config_parser.cc
  2. 9 0
      src/bin/dhcp6/json_config_parser.cc

+ 9 - 0
src/bin/dhcp4/json_config_parser.cc

@@ -290,6 +290,15 @@ configureDhcp4Server(Dhcpv4Srv&, isc::data::ConstElementPtr config_set,
                 continue;
                 continue;
             }
             }
 
 
+            if (config_pair.first == "shared-networks") {
+                /// @todo We need to create instance of SharedNetworks4ListParser
+                /// and parse the list of the shared networks into the
+                /// CfgSharedNetworks4 object. One additional step is then to
+                /// add subnets from the CfgSharedNetworks4 into CfgSubnets4
+                /// as well.
+                continue;
+            }
+
             // Timers are not used in the global scope. Their values are derived
             // Timers are not used in the global scope. Their values are derived
             // to specific subnets (see SimpleParser6::deriveParameters).
             // to specific subnets (see SimpleParser6::deriveParameters).
             // decline-probation-period, dhcp4o6-port, echo-client-id are
             // decline-probation-period, dhcp4o6-port, echo-client-id are

+ 9 - 0
src/bin/dhcp6/json_config_parser.cc

@@ -382,6 +382,15 @@ configureDhcp6Server(Dhcpv6Srv&, isc::data::ConstElementPtr config_set,
                 continue;
                 continue;
             }
             }
 
 
+            if (config_pair.first == "shared-networks") {
+                /// @todo We need to create instance of SharedNetworks4ListParser
+                /// and parse the list of the shared networks into the
+                /// CfgSharedNetworks4 object. One additional step is then to
+                /// add subnets from the CfgSharedNetworks6 into CfgSubnets6
+                /// as well.
+                continue;
+            }
+
             // Timers are not used in the global scope. Their values are derived
             // Timers are not used in the global scope. Their values are derived
             // to specific subnets (see SimpleParser6::deriveParameters).
             // to specific subnets (see SimpleParser6::deriveParameters).
             // decline-probation-period and dhcp4o6-port are handled in the
             // decline-probation-period and dhcp4o6-port are handled in the