at 23.11-pre 1.1 kB view raw
1{ lib } : 2 3with lib; 4{ 5 options = { 6 7 addr = mkOption { 8 type = types.str; 9 description = lib.mdDoc '' 10 IP address, optionally with a netmask: IPADDR[/MASK] 11 ''; 12 }; 13 14 brd = mkOption { 15 type = types.nullOr types.str; 16 default = null; 17 description = lib.mdDoc '' 18 The broadcast address on the interface. 19 ''; 20 }; 21 22 dev = mkOption { 23 type = types.nullOr types.str; 24 default = null; 25 description = lib.mdDoc '' 26 The name of the device to add the address to. 27 ''; 28 }; 29 30 scope = mkOption { 31 type = types.nullOr types.str; 32 default = null; 33 description = lib.mdDoc '' 34 The scope of the area where this address is valid. 35 ''; 36 }; 37 38 label = mkOption { 39 type = types.nullOr types.str; 40 default = null; 41 description = lib.mdDoc '' 42 Each address may be tagged with a label string. In order to preserve 43 compatibility with Linux-2.0 net aliases, this string must coincide with 44 the name of the device or must be prefixed with the device name followed 45 by colon. 46 ''; 47 }; 48 49 }; 50}