function UpdateDynamicIpAllocation()

in helper/src/components/networkTab.js [21:38]


    function UpdateDynamicIpAllocation(v) {
        //update the Dynamic IP Allocation property, where this fn was called from
        updateFn("cniDynamicIpAllocation", v)

        //update max pods to 250 if dynamic IP allocation is enabled
        if (v) {
            updateFn("maxPods", 250)
         } else {
            updateFn("maxPods", defaults.net.maxPods)
         }

        //update pod cidr
        if (v) {
            updateFn("podCidr", defaults.net.podCidr.replace("/22","/24"))
         } else {
            updateFn("podCidr", defaults.net.podCidr)
         }
    }