1-- 2-- PostgreSQL database dump 3-- 4 5SET statement_timeout = 0; 6SET client_encoding = 'UTF8'; 7SET standard_conforming_strings = on; 8SET check_function_bodies = false; 9SET client_min_messages = warning; 10 11-- 12-- Name: dns; Type: SCHEMA; Schema: -; Owner: nm 13-- 14 15CREATE SCHEMA dns; 16 17 18ALTER SCHEMA dns OWNER TO nm; 19 20-- 21-- Name: global; Type: SCHEMA; Schema: -; Owner: nm 22-- 23 24CREATE SCHEMA global; 25 26 27ALTER SCHEMA global OWNER TO nm; 28 29-- 30-- Name: mac; Type: SCHEMA; Schema: -; Owner: nm 31-- 32 33CREATE SCHEMA mac; 34 35 36ALTER SCHEMA mac OWNER TO nm; 37 38-- 39-- Name: pgauth; Type: SCHEMA; Schema: -; Owner: nm 40-- 41 42CREATE SCHEMA pgauth; 43 44 45ALTER SCHEMA pgauth OWNER TO nm; 46 47-- 48-- Name: topo; Type: SCHEMA; Schema: -; Owner: nm 49-- 50 51CREATE SCHEMA topo; 52 53 54ALTER SCHEMA topo OWNER TO nm; 55 56-- 57-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: 58-- 59 60CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; 61 62 63-- 64-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: 65-- 66 67COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language'; 68 69 70-- 71-- Name: pltcl; Type: EXTENSION; Schema: -; Owner: 72-- 73 74CREATE EXTENSION IF NOT EXISTS pltcl WITH SCHEMA pg_catalog; 75 76 77-- 78-- Name: EXTENSION pltcl; Type: COMMENT; Schema: -; Owner: 79-- 80 81COMMENT ON EXTENSION pltcl IS 'PL/Tcl procedural language'; 82 83 84SET search_path = mac, pg_catalog; 85 86-- 87-- Name: ipmac_t; Type: TYPE; Schema: mac; Owner: nm 88-- 89 90CREATE TYPE ipmac_t AS ( 91 ip inet, 92 mac macaddr 93); 94 95 96ALTER TYPE mac.ipmac_t OWNER TO nm; 97 98-- 99-- Name: portmac_t; Type: TYPE; Schema: mac; Owner: nm 100-- 101 102CREATE TYPE portmac_t AS ( 103 mac macaddr, 104 port text, 105 vlanid integer 106); 107 108 109ALTER TYPE mac.portmac_t OWNER TO nm; 110 111SET search_path = public, pg_catalog; 112 113-- 114-- Name: iprange_t; Type: TYPE; Schema: public; Owner: nm 115-- 116 117CREATE TYPE iprange_t AS ( 118 a inet, 119 n integer 120); 121 122 123ALTER TYPE public.iprange_t OWNER TO nm; 124 125SET search_path = pgauth, pg_catalog; 126 127-- 128-- Name: add_soundex(); Type: FUNCTION; Schema: pgauth; Owner: nm 129-- 130 131CREATE FUNCTION add_soundex() RETURNS trigger 132 LANGUAGE plpgsql 133 AS $$ 134 BEGIN 135 NEW.phnom := pgauth.SOUNDEX (NEW.nom) ; 136 NEW.phprenom := pgauth.SOUNDEX (NEW.prenom) ; 137 RETURN NEW ; 138 END ; 139 $$; 140 141 142ALTER FUNCTION pgauth.add_soundex() OWNER TO nm; 143 144-- 145-- Name: soundex(text); Type: FUNCTION; Schema: pgauth; Owner: nm 146-- 147 148CREATE FUNCTION soundex(text) RETURNS text 149 LANGUAGE pltcl STRICT 150 AS $_$ 151 array set soundexFrenchCode { 152 a 0 b 1 c 2 d 3 e 0 f 9 g 7 h 0 i 0 j 7 k 2 l 4 m 5 153 n 5 o 0 p 1 q 2 r 6 s 8 t 3 u 0 v 9 w 9 x 8 y 0 z 8 154 } 155 set accentedFrenchMap { 156 é e ë e ê e è e É E Ë E Ê E È E 157 ä a â a à a Ä A Â A À A 158 ï i î i Ï I Î I 159 ö o ô o Ö O Ô O 160 ü u û u ù u Ü U Û U Ù U 161 ç ss Ç SS 162 } 163 set key "" 164 165 # Map accented characters 166 set TempIn [string map $accentedFrenchMap $1] 167 168 # Only use alphabetic characters, so strip out all others 169 # also, soundex index uses only lower case chars, so force to lower 170 171 regsub -all {[^a-z]} [string tolower $TempIn] {} TempIn 172 if {$TempIn eq ""} then { 173 return Z000 174 } 175 set last [string index $TempIn 0] 176 set key [string toupper $last] 177 set last $soundexFrenchCode($last) 178 179 # Scan rest of string, stop at end of string or when the key is full 180 181 set count 1 182 set MaxIndex [string length $TempIn] 183 184 for {set index 1} {(($count < 4) && ($index < $MaxIndex))} {incr index } { 185 set chcode $soundexFrenchCode([string index $TempIn $index]) 186 # Fold together adjacent letters sharing the same code 187 if {$last ne $chcode} then { 188 set last $chcode 189 # Ignore code==0 letters except as separators 190 if {$last != 0} then { 191 set key $key$last 192 incr count 193 } 194 } 195 } 196 return [string range ${key}0000 0 3] 197 $_$; 198 199 200ALTER FUNCTION pgauth.soundex(text) OWNER TO nm; 201 202SET search_path = public, pg_catalog; 203 204-- 205-- Name: gen_norm_iddom(integer); Type: FUNCTION; Schema: public; Owner: nm 206-- 207 208CREATE FUNCTION gen_norm_iddom(integer) RETURNS integer 209 LANGUAGE plpgsql 210 AS $_$ 211 BEGIN 212 UPDATE dns.zone_normale SET generer = 1 213 WHERE selection = ( 214 SELECT domaine.nom 215 FROM dns.domaine 216 WHERE domaine.iddom = $1 217 ) ; 218 RETURN 1 ; 219 END ; 220 $_$; 221 222 223ALTER FUNCTION public.gen_norm_iddom(integer) OWNER TO nm; 224 225-- 226-- Name: gen_norm_idrr(integer); Type: FUNCTION; Schema: public; Owner: nm 227-- 228 229CREATE FUNCTION gen_norm_idrr(integer) RETURNS integer 230 LANGUAGE plpgsql 231 AS $_$ 232 BEGIN 233 UPDATE dns.zone_normale SET generer = 1 234 WHERE selection = ( 235 SELECT domaine.nom 236 FROM dns.domaine, dns.rr 237 WHERE rr.idrr = $1 AND rr.iddom = domaine.iddom 238 ) ; 239 RETURN 1 ; 240 END ; 241 $_$; 242 243 244ALTER FUNCTION public.gen_norm_idrr(integer) OWNER TO nm; 245 246-- 247-- Name: gen_relais(integer); Type: FUNCTION; Schema: public; Owner: nm 248-- 249 250CREATE FUNCTION gen_relais(integer) RETURNS integer 251 LANGUAGE plpgsql 252 AS $_$ 253 BEGIN 254 UPDATE dns.zone_normale SET generer = 1 255 WHERE selection = (SELECT nom FROM dns.domaine WHERE iddom = $1) ; 256 RETURN 1 ; 257 END ; 258 $_$; 259 260 261ALTER FUNCTION public.gen_relais(integer) OWNER TO nm; 262 263-- 264-- Name: gen_rev4(inet); Type: FUNCTION; Schema: public; Owner: nm 265-- 266 267CREATE FUNCTION gen_rev4(inet) RETURNS integer 268 LANGUAGE plpgsql 269 AS $_$ 270 BEGIN 271 UPDATE dns.zone_reverse4 SET generer = 1 WHERE $1 <<= selection ; 272 RETURN 1 ; 273 END ; 274 $_$; 275 276 277ALTER FUNCTION public.gen_rev4(inet) OWNER TO nm; 278 279-- 280-- Name: gen_rev6(inet); Type: FUNCTION; Schema: public; Owner: nm 281-- 282 283CREATE FUNCTION gen_rev6(inet) RETURNS integer 284 LANGUAGE plpgsql 285 AS $_$ 286 BEGIN 287 UPDATE dns.zone_reverse6 SET generer = 1 WHERE $1 <<= selection ; 288 RETURN 1 ; 289 END ; 290 $_$; 291 292 293ALTER FUNCTION public.gen_rev6(inet) OWNER TO nm; 294 295-- 296-- Name: generer_dhcp(); Type: FUNCTION; Schema: public; Owner: nm 297-- 298 299CREATE FUNCTION generer_dhcp() RETURNS trigger 300 LANGUAGE plpgsql 301 AS $$ 302 BEGIN 303 UPDATE dns.dhcp SET generer = 1 ; 304 RETURN NEW ; 305 END ; 306 $$; 307 308 309ALTER FUNCTION public.generer_dhcp() OWNER TO nm; 310 311-- 312-- Name: ipranges(cidr, integer, integer); Type: FUNCTION; Schema: public; Owner: nm 313-- 314 315CREATE FUNCTION ipranges(reseau cidr, lim integer, grp integer) RETURNS SETOF iprange_t 316 LANGUAGE plpgsql 317 AS $$ 318 DECLARE 319 inarange BOOLEAN ; 320 r RECORD ; 321 q iprange_t%ROWTYPE ; 322 BEGIN 323 PERFORM markcidr (reseau, lim, grp) ; 324 inarange := FALSE ; 325 FOR r IN (SELECT adr, avail FROM allip ORDER BY adr) 326 LOOP 327 IF inarange THEN 328 -- (q.a, q.n) is already a valid range 329 IF r.avail = 1 THEN 330 q.n := q.n + 1 ; 331 ELSE 332 RETURN NEXT q ; 333 inarange := FALSE ; 334 END IF ; 335 ELSE 336 -- not inside a range 337 IF r.avail = 1 THEN 338 -- start a new range (q.a, q.n) 339 q.a := r.adr ; 340 q.n := 1 ; 341 inarange := TRUE ; 342 END IF ; 343 END IF ; 344 END LOOP ; 345 IF inarange THEN 346 RETURN NEXT q ; 347 END IF ; 348 DROP TABLE allip ; 349 RETURN ; 350 END ; 351 $$; 352 353 354ALTER FUNCTION public.ipranges(reseau cidr, lim integer, grp integer) OWNER TO nm; 355 356-- 357-- Name: markcidr(cidr, integer, integer); Type: FUNCTION; Schema: public; Owner: nm 358-- 359 360CREATE FUNCTION markcidr(reseau cidr, lim integer, grp integer) RETURNS void 361 LANGUAGE plpgsql 362 AS $$ 363 DECLARE 364 min INET ; 365 max INET ; 366 a INET ; 367 BEGIN 368 min := INET (HOST (reseau)) ; 369 max := INET (HOST (BROADCAST (reseau))) ; 370 371 IF max - min - 2 > lim THEN 372 RAISE EXCEPTION 'Too many addresses' ; 373 END IF ; 374 375 -- All this exception machinery is here since we can't use : 376 -- DROP TABLE IF EXISTS allip ; 377 -- It raises a notice exception, which prevents 378 -- script "ajout" to function 379 BEGIN 380 DROP TABLE allip ; 381 EXCEPTION 382 WHEN OTHERS THEN -- nothing 383 END ; 384 385 CREATE TEMPORARY TABLE allip ( 386 adr INET, 387 avail INTEGER, 388 -- 0 : unavailable (broadcast addr, no right on addr, etc.) 389 -- 1 : not declared and not in a dhcp range 390 -- 2 : declared and not in a dhcp range 391 -- 3 : not declared and in a dhcp range 392 -- 4 : declared and in a dhcp range 393 fqdn TEXT -- if 2 or 4, then fqdn else NULL 394 ) ; 395 396 a := min ; 397 WHILE a <= max LOOP 398 INSERT INTO allip VALUES (a, 1) ; 399 a := a + 1 ; 400 END LOOP ; 401 402 UPDATE allip 403 SET fqdn = rr.nom || '.' || domaine.nom, 404 avail = 2 405 FROM dns.rr_ip, dns.rr, dns.domaine 406 WHERE allip.adr = rr_ip.adr 407 AND rr_ip.idrr = rr.idrr 408 AND rr.iddom = domaine.iddom 409 ; 410 411 UPDATE allip 412 SET avail = CASE 413 WHEN avail = 1 THEN 3 414 WHEN avail = 2 THEN 4 415 END 416 FROM dns.dhcprange 417 WHERE (avail = 1 OR avail = 2) 418 AND adr >= dhcprange.min 419 AND adr <= dhcprange.max 420 ; 421 422 UPDATE allip SET avail = 0 423 WHERE adr = min OR adr = max OR NOT valide_ip_grp (adr, grp) ; 424 425 RETURN ; 426 427 END ; 428 $$; 429 430 431ALTER FUNCTION public.markcidr(reseau cidr, lim integer, grp integer) OWNER TO nm; 432 433-- 434-- Name: modif_routerdb(); Type: FUNCTION; Schema: public; Owner: nm 435-- 436 437CREATE FUNCTION modif_routerdb() RETURNS trigger 438 LANGUAGE plpgsql 439 AS $$ 440 BEGIN 441 INSERT INTO topo.modeq (eq) VALUES ('_routerdb') ; 442 RETURN NEW ; 443 END ; 444 $$; 445 446 447ALTER FUNCTION public.modif_routerdb() OWNER TO nm; 448 449-- 450-- Name: modif_vlan(); Type: FUNCTION; Schema: public; Owner: nm 451-- 452 453CREATE FUNCTION modif_vlan() RETURNS trigger 454 LANGUAGE plpgsql 455 AS $$ 456 BEGIN 457 INSERT INTO topo.modeq (eq) VALUES ('_vlan') ; 458 RETURN NEW ; 459 END ; 460 $$; 461 462 463ALTER FUNCTION public.modif_vlan() OWNER TO nm; 464 465-- 466-- Name: modifier_ip(); Type: FUNCTION; Schema: public; Owner: nm 467-- 468 469CREATE FUNCTION modifier_ip() RETURNS trigger 470 LANGUAGE plpgsql 471 AS $$ 472 BEGIN 473 IF TG_OP = 'INSERT' 474 THEN 475 PERFORM sum (gen_rev4 (NEW.adr)) ; 476 PERFORM sum (gen_rev6 (NEW.adr)) ; 477 PERFORM sum (gen_norm_idrr (NEW.idrr)) ; 478 479 UPDATE dns.dhcp SET generer = 1 480 FROM dns.rr WHERE rr.idrr = NEW.idrr AND rr.mac IS NOT NULL ; 481 482 UPDATE dns.dhcp SET generer = 1 483 FROM dns.rr WHERE rr.idrr = NEW.idrr AND rr.mac IS NOT NULL ; 484 END IF ; 485 486 IF TG_OP = 'UPDATE' 487 THEN 488 PERFORM sum (gen_rev4 (NEW.adr)) ; 489 PERFORM sum (gen_rev4 (OLD.adr)) ; 490 PERFORM sum (gen_rev6 (NEW.adr)) ; 491 PERFORM sum (gen_rev6 (OLD.adr)) ; 492 PERFORM sum (gen_norm_idrr (NEW.idrr)) ; 493 PERFORM sum (gen_norm_idrr (OLD.idrr)) ; 494 495 UPDATE dns.dhcp SET generer = 1 496 FROM dns.rr WHERE rr.idrr = OLD.idrr AND rr.mac IS NOT NULL ; 497 UPDATE dns.dhcp SET generer = 1 498 FROM dns.rr WHERE rr.idrr = NEW.idrr AND rr.mac IS NOT NULL ; 499 END IF ; 500 501 IF TG_OP = 'DELETE' 502 THEN 503 PERFORM sum (gen_rev4 (OLD.adr)) ; 504 PERFORM sum (gen_rev6 (OLD.adr)) ; 505 PERFORM sum (gen_norm_idrr (OLD.idrr)) ; 506 507 UPDATE dns.dhcp SET generer = 1 508 FROM dns.rr WHERE rr.idrr = OLD.idrr AND rr.mac IS NOT NULL ; 509 END IF ; 510 511 RETURN NEW ; 512 END ; 513 $$; 514 515 516ALTER FUNCTION public.modifier_ip() OWNER TO nm; 517 518-- 519-- Name: modifier_mxcname(); Type: FUNCTION; Schema: public; Owner: nm 520-- 521 522CREATE FUNCTION modifier_mxcname() RETURNS trigger 523 LANGUAGE plpgsql 524 AS $$ 525 BEGIN 526 IF TG_OP = 'INSERT' 527 THEN 528 PERFORM sum (gen_norm_idrr (NEW.idrr)) ; 529 END IF ; 530 531 IF TG_OP = 'UPDATE' 532 THEN 533 PERFORM sum (gen_norm_idrr (NEW.idrr)) ; 534 PERFORM sum (gen_norm_idrr (OLD.idrr)) ; 535 END IF ; 536 537 IF TG_OP = 'DELETE' 538 THEN 539 PERFORM sum (gen_norm_idrr (OLD.idrr)) ; 540 END IF ; 541 542 RETURN NEW ; 543 END ; 544 $$; 545 546 547ALTER FUNCTION public.modifier_mxcname() OWNER TO nm; 548 549-- 550-- Name: modifier_relais(); Type: FUNCTION; Schema: public; Owner: nm 551-- 552 553CREATE FUNCTION modifier_relais() RETURNS trigger 554 LANGUAGE plpgsql 555 AS $$ 556 BEGIN 557 IF TG_OP = 'INSERT' 558 THEN 559 PERFORM sum (gen_relais (NEW.iddom)) ; 560 END IF ; 561 562 IF TG_OP = 'UPDATE' 563 THEN 564 PERFORM sum (gen_relais (NEW.iddom)) ; 565 PERFORM sum (gen_relais (OLD.iddom)) ; 566 END IF ; 567 568 IF TG_OP = 'DELETE' 569 THEN 570 PERFORM sum (gen_relais (OLD.iddom)) ; 571 END IF ; 572 573 RETURN NEW ; 574 END ; 575 $$; 576 577 578ALTER FUNCTION public.modifier_relais() OWNER TO nm; 579 580-- 581-- Name: modifier_rr(); Type: FUNCTION; Schema: public; Owner: nm 582-- 583 584CREATE FUNCTION modifier_rr() RETURNS trigger 585 LANGUAGE plpgsql 586 AS $$ 587 BEGIN 588 IF TG_OP = 'INSERT' 589 THEN 590 PERFORM sum (gen_norm_iddom (NEW.iddom)) ; 591 PERFORM sum (gen_rev4 (adr)) FROM dns.rr_ip WHERE idrr = NEW.idrr ; 592 PERFORM sum (gen_rev6 (adr)) FROM dns.rr_ip WHERE idrr = NEW.idrr ; 593 594 IF NEW.mac IS NOT NULL 595 THEN 596 UPDATE dns.dhcp SET generer = 1 ; 597 END IF ; 598 END IF ; 599 600 IF TG_OP = 'UPDATE' 601 THEN 602 PERFORM sum (gen_norm_iddom (NEW.iddom)) ; 603 PERFORM sum (gen_rev4 (adr)) FROM dns.rr_ip WHERE idrr = NEW.idrr ; 604 PERFORM sum (gen_rev6 (adr)) FROM dns.rr_ip WHERE idrr = NEW.idrr ; 605 PERFORM sum (gen_norm_iddom (OLD.iddom)) ; 606 PERFORM sum (gen_rev4 (adr)) FROM dns.rr_ip WHERE idrr = OLD.idrr ; 607 PERFORM sum (gen_rev6 (adr)) FROM dns.rr_ip WHERE idrr = OLD.idrr ; 608 609 IF OLD.mac IS DISTINCT FROM NEW.mac 610 OR OLD.iddhcpprofil IS DISTINCT FROM NEW.iddhcpprofil 611 THEN 612 UPDATE dns.dhcp SET generer = 1 ; 613 END IF ; 614 END IF ; 615 616 IF TG_OP = 'DELETE' 617 THEN 618 PERFORM sum (gen_norm_iddom (OLD.iddom)) ; 619 PERFORM sum (gen_rev4 (adr)) FROM dns.rr_ip WHERE idrr = OLD.idrr ; 620 PERFORM sum (gen_rev6 (adr)) FROM dns.rr_ip WHERE idrr = OLD.idrr ; 621 622 IF OLD.mac IS NOT NULL 623 THEN 624 UPDATE dns.dhcp SET generer = 1 ; 625 END IF ; 626 END IF ; 627 628 RETURN NEW ; 629 END ; 630 $$; 631 632 633ALTER FUNCTION public.modifier_rr() OWNER TO nm; 634 635-- 636-- Name: modifier_zone(); Type: FUNCTION; Schema: public; Owner: nm 637-- 638 639CREATE FUNCTION modifier_zone() RETURNS trigger 640 LANGUAGE plpgsql 641 AS $$ 642 BEGIN 643 IF NEW.prologue <> OLD.prologue 644 OR NEW.rrsup <> OLD.rrsup 645 OR NEW.selection <> OLD.selection 646 THEN 647 NEW.generer := 1 ; 648 END IF ; 649 RETURN NEW ; 650 END ; 651 $$; 652 653 654ALTER FUNCTION public.modifier_zone() OWNER TO nm; 655 656-- 657-- Name: valide_dhcprange_grp(integer, inet, inet); Type: FUNCTION; Schema: public; Owner: nm 658-- 659 660CREATE FUNCTION valide_dhcprange_grp(integer, inet, inet) RETURNS boolean 661 LANGUAGE pltcl 662 AS $_$ 663 set min {} 664 foreach o [split $2 "."] { 665 lappend min [format "%02x" $o] 666 } 667 set min [join $min ""] 668 set min [expr 0x$min] 669 set ipbin [expr 0x$min] 670 671 set max {} 672 foreach o [split $3 "."] { 673 lappend max [format "%02x" $o] 674 } 675 set max [join $max ""] 676 set max [expr 0x$max] 677 678 set r t 679 for {set ipbin $min} {$ipbin <= $max} {incr ipbin} { 680 # Prepare the new IP address 681 set ip {} 682 set o $ipbin 683 for {set i 0} {$i < 4} {incr i} { 684 set ip [linsert $ip 0 [expr $o & 0xff]] 685 set o [expr $o >> 8] 686 } 687 set ip [join $ip "."] 688 689 # Check validity 690 spi_exec "SELECT valide_ip_grp ('$ip', $1) AS v" 691 692 if {! [string equal $v "t"]} then { 693 set r f 694 break 695 } 696 } 697 return $r 698 $_$; 699 700 701ALTER FUNCTION public.valide_dhcprange_grp(integer, inet, inet) OWNER TO nm; 702 703-- 704-- Name: valide_ip_cor(inet, integer); Type: FUNCTION; Schema: public; Owner: nm 705-- 706 707CREATE FUNCTION valide_ip_cor(inet, integer) RETURNS boolean 708 LANGUAGE plpgsql 709 AS $_$ 710 BEGIN 711 RETURN valide_ip_grp ($1, idgrp) FROM global.corresp WHERE idcor = $2 ; 712 END ; 713 $_$; 714 715 716ALTER FUNCTION public.valide_ip_cor(inet, integer) OWNER TO nm; 717 718-- 719-- Name: valide_ip_grp(inet, integer); Type: FUNCTION; Schema: public; Owner: nm 720-- 721 722CREATE FUNCTION valide_ip_grp(inet, integer) RETURNS boolean 723 LANGUAGE plpgsql 724 AS $_$ 725 BEGIN 726 RETURN ($1 <<= ANY (SELECT adr FROM dns.dr_ip 727 WHERE allow_deny = 1 AND idgrp = $2) 728 AND NOT $1 <<= ANY (SELECT adr FROM dns.dr_ip 729 WHERE allow_deny = 0 AND idgrp = $2) 730 ) ; 731 END ; 732 $_$; 733 734 735ALTER FUNCTION public.valide_ip_grp(inet, integer) OWNER TO nm; 736 737SET search_path = dns, pg_catalog; 738 739-- 740-- Name: seq_communaute; Type: SEQUENCE; Schema: dns; Owner: nm 741-- 742 743CREATE SEQUENCE seq_communaute 744 START WITH 1 745 INCREMENT BY 1 746 NO MINVALUE 747 NO MAXVALUE 748 CACHE 1; 749 750 751ALTER TABLE dns.seq_communaute OWNER TO nm; 752 753SET default_tablespace = ''; 754 755SET default_with_oids = false; 756 757-- 758-- Name: communaute; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 759-- 760 761CREATE TABLE communaute ( 762 idcommu integer DEFAULT nextval('seq_communaute'::regclass) NOT NULL, 763 nom text 764); 765 766 767ALTER TABLE dns.communaute OWNER TO nm; 768 769-- 770-- Name: dhcp; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 771-- 772 773CREATE TABLE dhcp ( 774 generer integer 775); 776 777 778ALTER TABLE dns.dhcp OWNER TO nm; 779 780-- 781-- Name: seq_dhcpprofil; Type: SEQUENCE; Schema: dns; Owner: nm 782-- 783 784CREATE SEQUENCE seq_dhcpprofil 785 START WITH 1 786 INCREMENT BY 1 787 NO MINVALUE 788 NO MAXVALUE 789 CACHE 1; 790 791 792ALTER TABLE dns.seq_dhcpprofil OWNER TO nm; 793 794-- 795-- Name: dhcpprofil; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 796-- 797 798CREATE TABLE dhcpprofil ( 799 iddhcpprofil integer DEFAULT nextval('seq_dhcpprofil'::regclass) NOT NULL, 800 nom text, 801 texte text, 802 CONSTRAINT dhcpprofil_iddhcpprofil_check CHECK ((iddhcpprofil >= 1)) 803); 804 805 806ALTER TABLE dns.dhcpprofil OWNER TO nm; 807 808-- 809-- Name: seq_dhcprange; Type: SEQUENCE; Schema: dns; Owner: nm 810-- 811 812CREATE SEQUENCE seq_dhcprange 813 START WITH 1 814 INCREMENT BY 1 815 NO MINVALUE 816 NO MAXVALUE 817 CACHE 1; 818 819 820ALTER TABLE dns.seq_dhcprange OWNER TO nm; 821 822-- 823-- Name: dhcprange; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 824-- 825 826CREATE TABLE dhcprange ( 827 iddhcprange integer DEFAULT nextval('seq_dhcprange'::regclass) NOT NULL, 828 min inet, 829 max inet, 830 iddom integer, 831 default_lease_time integer DEFAULT 0, 832 max_lease_time integer DEFAULT 0, 833 iddhcpprofil integer, 834 CONSTRAINT dhcprange_check CHECK ((min <= max)) 835); 836 837 838ALTER TABLE dns.dhcprange OWNER TO nm; 839 840-- 841-- Name: seq_domaine; Type: SEQUENCE; Schema: dns; Owner: nm 842-- 843 844CREATE SEQUENCE seq_domaine 845 START WITH 1 846 INCREMENT BY 1 847 NO MINVALUE 848 NO MAXVALUE 849 CACHE 1; 850 851 852ALTER TABLE dns.seq_domaine OWNER TO nm; 853 854-- 855-- Name: domaine; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 856-- 857 858CREATE TABLE domaine ( 859 iddom integer DEFAULT nextval('seq_domaine'::regclass) NOT NULL, 860 nom text 861); 862 863 864ALTER TABLE dns.domaine OWNER TO nm; 865 866-- 867-- Name: dr_dhcpprofil; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 868-- 869 870CREATE TABLE dr_dhcpprofil ( 871 idgrp integer NOT NULL, 872 iddhcpprofil integer NOT NULL, 873 tri integer 874); 875 876 877ALTER TABLE dns.dr_dhcpprofil OWNER TO nm; 878 879-- 880-- Name: dr_dom; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 881-- 882 883CREATE TABLE dr_dom ( 884 idgrp integer NOT NULL, 885 iddom integer NOT NULL, 886 tri integer, 887 rolemail integer DEFAULT 0, 888 roleweb integer DEFAULT 0 889); 890 891 892ALTER TABLE dns.dr_dom OWNER TO nm; 893 894-- 895-- Name: dr_ip; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 896-- 897 898CREATE TABLE dr_ip ( 899 idgrp integer NOT NULL, 900 adr cidr NOT NULL, 901 allow_deny integer 902); 903 904 905ALTER TABLE dns.dr_ip OWNER TO nm; 906 907-- 908-- Name: dr_reseau; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 909-- 910 911CREATE TABLE dr_reseau ( 912 idgrp integer NOT NULL, 913 idreseau integer NOT NULL, 914 tri integer, 915 dhcp integer DEFAULT 0, 916 acl integer DEFAULT 0 917); 918 919 920ALTER TABLE dns.dr_reseau OWNER TO nm; 921 922-- 923-- Name: seq_etablissement; Type: SEQUENCE; Schema: dns; Owner: nm 924-- 925 926CREATE SEQUENCE seq_etablissement 927 START WITH 1 928 INCREMENT BY 1 929 NO MINVALUE 930 NO MAXVALUE 931 CACHE 1; 932 933 934ALTER TABLE dns.seq_etablissement OWNER TO nm; 935 936-- 937-- Name: etablissement; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 938-- 939 940CREATE TABLE etablissement ( 941 idetabl integer DEFAULT nextval('seq_etablissement'::regclass) NOT NULL, 942 nom text 943); 944 945 946ALTER TABLE dns.etablissement OWNER TO nm; 947 948-- 949-- Name: seq_hinfo; Type: SEQUENCE; Schema: dns; Owner: nm 950-- 951 952CREATE SEQUENCE seq_hinfo 953 START WITH 0 954 INCREMENT BY 1 955 MINVALUE 0 956 NO MAXVALUE 957 CACHE 1; 958 959 960ALTER TABLE dns.seq_hinfo OWNER TO nm; 961 962-- 963-- Name: hinfo; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 964-- 965 966CREATE TABLE hinfo ( 967 idhinfo integer DEFAULT nextval('seq_hinfo'::regclass) NOT NULL, 968 texte text, 969 tri integer, 970 present integer 971); 972 973 974ALTER TABLE dns.hinfo OWNER TO nm; 975 976-- 977-- Name: relais_dom; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 978-- 979 980CREATE TABLE relais_dom ( 981 iddom integer NOT NULL, 982 priorite integer, 983 mx integer NOT NULL 984); 985 986 987ALTER TABLE dns.relais_dom OWNER TO nm; 988 989-- 990-- Name: seq_reseau; Type: SEQUENCE; Schema: dns; Owner: nm 991-- 992 993CREATE SEQUENCE seq_reseau 994 START WITH 1 995 INCREMENT BY 1 996 NO MINVALUE 997 NO MAXVALUE 998 CACHE 1; 999 1000 1001ALTER TABLE dns.seq_reseau OWNER TO nm; 1002 1003-- 1004-- Name: reseau; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 1005-- 1006 1007CREATE TABLE reseau ( 1008 idreseau integer DEFAULT nextval('seq_reseau'::regclass) NOT NULL, 1009 nom text, 1010 localisation text, 1011 adr4 cidr, 1012 adr6 cidr, 1013 idetabl integer, 1014 idcommu integer, 1015 commentaire text, 1016 dhcp integer DEFAULT 0, 1017 gw4 inet, 1018 gw6 inet, 1019 CONSTRAINT au_moins_un_prefixe_v4_ou_v6 CHECK (((adr4 IS NOT NULL) OR (adr6 IS NOT NULL))), 1020 CONSTRAINT dhcp_needs_ipv4_gateway CHECK (((dhcp = 0) OR ((dhcp <> 0) AND (gw4 IS NOT NULL)))), 1021 CONSTRAINT gw4_in_net CHECK ((gw4 <<= (adr4)::inet)), 1022 CONSTRAINT gw6_in_net CHECK ((gw6 <<= (adr6)::inet)) 1023); 1024 1025 1026ALTER TABLE dns.reseau OWNER TO nm; 1027 1028-- 1029-- Name: role_mail; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 1030-- 1031 1032CREATE TABLE role_mail ( 1033 idrr integer NOT NULL, 1034 heberg integer 1035); 1036 1037 1038ALTER TABLE dns.role_mail OWNER TO nm; 1039 1040-- 1041-- Name: role_web; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 1042-- 1043 1044CREATE TABLE role_web ( 1045 idrr integer NOT NULL 1046); 1047 1048 1049ALTER TABLE dns.role_web OWNER TO nm; 1050 1051-- 1052-- Name: seq_rr; Type: SEQUENCE; Schema: dns; Owner: nm 1053-- 1054 1055CREATE SEQUENCE seq_rr 1056 START WITH 1 1057 INCREMENT BY 1 1058 NO MINVALUE 1059 NO MAXVALUE 1060 CACHE 1; 1061 1062 1063ALTER TABLE dns.seq_rr OWNER TO nm; 1064 1065-- 1066-- Name: rr; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 1067-- 1068 1069CREATE TABLE rr ( 1070 idrr integer DEFAULT nextval('seq_rr'::regclass) NOT NULL, 1071 nom text, 1072 iddom integer, 1073 mac macaddr, 1074 iddhcpprofil integer, 1075 idhinfo integer DEFAULT 0, 1076 commentaire text, 1077 respnom text, 1078 respmel text, 1079 idcor integer, 1080 date timestamp(0) without time zone DEFAULT now(), 1081 droitsmtp integer DEFAULT 0, 1082 ttl integer DEFAULT (-1) 1083); 1084 1085 1086ALTER TABLE dns.rr OWNER TO nm; 1087 1088-- 1089-- Name: rr_cname; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 1090-- 1091 1092CREATE TABLE rr_cname ( 1093 idrr integer NOT NULL, 1094 cname integer NOT NULL 1095); 1096 1097 1098ALTER TABLE dns.rr_cname OWNER TO nm; 1099 1100-- 1101-- Name: rr_ip; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 1102-- 1103 1104CREATE TABLE rr_ip ( 1105 idrr integer NOT NULL, 1106 adr inet NOT NULL 1107); 1108 1109 1110ALTER TABLE dns.rr_ip OWNER TO nm; 1111 1112-- 1113-- Name: rr_mx; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 1114-- 1115 1116CREATE TABLE rr_mx ( 1117 idrr integer NOT NULL, 1118 priorite integer, 1119 mx integer NOT NULL 1120); 1121 1122 1123ALTER TABLE dns.rr_mx OWNER TO nm; 1124 1125-- 1126-- Name: seq_zone; Type: SEQUENCE; Schema: dns; Owner: nm 1127-- 1128 1129CREATE SEQUENCE seq_zone 1130 START WITH 1 1131 INCREMENT BY 1 1132 NO MINVALUE 1133 NO MAXVALUE 1134 CACHE 1; 1135 1136 1137ALTER TABLE dns.seq_zone OWNER TO nm; 1138 1139-- 1140-- Name: zone; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 1141-- 1142 1143CREATE TABLE zone ( 1144 idzone integer DEFAULT nextval('seq_zone'::regclass) NOT NULL, 1145 domaine text, 1146 version integer, 1147 prologue text, 1148 rrsup text, 1149 generer integer 1150); 1151 1152 1153ALTER TABLE dns.zone OWNER TO nm; 1154 1155-- 1156-- Name: zone_normale; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 1157-- 1158 1159CREATE TABLE zone_normale ( 1160 selection text 1161) 1162INHERITS (zone); 1163 1164 1165ALTER TABLE dns.zone_normale OWNER TO nm; 1166 1167-- 1168-- Name: zone_reverse4; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 1169-- 1170 1171CREATE TABLE zone_reverse4 ( 1172 selection cidr 1173) 1174INHERITS (zone); 1175 1176 1177ALTER TABLE dns.zone_reverse4 OWNER TO nm; 1178 1179-- 1180-- Name: zone_reverse6; Type: TABLE; Schema: dns; Owner: nm; Tablespace: 1181-- 1182 1183CREATE TABLE zone_reverse6 ( 1184 selection cidr 1185) 1186INHERITS (zone); 1187 1188 1189ALTER TABLE dns.zone_reverse6 OWNER TO nm; 1190 1191SET search_path = global, pg_catalog; 1192 1193-- 1194-- Name: config; Type: TABLE; Schema: global; Owner: nm; Tablespace: 1195-- 1196 1197CREATE TABLE config ( 1198 clef text NOT NULL, 1199 valeur text 1200); 1201 1202 1203ALTER TABLE global.config OWNER TO nm; 1204 1205-- 1206-- Name: seq_corresp; Type: SEQUENCE; Schema: global; Owner: nm 1207-- 1208 1209CREATE SEQUENCE seq_corresp 1210 START WITH 1 1211 INCREMENT BY 1 1212 NO MINVALUE 1213 NO MAXVALUE 1214 CACHE 1; 1215 1216 1217ALTER TABLE global.seq_corresp OWNER TO nm; 1218 1219-- 1220-- Name: corresp; Type: TABLE; Schema: global; Owner: nm; Tablespace: 1221-- 1222 1223CREATE TABLE corresp ( 1224 idcor integer DEFAULT nextval('seq_corresp'::regclass) NOT NULL, 1225 login text, 1226 present integer, 1227 idgrp integer 1228); 1229 1230 1231ALTER TABLE global.corresp OWNER TO nm; 1232 1233-- 1234-- Name: seq_groupe; Type: SEQUENCE; Schema: global; Owner: nm 1235-- 1236 1237CREATE SEQUENCE seq_groupe 1238 START WITH 1 1239 INCREMENT BY 1 1240 NO MINVALUE 1241 NO MAXVALUE 1242 CACHE 1; 1243 1244 1245ALTER TABLE global.seq_groupe OWNER TO nm; 1246 1247-- 1248-- Name: groupe; Type: TABLE; Schema: global; Owner: nm; Tablespace: 1249-- 1250 1251CREATE TABLE groupe ( 1252 idgrp integer DEFAULT nextval('seq_groupe'::regclass) NOT NULL, 1253 nom text, 1254 admin integer DEFAULT 0, 1255 droitsmtp integer DEFAULT 0, 1256 droitttl integer DEFAULT 0, 1257 droitmac integer DEFAULT 0, 1258 droitgenl integer DEFAULT 0 1259); 1260 1261 1262ALTER TABLE global.groupe OWNER TO nm; 1263 1264-- 1265-- Name: log; Type: TABLE; Schema: global; Owner: nm; Tablespace: 1266-- 1267 1268CREATE TABLE log ( 1269 date timestamp(0) without time zone DEFAULT now() NOT NULL, 1270 subsys text NOT NULL, 1271 event text NOT NULL, 1272 login text, 1273 ip inet, 1274 msg text 1275); 1276 1277 1278ALTER TABLE global.log OWNER TO nm; 1279 1280SET search_path = mac, pg_catalog; 1281 1282-- 1283-- Name: session; Type: TABLE; Schema: mac; Owner: nm; Tablespace: 1284-- 1285 1286CREATE TABLE session ( 1287 start timestamp without time zone, 1288 stop timestamp without time zone, 1289 src inet, 1290 closed boolean 1291); 1292 1293 1294ALTER TABLE mac.session OWNER TO nm; 1295 1296-- 1297-- Name: ipmac; Type: TABLE; Schema: mac; Owner: nm; Tablespace: 1298-- 1299 1300CREATE TABLE ipmac ( 1301 data ipmac_t 1302) 1303INHERITS (session); 1304 1305 1306ALTER TABLE mac.ipmac OWNER TO nm; 1307 1308-- 1309-- Name: portmac; Type: TABLE; Schema: mac; Owner: nm; Tablespace: 1310-- 1311 1312CREATE TABLE portmac ( 1313 data portmac_t 1314) 1315INHERITS (session); 1316 1317 1318ALTER TABLE mac.portmac OWNER TO nm; 1319 1320SET search_path = pgauth, pg_catalog; 1321 1322-- 1323-- Name: member; Type: TABLE; Schema: pgauth; Owner: nm; Tablespace: 1324-- 1325 1326CREATE TABLE member ( 1327 login text NOT NULL, 1328 realm text NOT NULL 1329); 1330 1331 1332ALTER TABLE pgauth.member OWNER TO nm; 1333 1334-- 1335-- Name: realm; Type: TABLE; Schema: pgauth; Owner: nm; Tablespace: 1336-- 1337 1338CREATE TABLE realm ( 1339 realm text NOT NULL, 1340 descr text, 1341 admin integer 1342); 1343 1344 1345ALTER TABLE pgauth.realm OWNER TO nm; 1346 1347-- 1348-- Name: user; Type: TABLE; Schema: pgauth; Owner: nm; Tablespace: 1349-- 1350 1351CREATE TABLE "user" ( 1352 login text NOT NULL, 1353 password text, 1354 nom text, 1355 prenom text, 1356 mel text, 1357 tel text, 1358 mobile text, 1359 fax text, 1360 adr text, 1361 phnom text, 1362 phprenom text 1363); 1364 1365 1366ALTER TABLE pgauth."user" OWNER TO nm; 1367 1368SET search_path = topo, pg_catalog; 1369 1370-- 1371-- Name: seq_confcmd; Type: SEQUENCE; Schema: topo; Owner: nm 1372-- 1373 1374CREATE SEQUENCE seq_confcmd 1375 START WITH 1 1376 INCREMENT BY 1 1377 NO MINVALUE 1378 NO MAXVALUE 1379 CACHE 1; 1380 1381 1382ALTER TABLE topo.seq_confcmd OWNER TO nm; 1383 1384-- 1385-- Name: confcmd; Type: TABLE; Schema: topo; Owner: nm; Tablespace: 1386-- 1387 1388CREATE TABLE confcmd ( 1389 idccmd integer DEFAULT nextval('seq_confcmd'::regclass) NOT NULL, 1390 idtype integer, 1391 action text, 1392 rank integer, 1393 model text, 1394 command text 1395); 1396 1397 1398ALTER TABLE topo.confcmd OWNER TO nm; 1399 1400-- 1401-- Name: dotattr; Type: TABLE; Schema: topo; Owner: nm; Tablespace: 1402-- 1403 1404CREATE TABLE dotattr ( 1405 rank integer NOT NULL, 1406 type integer, 1407 regexp text, 1408 gvattr text, 1409 png bytea 1410); 1411 1412 1413ALTER TABLE topo.dotattr OWNER TO nm; 1414 1415-- 1416-- Name: dr_eq; Type: TABLE; Schema: topo; Owner: nm; Tablespace: 1417-- 1418 1419CREATE TABLE dr_eq ( 1420 idgrp integer, 1421 rw integer, 1422 pattern text NOT NULL, 1423 allow_deny integer 1424); 1425 1426 1427ALTER TABLE topo.dr_eq OWNER TO nm; 1428 1429-- 1430-- Name: seq_eq; Type: SEQUENCE; Schema: topo; Owner: nm 1431-- 1432 1433CREATE SEQUENCE seq_eq 1434 START WITH 1 1435 INCREMENT BY 1 1436 NO MINVALUE 1437 NO MAXVALUE 1438 CACHE 1; 1439 1440 1441ALTER TABLE topo.seq_eq OWNER TO nm; 1442 1443-- 1444-- Name: eq; Type: TABLE; Schema: topo; Owner: nm; Tablespace: 1445-- 1446 1447CREATE TABLE eq ( 1448 ideq integer DEFAULT nextval('seq_eq'::regclass) NOT NULL, 1449 eq text, 1450 idtype integer, 1451 up integer 1452); 1453 1454 1455ALTER TABLE topo.eq OWNER TO nm; 1456 1457-- 1458-- Name: seq_eqtype; Type: SEQUENCE; Schema: topo; Owner: nm 1459-- 1460 1461CREATE SEQUENCE seq_eqtype 1462 START WITH 1 1463 INCREMENT BY 1 1464 NO MINVALUE 1465 NO MAXVALUE 1466 CACHE 1; 1467 1468 1469ALTER TABLE topo.seq_eqtype OWNER TO nm; 1470 1471-- 1472-- Name: eqtype; Type: TABLE; Schema: topo; Owner: nm; Tablespace: 1473-- 1474 1475CREATE TABLE eqtype ( 1476 idtype integer DEFAULT nextval('seq_eqtype'::regclass) NOT NULL, 1477 type text 1478); 1479 1480 1481ALTER TABLE topo.eqtype OWNER TO nm; 1482 1483-- 1484-- Name: filemonitor; Type: TABLE; Schema: topo; Owner: nm; Tablespace: 1485-- 1486 1487CREATE TABLE filemonitor ( 1488 path text NOT NULL, 1489 date timestamp(0) without time zone DEFAULT now() 1490); 1491 1492 1493ALTER TABLE topo.filemonitor OWNER TO nm; 1494 1495-- 1496-- Name: ifchanges; Type: TABLE; Schema: topo; Owner: nm; Tablespace: 1497-- 1498 1499CREATE TABLE ifchanges ( 1500 login text, 1501 reqdate timestamp(0) without time zone DEFAULT now() NOT NULL, 1502 idrr integer NOT NULL, 1503 iface text NOT NULL, 1504 ifdesc text, 1505 ethervlan integer, 1506 voicevlan integer, 1507 processed integer DEFAULT 0, 1508 moddate timestamp(0) without time zone, 1509 modlog text 1510); 1511 1512 1513ALTER TABLE topo.ifchanges OWNER TO nm; 1514 1515-- 1516-- Name: ignoreequsers; Type: TABLE; Schema: topo; Owner: nm; Tablespace: 1517-- 1518 1519CREATE TABLE ignoreequsers ( 1520 login text NOT NULL 1521); 1522 1523 1524ALTER TABLE topo.ignoreequsers OWNER TO nm; 1525 1526-- 1527-- Name: keepstate; Type: TABLE; Schema: topo; Owner: nm; Tablespace: 1528-- 1529 1530CREATE TABLE keepstate ( 1531 type text NOT NULL, 1532 message text, 1533 date timestamp(0) without time zone DEFAULT now() 1534); 1535 1536 1537ALTER TABLE topo.keepstate OWNER TO nm; 1538 1539-- 1540-- Name: lastrun; Type: TABLE; Schema: topo; Owner: nm; Tablespace: 1541-- 1542 1543CREATE TABLE lastrun ( 1544 date timestamp(0) without time zone 1545); 1546 1547 1548ALTER TABLE topo.lastrun OWNER TO nm; 1549 1550-- 1551-- Name: seq_link; Type: SEQUENCE; Schema: topo; Owner: nm 1552-- 1553 1554CREATE SEQUENCE seq_link 1555 START WITH 1 1556 INCREMENT BY 1 1557 NO MINVALUE 1558 NO MAXVALUE 1559 CACHE 1; 1560 1561 1562ALTER TABLE topo.seq_link OWNER TO nm; 1563 1564-- 1565-- Name: link; Type: TABLE; Schema: topo; Owner: nm; Tablespace: 1566-- 1567 1568CREATE TABLE link ( 1569 idlink integer DEFAULT nextval('seq_link'::regclass) NOT NULL, 1570 descr text 1571); 1572 1573 1574ALTER TABLE topo.link OWNER TO nm; 1575 1576-- 1577-- Name: modeq; Type: TABLE; Schema: topo; Owner: nm; Tablespace: 1578-- 1579 1580CREATE TABLE modeq ( 1581 eq text, 1582 date timestamp(0) without time zone DEFAULT now(), 1583 login text, 1584 processed integer DEFAULT 0 1585); 1586 1587 1588ALTER TABLE topo.modeq OWNER TO nm; 1589 1590-- 1591-- Name: sensor; Type: TABLE; Schema: topo; Owner: nm; Tablespace: 1592-- 1593 1594CREATE TABLE sensor ( 1595 id text NOT NULL, 1596 type text, 1597 eq text, 1598 comm text, 1599 iface text, 1600 param text, 1601 lastmod timestamp(0) without time zone DEFAULT now(), 1602 lastseen timestamp(0) without time zone DEFAULT now() 1603); 1604 1605 1606ALTER TABLE topo.sensor OWNER TO nm; 1607 1608-- 1609-- Name: vlan; Type: TABLE; Schema: topo; Owner: nm; Tablespace: 1610-- 1611 1612CREATE TABLE vlan ( 1613 vlanid integer NOT NULL, 1614 descr text, 1615 voip integer DEFAULT 0 1616); 1617 1618 1619ALTER TABLE topo.vlan OWNER TO nm; 1620 1621SET search_path = dns, pg_catalog; 1622 1623-- 1624-- Name: idzone; Type: DEFAULT; Schema: dns; Owner: nm 1625-- 1626 1627ALTER TABLE ONLY zone_normale ALTER COLUMN idzone SET DEFAULT nextval('seq_zone'::regclass); 1628 1629 1630-- 1631-- Name: idzone; Type: DEFAULT; Schema: dns; Owner: nm 1632-- 1633 1634ALTER TABLE ONLY zone_reverse4 ALTER COLUMN idzone SET DEFAULT nextval('seq_zone'::regclass); 1635 1636 1637-- 1638-- Name: idzone; Type: DEFAULT; Schema: dns; Owner: nm 1639-- 1640 1641ALTER TABLE ONLY zone_reverse6 ALTER COLUMN idzone SET DEFAULT nextval('seq_zone'::regclass); 1642 1643 1644-- 1645-- Data for Name: communaute; Type: TABLE DATA; Schema: dns; Owner: nm 1646-- 1647 1648COPY communaute (idcommu, nom) FROM stdin; 16491 Computing 16502 Admin 16513 Research 16524 Plant 1 16535 Plant 1654\. 1655 1656 1657-- 1658-- Data for Name: dhcp; Type: TABLE DATA; Schema: dns; Owner: nm 1659-- 1660 1661COPY dhcp (generer) FROM stdin; 16620 1663\. 1664 1665 1666-- 1667-- Data for Name: dhcpprofil; Type: TABLE DATA; Schema: dns; Owner: nm 1668-- 1669 1670COPY dhcpprofil (iddhcpprofil, nom, texte) FROM stdin; 1671\. 1672 1673 1674-- 1675-- Data for Name: dhcprange; Type: TABLE DATA; Schema: dns; Owner: nm 1676-- 1677 1678COPY dhcprange (iddhcprange, min, max, iddom, default_lease_time, max_lease_time, iddhcpprofil) FROM stdin; 16791 172.16.11.100 172.16.11.119 2 0 0 \N 16802 172.16.11.140 172.16.11.149 2 0 0 \N 16813 172.16.15.1 172.16.15.99 4 0 0 \N 1682\. 1683 1684 1685-- 1686-- Data for Name: domaine; Type: TABLE DATA; Schema: dns; Owner: nm 1687-- 1688 1689COPY domaine (iddom, nom) FROM stdin; 16901 subsid.co.zz 16912 example.com 16923 example.org 16934 plant1.example.com 1694\. 1695 1696 1697-- 1698-- Data for Name: dr_dhcpprofil; Type: TABLE DATA; Schema: dns; Owner: nm 1699-- 1700 1701COPY dr_dhcpprofil (idgrp, iddhcpprofil, tri) FROM stdin; 1702\. 1703 1704 1705-- 1706-- Data for Name: dr_dom; Type: TABLE DATA; Schema: dns; Owner: nm 1707-- 1708 1709COPY dr_dom (idgrp, iddom, tri, rolemail, roleweb) FROM stdin; 17105 3 20 0 0 17111 3 20 0 0 17124 4 10 0 0 17131 4 30 0 0 17142 4 30 0 0 17151 2 10 1 0 17162 2 10 1 0 17175 2 10 1 0 17181 1 50 1 0 17192 1 50 1 0 17203 1 5 1 0 1721\. 1722 1723 1724-- 1725-- Data for Name: dr_ip; Type: TABLE DATA; Schema: dns; Owner: nm 1726-- 1727 1728COPY dr_ip (idgrp, adr, allow_deny) FROM stdin; 17291 172.16.1.0/24 1 17301 172.16.1.0/32 0 17311 172.16.1.255/32 0 17321 2001:db8:1:1::/64 1 17332 172.16.1.0/24 1 17342 172.16.1.0/32 0 17352 172.16.1.255/32 0 17362 2001:db8:1:1::/64 1 17371 172.16.11.0/24 1 17381 172.16.11.0/32 0 17391 172.16.11.255/32 0 17401 2001:db8:1:2::/64 1 17412 172.16.11.0/24 1 17422 172.16.11.0/32 0 17432 172.16.11.255/32 0 17442 172.16.11.254/32 0 17452 2001:db8:1:2::/64 1 17465 172.16.11.0/24 1 17475 172.16.11.0/32 0 17485 172.16.11.255/32 0 17495 172.16.11.254/32 0 17505 2001:db8:1:2::/64 1 17511 172.16.12.0/24 1 17521 172.16.12.0/32 0 17531 172.16.12.255/32 0 17542 172.16.12.0/24 1 17552 172.16.12.0/32 0 17562 172.16.12.255/32 0 17572 172.16.12.254/32 0 17581 172.16.13.0/24 1 17591 172.16.13.0/32 0 17601 172.16.13.255/32 0 17612 172.16.13.0/24 1 17622 172.16.13.0/32 0 17632 172.16.13.255/32 0 17642 172.16.13.254/32 0 17651 172.16.14.0/23 1 17661 172.16.14.0/32 0 17671 172.16.15.255/32 0 17682 172.16.14.0/23 1 17692 172.16.14.0/32 0 17702 172.16.15.255/32 0 17712 172.16.15.254/32 0 17724 172.16.14.0/23 1 17734 172.16.14.0/32 0 17744 172.16.15.255/32 0 17754 172.16.15.254/32 0 17763 192.168.1.0/24 1 17773 192.168.1.0/32 0 17783 192.168.1.255/32 0 17793 192.168.1.254/32 0 1780\. 1781 1782 1783-- 1784-- Data for Name: dr_reseau; Type: TABLE DATA; Schema: dns; Owner: nm 1785-- 1786 1787COPY dr_reseau (idgrp, idreseau, tri, dhcp, acl) FROM stdin; 17881 1 100 0 0 17892 1 100 0 0 17901 2 100 1 0 17912 2 100 1 0 17925 2 100 1 0 17931 3 100 1 0 17942 3 100 1 0 17951 4 100 1 0 17962 4 100 1 0 17971 5 100 1 0 17982 5 100 1 0 17994 5 100 1 0 18003 6 100 0 0 1801\. 1802 1803 1804-- 1805-- Data for Name: etablissement; Type: TABLE DATA; Schema: dns; Owner: nm 1806-- 1807 1808COPY etablissement (idetabl, nom) FROM stdin; 18091 Example Corp. 18102 Subsidary & sons 1811\. 1812 1813 1814-- 1815-- Data for Name: hinfo; Type: TABLE DATA; Schema: dns; Owner: nm 1816-- 1817 1818COPY hinfo (idhinfo, texte, tri, present) FROM stdin; 18190 Unspecified 0 0 18201 PC/Windows 10 1 18212 PC/Unix 20 1 18223 Macintosh/MacOS 30 1 18234 Other/Unix 50 1 18245 Printer 70 1 18256 Network equipment 100 1 1826\. 1827 1828 1829-- 1830-- Data for Name: relais_dom; Type: TABLE DATA; Schema: dns; Owner: nm 1831-- 1832 1833COPY relais_dom (iddom, priorite, mx) FROM stdin; 18342 10 216 18352 20 217 18361 10 216 18371 20 217 1838\. 1839 1840 1841-- 1842-- Data for Name: reseau; Type: TABLE DATA; Schema: dns; Owner: nm 1843-- 1844 1845COPY reseau (idreseau, nom, localisation, adr4, adr6, idetabl, idcommu, commentaire, dhcp, gw4, gw6) FROM stdin; 18461 Backbone Site 1 172.16.1.0/24 2001:db8:1:1::/64 1 1 Backbone + servers 0 \N \N 18472 Marketing Site 1 - Red building 172.16.11.0/24 2001:db8:1:2::/64 1 2 1 172.16.11.254 \N 18483 ITS Site 1 - Pink building 172.16.12.0/24 \N 1 1 Information Technology Services 1 172.16.12.254 \N 18494 R&D Site 2 - Green building 172.16.13.0/24 \N 1 3 Research and Development 1 172.16.13.254 \N 18505 Factory Site 1 - Blue building 172.16.14.0/23 \N 1 4 Site 1 plant 1 172.16.15.254 \N 18516 Subsidary Site 2 - Black building 192.168.1.0/24 \N 2 5 Bolts factory 0 192.168.1.254 \N 1852\. 1853 1854 1855-- 1856-- Data for Name: role_mail; Type: TABLE DATA; Schema: dns; Owner: nm 1857-- 1858 1859COPY role_mail (idrr, heberg) FROM stdin; 1860239 227 1861240 226 1862241 2 1863242 236 1864\. 1865 1866 1867-- 1868-- Data for Name: role_web; Type: TABLE DATA; Schema: dns; Owner: nm 1869-- 1870 1871COPY role_web (idrr) FROM stdin; 1872\. 1873 1874 1875-- 1876-- Data for Name: rr; Type: TABLE DATA; Schema: dns; Owner: nm 1877-- 1878 1879COPY rr (idrr, nom, iddom, mac, iddhcpprofil, idhinfo, commentaire, respnom, respmel, idcor, date, droitsmtp, ttl) FROM stdin; 18801 another-router 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 18812 aphrodite 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 18823 bugs 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 18834 daffy 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 18845 dingo 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 18856 droopy 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 18867 host10 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 18878 host100 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 18889 host101 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 188910 host102 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 189011 host103 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 189112 host104 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 189213 host105 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 189314 host106 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 189415 host107 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 189516 host108 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 189617 host109 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 189718 host11 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 189819 host115 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 189920 host116 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 190021 host117 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 190122 host118 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 190223 host119 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 190324 host12 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 190425 host120 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 190526 host121 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 190627 host122 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 190728 host123 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 190829 host124 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 190930 host125 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 191031 host126 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 191132 host127 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 191233 host128 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 191334 host129 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 191435 host13 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 191536 host130 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 191637 host131 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 191738 host132 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 191839 host133 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 191940 host134 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 192041 host135 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 192142 host136 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 192243 host137 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 192344 host138 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 192445 host139 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 192546 host14 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 192647 host140 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 192748 host141 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 192849 host142 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 192950 host143 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 193051 host144 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 193152 host145 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 193253 host146 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 193354 host147 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 193455 host148 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 193556 host149 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 193657 host15 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 193758 host150 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 193859 host151 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 193960 host152 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 194061 host153 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 194162 host154 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 194263 host155 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 194364 host156 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 194465 host157 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 194566 host158 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 194667 host159 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 194768 host16 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 194869 host160 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 194970 host161 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 195071 host162 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 195172 host163 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 195273 host164 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 195374 host165 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 195475 host166 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 195576 host167 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 195677 host168 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 195778 host169 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 195879 host170 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 195980 host171 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 196081 host172 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 196182 host173 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 196283 host174 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 196384 host175 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 196485 host176 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 196586 host177 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 196687 host178 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 196788 host179 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 196889 host180 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 196990 host181 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 197091 host182 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 197192 host183 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 197293 host184 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 197394 host185 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 197495 host186 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 197596 host187 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 197697 host188 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 197798 host189 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 197899 host19 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1979100 host190 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1980101 host191 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1981102 host193 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1982103 host194 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1983104 host195 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1984105 host196 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1985106 host197 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1986107 host198 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1987108 host199 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1988109 host20 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1989110 host21 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1990111 host215 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1991112 host216 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1992113 host217 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1993114 host218 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1994115 host219 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1995116 host22 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1996117 host220 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1997118 host221 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1998119 host222 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 1999120 host223 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2000121 host224 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2001122 host225 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2002123 host226 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2003124 host227 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2004125 host228 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2005126 host229 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2006127 host23 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2007128 host230 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2008129 host231 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2009130 host232 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2010131 host233 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2011132 host234 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2012133 host235 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2013134 host236 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2014135 host237 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2015136 host238 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2016137 host239 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2017138 host24 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2018139 host240 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2019140 host241 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2020141 host242 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2021142 host243 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2022143 host244 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2023144 host245 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2024145 host246 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2025146 host247 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2026147 host248 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2027148 host249 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2028149 host25 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2029150 host250 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2030151 host251 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2031152 host252 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2032153 host253 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2033154 host26 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2034155 host27 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2035156 host28 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2036157 host29 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2037158 host30 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2038159 host36 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2039160 host37 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2040161 host38 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2041162 host39 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2042163 host40 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2043164 host41 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2044165 host42 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2045166 host43 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2046167 host44 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2047168 host45 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2048169 host46 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2049170 host47 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2050171 host48 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2051172 host49 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2052173 host50 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2053174 host51 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2054175 host53 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2055176 host54 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2056177 host55 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2057178 host56 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2058179 host57 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2059180 host58 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2060181 host59 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2061182 host60 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2062183 host61 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2063184 host62 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2064185 host63 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2065186 host66 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2066187 host67 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2067188 host68 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2068189 host69 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2069190 host70 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2070191 host71 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2071192 host72 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2072193 host73 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2073194 host74 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2074195 host75 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2075196 host76 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2076197 host77 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2077198 host78 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2078199 host79 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2079200 host80 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2080201 host81 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2081202 host82 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2082203 host83 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2083204 host84 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2084205 host89 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2085206 host90 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2086207 host91 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2087208 host92 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2088209 host93 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2089210 host94 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2090211 host95 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2091212 host96 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2092213 host97 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2093214 host98 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2094215 host99 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2095216 mx1 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2096217 mx2 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2097218 ns1 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2098219 ns2 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2099220 pluto 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2100221 porky 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2101222 rtr 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2102223 screwy 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2103224 sw1 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2104225 sw2 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2105226 venus 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2106227 zeus 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2107228 jupiter 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2108229 www-dog 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2109230 www-tex 2 \N \N 0 1 2013-06-02 18:34:09 0 -1 2110231 abraracourcix 4 \N \N 0 1 2013-06-02 18:34:11 0 -1 2111232 assurancetourix 4 \N \N 0 1 2013-06-02 18:34:11 0 -1 2112233 asterix 4 \N \N 0 1 2013-06-02 18:34:11 0 -1 2113234 obelix 4 \N \N 0 1 2013-06-02 18:34:11 0 -1 2114235 www 4 \N \N 0 1 2013-06-02 18:34:11 0 -1 2115236 mail-sales 1 \N \N 0 1 2013-06-02 18:34:12 0 -1 2116237 www 1 \N \N 0 1 2013-06-02 18:34:12 0 -1 2117238 www 3 \N \N 0 1 2013-06-02 18:34:12 0 -1 2118239 sales 2 \N \N 0 1 2013-06-02 18:34:15 0 -1 2119240 mktg 2 \N \N 0 1 2013-06-02 18:34:15 0 -1 2120241 its 2 \N \N 0 1 2013-06-02 18:34:15 0 -1 2121242 sales 1 \N \N 0 1 2013-06-02 18:34:15 0 -1 2122\. 2123 2124 2125-- 2126-- Data for Name: rr_cname; Type: TABLE DATA; Schema: dns; Owner: nm 2127-- 2128 2129COPY rr_cname (idrr, cname) FROM stdin; 2130228 227 2131229 6 2132230 4 2133235 233 2134238 4 2135\. 2136 2137 2138-- 2139-- Data for Name: rr_ip; Type: TABLE DATA; Schema: dns; Owner: nm 2140-- 2141 2142COPY rr_ip (idrr, adr) FROM stdin; 21431 172.16.1.253 21441 2001:db8:1234:4001::2 21451 172.16.13.254 21462 172.16.11.3 21473 172.16.13.2 21484 172.16.13.1 21495 172.16.12.3 21506 172.16.12.1 21517 172.16.11.10 21528 172.16.11.100 21539 172.16.11.101 215410 172.16.11.102 215511 172.16.11.103 215612 172.16.11.104 215713 172.16.11.105 215814 172.16.11.106 215915 172.16.11.107 216016 172.16.11.108 216117 172.16.11.109 216218 172.16.11.11 216319 172.16.11.115 216420 172.16.11.116 216521 172.16.11.117 216622 172.16.11.118 216723 172.16.11.119 216824 172.16.11.12 216925 172.16.11.120 217026 172.16.11.121 217127 172.16.11.122 217228 172.16.11.123 217329 172.16.11.124 217430 172.16.11.125 217531 172.16.11.126 217632 172.16.11.127 217733 172.16.11.128 217834 172.16.11.129 217935 172.16.11.13 218036 172.16.11.130 218137 172.16.11.131 218238 172.16.11.132 218339 172.16.11.133 218440 172.16.11.134 218541 172.16.11.135 218642 172.16.11.136 218743 172.16.11.137 218844 172.16.11.138 218945 172.16.11.139 219046 172.16.11.14 219147 172.16.11.140 219248 172.16.11.141 219349 172.16.11.142 219450 172.16.11.143 219551 172.16.11.144 219652 172.16.11.145 219753 172.16.11.146 219854 172.16.11.147 219955 172.16.11.148 220056 172.16.11.149 220157 172.16.11.15 220258 172.16.11.150 220359 172.16.11.151 220460 172.16.11.152 220561 172.16.11.153 220662 172.16.11.154 220763 172.16.11.155 220864 172.16.11.156 220965 172.16.11.157 221066 172.16.11.158 221167 172.16.11.159 221268 172.16.11.16 221369 172.16.11.160 221470 172.16.11.161 221571 172.16.11.162 221672 172.16.11.163 221773 172.16.11.164 221874 172.16.11.165 221975 172.16.11.166 222076 172.16.11.167 222177 172.16.11.168 222278 172.16.11.169 222379 172.16.11.170 222480 172.16.11.171 222581 172.16.11.172 222681 192.16.11.192 222782 172.16.11.173 222883 172.16.11.174 222984 172.16.11.175 223085 172.16.11.176 223186 172.16.11.177 223287 172.16.11.178 223388 172.16.11.179 223489 172.16.11.180 223590 172.16.11.181 223691 172.16.11.182 223792 172.16.11.183 223893 172.16.11.184 223994 172.16.11.185 224095 172.16.11.186 224196 172.16.11.187 224297 172.16.11.188 224398 172.16.11.189 224499 172.16.11.19 2245100 172.16.11.190 2246101 172.16.11.191 2247102 172.16.11.193 2248103 172.16.11.194 2249104 172.16.11.195 2250105 172.16.11.196 2251106 172.16.11.197 2252107 172.16.11.198 2253108 172.16.11.199 2254109 172.16.11.20 2255110 172.16.11.21 2256111 172.16.11.215 2257112 172.16.11.216 2258113 172.16.11.217 2259114 172.16.11.218 2260115 172.16.11.219 2261116 172.16.11.22 2262117 172.16.11.220 2263118 172.16.11.221 2264119 172.16.11.222 2265120 172.16.11.223 2266121 172.16.11.224 2267122 172.16.11.225 2268123 172.16.11.226 2269124 172.16.11.227 2270125 172.16.11.228 2271126 172.16.11.229 2272127 172.16.11.23 2273128 172.16.11.230 2274129 172.16.11.231 2275130 172.16.11.232 2276131 172.16.11.233 2277132 172.16.11.234 2278133 172.16.11.235 2279134 172.16.11.236 2280135 172.16.11.237 2281136 172.16.11.238 2282137 172.16.11.239 2283138 172.16.11.24 2284139 172.16.11.240 2285140 172.16.11.241 2286141 172.16.11.242 2287142 172.16.11.243 2288143 172.16.11.244 2289144 172.16.11.245 2290145 172.16.11.246 2291146 172.16.11.247 2292147 172.16.11.248 2293148 172.16.11.249 2294149 172.16.11.25 2295150 172.16.11.250 2296151 172.16.11.251 2297152 172.16.11.252 2298153 172.16.11.253 2299154 172.16.11.26 2300155 172.16.11.27 2301156 172.16.11.28 2302157 172.16.11.29 2303158 172.16.11.30 2304159 172.16.11.36 2305160 172.16.11.37 2306161 172.16.11.38 2307162 172.16.11.39 2308163 172.16.11.40 2309164 172.16.11.41 2310165 172.16.11.42 2311166 172.16.11.43 2312167 172.16.11.44 2313168 172.16.11.45 2314169 172.16.11.46 2315170 172.16.11.47 2316171 172.16.11.48 2317172 172.16.11.49 2318173 172.16.11.50 2319174 172.16.11.51 2320175 172.16.11.53 2321176 172.16.11.54 2322177 172.16.11.55 2323178 172.16.11.56 2324179 172.16.11.57 2325180 172.16.11.58 2326181 172.16.11.59 2327182 172.16.11.60 2328183 172.16.11.61 2329184 172.16.11.62 2330185 172.16.11.63 2331186 172.16.11.66 2332187 172.16.11.67 2333188 172.16.11.68 2334189 172.16.11.69 2335190 172.16.11.70 2336191 172.16.11.71 2337192 172.16.11.72 2338193 172.16.11.73 2339194 172.16.11.74 2340195 172.16.11.75 2341196 172.16.11.76 2342197 172.16.11.77 2343198 172.16.11.78 2344199 172.16.11.79 2345200 172.16.11.80 2346201 172.16.11.81 2347202 172.16.11.82 2348203 172.16.11.83 2349204 172.16.11.84 2350205 172.16.11.89 2351206 172.16.11.90 2352207 172.16.11.91 2353208 172.16.11.92 2354209 172.16.11.93 2355210 172.16.11.94 2356211 172.16.11.95 2357212 172.16.11.96 2358213 172.16.11.97 2359214 172.16.11.98 2360215 172.16.11.99 2361216 172.16.1.3 2362216 2001:db8:1234::3 2363217 172.16.1.4 2364217 2001:db8:1234::4 2365218 172.16.1.1 2366218 2001:db8:1234::1 2367219 172.16.1.2 2368219 2001:db8:1234::2 2369220 172.16.12.2 2370221 172.16.13.4 2371222 172.16.1.254 2372222 2001:db8:1234:4001::1 2373222 192.168.1.254 2374222 172.16.11.254 2375222 2001:db8:1234:4011::1 2376222 172.16.12.254 2377223 172.16.13.3 2378224 192.16.1.101 2379225 192.16.1.102 2380226 172.16.11.2 2381227 172.16.11.1 2382231 172.16.14.3 2383232 172.16.14.4 2384233 172.16.14.1 2385234 172.16.14.2 2386236 192.168.1.2 2387237 192.168.1.1 2388\. 2389 2390 2391-- 2392-- Data for Name: rr_mx; Type: TABLE DATA; Schema: dns; Owner: nm 2393-- 2394 2395COPY rr_mx (idrr, priorite, mx) FROM stdin; 2396\. 2397 2398 2399-- 2400-- Name: seq_communaute; Type: SEQUENCE SET; Schema: dns; Owner: nm 2401-- 2402 2403SELECT pg_catalog.setval('seq_communaute', 5, true); 2404 2405 2406-- 2407-- Name: seq_dhcpprofil; Type: SEQUENCE SET; Schema: dns; Owner: nm 2408-- 2409 2410SELECT pg_catalog.setval('seq_dhcpprofil', 1, false); 2411 2412 2413-- 2414-- Name: seq_dhcprange; Type: SEQUENCE SET; Schema: dns; Owner: nm 2415-- 2416 2417SELECT pg_catalog.setval('seq_dhcprange', 3, true); 2418 2419 2420-- 2421-- Name: seq_domaine; Type: SEQUENCE SET; Schema: dns; Owner: nm 2422-- 2423 2424SELECT pg_catalog.setval('seq_domaine', 4, true); 2425 2426 2427-- 2428-- Name: seq_etablissement; Type: SEQUENCE SET; Schema: dns; Owner: nm 2429-- 2430 2431SELECT pg_catalog.setval('seq_etablissement', 2, true); 2432 2433 2434-- 2435-- Name: seq_hinfo; Type: SEQUENCE SET; Schema: dns; Owner: nm 2436-- 2437 2438SELECT pg_catalog.setval('seq_hinfo', 6, true); 2439 2440 2441-- 2442-- Name: seq_reseau; Type: SEQUENCE SET; Schema: dns; Owner: nm 2443-- 2444 2445SELECT pg_catalog.setval('seq_reseau', 6, true); 2446 2447 2448-- 2449-- Name: seq_rr; Type: SEQUENCE SET; Schema: dns; Owner: nm 2450-- 2451 2452SELECT pg_catalog.setval('seq_rr', 242, true); 2453 2454 2455-- 2456-- Name: seq_zone; Type: SEQUENCE SET; Schema: dns; Owner: nm 2457-- 2458 2459SELECT pg_catalog.setval('seq_zone', 6, true); 2460 2461 2462-- 2463-- Data for Name: zone; Type: TABLE DATA; Schema: dns; Owner: nm 2464-- 2465 2466COPY zone (idzone, domaine, version, prologue, rrsup, generer) FROM stdin; 2467\. 2468 2469 2470-- 2471-- Data for Name: zone_normale; Type: TABLE DATA; Schema: dns; Owner: nm 2472-- 2473 2474COPY zone_normale (idzone, domaine, version, prologue, rrsup, generer, selection) FROM stdin; 24752 plant1.example.com 2013060201 ;\n; Zone plant1.example.com\n;\n;\n; History\n; 2004/04/13 : pda : design example zone\n;\n\n@\tIN\tSOA\tns1.example.com. hostmaster.example.com. (\n\t\t %ZONEVERSION%\t\t; serial\n\t\t 86400\t\t; refresh = 1 day\n\t\t 3600\t\t; retry = 1 h\n\t\t 3600000\t\t; expire = 1000 hours (~ 41 day)\n\t\t 86400\t\t; default ttl = 1 day\n\t\t)\n\n;\n; Default TLL for zone records\n;\n$TTL\t86400\n\n;\n; Authoritative servers for this zone\n;\n\n\t\t\tIN\tNS\tns1.example.com.\n\t\t\tIN\tNS\tns2.example.com.\n\t\t\tIN\tNS\tns.myisp.com.\n\n;\n; Default MX for the domain itself\n;\n\n\t\t\tIN\tMX\t10 mx1.example.com.\n\t\t\tIN\tMX\t20 mx2.example.com.\n\n;\n; hack\n;\n\nlocalhost\t\tIN\tA\t127.0.0.1\n\n 1 plant1.example.com 24764 example.org 2013060201 ;\n; Zone example.org\n;\n;\n; History\n; 2004/04/13 : pda : design example zone\n;\n\n@\tIN\tSOA\tns1.example.com. hostmaster.example.com. (\n\t\t %ZONEVERSION%\t\t; serial\n\t\t 86400\t\t; refresh = 1 day\n\t\t 3600\t\t; retry = 1 h\n\t\t 3600000\t\t; expire = 1000 hours (~ 41 day)\n\t\t 86400\t\t; default ttl = 1 day\n\t\t)\n\n;\n; Default TLL for zone records\n;\n$TTL\t86400\n\n;\n; Authoritative servers for this zone\n;\n\n\t\t\tIN\tNS\tns1.example.com.\n\t\t\tIN\tNS\tns2.example.com.\n\t\t\tIN\tNS\tns.myisp.com.\n\n;\n; Default MX for the domain itself\n;\n\n\t\t\tIN\tMX\t10 mx1.example.com.\n\n;\n; hack\n;\n\nlocalhost\t\tIN\tA\t127.0.0.1\n\n 1 example.org 24773 subsid.co.zz 2013060201 ;\n; Zone subsid.co.zz\n;\n;\n; History\n; 2004/04/13 : pda : design example zone\n;\n\n@\tIN\tSOA\tns1.example.com. hostmaster.subsid.co.zz. (\n\t\t %ZONEVERSION%\t\t; serial\n\t\t 86400\t\t; refresh = 1 day\n\t\t 3600\t\t; retry = 1 h\n\t\t 3600000\t\t; expire = 1000 hours (~ 41 day)\n\t\t 86400\t\t; default ttl = 1 day\n\t\t)\n\n;\n; Default TLL for zone records\n;\n$TTL\t86400\n\n;\n; Authoritative servers for this zone\n;\n\n\t\t\tIN\tNS\tns1.example.com.\n\t\t\tIN\tNS\tns2.example.com.\n\t\t\tIN\tNS\tns.myisp.com.\n\n;\n; Default MX for the domain itself\n;\n\n\t\t\tIN\tMX\t10 mx1.example.com.\n\t\t\tIN\tMX\t10 mx2.example.com.\n\n;\n; hack\n;\n\nlocalhost\t\tIN\tA\t127.0.0.1\n\n 1 subsid.co.zz 24781 example.com 2013060201 ;\n; Zone example.com\n;\n;\n; History\n; 2004/04/13 : pda : design example zone\n;\n\n@\tIN\tSOA\tns1.example.com. hostmaster.example.com. (\n\t\t %ZONEVERSION%\t\t; serial\n\t\t 86400\t\t; refresh = 1 day\n\t\t 3600\t\t; retry = 1 h\n\t\t 3600000\t\t; expire = 1000 hours (~ 41 day)\n\t\t 86400\t\t; default ttl = 1 day\n\t\t)\n\n;\n; Default TLL for zone records\n;\n$TTL\t86400\n\n;\n; Authoritative servers for this zone\n;\n\n\t\t\tIN\tNS\tns1.example.com.\n\t\t\tIN\tNS\tns2.example.com.\n\t\t\tIN\tNS\tns.myisp.com.\n\n;\n; Default MX for the domain itself\n;\n\n\t\t\tIN\tMX\t10 mx1.example.com.\n\t\t\tIN\tMX\t20 mx2.example.com.\n\n;\n; hack\n;\n\nlocalhost\t\tIN\tA\t127.0.0.1\n\n; this plant delegates sub-zone management to us\nplant1\t\t\tIN\tNS\tns1.example.com.\n\t\t\tIN\tNS\tns2.example.com.\n\n; this plant manages its own sub-zone\nplant2\t\t\tIN\tNS\telsewhere.plant2.example.com.\n\t\t\tIN\tNS\tns1.example.com.\n\t\t\tIN\tNS\tns2.example.com.\nelsewhere.plant2\tIN\tA\t172.16.100.1\n\n 1 example.com 2479\. 2480 2481 2482-- 2483-- Data for Name: zone_reverse4; Type: TABLE DATA; Schema: dns; Owner: nm 2484-- 2485 2486COPY zone_reverse4 (idzone, domaine, version, prologue, rrsup, generer, selection) FROM stdin; 24875 16.172.in-addr.arpa 2013060201 ;\n; Zone 16.172.in-addr.arpa\n;\n;\n; History\n; 2004/04/13 : pda : design example zone\n;\n\n@\tIN\tSOA\tns1.example.com. hostmaster.example.com. (\n\t\t %ZONEVERSION%\t\t; serial\n\t\t 86400\t\t; refresh = 1 day\n\t\t 3600\t\t; retry = 1 h\n\t\t 3600000\t\t; expire = 1000 hours (~ 41 day)\n\t\t 86400\t\t; default ttl = 1 day\n\t\t)\n\n;\n; Default TLL for zone records\n;\n$TTL\t86400\n\n;\n; Authoritative servers for this zone\n;\n\n\t\t\tIN\tNS\tns1.example.com.\n\t\t\tIN\tNS\tns2.example.com.\n\t\t\tIN\tNS\tns.myisp.com.\n\n1.100\t\t\tIN\tNS\telesewhere.plant2.example.com.\n\t\t\tIN\tNS\tns1.example.com.\n\t\t\tIN\tNS\tns2.example.com.\n\n 1 172.16.0.0/16 2488\. 2489 2490 2491-- 2492-- Data for Name: zone_reverse6; Type: TABLE DATA; Schema: dns; Owner: nm 2493-- 2494 2495COPY zone_reverse6 (idzone, domaine, version, prologue, rrsup, generer, selection) FROM stdin; 24966 4.3.2.1.8.b.d.0.1.0.0.2.ip6.arpa 2013060201 ;\n; Zone 4.3.2.1.8.b.d.0.1.0.0.2.ip6.arpa\n;\n;\n; History\n; 2004/04/13 : pda : design example zone\n;\n\n@\tIN\tSOA\tns1.example.com. hostmaster.example.com. (\n\t\t %ZONEVERSION%\t\t; serial\n\t\t 86400\t\t; refresh = 1 day\n\t\t 3600\t\t; retry = 1 h\n\t\t 3600000\t\t; expire = 1000 hours (~ 41 day)\n\t\t 86400\t\t; default ttl = 1 day\n\t\t)\n\n;\n; Default TLL for zone records\n;\n$TTL\t86400\n\n;\n; Authoritative servers for this zone\n;\n\n\t\t\tIN\tNS\tns1.example.com.\n\t\t\tIN\tNS\tns2.example.com.\n\t\t\tIN\tNS\tns.myisp.com.\n\n 1 2001:db8:1234::/48 2497\. 2498 2499 2500SET search_path = global, pg_catalog; 2501 2502-- 2503-- Data for Name: config; Type: TABLE DATA; Schema: global; Owner: nm 2504-- 2505 2506COPY config (clef, valeur) FROM stdin; 2507datefmt %d/%m/%Y %H:%M:%S 2508jourfmt %a %d %b %Y 2509authmethod pgsql 2510pageformat a4 2511dnsupdateperiod 600 2512default_lease_time 600 2513max_lease_time 3600 2514min_lease_time 300 2515topoactive 0 2516dhcpdefdomain example.com 2517defdomain example.com 2518topofrom nobody.topo@example.com 2519topoto noc@example.com another@example.com 2520topographddelay 5 2521toposendddelay 5 2522topomaxstatus 100 2523sensorexpire 30 2524modeqexpire 30 2525ifchangeexpire 30 2526fullrancidmin 2 2527fullrancidmax 4 2528macactive 0 2529ldapurl ldap://ldap.example.com/ 2530ldapbinddn cn=admin,ou=accounts,ou=operators,dc=example,dc=com 2531ldapbindpw * 2532ldapbasedn ou=people,dc=example,dc=com 2533ldapsearchlogin (&(objectClass=People)(uid=%s)) 2534ldapattrlogin uid 2535ldapattrpassword userPassword 2536ldapattrname sn 2537ldapattrgivenname givenName 2538ldapattrmail mail 2539ldapattrphone telephoneNumber 2540ldapattrmobile 2541ldapattrfax facsimileTelephoneNumber 2542ldapattraddr postalAddress postalCode l 2543authpgminpwlen 8 2544authpgmaxpwlen 16 2545authpgmailfrom nobody.netmagis@example.com 2546authpgmailreplyto nobody.netmagis@example.com 2547authpgmailcc 2548authpgmailbcc 2549authpgmailsubject Password change 2550authpgmailbody Password changed (%2$s) for user %1$s. Best regards. 2551authpggroupes netmagis 2552defuser nobody 2553\. 2554 2555 2556-- 2557-- Data for Name: corresp; Type: TABLE DATA; Schema: global; Owner: nm 2558-- 2559 2560COPY corresp (idcor, login, present, idgrp) FROM stdin; 25611 pda 1 1 25622 jean 1 1 25633 nobody 1 1 25644 bob 1 2 25655 alice 1 2 25666 john 1 3 25677 dennis 1 3 25688 terry 1 4 25699 charles 1 5 2570\. 2571 2572 2573-- 2574-- Data for Name: groupe; Type: TABLE DATA; Schema: global; Owner: nm 2575-- 2576 2577COPY groupe (idgrp, nom, admin, droitsmtp, droitttl, droitmac, droitgenl) FROM stdin; 25781 wheel 1 0 0 0 0 25792 tech 0 0 0 0 0 25803 subsid 0 0 0 0 0 25814 plant 0 0 0 0 0 25825 mktg 0 0 0 0 0 2583\. 2584 2585 2586-- 2587-- Data for Name: log; Type: TABLE DATA; Schema: global; Owner: nm 2588-- 2589 2590COPY log (date, subsys, event, login, ip, msg) FROM stdin; 2591\. 2592 2593 2594-- 2595-- Name: seq_corresp; Type: SEQUENCE SET; Schema: global; Owner: nm 2596-- 2597 2598SELECT pg_catalog.setval('seq_corresp', 9, true); 2599 2600 2601-- 2602-- Name: seq_groupe; Type: SEQUENCE SET; Schema: global; Owner: nm 2603-- 2604 2605SELECT pg_catalog.setval('seq_groupe', 5, true); 2606 2607 2608SET search_path = mac, pg_catalog; 2609 2610-- 2611-- Data for Name: ipmac; Type: TABLE DATA; Schema: mac; Owner: nm 2612-- 2613 2614COPY ipmac (start, stop, src, closed, data) FROM stdin; 2615\. 2616 2617 2618-- 2619-- Data for Name: portmac; Type: TABLE DATA; Schema: mac; Owner: nm 2620-- 2621 2622COPY portmac (start, stop, src, closed, data) FROM stdin; 2623\. 2624 2625 2626-- 2627-- Data for Name: session; Type: TABLE DATA; Schema: mac; Owner: nm 2628-- 2629 2630COPY session (start, stop, src, closed) FROM stdin; 2631\. 2632 2633 2634SET search_path = pgauth, pg_catalog; 2635 2636-- 2637-- Data for Name: member; Type: TABLE DATA; Schema: pgauth; Owner: nm 2638-- 2639 2640COPY member (login, realm) FROM stdin; 2641pda authadmin 2642pda netmagis 2643jean authadmin 2644jean netmagis 2645nobody authadmin 2646nobody netmagis 2647bob netmagis 2648alice netmagis 2649john netmagis 2650dennis netmagis 2651terry netmagis 2652charles netmagis 2653\. 2654 2655 2656-- 2657-- Data for Name: realm; Type: TABLE DATA; Schema: pgauth; Owner: nm 2658-- 2659 2660COPY realm (realm, descr, admin) FROM stdin; 2661authadmin Administrators of internal PostgreSQL auth 1 2662netmagis Netmagis users 0 2663\. 2664 2665 2666-- 2667-- Data for Name: user; Type: TABLE DATA; Schema: pgauth; Owner: nm 2668-- 2669 2670COPY "user" (login, password, nom, prenom, mel, tel, mobile, fax, adr, phnom, phprenom) FROM stdin; 2671jean $1$UX5cCWPR$Ha4S6NSApww3di6FJ3wdR1 Boss Joe \N \N \N \N \N B800 J000 2672nobody $1$AFxJdjN1$eD3fROadYK7AVojDk4uTX0 Boss Joe \N \N \N \N \N B800 J000 2673bob $1$MiT3Vp.t$L.jrny7Gbq37VeKBGxRN60 User Joe \N \N \N \N \N U860 J000 2674alice $1$hp2Nk3Az$jxwuQKkxxHRzrQjcT.b4D/ User Joe \N \N \N \N \N U860 J000 2675john $1$rXeTxpTz$DRzraavfx07TmWsA2BfMn1 User Joe \N \N \N \N \N U860 J000 2676dennis $1$ny2YV9kN$hmJLil.dx8CyqviHNT1zd. User Joe \N \N \N \N \N U860 J000 2677terry $1$gGLnMLao$EZLkH/7pPs4kCvw4mQdoE0 User Joe \N \N \N \N \N U860 J000 2678charles $1$OYJkc2zO$vwEbQFtMuAGmfj5WPGum11 User Joe \N \N \N \N \N U860 J000 2679pda $1$LDdptOtU$GGRQe5uNWrvfC32Ia/f8b1 Boss Joe \N \N \N \N \N B800 J000 2680\. 2681 2682 2683SET search_path = topo, pg_catalog; 2684 2685-- 2686-- Data for Name: confcmd; Type: TABLE DATA; Schema: topo; Owner: nm 2687-- 2688 2689COPY confcmd (idccmd, idtype, action, rank, model, command) FROM stdin; 26901 1 prologue 100 .* configure terminal 26912 1 ifreset 90 .*29.0.* interface %1$s\ndefault switchport nonegotiate\ndefault switchport trunk allowed vlan\ndefault switchport trunk native vlan\ndefault switchport access vlan\ndefault switchport mode 26923 1 ifreset 100 .* interface %1$s\nno switchport\nswitchport voice vlan none\nswitchport 26934 1 ifdisable 100 .* interface %1$s\nshutdown 26945 1 ifenable 100 .* interface %1$s\nno shutdown 26956 1 ifaccess 100 .* interface %1$s\nswitchport mode access\nswitchport access vlan %2$s\nspanning-tree portfast 26967 1 ifvoice 100 .* interface %1$s\nswitchport voice vlan %2$s 26978 1 ifdesc 100 .* interface %1$s\ndescription %2$s 26989 1 epilogue 100 .* line con 0\nexit\nexit\nwrite memory 269910 2 prologue 100 .* configure 270011 2 ifreset 100 .* delete interfaces %1$s unit 0 family ethernet-switching\ndelete ethernet-switching-options voip interface %1$s 270112 2 ifdisable 100 .* set interfaces %1$s disable 270213 2 ifenable 100 .* delete interfaces %1$s disable 270314 2 ifaccess 100 .* set interfaces %1$s unit 0 family ethernet-switching port-mode access\nset interfaces %1$s unit 0 family ethernet-switching vlan members %2$s 270415 2 ifdesc 100 .* set interfaces %1$s description "%2$s" 270516 2 ifvoice 100 .* set interfaces %1$s unit 0 family ethernet-switching\nset ethernet-switching-options voip interface %1$s vlan %2$s 270617 2 epilogue 100 .* commit\nexit configuration 270718 3 prologue 100 .* configure terminal 270819 3 resetvlan 100 .* vlan %2$s\nno tagged %1$s\nno untagged %1$s 270920 3 ifenable 100 .* interface %1$s\nenable 271021 3 ifdisable 100 .* interface %1$s\ndisable 271122 3 ifaccess 100 .* vlan %2$s\nuntagged %1$s 271223 3 ifvoice 100 .* vlan %2$s\ntagged %1$s 271324 3 ifdesc 100 .* interface %1$s\nname "%2$s" 271425 3 epilogue 100 .* vlan 1\nexit\nexit\nwrite memory 2715\. 2716 2717 2718-- 2719-- Data for Name: dotattr; Type: TABLE DATA; Schema: topo; Owner: nm 2720-- 2721 2722COPY dotattr (rank, type, regexp, gvattr, png) FROM stdin; 272310100 2 juniper/M.* shape=circle\nstyle=filled fillcolor=lightgrey\nfixedsize height=1 \N 272410200 2 cisco/12000.* shape=doublecircle\nstyle=filled fillcolor=lightgrey\nfixedsize height=1 \N 272510300 2 juniper/EX8.* shape=box style=filled fillcolor=lightblue \N 272610400 2 juniper/Chassis.* shape=box style=filled fillcolor=lightblue \N 272710500 2 cisco/WS-C45.* shape=box style=filled fillcolor=lightblue \N 272810600 2 cisco/WS-C37.* shape=box style=filled fillcolor=lightblue height=.25 \N 272910700 2 cisco/WS-C29.* shape=box style=filled fillcolor=lightblue height=.25 \N 273010800 2 cisco/WS-.*PS shape=box style=filled fillcolor=yellow height=.25 \N 273110900 2 cisco/37.* shape=octagon style=filled fillcolor=orange1 height=.25 \N 273211000 2 cisco/38.* shape=octagon style=filled fillcolor=orange1 \N 273311100 2 cisco/.*routeur shape=circle\nstyle=filled fillcolor=lightgrey\nfixedsize height=1 \N 273411200 2 cisco/1605.* shape=circle\nstyle=filled fillcolor=lightgrey\nfixedsize height=1 \N 273511300 2 cisco/1721.* shape=circle\nstyle=filled fillcolor=lightgrey\nfixedsize height=1 \N 273611400 2 cisco/7206.* shape=circle\nstyle=filled fillcolor=lightgrey\nfixedsize height=1 \N 273711500 2 juniper/EX2.* shape=box style=filled fillcolor=SteelBlue height=.25 \N 273811600 2 juniper/EX4.* shape=box style=filled fillcolor=SteelBlue height=.25 \N 273911900 2 fwroutebridge.* shape=Mcircle\nstyle=filled fillcolor=tomato\nheight=1 \N 274013000 2 fwroute.* shape=circle\nstyle=filled fillcolor=tomato\nheight=1 \N 274113100 2 fw.* shape=box style=filled fillcolor=tomato height=.25 \N 274213200 2 switch.* shape=box style=filled fillcolor=lightgrey height=.25 \N 274313300 2 hp.* shape=box style=filled fillcolor=pink height=.25 \N 274413400 2 .* shape=triangle \N 274520100 3 router shape=circle\nstyle=filled fillcolor=lightgrey\nfixedsize height=1.5 \N 274620200 3 host shape=box\nstyle=filled fillcolor=lightblue\nheight=.25 \N 274720300 3 cloud shape=ellipse\nstyle=filled fillcolor=palegreen\nwidth=1.5 \N 2748\. 2749 2750 2751-- 2752-- Data for Name: dr_eq; Type: TABLE DATA; Schema: topo; Owner: nm 2753-- 2754 2755COPY dr_eq (idgrp, rw, pattern, allow_deny) FROM stdin; 2756\. 2757 2758 2759-- 2760-- Data for Name: eq; Type: TABLE DATA; Schema: topo; Owner: nm 2761-- 2762 2763COPY eq (ideq, eq, idtype, up) FROM stdin; 2764\. 2765 2766 2767-- 2768-- Data for Name: eqtype; Type: TABLE DATA; Schema: topo; Owner: nm 2769-- 2770 2771COPY eqtype (idtype, type) FROM stdin; 27721 cisco 27732 juniper 27743 hp 2775\. 2776 2777 2778-- 2779-- Data for Name: filemonitor; Type: TABLE DATA; Schema: topo; Owner: nm 2780-- 2781 2782COPY filemonitor (path, date) FROM stdin; 2783\. 2784 2785 2786-- 2787-- Data for Name: ifchanges; Type: TABLE DATA; Schema: topo; Owner: nm 2788-- 2789 2790COPY ifchanges (login, reqdate, idrr, iface, ifdesc, ethervlan, voicevlan, processed, moddate, modlog) FROM stdin; 2791\. 2792 2793 2794-- 2795-- Data for Name: ignoreequsers; Type: TABLE DATA; Schema: topo; Owner: nm 2796-- 2797 2798COPY ignoreequsers (login) FROM stdin; 2799conf 2800\. 2801 2802 2803-- 2804-- Data for Name: keepstate; Type: TABLE DATA; Schema: topo; Owner: nm 2805-- 2806 2807COPY keepstate (type, message, date) FROM stdin; 2808\. 2809 2810 2811-- 2812-- Data for Name: lastrun; Type: TABLE DATA; Schema: topo; Owner: nm 2813-- 2814 2815COPY lastrun (date) FROM stdin; 2816\N 2817\. 2818 2819 2820-- 2821-- Data for Name: link; Type: TABLE DATA; Schema: topo; Owner: nm 2822-- 2823 2824COPY link (idlink, descr) FROM stdin; 2825\. 2826 2827 2828-- 2829-- Data for Name: modeq; Type: TABLE DATA; Schema: topo; Owner: nm 2830-- 2831 2832COPY modeq (eq, date, login, processed) FROM stdin; 2833_vlan 2013-06-02 18:34:04 \N 0 2834\. 2835 2836 2837-- 2838-- Data for Name: sensor; Type: TABLE DATA; Schema: topo; Owner: nm 2839-- 2840 2841COPY sensor (id, type, eq, comm, iface, param, lastmod, lastseen) FROM stdin; 2842\. 2843 2844 2845-- 2846-- Name: seq_confcmd; Type: SEQUENCE SET; Schema: topo; Owner: nm 2847-- 2848 2849SELECT pg_catalog.setval('seq_confcmd', 25, true); 2850 2851 2852-- 2853-- Name: seq_eq; Type: SEQUENCE SET; Schema: topo; Owner: nm 2854-- 2855 2856SELECT pg_catalog.setval('seq_eq', 1, false); 2857 2858 2859-- 2860-- Name: seq_eqtype; Type: SEQUENCE SET; Schema: topo; Owner: nm 2861-- 2862 2863SELECT pg_catalog.setval('seq_eqtype', 3, true); 2864 2865 2866-- 2867-- Name: seq_link; Type: SEQUENCE SET; Schema: topo; Owner: nm 2868-- 2869 2870SELECT pg_catalog.setval('seq_link', 1, false); 2871 2872 2873-- 2874-- Data for Name: vlan; Type: TABLE DATA; Schema: topo; Owner: nm 2875-- 2876 2877COPY vlan (vlanid, descr, voip) FROM stdin; 28781 default 0 2879\. 2880 2881 2882SET search_path = dns, pg_catalog; 2883 2884-- 2885-- Name: communaute_pkey; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 2886-- 2887 2888ALTER TABLE ONLY communaute 2889 ADD CONSTRAINT communaute_pkey PRIMARY KEY (idcommu); 2890 2891 2892-- 2893-- Name: dhcpprofil_nom_key; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 2894-- 2895 2896ALTER TABLE ONLY dhcpprofil 2897 ADD CONSTRAINT dhcpprofil_nom_key UNIQUE (nom); 2898 2899 2900-- 2901-- Name: dhcpprofil_pkey; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 2902-- 2903 2904ALTER TABLE ONLY dhcpprofil 2905 ADD CONSTRAINT dhcpprofil_pkey PRIMARY KEY (iddhcpprofil); 2906 2907 2908-- 2909-- Name: dhcprange_max_key; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 2910-- 2911 2912ALTER TABLE ONLY dhcprange 2913 ADD CONSTRAINT dhcprange_max_key UNIQUE (max); 2914 2915 2916-- 2917-- Name: dhcprange_min_key; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 2918-- 2919 2920ALTER TABLE ONLY dhcprange 2921 ADD CONSTRAINT dhcprange_min_key UNIQUE (min); 2922 2923 2924-- 2925-- Name: dhcprange_pkey; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 2926-- 2927 2928ALTER TABLE ONLY dhcprange 2929 ADD CONSTRAINT dhcprange_pkey PRIMARY KEY (iddhcprange); 2930 2931 2932-- 2933-- Name: domaine_nom_key; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 2934-- 2935 2936ALTER TABLE ONLY domaine 2937 ADD CONSTRAINT domaine_nom_key UNIQUE (nom); 2938 2939 2940-- 2941-- Name: domaine_pkey; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 2942-- 2943 2944ALTER TABLE ONLY domaine 2945 ADD CONSTRAINT domaine_pkey PRIMARY KEY (iddom); 2946 2947 2948-- 2949-- Name: dr_dhcpprofil_pkey; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 2950-- 2951 2952ALTER TABLE ONLY dr_dhcpprofil 2953 ADD CONSTRAINT dr_dhcpprofil_pkey PRIMARY KEY (idgrp, iddhcpprofil); 2954 2955 2956-- 2957-- Name: dr_dom_pkey; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 2958-- 2959 2960ALTER TABLE ONLY dr_dom 2961 ADD CONSTRAINT dr_dom_pkey PRIMARY KEY (idgrp, iddom); 2962 2963 2964-- 2965-- Name: dr_ip_pkey; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 2966-- 2967 2968ALTER TABLE ONLY dr_ip 2969 ADD CONSTRAINT dr_ip_pkey PRIMARY KEY (idgrp, adr); 2970 2971 2972-- 2973-- Name: dr_reseau_pkey; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 2974-- 2975 2976ALTER TABLE ONLY dr_reseau 2977 ADD CONSTRAINT dr_reseau_pkey PRIMARY KEY (idgrp, idreseau); 2978 2979 2980-- 2981-- Name: etablissement_pkey; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 2982-- 2983 2984ALTER TABLE ONLY etablissement 2985 ADD CONSTRAINT etablissement_pkey PRIMARY KEY (idetabl); 2986 2987 2988-- 2989-- Name: hinfo_pkey; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 2990-- 2991 2992ALTER TABLE ONLY hinfo 2993 ADD CONSTRAINT hinfo_pkey PRIMARY KEY (idhinfo); 2994 2995 2996-- 2997-- Name: relais_dom_pkey; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 2998-- 2999 3000ALTER TABLE ONLY relais_dom 3001 ADD CONSTRAINT relais_dom_pkey PRIMARY KEY (iddom, mx); 3002 3003 3004-- 3005-- Name: reseau_pkey; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 3006-- 3007 3008ALTER TABLE ONLY reseau 3009 ADD CONSTRAINT reseau_pkey PRIMARY KEY (idreseau); 3010 3011 3012-- 3013-- Name: role_mail_pkey; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 3014-- 3015 3016ALTER TABLE ONLY role_mail 3017 ADD CONSTRAINT role_mail_pkey PRIMARY KEY (idrr); 3018 3019 3020-- 3021-- Name: role_web_pkey; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 3022-- 3023 3024ALTER TABLE ONLY role_web 3025 ADD CONSTRAINT role_web_pkey PRIMARY KEY (idrr); 3026 3027 3028-- 3029-- Name: rr_cname_pkey; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 3030-- 3031 3032ALTER TABLE ONLY rr_cname 3033 ADD CONSTRAINT rr_cname_pkey PRIMARY KEY (idrr, cname); 3034 3035 3036-- 3037-- Name: rr_ip_pkey; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 3038-- 3039 3040ALTER TABLE ONLY rr_ip 3041 ADD CONSTRAINT rr_ip_pkey PRIMARY KEY (idrr, adr); 3042 3043 3044-- 3045-- Name: rr_mac_key; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 3046-- 3047 3048ALTER TABLE ONLY rr 3049 ADD CONSTRAINT rr_mac_key UNIQUE (mac); 3050 3051 3052-- 3053-- Name: rr_mx_pkey; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 3054-- 3055 3056ALTER TABLE ONLY rr_mx 3057 ADD CONSTRAINT rr_mx_pkey PRIMARY KEY (idrr, mx); 3058 3059 3060-- 3061-- Name: rr_nom_iddom_key; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 3062-- 3063 3064ALTER TABLE ONLY rr 3065 ADD CONSTRAINT rr_nom_iddom_key UNIQUE (nom, iddom); 3066 3067 3068-- 3069-- Name: rr_pkey; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 3070-- 3071 3072ALTER TABLE ONLY rr 3073 ADD CONSTRAINT rr_pkey PRIMARY KEY (idrr); 3074 3075 3076-- 3077-- Name: zone_domaine_key; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 3078-- 3079 3080ALTER TABLE ONLY zone 3081 ADD CONSTRAINT zone_domaine_key UNIQUE (domaine); 3082 3083 3084-- 3085-- Name: zone_pkey; Type: CONSTRAINT; Schema: dns; Owner: nm; Tablespace: 3086-- 3087 3088ALTER TABLE ONLY zone 3089 ADD CONSTRAINT zone_pkey PRIMARY KEY (idzone); 3090 3091 3092SET search_path = global, pg_catalog; 3093 3094-- 3095-- Name: config_pkey; Type: CONSTRAINT; Schema: global; Owner: nm; Tablespace: 3096-- 3097 3098ALTER TABLE ONLY config 3099 ADD CONSTRAINT config_pkey PRIMARY KEY (clef); 3100 3101 3102-- 3103-- Name: corresp_login_key; Type: CONSTRAINT; Schema: global; Owner: nm; Tablespace: 3104-- 3105 3106ALTER TABLE ONLY corresp 3107 ADD CONSTRAINT corresp_login_key UNIQUE (login); 3108 3109 3110-- 3111-- Name: corresp_pkey; Type: CONSTRAINT; Schema: global; Owner: nm; Tablespace: 3112-- 3113 3114ALTER TABLE ONLY corresp 3115 ADD CONSTRAINT corresp_pkey PRIMARY KEY (idcor); 3116 3117 3118-- 3119-- Name: groupe_nom_key; Type: CONSTRAINT; Schema: global; Owner: nm; Tablespace: 3120-- 3121 3122ALTER TABLE ONLY groupe 3123 ADD CONSTRAINT groupe_nom_key UNIQUE (nom); 3124 3125 3126-- 3127-- Name: groupe_pkey; Type: CONSTRAINT; Schema: global; Owner: nm; Tablespace: 3128-- 3129 3130ALTER TABLE ONLY groupe 3131 ADD CONSTRAINT groupe_pkey PRIMARY KEY (idgrp); 3132 3133 3134SET search_path = pgauth, pg_catalog; 3135 3136-- 3137-- Name: member_pkey; Type: CONSTRAINT; Schema: pgauth; Owner: nm; Tablespace: 3138-- 3139 3140ALTER TABLE ONLY member 3141 ADD CONSTRAINT member_pkey PRIMARY KEY (login, realm); 3142 3143 3144-- 3145-- Name: realm_pkey; Type: CONSTRAINT; Schema: pgauth; Owner: nm; Tablespace: 3146-- 3147 3148ALTER TABLE ONLY realm 3149 ADD CONSTRAINT realm_pkey PRIMARY KEY (realm); 3150 3151 3152-- 3153-- Name: user_pkey; Type: CONSTRAINT; Schema: pgauth; Owner: nm; Tablespace: 3154-- 3155 3156ALTER TABLE ONLY "user" 3157 ADD CONSTRAINT user_pkey PRIMARY KEY (login); 3158 3159 3160SET search_path = topo, pg_catalog; 3161 3162-- 3163-- Name: confcmd_pkey; Type: CONSTRAINT; Schema: topo; Owner: nm; Tablespace: 3164-- 3165 3166ALTER TABLE ONLY confcmd 3167 ADD CONSTRAINT confcmd_pkey PRIMARY KEY (idccmd); 3168 3169 3170-- 3171-- Name: dotattr_pkey; Type: CONSTRAINT; Schema: topo; Owner: nm; Tablespace: 3172-- 3173 3174ALTER TABLE ONLY dotattr 3175 ADD CONSTRAINT dotattr_pkey PRIMARY KEY (rank); 3176 3177 3178-- 3179-- Name: eq_eq_key; Type: CONSTRAINT; Schema: topo; Owner: nm; Tablespace: 3180-- 3181 3182ALTER TABLE ONLY eq 3183 ADD CONSTRAINT eq_eq_key UNIQUE (eq); 3184 3185 3186-- 3187-- Name: eq_pkey; Type: CONSTRAINT; Schema: topo; Owner: nm; Tablespace: 3188-- 3189 3190ALTER TABLE ONLY eq 3191 ADD CONSTRAINT eq_pkey PRIMARY KEY (ideq); 3192 3193 3194-- 3195-- Name: eqtype_pkey; Type: CONSTRAINT; Schema: topo; Owner: nm; Tablespace: 3196-- 3197 3198ALTER TABLE ONLY eqtype 3199 ADD CONSTRAINT eqtype_pkey PRIMARY KEY (idtype); 3200 3201 3202-- 3203-- Name: eqtype_type_key; Type: CONSTRAINT; Schema: topo; Owner: nm; Tablespace: 3204-- 3205 3206ALTER TABLE ONLY eqtype 3207 ADD CONSTRAINT eqtype_type_key UNIQUE (type); 3208 3209 3210-- 3211-- Name: filemonitor_pkey; Type: CONSTRAINT; Schema: topo; Owner: nm; Tablespace: 3212-- 3213 3214ALTER TABLE ONLY filemonitor 3215 ADD CONSTRAINT filemonitor_pkey PRIMARY KEY (path); 3216 3217 3218-- 3219-- Name: ifchanges_pkey; Type: CONSTRAINT; Schema: topo; Owner: nm; Tablespace: 3220-- 3221 3222ALTER TABLE ONLY ifchanges 3223 ADD CONSTRAINT ifchanges_pkey PRIMARY KEY (idrr, reqdate, iface); 3224 3225 3226-- 3227-- Name: ignoreequsers_login_key; Type: CONSTRAINT; Schema: topo; Owner: nm; Tablespace: 3228-- 3229 3230ALTER TABLE ONLY ignoreequsers 3231 ADD CONSTRAINT ignoreequsers_login_key UNIQUE (login); 3232 3233 3234-- 3235-- Name: keepstate_pkey; Type: CONSTRAINT; Schema: topo; Owner: nm; Tablespace: 3236-- 3237 3238ALTER TABLE ONLY keepstate 3239 ADD CONSTRAINT keepstate_pkey PRIMARY KEY (type); 3240 3241 3242-- 3243-- Name: link_pkey; Type: CONSTRAINT; Schema: topo; Owner: nm; Tablespace: 3244-- 3245 3246ALTER TABLE ONLY link 3247 ADD CONSTRAINT link_pkey PRIMARY KEY (idlink); 3248 3249 3250-- 3251-- Name: sensor_pkey; Type: CONSTRAINT; Schema: topo; Owner: nm; Tablespace: 3252-- 3253 3254ALTER TABLE ONLY sensor 3255 ADD CONSTRAINT sensor_pkey PRIMARY KEY (id); 3256 3257 3258-- 3259-- Name: vlan_pkey; Type: CONSTRAINT; Schema: topo; Owner: nm; Tablespace: 3260-- 3261 3262ALTER TABLE ONLY vlan 3263 ADD CONSTRAINT vlan_pkey PRIMARY KEY (vlanid); 3264 3265 3266SET search_path = mac, pg_catalog; 3267 3268-- 3269-- Name: ipmac_closed_idx; Type: INDEX; Schema: mac; Owner: nm; Tablespace: 3270-- 3271 3272CREATE INDEX ipmac_closed_idx ON ipmac USING btree (closed); 3273 3274 3275-- 3276-- Name: ipmac_data_idx; Type: INDEX; Schema: mac; Owner: nm; Tablespace: 3277-- 3278 3279CREATE INDEX ipmac_data_idx ON ipmac USING btree (data); 3280 3281 3282-- 3283-- Name: ipmac_ip_idx; Type: INDEX; Schema: mac; Owner: nm; Tablespace: 3284-- 3285 3286CREATE INDEX ipmac_ip_idx ON ipmac USING btree (((data).ip)); 3287 3288 3289-- 3290-- Name: ipmac_mac_idx; Type: INDEX; Schema: mac; Owner: nm; Tablespace: 3291-- 3292 3293CREATE INDEX ipmac_mac_idx ON ipmac USING btree (((data).mac)); 3294 3295 3296-- 3297-- Name: ipmac_src_idx; Type: INDEX; Schema: mac; Owner: nm; Tablespace: 3298-- 3299 3300CREATE INDEX ipmac_src_idx ON ipmac USING btree (src); 3301 3302 3303-- 3304-- Name: ipmac_start_idx; Type: INDEX; Schema: mac; Owner: nm; Tablespace: 3305-- 3306 3307CREATE INDEX ipmac_start_idx ON ipmac USING btree (start); 3308 3309 3310-- 3311-- Name: ipmac_stop_idx; Type: INDEX; Schema: mac; Owner: nm; Tablespace: 3312-- 3313 3314CREATE INDEX ipmac_stop_idx ON ipmac USING btree (stop); 3315 3316 3317-- 3318-- Name: portmac_closed_idx; Type: INDEX; Schema: mac; Owner: nm; Tablespace: 3319-- 3320 3321CREATE INDEX portmac_closed_idx ON portmac USING btree (closed); 3322 3323 3324-- 3325-- Name: portmac_data_idx; Type: INDEX; Schema: mac; Owner: nm; Tablespace: 3326-- 3327 3328CREATE INDEX portmac_data_idx ON portmac USING btree (data); 3329 3330 3331-- 3332-- Name: portmac_mac_idx; Type: INDEX; Schema: mac; Owner: nm; Tablespace: 3333-- 3334 3335CREATE INDEX portmac_mac_idx ON portmac USING btree (((data).mac)); 3336 3337 3338-- 3339-- Name: portmac_port_idx; Type: INDEX; Schema: mac; Owner: nm; Tablespace: 3340-- 3341 3342CREATE INDEX portmac_port_idx ON portmac USING btree (((data).port)); 3343 3344 3345-- 3346-- Name: portmac_src_idx; Type: INDEX; Schema: mac; Owner: nm; Tablespace: 3347-- 3348 3349CREATE INDEX portmac_src_idx ON portmac USING btree (src); 3350 3351 3352-- 3353-- Name: portmac_start_idx; Type: INDEX; Schema: mac; Owner: nm; Tablespace: 3354-- 3355 3356CREATE INDEX portmac_start_idx ON portmac USING btree (start); 3357 3358 3359-- 3360-- Name: portmac_stop_idx; Type: INDEX; Schema: mac; Owner: nm; Tablespace: 3361-- 3362 3363CREATE INDEX portmac_stop_idx ON portmac USING btree (stop); 3364 3365 3366-- 3367-- Name: portmac_vlanid_idx; Type: INDEX; Schema: mac; Owner: nm; Tablespace: 3368-- 3369 3370CREATE INDEX portmac_vlanid_idx ON portmac USING btree (((data).vlanid)); 3371 3372 3373SET search_path = topo, pg_catalog; 3374 3375-- 3376-- Name: modeq_index; Type: INDEX; Schema: topo; Owner: nm; Tablespace: 3377-- 3378 3379CREATE INDEX modeq_index ON modeq USING btree (eq); 3380 3381 3382SET search_path = dns, pg_catalog; 3383 3384-- 3385-- Name: tr_modifier_cname; Type: TRIGGER; Schema: dns; Owner: nm 3386-- 3387 3388CREATE TRIGGER tr_modifier_cname AFTER INSERT OR DELETE OR UPDATE ON rr_cname FOR EACH ROW EXECUTE PROCEDURE public.modifier_mxcname(); 3389 3390 3391-- 3392-- Name: tr_modifier_dhcpprofil; Type: TRIGGER; Schema: dns; Owner: nm 3393-- 3394 3395CREATE TRIGGER tr_modifier_dhcpprofil BEFORE UPDATE ON dhcpprofil FOR EACH ROW EXECUTE PROCEDURE public.generer_dhcp(); 3396 3397 3398-- 3399-- Name: tr_modifier_dhcprange; Type: TRIGGER; Schema: dns; Owner: nm 3400-- 3401 3402CREATE TRIGGER tr_modifier_dhcprange BEFORE UPDATE ON dhcprange FOR EACH ROW EXECUTE PROCEDURE public.generer_dhcp(); 3403 3404 3405-- 3406-- Name: tr_modifier_ip; Type: TRIGGER; Schema: dns; Owner: nm 3407-- 3408 3409CREATE TRIGGER tr_modifier_ip AFTER INSERT OR DELETE OR UPDATE ON rr_ip FOR EACH ROW EXECUTE PROCEDURE public.modifier_ip(); 3410 3411 3412-- 3413-- Name: tr_modifier_mx; Type: TRIGGER; Schema: dns; Owner: nm 3414-- 3415 3416CREATE TRIGGER tr_modifier_mx AFTER INSERT OR DELETE OR UPDATE ON rr_mx FOR EACH ROW EXECUTE PROCEDURE public.modifier_mxcname(); 3417 3418 3419-- 3420-- Name: tr_modifier_relais; Type: TRIGGER; Schema: dns; Owner: nm 3421-- 3422 3423CREATE TRIGGER tr_modifier_relais AFTER INSERT OR DELETE OR UPDATE ON relais_dom FOR EACH ROW EXECUTE PROCEDURE public.modifier_relais(); 3424 3425 3426-- 3427-- Name: tr_modifier_reseau; Type: TRIGGER; Schema: dns; Owner: nm 3428-- 3429 3430CREATE TRIGGER tr_modifier_reseau BEFORE UPDATE ON reseau FOR EACH ROW EXECUTE PROCEDURE public.generer_dhcp(); 3431 3432 3433-- 3434-- Name: tr_modifier_rr; Type: TRIGGER; Schema: dns; Owner: nm 3435-- 3436 3437CREATE TRIGGER tr_modifier_rr AFTER INSERT OR DELETE OR UPDATE ON rr FOR EACH ROW EXECUTE PROCEDURE public.modifier_rr(); 3438 3439 3440-- 3441-- Name: tr_modifier_zone; Type: TRIGGER; Schema: dns; Owner: nm 3442-- 3443 3444CREATE TRIGGER tr_modifier_zone BEFORE UPDATE ON zone_normale FOR EACH ROW EXECUTE PROCEDURE public.modifier_zone(); 3445 3446 3447-- 3448-- Name: tr_modifier_zone4; Type: TRIGGER; Schema: dns; Owner: nm 3449-- 3450 3451CREATE TRIGGER tr_modifier_zone4 BEFORE UPDATE ON zone_reverse4 FOR EACH ROW EXECUTE PROCEDURE public.modifier_zone(); 3452 3453 3454-- 3455-- Name: tr_modifier_zone6; Type: TRIGGER; Schema: dns; Owner: nm 3456-- 3457 3458CREATE TRIGGER tr_modifier_zone6 BEFORE UPDATE ON zone_reverse6 FOR EACH ROW EXECUTE PROCEDURE public.modifier_zone(); 3459 3460 3461SET search_path = pgauth, pg_catalog; 3462 3463-- 3464-- Name: phnom; Type: TRIGGER; Schema: pgauth; Owner: nm 3465-- 3466 3467CREATE TRIGGER phnom BEFORE INSERT OR UPDATE ON "user" FOR EACH ROW EXECUTE PROCEDURE add_soundex(); 3468 3469 3470SET search_path = topo, pg_catalog; 3471 3472-- 3473-- Name: tr_mod_eq; Type: TRIGGER; Schema: topo; Owner: nm 3474-- 3475 3476CREATE TRIGGER tr_mod_eq AFTER INSERT OR DELETE OR UPDATE ON eq FOR EACH ROW EXECUTE PROCEDURE public.modif_routerdb(); 3477 3478 3479-- 3480-- Name: tr_mod_vlan; Type: TRIGGER; Schema: topo; Owner: nm 3481-- 3482 3483CREATE TRIGGER tr_mod_vlan AFTER INSERT OR DELETE OR UPDATE ON vlan FOR EACH ROW EXECUTE PROCEDURE public.modif_vlan(); 3484 3485 3486SET search_path = dns, pg_catalog; 3487 3488-- 3489-- Name: dhcprange_iddhcpprofil_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3490-- 3491 3492ALTER TABLE ONLY dhcprange 3493 ADD CONSTRAINT dhcprange_iddhcpprofil_fkey FOREIGN KEY (iddhcpprofil) REFERENCES dhcpprofil(iddhcpprofil); 3494 3495 3496-- 3497-- Name: dhcprange_iddom_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3498-- 3499 3500ALTER TABLE ONLY dhcprange 3501 ADD CONSTRAINT dhcprange_iddom_fkey FOREIGN KEY (iddom) REFERENCES domaine(iddom); 3502 3503 3504-- 3505-- Name: dr_dhcpprofil_iddhcpprofil_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3506-- 3507 3508ALTER TABLE ONLY dr_dhcpprofil 3509 ADD CONSTRAINT dr_dhcpprofil_iddhcpprofil_fkey FOREIGN KEY (iddhcpprofil) REFERENCES dhcpprofil(iddhcpprofil); 3510 3511 3512-- 3513-- Name: dr_dhcpprofil_idgrp_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3514-- 3515 3516ALTER TABLE ONLY dr_dhcpprofil 3517 ADD CONSTRAINT dr_dhcpprofil_idgrp_fkey FOREIGN KEY (idgrp) REFERENCES global.groupe(idgrp); 3518 3519 3520-- 3521-- Name: dr_dom_idgrp_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3522-- 3523 3524ALTER TABLE ONLY dr_dom 3525 ADD CONSTRAINT dr_dom_idgrp_fkey FOREIGN KEY (idgrp) REFERENCES global.groupe(idgrp); 3526 3527 3528-- 3529-- Name: dr_ip_idgrp_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3530-- 3531 3532ALTER TABLE ONLY dr_ip 3533 ADD CONSTRAINT dr_ip_idgrp_fkey FOREIGN KEY (idgrp) REFERENCES global.groupe(idgrp); 3534 3535 3536-- 3537-- Name: dr_reseau_idgrp_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3538-- 3539 3540ALTER TABLE ONLY dr_reseau 3541 ADD CONSTRAINT dr_reseau_idgrp_fkey FOREIGN KEY (idgrp) REFERENCES global.groupe(idgrp); 3542 3543 3544-- 3545-- Name: dr_reseau_idreseau_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3546-- 3547 3548ALTER TABLE ONLY dr_reseau 3549 ADD CONSTRAINT dr_reseau_idreseau_fkey FOREIGN KEY (idreseau) REFERENCES reseau(idreseau); 3550 3551 3552-- 3553-- Name: relais_dom_iddom_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3554-- 3555 3556ALTER TABLE ONLY relais_dom 3557 ADD CONSTRAINT relais_dom_iddom_fkey FOREIGN KEY (iddom) REFERENCES domaine(iddom); 3558 3559 3560-- 3561-- Name: relais_dom_mx_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3562-- 3563 3564ALTER TABLE ONLY relais_dom 3565 ADD CONSTRAINT relais_dom_mx_fkey FOREIGN KEY (mx) REFERENCES rr(idrr); 3566 3567 3568-- 3569-- Name: reseau_idcommu_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3570-- 3571 3572ALTER TABLE ONLY reseau 3573 ADD CONSTRAINT reseau_idcommu_fkey FOREIGN KEY (idcommu) REFERENCES communaute(idcommu); 3574 3575 3576-- 3577-- Name: reseau_idetabl_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3578-- 3579 3580ALTER TABLE ONLY reseau 3581 ADD CONSTRAINT reseau_idetabl_fkey FOREIGN KEY (idetabl) REFERENCES etablissement(idetabl); 3582 3583 3584-- 3585-- Name: role_mail_heberg_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3586-- 3587 3588ALTER TABLE ONLY role_mail 3589 ADD CONSTRAINT role_mail_heberg_fkey FOREIGN KEY (heberg) REFERENCES rr(idrr); 3590 3591 3592-- 3593-- Name: role_mail_idrr_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3594-- 3595 3596ALTER TABLE ONLY role_mail 3597 ADD CONSTRAINT role_mail_idrr_fkey FOREIGN KEY (idrr) REFERENCES rr(idrr); 3598 3599 3600-- 3601-- Name: role_web_idrr_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3602-- 3603 3604ALTER TABLE ONLY role_web 3605 ADD CONSTRAINT role_web_idrr_fkey FOREIGN KEY (idrr) REFERENCES rr(idrr); 3606 3607 3608-- 3609-- Name: rr_cname_cname_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3610-- 3611 3612ALTER TABLE ONLY rr_cname 3613 ADD CONSTRAINT rr_cname_cname_fkey FOREIGN KEY (cname) REFERENCES rr(idrr); 3614 3615 3616-- 3617-- Name: rr_cname_idrr_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3618-- 3619 3620ALTER TABLE ONLY rr_cname 3621 ADD CONSTRAINT rr_cname_idrr_fkey FOREIGN KEY (idrr) REFERENCES rr(idrr); 3622 3623 3624-- 3625-- Name: rr_idcor_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3626-- 3627 3628ALTER TABLE ONLY rr 3629 ADD CONSTRAINT rr_idcor_fkey FOREIGN KEY (idcor) REFERENCES global.corresp(idcor); 3630 3631 3632-- 3633-- Name: rr_iddhcpprofil_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3634-- 3635 3636ALTER TABLE ONLY rr 3637 ADD CONSTRAINT rr_iddhcpprofil_fkey FOREIGN KEY (iddhcpprofil) REFERENCES dhcpprofil(iddhcpprofil); 3638 3639 3640-- 3641-- Name: rr_iddom_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3642-- 3643 3644ALTER TABLE ONLY rr 3645 ADD CONSTRAINT rr_iddom_fkey FOREIGN KEY (iddom) REFERENCES domaine(iddom); 3646 3647 3648-- 3649-- Name: rr_idhinfo_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3650-- 3651 3652ALTER TABLE ONLY rr 3653 ADD CONSTRAINT rr_idhinfo_fkey FOREIGN KEY (idhinfo) REFERENCES hinfo(idhinfo); 3654 3655 3656-- 3657-- Name: rr_ip_idrr_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3658-- 3659 3660ALTER TABLE ONLY rr_ip 3661 ADD CONSTRAINT rr_ip_idrr_fkey FOREIGN KEY (idrr) REFERENCES rr(idrr); 3662 3663 3664-- 3665-- Name: rr_mx_idrr_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3666-- 3667 3668ALTER TABLE ONLY rr_mx 3669 ADD CONSTRAINT rr_mx_idrr_fkey FOREIGN KEY (idrr) REFERENCES rr(idrr); 3670 3671 3672-- 3673-- Name: rr_mx_mx_fkey; Type: FK CONSTRAINT; Schema: dns; Owner: nm 3674-- 3675 3676ALTER TABLE ONLY rr_mx 3677 ADD CONSTRAINT rr_mx_mx_fkey FOREIGN KEY (mx) REFERENCES rr(idrr); 3678 3679 3680SET search_path = global, pg_catalog; 3681 3682-- 3683-- Name: corresp_idgrp_fkey; Type: FK CONSTRAINT; Schema: global; Owner: nm 3684-- 3685 3686ALTER TABLE ONLY corresp 3687 ADD CONSTRAINT corresp_idgrp_fkey FOREIGN KEY (idgrp) REFERENCES groupe(idgrp); 3688 3689 3690SET search_path = pgauth, pg_catalog; 3691 3692-- 3693-- Name: member_login_fkey; Type: FK CONSTRAINT; Schema: pgauth; Owner: nm 3694-- 3695 3696ALTER TABLE ONLY member 3697 ADD CONSTRAINT member_login_fkey FOREIGN KEY (login) REFERENCES "user"(login); 3698 3699 3700-- 3701-- Name: member_realm_fkey; Type: FK CONSTRAINT; Schema: pgauth; Owner: nm 3702-- 3703 3704ALTER TABLE ONLY member 3705 ADD CONSTRAINT member_realm_fkey FOREIGN KEY (realm) REFERENCES realm(realm); 3706 3707 3708SET search_path = topo, pg_catalog; 3709 3710-- 3711-- Name: confcmd_idtype_fkey; Type: FK CONSTRAINT; Schema: topo; Owner: nm 3712-- 3713 3714ALTER TABLE ONLY confcmd 3715 ADD CONSTRAINT confcmd_idtype_fkey FOREIGN KEY (idtype) REFERENCES eqtype(idtype); 3716 3717 3718-- 3719-- Name: dr_eq_idgrp_fkey; Type: FK CONSTRAINT; Schema: topo; Owner: nm 3720-- 3721 3722ALTER TABLE ONLY dr_eq 3723 ADD CONSTRAINT dr_eq_idgrp_fkey FOREIGN KEY (idgrp) REFERENCES global.groupe(idgrp); 3724 3725 3726-- 3727-- Name: eq_idtype_fkey; Type: FK CONSTRAINT; Schema: topo; Owner: nm 3728-- 3729 3730ALTER TABLE ONLY eq 3731 ADD CONSTRAINT eq_idtype_fkey FOREIGN KEY (idtype) REFERENCES eqtype(idtype); 3732 3733 3734-- 3735-- Name: ifchanges_idrr_fkey; Type: FK CONSTRAINT; Schema: topo; Owner: nm 3736-- 3737 3738ALTER TABLE ONLY ifchanges 3739 ADD CONSTRAINT ifchanges_idrr_fkey FOREIGN KEY (idrr) REFERENCES dns.rr(idrr); 3740 3741 3742-- 3743-- Name: public; Type: ACL; Schema: -; Owner: postgres 3744-- 3745 3746REVOKE ALL ON SCHEMA public FROM PUBLIC; 3747REVOKE ALL ON SCHEMA public FROM postgres; 3748GRANT ALL ON SCHEMA public TO postgres; 3749GRANT ALL ON SCHEMA public TO PUBLIC; 3750 3751 3752-- 3753-- PostgreSQL database dump complete 3754-- 3755 3756