Univention Bugzilla – Bug 25021
UDM module networks/network should skip typical Router-IPs
Last modified: 2020-07-03 20:53:58 CEST
+++ This bug was initially created as a clone of Bug #18581 +++ Das über das UDM-Modul Netzwerk gepflegte Netzwerkobjekt sollte typische Router/Gateway-IPs bei der Vergabe auslassen, z.B. .1 und .254 zumindest die .1 Adresse wird in 3.0 wieder vorgeschlagen.
In simpleComputer ist für das CLI folgender Fall implementiert if not self['ip']: ... if '.' in self['ip'][0] and self['ip'][0].split('.')[-1] in ["0", "1", "254"]: network_object.stepIp() network_object.modify() continue Das Web-Frontend nutzt diesen Teil nicht, da es schon vor dem Anlegen des Rechners die nächstmögliche IP-Adresse ermittelt (Netzwerk-Objekt erzeugen, hochzählen und rausgeben). Die ermittelten Werte werden dann in die entsprechenden Attribute beim Anlegen eingetragen und dadurch wird dieser Code-Snippet nicht angesprungen. Am sinnvollsten wäre es wenn diese Sonderregel in stepIp vom Network-Objekt implementiert wird. dann machen beide Frontends es automatisch richtig.
This issue has been filed against UCS 3. UCS 3 is out of the normal maintenance and many UCS components have vastly changed in UCS 4. If this issue is still valid, please change the version to a newer UCS version otherwise this issue will be automatically closed in the next weeks.
This issue has been filed against UCS 4.2. UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.