Annotation of embedaddon/dhcp/tests/failover/dhcp-1.cf, revision 1.1.1.1

1.1       misho       1: authoritative;
                      2: 
                      3: class "even" {
                      4:   match if ((extract-int (suffix
                      5:                          (pick-first-value (option dhcp-client-identifier,
                      6:                                             hardware), 1), 8) % 2) = 0);
                      7: }
                      8: class "odd" {
                      9:   match if ((extract-int (suffix
                     10:                          (pick-first-value (option dhcp-client-identifier,
                     11:                                             hardware), 1), 8) % 2) = 1);
                     12: }
                     13: 
                     14: lease-file-name "dhcp-1.leases";
                     15: pid-file-name "dhcp-1.pid";
                     16: ddns-update-style none;
                     17: local-port 50002;
                     18: remote-port 50003;
                     19: omapi-port 50004;
                     20: omapi-key FOO;
                     21: 
                     22: default-lease-time 600;
                     23: max-lease-time 600;
                     24: 
                     25: failover peer "foo" {
                     26:   primary;
                     27:   address 10.0.0.1;
                     28:   port 51000;
                     29:   peer address 10.0.0.1;
                     30:   peer port 51001;
                     31:   max-response-delay 60;
                     32:   max-unacked-updates 10;
                     33:   mclt 100;
                     34:   hba ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:
                     35:       00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00;
                     36:   load balance max seconds 2;
                     37: }
                     38: 
                     39: option space SUNW;
                     40: option SUNW.root-mount-options code 1 = text;
                     41: option SUNW.root-server-ip-address code 2 = ip-address;
                     42: option SUNW.root-server-hostname code 3 = text;
                     43: option SUNW.root-path-name code 4 = text;
                     44: option SUNW.swap-server-ip-address code 5 = ip-address;
                     45: option SUNW.swap-file-path code 6 = text;
                     46: option SUNW.boot-file-path code 7 = text;
                     47: option SUNW.posix-timezone-string code 8 = text;
                     48: option SUNW.boot-read-size code 9 = unsigned integer 16;
                     49: option SUNW.install-server-ip-address code 10 = ip-address;
                     50: option SUNW.install-server-hostname code 11 = text;
                     51: option SUNW.install-path code 12 = text;
                     52: option SUNW.sysid-config-file-server code 13 = text;
                     53: option SUNW.JumpStart-server code 14 = text;
                     54: option SUNW.terminal-name code 15 = text;
                     55: 
                     56: class "solaris-i86pc" {
                     57:   match if option vendor-class-identifier = "SUNW.i86pc";
                     58:   vendor-option-space SUNW;
                     59:   option SUNW.boot-file-path "/platform/i86pc/kernel/unix";
                     60:   option SUNW.root-path-name "/export/root/i86pc";
                     61: }
                     62: 
                     63: class "solaris-sun4u" {
                     64:   match if option vendor-class-identifier = "SUNW.Ultra-5_10";
                     65:   vendor-option-space SUNW;
                     66:   option SUNW.install-path "/export/2/s581_sparc";
                     67:   option SUNW.root-path-name "/export/2/s581_sparc/Solaris_8/Tools/Boot";
                     68: }
                     69: 
                     70: option domain-name "connectathon.org.";
                     71: option SUNW.root-server-ip-address 172.16.113.1;
                     72: option SUNW.root-server-hostname "sundhcp-server17-1";
                     73: 
                     74: class "sniffer" {
                     75:   match if option host-name = "sniffer";
                     76: }
                     77: 
                     78: key FOO {
                     79:   algorithm HMAC-MD5.SIG-ALG.REG.INT;
                     80:   secret ABCD;
                     81: }
                     82: 
                     83: zone BISBEE.FUGUE.COM. {
                     84:   primary 127.0.0.1;
                     85:   key FOO;
                     86: }
                     87: 
                     88: zone 17.127.10.in-addr.arpa. {
                     89:   primary 127.0.0.1;
                     90:   key FOO;
                     91: }
                     92: 
                     93: zone 0.0.10.in-addr.arpa. {
                     94:   primary 127.0.0.1;
                     95:   key FOO;
                     96: }
                     97: 
                     98: subnet 204.152.186.128 netmask 255.255.255.192 {
                     99:   not authoritative;
                    100: }
                    101: 
                    102: shared-network LOCAL {
                    103:   subnet 127.0.0.0 netmask 255.255.255.0 {
                    104:   }
                    105:   subnet 10.0.2.0 netmask 255.255.255.0 {
                    106:     pool {
                    107:       deny dynamic bootp clients;
                    108:       failover peer "foo";
                    109:       range 10.0.2.100 10.0.2.200;
                    110:     }
                    111:   }
                    112: }
                    113: 
                    114: shared-network NET-187 {
                    115:   subnet 204.152.187.0 netmask 255.255.255.0 {
                    116:   }
                    117:   subnet 205.140.116.224 netmask 255.255.255.248 {
                    118:   }
                    119:   subnet 10.0.1.0 netmask 255.255.255.0 {
                    120:     pool {
                    121:       deny dynamic bootp clients;
                    122:       failover peer "foo";
                    123:       range 10.0.1.10 10.0.1.200;
                    124:     }
                    125:   }
                    126: }
                    127: 
                    128: subnet 10.0.0.0 netmask 255.255.255.0 {
                    129:   pool {
                    130:     deny dynamic bootp clients;
                    131:     allow members of "even";
                    132:     option impress-servers 10.0.0.0;
                    133:     failover peer "foo";
                    134:     range 10.0.0.10 10.0.0.54;
                    135:     range 10.0.0.100 10.0.0.149;
                    136:   }
                    137:   pool {
                    138:     deny dynamic bootp clients;
                    139:     allow members of "odd";
                    140:     failover peer "foo";
                    141:     option impress-servers 10.0.0.1;
                    142:     range 10.0.0.55 10.0.0.99;
                    143:     range 10.0.0.150 10.0.0.200;
                    144:   }
                    145:   pool { 
                    146:     deny dynamic bootp clients;
                    147:     allow members of "sniffer";
                    148:     failover peer "foo";
                    149:     range 10.0.0.9 10.0.0.9;   
                    150:   }
                    151:   option routers 10.0.0.1;
                    152:   option domain-name "bisbee.fugue.com";
                    153:   option domain-name-servers 10.0.0.1;
                    154: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>