1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 17888 17889 17890 17891 17892 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253 18254 18255 18256 18257 18258 18259 18260 18261 18262 18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 18405 18406 18407 18408 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 18508 18509 18510 18511 18512 18513 18514 18515 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715 18716 18717 18718 18719 18720 18721 18722 18723 18724 18725 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743 18744 18745 18746 18747 18748 18749 18750 18751 18752 18753 18754 18755 18756 18757 18758 18759 18760 18761 18762 18763 18764 18765 18766 18767 18768 18769 18770 18771 18772 18773 18774 18775 18776 18777 18778 18779 18780 18781 18782 18783 18784 18785 18786 18787 18788 18789 18790 18791 18792 18793 18794 18795 18796 18797 18798 18799 18800 18801 18802 18803 18804 18805 18806 18807 18808 18809 18810 18811 18812 18813 18814 18815 18816 18817 18818 18819 18820 18821 18822 18823 18824 18825 18826 18827 18828 18829 18830 18831 18832 18833 18834 18835 18836 18837 18838 18839 18840 18841 18842 18843 18844 18845 18846 18847 18848 18849 18850 18851 18852 18853 18854 18855 18856 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 18867 18868 18869 18870 18871 18872 18873 18874 18875 18876 18877 18878 18879 18880 18881 18882 18883 18884 18885 18886 18887 18888 18889 18890 18891 18892 18893 18894 18895 18896 18897 18898 18899 18900 18901 18902 18903 18904 18905 18906 18907 18908 18909 18910 18911 18912 18913 18914 18915 18916 18917 18918 18919 18920 18921 18922 18923 18924 18925 18926 18927 18928 18929 18930 18931 18932 18933 18934 18935 18936 18937 18938 18939 18940 18941 18942 18943 18944 18945 18946 18947 18948 18949 18950 18951 18952 18953 18954 18955 18956 18957 18958 18959 18960 18961 18962 18963 18964 18965 18966 18967 18968 18969 18970 18971 18972 18973 18974 18975 18976 18977 18978 18979 18980 18981 18982 18983 18984 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 19002 19003 19004 19005 19006 19007 19008 19009 19010 19011 19012 19013 19014 19015 19016 19017 19018 19019 19020 19021 19022 19023 19024 19025 19026 19027 19028 19029 19030 19031 19032 19033 19034 19035 19036 19037 19038 19039 19040 19041 19042 19043 19044 19045 19046 19047 19048 19049 19050 19051 19052 19053 19054 19055 19056 19057 19058 19059 19060 19061 19062 19063 19064 19065 19066 19067 19068 19069 19070 19071 19072 19073 19074 19075 19076 19077 19078 19079 19080 19081 19082 19083 19084 19085 19086 19087 19088 19089 19090 19091 19092 19093 19094 19095 19096 19097 19098 19099 19100 19101 19102 19103 19104 19105 19106 19107 19108 19109 19110 19111 19112 19113 19114 19115 19116 19117 19118 19119 19120 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131 19132 19133 19134 19135 19136 19137 19138 19139 19140 19141 19142 19143 19144 19145 19146 19147 19148 19149 19150 19151 19152 19153 19154 19155 19156 19157 19158 19159 19160 19161 19162 19163 19164 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180 19181 19182 19183 19184 19185 19186 19187 19188 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198 19199 19200 19201 19202 19203 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228 19229 19230 19231 19232 19233 19234 19235 19236 19237 19238 19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 19267 19268 19269 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299 19300 19301 19302 19303 19304 19305 19306 19307 19308 19309 19310 19311 19312 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 19331 19332 19333 19334 19335 19336 19337 19338 19339 19340 19341 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353 19354 19355 19356 19357 19358 19359 19360 19361 19362 19363 19364 19365 19366 19367 19368 19369 19370 19371 19372 19373 19374 19375 19376 19377 19378 19379 19380 19381 19382 19383 19384 19385 19386 19387 19388 19389 19390 19391 19392 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 19414 19415 19416 19417 19418 19419 19420 19421 19422 19423 19424 19425 19426 19427 19428 19429 19430 19431 19432 19433 19434 19435 19436 19437 19438 19439 19440 19441 19442 19443 19444 19445 19446 19447 19448 19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469 19470 19471 19472 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483 19484 19485 19486 19487 19488 19489 19490 19491 19492 19493 19494 19495 19496 19497 19498 19499 19500 19501 19502 19503 19504 19505 19506 19507 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 19522 19523 19524 19525 19526 19527 19528 19529 19530 19531 19532 19533 19534 19535 19536 19537 19538 19539 19540 19541 19542 19543 19544 19545 19546 19547 19548 19549 19550 19551 19552 19553 19554 19555 19556 19557 19558 19559 19560 19561 19562 19563 19564 19565 19566 19567 19568 19569 19570 19571 19572 19573 19574 19575 19576 19577 19578 19579 19580 19581 19582 19583 19584 19585 19586 19587 19588 19589 19590 19591 19592 19593 19594 19595 19596 19597 19598 19599 19600 19601 19602 19603 19604 19605 19606 19607 19608 19609 19610 19611 19612 19613 19614 19615 19616 19617 19618 19619 19620 19621 19622 19623 19624 19625 19626 19627 19628 19629 19630 19631 19632 19633 19634 19635 19636 19637 19638 19639 19640 19641 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651 19652 19653 19654 19655 19656 19657 19658 19659 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 19675 19676 19677 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 19688 19689 19690 19691 19692 19693 19694 19695 19696 19697 19698 19699 19700 19701 19702 19703 19704 19705 19706 19707 19708 19709 19710 19711 19712 19713 19714 19715 19716 19717 19718 19719 19720 19721 19722 19723 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736 19737 19738 19739 19740 19741 19742 19743 19744 19745 19746 19747 19748 19749 19750 19751 19752 19753 19754 19755 19756 19757 19758 19759 19760 19761 19762 19763 19764 19765 19766 19767 19768 19769 19770 19771 19772 19773 19774 19775 19776 19777 19778 19779 19780 19781 19782 19783 19784 19785 19786 19787 19788 19789 19790 19791 19792 19793 19794 19795 19796 19797 19798 19799 19800 19801 19802 19803 19804 19805 19806 19807 19808 19809 19810 19811 19812 19813 19814 19815 19816 19817 19818 19819 19820 19821 19822 19823 19824 19825 19826 19827 19828 19829 19830 19831 19832 19833 19834 19835 19836 19837 19838 19839 19840 19841 19842 19843 19844 19845 19846 19847 19848 19849 19850 19851 19852 19853 19854 19855 19856
|
# Copyright 2015 Infoblox Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import six
try:
from oslo_log import log as logging
except ImportError: # pragma: no cover
import logging
from infoblox_client import exceptions as ib_ex
from infoblox_client import utils as ib_utils
LOG = logging.getLogger(__name__)
class BaseObject(object):
"""Base class that provides minimal new object model interface
This class add next features to objects:
- initialize public instance variables with None for fields
defined in '_fields' and '_shadow_fields'
- accept fields from '_fields' and '_shadow_fields' as a parameter on
init
- dynamically remap one fields into another using _remap dict,
mapping is in effect on all stages (on init, getter and setter)
- provides nice object representation that contains class
and not None object fields (useful in python interpretter)
"""
_fields = []
_shadow_fields = []
_remap = {}
_infoblox_type = None
def __init__(self, **kwargs):
mapped_args = self._remap_fields(kwargs)
for field in self._fields + self._shadow_fields:
if field in mapped_args:
setattr(self, field, mapped_args[field])
else:
# Init all not initialized fields with None
if not hasattr(self, field):
setattr(self, field, None)
def __getattr__(self, name):
# Map aliases into real fields
if name in self._remap:
return getattr(self, self._remap[name])
else:
# Default behaviour
raise AttributeError
def __setattr__(self, name, value):
if name in self._remap:
return setattr(self, self._remap[name], value)
else:
super(BaseObject, self).__setattr__(name, value)
def __eq__(self, other):
if isinstance(other, self.__class__):
for field in self._fields:
if getattr(self, field) != getattr(other, field):
return False
return True
return False
def __repr__(self):
data = {field: getattr(self, field)
for field in self._fields + self._shadow_fields
if hasattr(self, field) and getattr(self, field) is not None}
data_str = ', '.join(
"{0}=\"{1}\"".format(key, data[key]) for key in data)
return "{0}: {1}".format(self.__class__.__name__, data_str)
@classmethod
def _remap_fields(cls, kwargs):
"""Map fields from kwargs into dict acceptable by NIOS"""
mapped = {}
for key in kwargs:
if key in cls._remap:
mapped[cls._remap[key]] = kwargs[key]
else:
mapped[key] = kwargs[key]
return mapped
@classmethod
def from_dict(cls, ip_dict):
return cls(**ip_dict)
def to_dict(self):
return {field: getattr(self, field) for field in self._fields
if getattr(self, field, None) is not None}
@property
def ref(self):
if hasattr(self, '_ref'):
return self._ref
class EA(object):
"""Extensible Attributes
This class represents extensible attributes (EA).
Converts EAs into format suitable for NIOS (to_dict)
and builds EA class from NIOS reply (from_dict).
"""
def __init__(self, ea_dict=None):
"""Optionally accept EAs as a dict on init.
Expected EA format is {ea_name: ea_value}
"""
if ea_dict is None:
ea_dict = {}
self._ea_dict = ea_dict
def __repr__(self):
eas = ()
if self._ea_dict:
eas = ("{0}={1}".format(name, self._ea_dict[name])
for name in self._ea_dict)
return "EAs:{0}".format(','.join(eas))
@property
def ea_dict(self):
"""Returns dict with EAs in ``{ea_name: ea_value}`` format."""
return self._ea_dict.copy()
@classmethod
def from_dict(cls, eas_from_nios):
"""Converts extensible attributes from the NIOS reply."""
if not eas_from_nios:
return
return cls({name: cls._process_value(ib_utils.try_value_to_bool,
eas_from_nios[name]['value'])
for name in eas_from_nios})
def to_dict(self):
"""Converts extensible attributes into the format suitable for NIOS."""
return {name: {'value': self._process_value(str, value)}
for name, value in self._ea_dict.items()
if not (value is None or value == "" or value == [])}
@staticmethod
def _process_value(func, value):
"""Applies processing method for value or each element in it.
:param func: method to be called with value
:param value: value to process
:return: if 'value' is list/tupe, returns iterable with func results,
else func result is returned
"""
if isinstance(value, (list, tuple)):
return [func(item) for item in value]
return func(value)
def get(self, name, default=None):
"""Return value of requested EA."""
return self._ea_dict.get(name, default)
def set(self, name, value):
"""Set value of requested EA."""
self._ea_dict[name] = value
class InfobloxObject(BaseObject):
"""Base class for all Infoblox related objects
Attributes:
_fields: fields that represents NIOS object (WAPI fields) and are sent
to NIOS on object creation
_search_for_update_fields: field/fields used to find an object during
an update operation. this should be the smallest number of fields
that uniquely identify an object
_all_searchable_fields: all fields that can be used to find object on
NIOS side
_updateable_search_fields: fields that can be used to find object on
NIOS side, but also can be changed, so has to be sent on update.
_shadow_fields: fields that object usually has but they should not
be sent to NIOS. These fields can be received from
NIOS. Examples: [_ref, is_default]
_return_fields: fields requested to be returned from NIOS side
if object is found/created
_infoblox_type: string representing wapi type of described object
_remap: dict that maps user faced names into internal representation
(_fields)
_custom_field_processing: dict that define rules (lambda) for building
objects from data returned by NIOS side. Expected to be redefined
in child class as needed, _custom_field_processing has priority
over _global_field_processing, so can redefine for child class
global rules defined in _global_field_processing.
_global_field_processing: almost the same as _custom_field_processing,
but defines rules for building field on global level. Fields
defined in this dict will be processed in the same way in all
child classes. Is not expected to be redefined in child classes.
_ip_version: ip version of the object, used to mark version specific
classes. Value other than None indicates that no versioned class
lookup needed.
"""
_fields = []
_search_for_update_fields = []
_all_searchable_fields = []
_updateable_search_fields = []
_shadow_fields = []
_infoblox_type = None
_remap = {}
_return_fields = []
_custom_field_processing = {}
_global_field_processing = {'extattrs': EA.from_dict}
_ip_version = None
def __new__(cls, connector, **kwargs):
return super(InfobloxObject,
cls).__new__(cls.get_class_from_args(kwargs))
def __init__(self, connector, **kwargs):
self.connector = connector
super(InfobloxObject, self).__init__(**kwargs)
def update_from_dict(self, ip_dict, only_ref=False):
if only_ref:
self._ref = ip_dict['_ref']
return
mapped_args = self._remap_fields(ip_dict)
for field in self._fields + self._shadow_fields:
if field in ip_dict:
setattr(self, field, mapped_args[field])
@classmethod
def from_dict(cls, connector, ip_dict):
"""Build dict fields as SubObjects if needed.
Checks if lambda for building object from dict exists.
_global_field_processing and _custom_field_processing rules
are checked.
"""
ipv_class = cls.get_class_from_args(ip_dict)
mapping = ipv_class._global_field_processing.copy()
mapping.update(ipv_class._custom_field_processing)
# Process fields that require building themselves as objects
for field in mapping:
if field in ip_dict:
ip_dict[field] = mapping[field](ip_dict[field])
return ipv_class(connector, **ip_dict)
@staticmethod
def value_to_dict(value):
return value.to_dict() if hasattr(value, 'to_dict') else value
def field_to_dict(self, field):
"""Read field value and converts to dict if possible"""
value = getattr(self, field)
if isinstance(value, (list, tuple)):
return [self.value_to_dict(val) for val in value]
return self.value_to_dict(value)
def to_dict(self, search_fields=None, update_fields=None):
"""Builds dict without None object fields"""
fields = self._fields
if search_fields == 'update':
fields = self._search_for_update_fields
elif search_fields == 'all':
fields = self._all_searchable_fields
elif search_fields == 'search':
fields = self._fields
elif search_fields == 'exclude':
# exclude search fields for update actions,
# but include updateable_search_fields
fields = [field for field in self._fields
if field in self._updateable_search_fields or
field not in self._search_for_update_fields]
elif search_fields == 'extra':
fields = [field for field in self._fields
if field not in update_fields]
return {field: self.field_to_dict(field) for field in fields
if getattr(self, field, None) is not None}
@staticmethod
def _object_from_reply(parse_class, connector, reply):
if not reply:
return None
if isinstance(reply, dict):
return parse_class.from_dict(connector, reply)
# If no return fields were requested reply contains only string
# with reference to object
return_dict = {'_ref': reply}
return parse_class.from_dict(connector, return_dict)
@classmethod
def create_check_exists(cls, connector, check_if_exists=True,
update_if_exists=False, **kwargs):
# obj_created is used to check if object is being created or
# pre-exists. obj_created is True if object is not pre-exists
# and getting created with this function call
obj_created = False
local_obj = cls(connector, **kwargs)
response = None
if check_if_exists:
if local_obj.fetch(only_ref=True):
LOG.info(("Infoblox %(obj_type)s already exists: "
"%(ib_obj)s"),
{'obj_type': local_obj.infoblox_type,
'ib_obj': local_obj})
local_obj.response = "Infoblox Object already Exists"
if not update_if_exists:
return local_obj, obj_created
reply = None
if not local_obj.ref:
reply = connector.create_object(local_obj.infoblox_type,
local_obj.to_dict(),
local_obj.return_fields)
obj_created = True
LOG.info("Infoblox %(obj_type)s was created: %(ib_obj)s",
{'obj_type': local_obj.infoblox_type,
'ib_obj': local_obj})
response = "Infoblox Object was Created"
elif update_if_exists:
update_fields = local_obj.to_dict(search_fields='exclude')
reply = connector.update_object(local_obj.ref,
update_fields,
local_obj.return_fields)
LOG.info('Infoblox object was updated: %s', local_obj.ref)
response = "Infoblox Object was Updated"
obj_result = cls._object_from_reply(local_obj, connector, reply)
# Add response string if object is not None
# and properly deserialized
if issubclass(type(obj_result), BaseObject):
obj_result.response = response
return obj_result, obj_created
@classmethod
def create(cls, connector, check_if_exists=True,
update_if_exists=False, **kwargs):
"""Create the object in NIOS.
Args:
check_if_exists: If True, create method will attempt
to fetch the object to check if it exists.
update_if_exists: If True, create method will attempt
to update the object if one exists.
Raises:
InfobloxFetchGotMultipleObjects: Raised only when check_if_exists
is True. The fetch method can raise this error when API return
multiple objects.
Returns: Created Infoblox object.
"""
ib_object, _ = (
cls.create_check_exists(connector,
check_if_exists=check_if_exists,
update_if_exists=update_if_exists,
**kwargs))
return ib_object
@classmethod
def _search(cls, connector, return_fields=None,
search_extattrs=None, force_proxy=False,
max_results=None, paging=False, **kwargs):
ib_obj_for_search = cls(connector, **kwargs)
search_dict = ib_obj_for_search.to_dict(search_fields='all')
if return_fields is None and ib_obj_for_search.return_fields:
return_fields = ib_obj_for_search.return_fields
# allow search_extattrs to be instance of EA class
# or dict in NIOS format
extattrs = search_extattrs
if hasattr(search_extattrs, 'to_dict'):
extattrs = search_extattrs.to_dict()
search_fields = ib_obj_for_search.to_dict(search_fields='search')
for key in search_fields:
if key not in search_dict:
raise ib_ex.InfobloxFieldNotSearchable(
field=key)
reply = connector.get_object(ib_obj_for_search.infoblox_type,
search_dict,
return_fields=return_fields,
extattrs=extattrs,
force_proxy=force_proxy,
paging=paging, max_results=max_results)
return reply, ib_obj_for_search
@classmethod
def search(cls, connector, **kwargs):
ib_obj, parse_class = cls._search(
connector, **kwargs)
if ib_obj:
return parse_class.from_dict(connector, ib_obj[0])
@classmethod
def search_all(cls, connector, **kwargs):
ib_objects, parsing_class = cls._search(
connector, **kwargs)
if ib_objects:
return [parsing_class.from_dict(connector, obj)
for obj in ib_objects]
return []
def fetch(self, only_ref=False):
"""Fetch object from NIOS by _ref or searchfields
Update existent object with fields returned from NIOS
Returns:
True if object successfully fetched. False otherwise.
Raises:
InfobloxFetchGotMultipleObjects:
If fetch got multiple objects from the API and unable to
deserialize API response to a single InfobloxObject.
"""
if self.ref:
reply = self.connector.get_object(
self.ref, return_fields=self.return_fields, paging=False)
if reply:
self.update_from_dict(reply)
return True
search_dict = self.to_dict(search_fields='update')
return_fields = [] if only_ref else self.return_fields
reply = self.connector.get_object(self.infoblox_type,
search_dict,
return_fields=return_fields)
if reply:
if len(reply) > 1:
LOG.debug("Fetch got multiple objects from the API. Reply: %s",
reply)
raise ib_ex.InfobloxFetchGotMultipleObjects()
self.update_from_dict(reply[0], only_ref=only_ref)
return True
return False
def update(self):
update_fields = self.to_dict(search_fields='exclude')
fields = self.to_dict(search_fields='extra',
update_fields=update_fields)
for key in fields:
LOG.info(
"Field is not allowed for update: %s - ignoring",
key,
)
ib_obj = self.connector.update_object(self.ref,
update_fields,
self.return_fields)
LOG.info('Infoblox object was updated: %s', self.ref)
return self._object_from_reply(self, self.connector, ib_obj)
def delete(self):
try:
self.connector.delete_object(self.ref)
except ib_ex.InfobloxCannotDeleteObject as e:
LOG.info("Failed to delete an object: %s", e)
@property
def infoblox_type(self):
return self._infoblox_type
@property
def return_fields(self):
return self._return_fields
@property
def ip_version(self):
return self._ip_version
@classmethod
def get_class_from_args(cls, kwargs):
# skip processing if cls already versioned class
if cls._ip_version:
return cls
for field in ['ip', 'cidr', 'start_ip', 'ip_address', 'network',
'start_addr', 'end_addr']:
if field in kwargs:
if ib_utils.determine_ip_version(kwargs[field]) == 6:
return cls.get_v6_class()
else:
return cls.get_v4_class()
# fallback to IPv4 object if find nothing
return cls.get_v4_class()
def _call_func(self, function, *args, **kwargs):
ref = self._ref
if ref is None:
ref = self.infoblox_type
return self.connector.call_func(function, ref, *args, **kwargs)
@classmethod
def get_v4_class(cls):
return cls
@classmethod
def get_v6_class(cls):
return cls
class SubObjects(BaseObject):
"""Base class for objects that do not require all InfobloxObject power"""
@classmethod
def from_dict(cls, ip_dict):
if isinstance(ip_dict, list):
return [cls(**item) for item in ip_dict]
else:
return cls(**ip_dict)
def to_dict(self):
return {field: getattr(self, field) for field in self._fields
if getattr(self, field, None) is not None}
class IP(SubObjects):
_fields = []
_shadow_fields = ['_ref', 'ip', 'host']
_remap = {}
ip_version = None
# better way for mac processing?
@classmethod
def create(cls, ip=None, mac=None, **kwargs):
if ip is None:
raise ValueError
if ib_utils.determine_ip_version(ip) == 6:
return IPv6(ip=ip, duid=ib_utils.generate_duid(mac),
**kwargs)
else:
return IPv4(ip=ip, mac=mac, **kwargs)
def __eq__(self, other):
if isinstance(other, six.string_types):
return self.ip == other
elif isinstance(other, self.__class__):
return self.ip == other.ip
return False
@property
def zone_auth(self):
if self.host is not None:
return self.host.partition('.')[2]
@property
def hostname(self):
if self.host is not None:
return self.host.partition('.')[0]
@property
def ip(self):
# Convert IPAllocation objects to string
if hasattr(self, '_ip'):
return str(self._ip)
@ip.setter
def ip(self, ip):
self._ip = ip
class IPv4(IP):
_fields = ['ipv4addr', 'configure_for_dhcp',
'use_for_ea_inheritance', 'mac']
_remap = {'ipv4addr': 'ip'}
ip_version = 4
class IPv6(IP):
_fields = ['ipv6addr', 'configure_for_dhcp',
'use_for_ea_inheritance', 'duid']
_remap = {'ipv6addr': 'ip'}
ip_version = 6
class AnyMember(SubObjects):
_fields = ['_struct', 'name', 'ipv4addr', 'ipv6addr']
_shadow_fields = ['ip']
@property
def ip(self):
if hasattr(self, '_ip'):
return str(self._ip)
@ip.setter
def ip(self, ip):
# AnyMember represents both ipv4 and ipv6 objects, so don't need
# versioned object for that. Just set v4 or v6 field additionally
# to setting shadow 'ip' field itself.
# So once dict is generated by to_dict only versioned ip field
# to be shown.
self._ip = ip
if ib_utils.determine_ip_version(ip) == 6:
self.ipv6addr = ip
else:
self.ipv4addr = ip
class IPAllocation(object):
def __init__(self, address, next_available_ip):
self.ip_version = ib_utils.determine_ip_version(address)
self.next_available_ip = next_available_ip
def __repr__(self):
return "IPAllocation: {0}".format(self.next_available_ip)
def __str__(self):
return str(self.next_available_ip)
@classmethod
def next_available_ip_from_cidr(cls, net_view_name, cidr):
return cls(cidr, 'func:nextavailableip:'
'{cidr:s},{net_view_name:s}'.format(**locals()))
@classmethod
def next_available_ip_from_range(cls, net_view_name, first_ip, last_ip):
return cls(first_ip, 'func:nextavailableip:{first_ip}-{last_ip},'
'{net_view_name}'.format(**locals()))
WAPI_VERSION = "2.12.1"
# AUTOGENERATED CODE BELOW #
class AdAuthServer(SubObjects):
_fields = ['auth_port', 'comment', 'disabled', 'encryption', 'fqdn_or_ip',
'mgmt_port', 'use_mgmt_port']
class Addressac(SubObjects):
_fields = ['address', 'permission', 'tsig_key', 'tsig_key_alg',
'tsig_key_name', 'use_tsig_key_name']
class Awsrte53Task(SubObjects):
_fields = ['aws_user', 'credentials_type', 'disabled', 'filter',
'last_run', 'name', 'schedule_interval', 'schedule_units',
'state', 'state_msg', 'status_timestamp', 'sync_private_zones',
'sync_public_zones', 'zone_count']
class Bgpas(SubObjects):
_fields = ['as', 'holddown', 'keepalive', 'link_detect', 'neighbors']
class CapacityreportObjectcount(SubObjects):
_fields = ['count', 'type_name']
class CaptiveportalFile(SubObjects):
_fields = ['name', 'type']
class Changedobject(SubObjects):
_fields = ['action', 'name', 'object_type', 'properties', 'type']
class Clientsubnetdomain(SubObjects):
_fields = ['domain', 'permission']
class Dhcpddns(SubObjects):
_fields = ['dns_ext_primary', 'dns_ext_zone', 'dns_grid_primary',
'dns_grid_zone', 'zone_match']
class Dhcpmember(SubObjects):
_fields = ['ipv4addr', 'ipv6addr', 'name', '_struct']
class DhcpOption(SubObjects):
_fields = ['name', 'num', 'use_option', 'value', 'vendor_class']
class DiscoveryAutoconversionsetting(SubObjects):
_fields = ['comment', 'condition', 'format', 'network_view', 'type']
class DiscoveryClicredential(SubObjects):
_fields = ['comment', 'credential_group', 'credential_type', 'id',
'password', 'user']
class DiscoveryIfaddrinfo(SubObjects):
_fields = ['address', 'address_object', 'network']
class DiscoveryNetworkinfo(SubObjects):
_fields = ['network', 'network_str']
class DiscoveryPort(SubObjects):
_fields = ['comment', 'port', 'type']
class DiscoveryScaninterface(SubObjects):
_fields = ['network_view', 'scan_virtual_ip', 'type']
class DiscoverySdnconfig(SubObjects):
_fields = ['addresses', 'api_key', 'comment', 'handle',
'network_interface_type', 'network_interface_virtual_ip',
'network_view', 'on_prem', 'password', 'protocol', 'sdn_type',
'use_global_proxy', 'username', 'uuid']
class DiscoverySeedrouter(SubObjects):
_fields = ['address', 'comment', 'network_view']
class DiscoverySnmp3Credential(SubObjects):
_fields = ['authentication_password', 'authentication_protocol', 'comment',
'credential_group', 'privacy_password', 'privacy_protocol',
'user']
class DiscoverySnmpcredential(SubObjects):
_fields = ['comment', 'community_string', 'credential_group']
class DiscoveryVlaninfo(SubObjects):
_fields = ['id', 'name']
class DiscoveryVrfmappingrule(SubObjects):
_fields = ['comment', 'criteria', 'network_view']
class Discoverytaskport(SubObjects):
_fields = ['comment', 'number']
class Discoverytaskvserver(SubObjects):
_fields = ['connection_protocol', 'disable', 'fqdn_or_ip', 'password',
'port', 'username']
class Dnsseckey(SubObjects):
_fields = ['algorithm', 'next_event_date', 'public_key', 'status', 'tag',
'type']
class Dnssectrustedkey(SubObjects):
_fields = ['algorithm', 'dnssec_must_be_secure', 'fqdn', 'key',
'secure_entry_point']
class DtcMonitorSnmpOid(SubObjects):
_fields = ['comment', 'condition', 'first', 'last', 'oid', 'type']
class DtcPoolConsolidatedMonitorHealth(SubObjects):
_fields = ['availability', 'full_health_communication', 'members',
'monitor']
class DtcPoolLink(SubObjects):
_fields = ['pool', 'ratio']
class DtcServerLink(SubObjects):
_fields = ['ratio', 'server']
class DtcServerMonitor(SubObjects):
_fields = ['host', 'monitor']
class DtcTopologyRuleSource(SubObjects):
_fields = ['source_op', 'source_type', 'source_value']
class DxlEndpointBroker(SubObjects):
_fields = ['address', 'host_name', 'port', 'unique_id']
class Exclusionrange(SubObjects):
_fields = ['comment', 'end_address', 'start_address']
class Exclusionrangetemplate(SubObjects):
_fields = ['comment', 'number_of_addresses', 'offset']
class ExtensibleattributedefListvalues(SubObjects):
_fields = ['value']
class Extserver(SubObjects):
_fields = ['address', 'name', 'shared_with_ms_parent_delegation',
'stealth', 'tsig_key', 'tsig_key_alg', 'tsig_key_name',
'use_tsig_key_name']
class Extsyslogbackupserver(SubObjects):
_fields = ['address', 'directory_path', 'enable', 'password', 'port',
'protocol', 'username']
class Filterrule(SubObjects):
_fields = ['filter', 'permission']
class Forwardingmemberserver(SubObjects):
_fields = ['forward_to', 'forwarders_only', 'name',
'use_override_forwarders']
class GridCloudapiUser(SubObjects):
_fields = ['is_remote', 'local_admin', 'remote_admin']
class GridDnsFixedrrsetorderfqdn(SubObjects):
_fields = ['fqdn', 'record_type']
class GridLicensesubpool(SubObjects):
_fields = ['expiry_date', 'installed', 'key']
class GridmemberSoamname(SubObjects):
_fields = ['dns_mname', 'grid_primary', 'mname', 'ms_server_primary']
class GridmemberSoaserial(SubObjects):
_fields = ['grid_primary', 'ms_server_primary', 'serial']
class Hotfix(SubObjects):
_fields = ['status_text', 'unique_id']
class HsmSafenet(SubObjects):
_fields = ['disable', 'is_fips_compliant', 'name', 'partition_capacity',
'partition_id', 'partition_serial_number', 'server_cert',
'status']
class HsmThales(SubObjects):
_fields = ['disable', 'keyhash', 'remote_esn', 'remote_ip', 'remote_port',
'status']
class Interface(SubObjects):
_fields = ['anycast', 'comment', 'enable_bgp', 'enable_ospf', 'interface',
'ipv4_network_setting', 'ipv6_network_setting']
class Ipv6Networksetting(SubObjects):
_fields = ['address', 'cidr', 'gateway']
class LdapEamapping(SubObjects):
_fields = ['mapped_ea', 'name']
class LdapServer(SubObjects):
_fields = ['address', 'authentication_type', 'base_dn', 'bind_password',
'bind_user_dn', 'comment', 'disable', 'encryption', 'port',
'use_mgmt_port', 'version']
class Logicfilterrule(SubObjects):
_fields = ['filter', 'type']
class Lomnetworkconfig(SubObjects):
_fields = ['address', 'gateway', 'is_lom_capable', 'subnet_mask']
class Lomuser(SubObjects):
_fields = ['comment', 'disable', 'name', 'password', 'role']
class MemberDnsgluerecordaddr(SubObjects):
_fields = ['attach_empty_recursive_view', 'glue_address_choice',
'glue_record_address', 'view']
class MemberDnsip(SubObjects):
_fields = ['ip_address']
class Memberserver(SubObjects):
_fields = ['enable_preferred_primaries', 'grid_replicate', 'lead', 'name',
'preferred_primaries', 'stealth']
class Memberservicecommunication(SubObjects):
_fields = ['option', 'service', 'type']
class Memberservicestatus(SubObjects):
_fields = ['description', 'service', 'status']
class Msdhcpoption(SubObjects):
_fields = ['name', 'num', 'type', 'user_class', 'value', 'vendor_class']
class Msdhcpserver(SubObjects):
_fields = ['ipv4addr', 'ipv4addr', 'ipv6addr', 'name']
class Msdnsserver(SubObjects):
_fields = ['address', 'is_master', 'ns_ip', 'ns_name',
'shared_with_ms_parent_delegation', 'stealth']
class MsserverDcnsrecordcreation(SubObjects):
_fields = ['address', 'comment']
class NetworkviewAssocmember(SubObjects):
_fields = ['failovers', 'member']
class Nodeinfo(SubObjects):
_fields = ['ha_status', 'hwid', 'hwmodel', 'hwplatform', 'hwtype',
'lan2_physical_setting', 'lan_ha_port_setting',
'mgmt_network_setting', 'mgmt_physical_setting',
'nat_external_ip', 'paid_nios', 'physical_oid',
'service_status', 'v6_mgmt_network_setting']
class NotificationRestTemplateparameter(SubObjects):
_fields = ['default_value', 'name', 'syntax', 'value']
class NotificationRuleexpressionop(SubObjects):
_fields = ['op', 'op1', 'op1_type', 'op2', 'op2_type']
class Nxdomainrule(SubObjects):
_fields = ['action', 'pattern']
class OcspResponder(SubObjects):
_fields = ['certificate', 'certificate_token', 'comment', 'disabled',
'fqdn_or_ip', 'port']
class Option60Matchrule(SubObjects):
_fields = ['is_substring', 'match_value', 'option_space',
'substring_length', 'substring_offset']
class Ospf(SubObjects):
_fields = ['advertise_interface_vlan', 'area_id', 'area_type',
'authentication_key', 'authentication_type',
'auto_calc_cost_enabled', 'bfd_template', 'comment', 'cost',
'dead_interval', 'enable_bfd', 'hello_interval', 'interface',
'is_ipv4', 'key_id', 'retransmit_interval', 'transmit_delay']
class OutboundCloudclientEvent(SubObjects):
_fields = ['enabled', 'event_type']
class ParentalcontrolAbs(SubObjects):
_fields = ['blocking_policy', 'ip_address']
class ParentalcontrolMsp(SubObjects):
_fields = ['ip_address']
class ParentalcontrolNasgateway(SubObjects):
_fields = ['comment', 'ip_address', 'message_rate', 'name', 'send_ack',
'shared_secret']
class ParentalcontrolSitemember(SubObjects):
_fields = ['name', 'type']
class ParentalcontrolSpm(SubObjects):
_fields = ['ip_address']
class RadiusServer(SubObjects):
_fields = ['acct_port', 'address', 'auth_port', 'auth_type', 'comment',
'disable', 'shared_secret', 'use_accounting', 'use_mgmt_port']
class Rdatasubfield(SubObjects):
_fields = ['field_type', 'field_value', 'include_length']
class Remoteddnszone(SubObjects):
_fields = ['fqdn', 'gss_tsig_dns_principal', 'gss_tsig_domain', 'key_type',
'server_address', 'tsig_key', 'tsig_key_alg', 'tsig_key_name']
class SettingNetwork(SubObjects):
_fields = ['address', 'dscp', 'gateway', 'primary', 'subnet_mask',
'use_dscp', 'vlan_id']
class SettingViewaddress(SubObjects):
_fields = ['dns_notify_transfer_source',
'dns_notify_transfer_source_address',
'dns_query_source_address', 'dns_query_source_interface',
'enable_notify_source_port', 'enable_query_source_port',
'notify_delay', 'notify_source_port', 'query_source_port',
'use_notify_delay', 'use_source_ports', 'view_name']
class SmartfolderGroupby(SubObjects):
_fields = ['enable_grouping', 'value', 'value_type']
class SmartfolderQueryitem(SubObjects):
_fields = ['field_type', 'name', 'op_match', 'operator', 'value',
'value_type']
class Sortlist(SubObjects):
_fields = ['address', 'match_list']
class SshKey(SubObjects):
_fields = ['key_name', 'key_type', 'key_value']
class SyslogEndpointServers(SubObjects):
_fields = ['address', 'certificate', 'certificate_token',
'connection_type', 'facility', 'format', 'hostname', 'port',
'severity']
class Syslogserver(SubObjects):
_fields = ['address', 'category_list', 'certificate', 'certificate_token',
'connection_type', 'local_interface', 'message_node_id',
'message_source', 'only_category_list', 'port', 'severity']
class TacacsplusServer(SubObjects):
_fields = ['address', 'auth_type', 'comment', 'disable', 'port',
'shared_secret', 'use_accounting', 'use_mgmt_port']
class TaxiiRpzconfig(SubObjects):
_fields = ['collection_name', 'zone']
class ThreatprotectionNatrule(SubObjects):
_fields = ['address', 'cidr', 'end_address', 'nat_ports', 'network',
'rule_type', 'start_address']
class ThreatprotectionStatinfo(SubObjects):
_fields = ['critical', 'informational', 'major', 'timestamp', 'total',
'warning']
class Thresholdtrap(SubObjects):
_fields = ['trap_reset', 'trap_trigger', 'trap_type']
class Trapnotification(SubObjects):
_fields = ['enable_email', 'enable_trap', 'trap_type']
class Updatesdownloadmemberconfig(SubObjects):
_fields = ['interface', 'is_online', 'member']
class UpgradegroupMember(SubObjects):
_fields = ['member', 'time_zone']
class UpgradegroupSchedule(SubObjects):
_fields = ['distribution_dependent_group', 'distribution_time', 'name',
'time_zone', 'upgrade_dependent_group', 'upgrade_time']
class Upgradestep(SubObjects):
_fields = ['status_text', 'status_value']
class Vlanlink(SubObjects):
_fields = ['id', 'name', 'vlan']
class Vtftpdirmember(SubObjects):
_fields = ['address', 'cidr', 'end_address', 'ip_type', 'member',
'network', 'start_address']
class Zoneassociation(SubObjects):
_fields = ['fqdn', 'is_default', 'view']
class Zonenameserver(SubObjects):
_fields = ['address', 'auto_create_ptr']
class AdAuthService(InfobloxObject):
""" AdAuthService: Active Directory Authentication Service object.
Corresponds to WAPI object 'ad_auth_service'
This object allows you to specify an Active Directory (AD)
authentication method and the AD authentication servers that
Infoblox uses to authenticate administrators.
Attributes:
ad_domain: The Active Directory domain to which this server
belongs.
additional_search_paths: The unordered list of additional search
paths for nested group querying.
comment: The descriptive comment for the AD authentication
service.
disable_default_search_path: Determines whether the default
search path for nested group querying is used.
disabled: Determines if Active Directory Authentication Service
is disabled.
domain_controllers: The AD authentication server list.
name: The AD authentication service name.
nested_group_querying: Determines whether the nested group
querying is enabled.
timeout: The number of seconds that the appliance waits for a
response from the AD server.
"""
_infoblox_type = 'ad_auth_service'
_fields = ['ad_domain', 'additional_search_paths', 'comment',
'disable_default_search_path', 'disabled', 'domain_controllers',
'name', 'nested_group_querying', 'timeout']
_search_for_update_fields = ['name']
_updateable_search_fields = ['ad_domain', 'comment', 'name']
_all_searchable_fields = ['ad_domain', 'comment', 'name']
_return_fields = ['name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'domain_controllers': AdAuthServer.from_dict,
}
class Admingroup(InfobloxObject):
""" Admingroup: Admin Group object.
Corresponds to WAPI object 'admingroup'
An Admin Group object creates and manages a local admin group on the
Infoblox appliance. The privileges and properties that are set for
the group apply to all the admin accounts that are assigned to the
group.
Attributes:
access_method: Access methods specify whether an admin group can
use the GUI and the API to access the appliance or to send
Taxii messages to the appliance. Note that API includes both
the Perl API and RESTful API.
admin_set_commands: Admin set commands for the admin command
group.
admin_show_commands: Admin show commands for the admin command
group.
admin_toplevel_commands: Admin_toplevel commands for the admin
command group
cloud_set_commands: Cloud set commands for the cloud command
group.
cloud_show_commands: Cloud show commands for admin group
comment: Comment for the Admin Group; maximum 256 characters.
database_set_commands: Database show commands for admin group.
database_show_commands: Database show commands for the database
command
dhcp_set_commands: Dhcp set commands for the dhcp command group.
dhcp_show_commands: Dhcp show commands for the dhcp command
group.
disable: Determines whether the Admin Group is disabled or not.
When this is set to False, the Admin Group is enabled.
disable_concurrent_login: Disable concurrent login feature
dns_set_commands: Dns set commands for the dns command group.
dns_show_commands: Dns show commands for the dns command group.
dns_toplevel_commands: Dns toplevel commands for the dns command
group.
docker_set_commands: Docker set commands for the dcoker command
group.
docker_show_commands: Docker show commands for the dcoker
command group.
email_addresses: The e-mail addresses for the Admin Group.
enable_restricted_user_access: Determines whether the
restrictions will be applied to the admin connector level
for users of this Admin Group.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
grid_set_commands: Grid set commands for the grid command group.
grid_show_commands: Show commands for the grid command group.
inactivity_lockout_setting: The Admin group inactivity lockout
settings.
licensing_set_commands: Set commands for the licensing command
group.
licensing_show_commands: Show commands for the licensing command
group.
lockout_setting: This struct specifies security policy settings
in admin group.
machine_control_toplevel_commands: Machine control toplevel
commands for the machine control command group.
name: The name of the Admin Group.
networking_set_commands: Set commands for the networking command
group.
networking_show_commands: Show commands for the networking
command group.
password_setting: The Admin Group password settings.
roles: The names of roles this Admin Group applies to.
saml_setting: The Admin Group SAML settings.
security_set_commands: Set commands for the security command
group.
security_show_commands: Show commands for the security command
group.
superuser: Determines whether this Admin Group is a superuser
group. A superuser group can perform all operations on the
appliance, and can view and configure all types of data.
trouble_shooting_toplevel_commands: Toplevel commands for the
troubleshooting command group.
use_account_inactivity_lockout_enable: This is the use flag for
account inactivity lockout settings.
use_disable_concurrent_login: Whether to override grid
concurrent login
use_lockout_setting: Whether to override grid sequential lockout
setting
use_password_setting: Whether grid password expiry setting
should be override.
user_access: The access control items for this Admin Group.
"""
_infoblox_type = 'admingroup'
_fields = ['access_method', 'admin_set_commands', 'admin_show_commands',
'admin_toplevel_commands', 'cloud_set_commands',
'cloud_show_commands', 'comment', 'database_set_commands',
'database_show_commands', 'dhcp_set_commands',
'dhcp_show_commands', 'disable', 'disable_concurrent_login',
'dns_set_commands', 'dns_show_commands',
'dns_toplevel_commands', 'docker_set_commands',
'docker_show_commands', 'email_addresses',
'enable_restricted_user_access', 'extattrs',
'grid_set_commands', 'grid_show_commands',
'inactivity_lockout_setting', 'licensing_set_commands',
'licensing_show_commands', 'lockout_setting',
'machine_control_toplevel_commands', 'name',
'networking_set_commands', 'networking_show_commands',
'password_setting', 'roles', 'saml_setting',
'security_set_commands', 'security_show_commands', 'superuser',
'trouble_shooting_toplevel_commands',
'use_account_inactivity_lockout_enable',
'use_disable_concurrent_login', 'use_lockout_setting',
'use_password_setting', 'user_access']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name', 'roles', 'superuser']
_all_searchable_fields = ['comment', 'name', 'roles', 'superuser']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'user_access': Addressac.from_dict,
}
class Adminrole(InfobloxObject):
""" Adminrole: Admin Role object.
Corresponds to WAPI object 'adminrole'
An Admin Role object creates and manages a local admin role on the
Infoblox appliance. A Role object is used to aggregate a set of
permissions (represented by Permission objects).
The name part of the admin role object reference has the following
components:
Name of the Admin Role object
Example: adminrole/ZG5zLm5ldHdvcmtfdmlldyQxMTk:default
Attributes:
comment: The descriptive comment of the Admin Role object.
disable: The disable flag.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
name: The name of an admin role.
"""
_infoblox_type = 'adminrole'
_fields = ['comment', 'disable', 'extattrs', 'name']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
class Adminuser(InfobloxObject):
""" Adminuser: Admin User object.
Corresponds to WAPI object 'adminuser'
An admin account provides access to the Infoblox appliance. An admin
account inherits the privileges and properties of the group to which
it belongs.
Attributes:
admin_groups: The names of the Admin Groups to which this Admin
User belongs. Currently, this is limited to only one Admin
Group.
auth_method: Determines the way of authentication
auth_type: The authentication type for the admin user.
ca_certificate_issuer: The CA certificate that is used for user
lookup during authentication.
client_certificate_serial_number: The serial number of the
client certificate.
comment: Comment for the admin user; maximum 256 characters.
disable: Determines whether the admin user is disabled or not.
When this is set to False, the admin user is enabled.
email: The e-mail address for the admin user.
enable_certificate_authentication: Determines whether the user
is allowed to log in only with the certificate. Regular
username/password authentication will be disabled for this
user.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
name: The name of the admin user.
password: The password for the administrator to use when logging
in.
ssh_keys: List of ssh keys for a particular user.
status: Status of the user account.
time_zone: The time zone for this admin user.
use_ssh_keys:
use_time_zone: Use flag for: time_zone
"""
_infoblox_type = 'adminuser'
_fields = ['admin_groups', 'auth_method', 'auth_type',
'ca_certificate_issuer', 'client_certificate_serial_number',
'comment', 'disable', 'email',
'enable_certificate_authentication', 'extattrs', 'name',
'password', 'ssh_keys', 'status', 'time_zone', 'use_ssh_keys',
'use_time_zone']
_search_for_update_fields = ['admin_groups', 'name']
_updateable_search_fields = ['admin_groups', 'ca_certificate_issuer',
'client_certificate_serial_number', 'comment',
'name']
_all_searchable_fields = ['admin_groups', 'ca_certificate_issuer',
'client_certificate_serial_number', 'comment',
'name', 'status']
_return_fields = ['admin_groups', 'comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'ssh_keys': SshKey.from_dict,
}
class Allendpoints(InfobloxObject):
""" Allendpoints: All Endpoints object.
Corresponds to WAPI object 'allendpoints'
The object provides information about all thrid-party servers
configured on the Grid.
Attributes:
address: The Grid endpoint IPv4 Address or IPv6 Address or
Fully-Qualified Domain Name (FQDN).
comment: The Grid endpoint descriptive comment.
disable: Determines whether a Grid endpoint is disabled or not.
When this is set to False, the Grid endpoint is enabled.
subscribing_member: The name of the Grid Member object that is
serving Grid endpoint.
type: The Grid endpoint type.
version: The Grid endpoint version.
"""
_infoblox_type = 'allendpoints'
_fields = ['address', 'comment', 'disable', 'subscribing_member', 'type',
'version']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = ['address', 'comment', 'subscribing_member',
'type', 'version']
_return_fields = []
_remap = {}
_shadow_fields = ['_ref']
class Allnsgroup(InfobloxObject):
""" Allnsgroup: All NS Group object.
Corresponds to WAPI object 'allnsgroup'
The All NS Groups object is a generic name server group object that
provides information about all name server groups.
Attributes:
comment: The comment for the name server group.
name: The name of the name server group.
type: The type of the name server group.
"""
_infoblox_type = 'allnsgroup'
_fields = ['comment', 'name', 'type']
_search_for_update_fields = ['name', 'type']
_updateable_search_fields = []
_all_searchable_fields = ['comment', 'name', 'type']
_return_fields = ['name', 'type']
_remap = {}
_shadow_fields = ['_ref']
class Allrecords(InfobloxObject):
""" Allrecords: AllRecords object.
Corresponds to WAPI object 'allrecords'
The allrecords object is a read-only synthetic object used to
retrieve records that belong to a particular zone.
Since this is a synthetic object, it supports reading only by
specifying search parameters, not by reference.
Attributes:
address: The record address.
comment: The record comment.
creator: The record creator.
ddns_principal: The GSS-TSIG principal that owns this record.
ddns_protected: Determines if the DDNS updates for this record
are allowed or not.
disable: The disable value determines if the record is disabled
or not. "False" means the record is enabled.
dtc_obscured: The specific LBDN record.
name: The name of the record.
reclaimable: Determines if the record is reclaimable or not.
record: The record object, if supported by the WAPI. Otherwise,
the value is "None".
ttl: The Time To Live (TTL) value for which the record is valid
or being cached. The 32-bit unsigned integer represents the
duration in seconds. Zero indicates that the record should
not be cached.
type: The record type. When searching for an unspecified record
type, the search is performed for all records. On retrieval,
the appliance returns "UNSUPPORTED" for unsupported records.
view: Name of the DNS View in which the record resides.
zone: Name of the zone in which the record resides.
"""
_infoblox_type = 'allrecords'
_fields = ['address', 'comment', 'creator', 'ddns_principal',
'ddns_protected', 'disable', 'dtc_obscured', 'name',
'reclaimable', 'record', 'ttl', 'type', 'view', 'zone']
_search_for_update_fields = ['name', 'type', 'view', 'zone']
_updateable_search_fields = []
_all_searchable_fields = ['comment', 'creator', 'ddns_principal', 'name',
'reclaimable', 'type', 'view', 'zone']
_return_fields = ['comment', 'name', 'type', 'view', 'zone']
_remap = {}
_shadow_fields = ['_ref']
class Allrpzrecords(InfobloxObject):
""" Allrpzrecords: DNS All RPZ Records object.
Corresponds to WAPI object 'allrpzrecords'
A synthetic object used to return record object types that belong to
a Response Policy Zone.
Attributes:
alert_type: The alert type of the record associated with the
allrpzrecords object.
comment: The descriptive comment of the record associated with
the allrpzrecords object.
disable: The disable flag of the record associated with the
allrpzrecords object (if present).
expiration_time: The expiration time of the record associated
with the allrpzrecords object.
last_updated: The time when the record associated with the
allrpzrecords object was last updated.
name: The name of the record associated with the allrpzrecords
object. Note that this value might be different than the
value of the name field for the associated record.
record: The record object associated with the allrpzrecords
object.
rpz_rule: The RPZ rule type of the record associated with the
allrpzrecrods object.
ttl: The TTL value of the record associated with the
allrpzrecords object (if present).
type: The type of record associated with the allrpzrecords
object. This is a descriptive string that identifies the
record to which this allrpzrecords object refers. (Examples:
'record:rpz:a', 'record:rpz:mx', etc.)
view: The DNS view name of the record associated with the
allrpzrecords object.
zone: The Response Policy Zone name of the record associated
with the allrpzrecords object.
"""
_infoblox_type = 'allrpzrecords'
_fields = ['alert_type', 'comment', 'disable', 'expiration_time',
'last_updated', 'name', 'record', 'rpz_rule', 'ttl', 'type',
'view', 'zone']
_search_for_update_fields = ['name', 'type', 'view', 'zone']
_updateable_search_fields = []
_all_searchable_fields = ['name', 'rpz_rule', 'type', 'view', 'zone']
_return_fields = ['comment', 'name', 'type', 'view', 'zone']
_remap = {}
_shadow_fields = ['_ref']
class Approvalworkflow(InfobloxObject):
""" Approvalworkflow: The approval workflow object.
Corresponds to WAPI object 'approvalworkflow'
The approval workflow object supports routing certain core network
service tasks submitted by an admin group to another approval. You
can add an admin group to an approval workflow and define the group
as a submitter or an approver group. You can also define when and to
whom e-mail notifications must be sent, and configure options such
as whether the submitters or approvers must enter a comment or a
ticket number when they submit tasks for approval. Approval
workflows are useful when you want to control tasks that require
reviews.
Attributes:
approval_group: The approval administration group.
approval_notify_to: The destination for approval task
notifications.
approved_notify_to: The destination for approved task
notifications.
approver_comment: The requirement for the comment when an
approver approves a submitted task.
enable_approval_notify: Determines whether approval task
notifications are enabled.
enable_approved_notify: Determines whether approved task
notifications are enabled.
enable_failed_notify: Determines whether failed task
notifications are enabled.
enable_notify_group: Determines whether e-mail notifications to
admin group's e-mail address are enabled.
enable_notify_user: Determines whether e-mail notifications to
an admin member's e-mail address are enabled.
enable_rejected_notify: Determines whether rejected task
notifications are enabled.
enable_rescheduled_notify: Determines whether rescheduled task
notifications are enabled.
enable_succeeded_notify: Determines whether succeeded task
notifications are enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
failed_notify_to: The destination for failed task notifications.
rejected_notify_to: The destination for rejected task
notifications.
rescheduled_notify_to: The destination for rescheduled task
notifications.
submitter_comment: The requirement for the comment when a
submitter submits a task for approval.
submitter_group: The submitter admininstration group.
succeeded_notify_to: The destination for succeeded task
notifications.
ticket_number: The requirement for the ticket number when a
submitter submits a task for approval.
"""
_infoblox_type = 'approvalworkflow'
_fields = ['approval_group', 'approval_notify_to', 'approved_notify_to',
'approver_comment', 'enable_approval_notify',
'enable_approved_notify', 'enable_failed_notify',
'enable_notify_group', 'enable_notify_user',
'enable_rejected_notify', 'enable_rescheduled_notify',
'enable_succeeded_notify', 'extattrs', 'failed_notify_to',
'rejected_notify_to', 'rescheduled_notify_to',
'submitter_comment', 'submitter_group', 'succeeded_notify_to',
'ticket_number']
_search_for_update_fields = ['approval_group', 'submitter_group']
_updateable_search_fields = ['approval_group']
_all_searchable_fields = ['approval_group', 'submitter_group']
_return_fields = ['approval_group', 'extattrs', 'submitter_group']
_remap = {}
_shadow_fields = ['_ref']
class Authpolicy(InfobloxObject):
""" Authpolicy: The authentication policy object.
Corresponds to WAPI object 'authpolicy'
The authentication policy defines which authentication server groups
the appliance uses to authenticate admins and lists the local admin
groups that map to the remote admin groups.
Attributes:
admin_groups: List of names of local administration groups that
are mapped to remote administration groups.
auth_services: The array that contains an ordered list of refs
to localuser:authservice object, ldap_auth_service object,
radius:authservice object, tacacsplus:authservice object,
ad_auth_service object, certificate:authservice object.
saml:authservice object,
default_group: The default admin group that provides
authentication in case no valid group is found.
usage_type: Remote policies usage.
"""
_infoblox_type = 'authpolicy'
_fields = ['admin_groups', 'auth_services', 'default_group', 'usage_type']
_search_for_update_fields = ['default_group', 'usage_type']
_updateable_search_fields = ['default_group', 'usage_type']
_all_searchable_fields = ['default_group', 'usage_type']
_return_fields = ['default_group', 'usage_type']
_remap = {}
_shadow_fields = ['_ref']
class Awsrte53Taskgroup(InfobloxObject):
""" Awsrte53Taskgroup: AWS Route53 task group object.
Corresponds to WAPI object 'awsrte53taskgroup'
An AWS Route53 task group is a collection of one or more tasks
allowing you to specify various zone filters to retrieve DNS zone
data from AWS Route53 service using specified AWS user credentials.
Grouping these tasks together helps organize related groups of sync
data, enable/disable these and manage the grid member these run on.
Attributes:
account_id: The AWS Account ID associated with this task group.
comment: Comment for the task group; maximum 256 characters.
consolidate_zones: Indicates if all zones need to be saved into
a single view.
consolidated_view: The name of the DNS view for consolidating
zones.
disabled: Indicates if the task group is enabled or disabled.
grid_member: Member on which the tasks in this task group will
be run.
name: The name of this AWS Route53 sync task group.
network_view: The name of the tenant's network view.
network_view_mapping_policy: The network view mapping policy.
sync_status: Indicate the overall sync status of this task
group.
task_list: List of AWS Route53 tasks in this group.
"""
_infoblox_type = 'awsrte53taskgroup'
_fields = ['account_id', 'comment', 'consolidate_zones',
'consolidated_view', 'disabled', 'grid_member', 'name',
'network_view', 'network_view_mapping_policy', 'sync_status',
'task_list']
_search_for_update_fields = ['account_id', 'disabled', 'name',
'sync_status']
_updateable_search_fields = ['comment', 'disabled', 'grid_member', 'name']
_all_searchable_fields = ['account_id', 'comment', 'consolidate_zones',
'consolidated_view', 'disabled', 'grid_member',
'name', 'network_view',
'network_view_mapping_policy', 'sync_status']
_return_fields = ['account_id', 'comment', 'disabled', 'name',
'sync_status']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'task_list': Awsrte53Task.from_dict,
}
def task_control(self, *args, **kwargs):
return self._call_func("task_control", *args, **kwargs)
class Awsuser(InfobloxObject):
""" Awsuser: AWS User object.
Corresponds to WAPI object 'awsuser'
An AWS user object represents a specific access key and secret key
pair credentials of an AWS user.
Attributes:
access_key_id: The unique Access Key ID of this AWS user.
Maximum 255 characters.
account_id: The AWS Account ID of this AWS user. Maximum 64
characters.
last_used: The timestamp when this AWS user credentials was last
used.
name: The AWS user name. Maximum 64 characters.
nios_user_name: The NIOS user name mapped to this AWS user.
Maximum 64 characters.
secret_access_key: The Secret Access Key for the Access Key ID
of this user. Maximum 255 characters.
status: Indicate the validity status of this AWS user.
"""
_infoblox_type = 'awsuser'
_fields = ['access_key_id', 'account_id', 'last_used', 'name',
'nios_user_name', 'secret_access_key', 'status']
_search_for_update_fields = ['access_key_id', 'account_id', 'name']
_updateable_search_fields = ['access_key_id', 'account_id', 'name',
'nios_user_name']
_all_searchable_fields = ['access_key_id', 'account_id', 'name',
'nios_user_name', 'status']
_return_fields = ['access_key_id', 'account_id', 'name']
_remap = {}
_shadow_fields = ['_ref']
class Bfdtemplate(InfobloxObject):
""" Bfdtemplate: BFD template object.
Corresponds to WAPI object 'bfdtemplate'
The Bidirectional Forwarding Detection (BFD) template contains a
configuration of advanced BFD settings such as authentication and
timer intervals.
Attributes:
authentication_key: The authentication key for BFD protocol
message-digest authentication.
authentication_key_id: The authentication key identifier for BFD
protocol authentication. Valid values are between 1 and 255.
authentication_type: The authentication type for BFD protocol.
detection_multiplier: The detection time multiplier value for
BFD protocol. The negotiated transmit interval, multiplied
by this value, provides the detection time for the receiving
system in asynchronous BFD mode. Valid values are between 3
and 50.
min_rx_interval: The minimum receive time (in seconds) for BFD
protocol. Valid values are between 50 and 9999.
min_tx_interval: The minimum transmission time (in seconds) for
BFD protocol. Valid values are between 50 and 9999.
name: The name of the BFD template object.
"""
_infoblox_type = 'bfdtemplate'
_fields = ['authentication_key', 'authentication_key_id',
'authentication_type', 'detection_multiplier',
'min_rx_interval', 'min_tx_interval', 'name']
_search_for_update_fields = ['name']
_updateable_search_fields = ['name']
_all_searchable_fields = ['name']
_return_fields = ['name']
_remap = {}
_shadow_fields = ['_ref']
class Bulkhost(InfobloxObject):
""" Bulkhost: Bulkhost object.
Corresponds to WAPI object 'bulkhost'
If you need to add a large number of hosts, you can have the
Infoblox appliance add them as a group and automatically assign host
names based on a range of IP addresses and name format applied to
it. This group of hosts is referred to as a BulkHost. The Infoblox
appliance uses the name space bulk-xx-xx-xx-xx for bulk host, so
this name should not be used for CNAMEs and host aliases because
doing so causes conflicts. Before adding a bulk host, make sure that
no CNAMEs or host aliases uses this name.
Attributes:
cloud_info: The cloud API related information.
comment: The descriptive comment.
disable: The disable flag of a DNS BulkHost record.
dns_prefix: The prefix, in punycode format, for the bulk host.
end_addr: The last IP address in the address range for the bulk
host.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
last_queried: The time of the last DNS query in Epoch seconds
format.
name_template: The bulk host name template.
network_view: The network view associated with the bulk host
view.
policy: The hostname policy for records under the bulk host
parent zone.
prefix: The prefix for the bulk host. The prefix is the name (or
a series of characters) inserted at the beginning of each
host name.
reverse: The reverse flag of the BulkHost record.
start_addr: The first IP address in the address range for the
bulk host.
template_format: The bulk host name template format.
ttl: The Time to Live (TTL) value.
use_name_template: Use flag for: name_template
use_ttl: Use flag for: ttl
view: The view for the bulk host.
zone: The zone name.
"""
_infoblox_type = 'bulkhost'
_fields = ['cloud_info', 'comment', 'disable', 'dns_prefix', 'end_addr',
'extattrs', 'last_queried', 'name_template', 'network_view',
'policy', 'prefix', 'reverse', 'start_addr', 'template_format',
'ttl', 'use_name_template', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['prefix']
_updateable_search_fields = ['comment', 'disable', 'end_addr',
'name_template', 'prefix', 'reverse',
'start_addr', 'ttl', 'use_name_template',
'view', 'zone']
_all_searchable_fields = ['comment', 'disable', 'end_addr',
'name_template', 'prefix', 'reverse',
'start_addr', 'ttl', 'use_name_template', 'view',
'zone']
_return_fields = ['comment', 'extattrs', 'prefix']
_remap = {}
_shadow_fields = ['_ref']
class Bulkhostnametemplate(InfobloxObject):
""" Bulkhostnametemplate: The bulk host name template object.
Corresponds to WAPI object 'bulkhostnametemplate'
The object manages the DNS bulk host name formats defined at the
Grid level.
Attributes:
is_grid_default: True if this template is Grid default.
pre_defined: True if this is a pre-defined template, False
otherwise.
template_format: The format of bulk host name template. It
should follow certain rules (please use Administration Guide
as reference).
template_name: The name of bulk host name template.
"""
_infoblox_type = 'bulkhostnametemplate'
_fields = ['is_grid_default', 'pre_defined', 'template_format',
'template_name']
_search_for_update_fields = ['template_format', 'template_name']
_updateable_search_fields = ['template_format', 'template_name']
_all_searchable_fields = ['template_format', 'template_name']
_return_fields = ['is_grid_default', 'template_format', 'template_name']
_remap = {}
_shadow_fields = ['_ref']
class Cacertificate(InfobloxObject):
""" Cacertificate: CA Certificate object.
Corresponds to WAPI object 'cacertificate'
An CA Certificate object represents a CA certificate description.
Attributes:
distinguished_name: The certificate subject name.
issuer: The certificate issuer subject name.
serial: The certificate serial number in hex format.
used_by: Information about the CA certificate usage.
valid_not_after: The date after which the certificate becomes
invalid.
valid_not_before: The date before which the certificate is not
valid.
"""
_infoblox_type = 'cacertificate'
_fields = ['distinguished_name', 'issuer', 'serial', 'used_by',
'valid_not_after', 'valid_not_before']
_search_for_update_fields = ['distinguished_name', 'issuer', 'serial']
_updateable_search_fields = []
_all_searchable_fields = ['distinguished_name', 'issuer', 'serial']
_return_fields = ['distinguished_name', 'issuer', 'serial', 'used_by',
'valid_not_after', 'valid_not_before']
_remap = {}
_shadow_fields = ['_ref']
class Capacityreport(InfobloxObject):
""" Capacityreport: Grid member capacity report object.
Corresponds to WAPI object 'capacityreport'
The capacity report object provides information about the object
count, interface count, and other memory usage statistics for a Grid
member.
Attributes:
hardware_type: Hardware type of a Grid member.
max_capacity: The maximum amount of capacity available for the
Grid member.
name: The Grid member name.
object_counts: A list of instance counts for object types
created on the Grid member.
percent_used: The percentage of the capacity in use by the Grid
member.
role: The Grid member role.
total_objects: The total number of objects created by the Grid
member.
"""
_infoblox_type = 'capacityreport'
_fields = ['hardware_type', 'max_capacity', 'name', 'object_counts',
'percent_used', 'role', 'total_objects']
_search_for_update_fields = ['name']
_updateable_search_fields = []
_all_searchable_fields = ['name']
_return_fields = ['name', 'percent_used', 'role']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'object_counts': CapacityreportObjectcount.from_dict,
}
class Captiveportal(InfobloxObject):
""" Captiveportal: Captive portal object.
Corresponds to WAPI object 'captiveportal'
This object represents the captive portal configuration.
Attributes:
authn_server_group: The authentication server group assigned to
this captive portal.
company_name: The company name that appears in the guest
registration page.
enable_syslog_auth_failure: Determines if authentication
failures are logged to syslog or not.
enable_syslog_auth_success: Determines if successful
authentications are logged to syslog or not.
enable_user_type: The type of user to be enabled for the captive
portal.
encryption: The encryption the captive portal uses.
files: The list of files associated with the captive portal.
guest_custom_field1_name: The name of the custom field that you
are adding to the guest registration page.
guest_custom_field1_required: Determines if the custom field is
required or not.
guest_custom_field2_name: The name of the custom field that you
are adding to the guest registration page.
guest_custom_field2_required: Determines if the custom field is
required or not.
guest_custom_field3_name: The name of the custom field that you
are adding to the guest registration page.
guest_custom_field3_required: Determines if the custom field is
required or not.
guest_custom_field4_name: The name of the custom field that you
are adding to the guest registration page.
guest_custom_field4_required: Determines if the custom field is
required or not.
guest_email_required: Determines if the email address of the
guest is required or not.
guest_first_name_required: Determines if the first name of the
guest is required or not.
guest_last_name_required: Determines if the last name of the
guest is required or not.
guest_middle_name_required: Determines if the middle name of the
guest is required or not.
guest_phone_required: Determines if the phone number of the
guest is required or not.
helpdesk_message: The helpdesk message that appears in the guest
registration page.
listen_address_ip: Determines the IP address on which the
captive portal listens. Valid if listen address type is
'IP'.
listen_address_type: Determines the type of the IP address on
which the captive portal listens.
name: The hostname of the Grid member that hosts the captive
portal.
network_view: The network view of the captive portal.
port: The TCP port used by the Captive Portal service. The port
is required when the Captive Portal service is enabled.
Valid values are between 1 and 63999. Please note that
setting the port number to 80 or 443 might impact
performance.
service_enabled: Determines if the captive portal service is
enabled or not.
syslog_auth_failure_level: The syslog level at which
authentication failures are logged.
syslog_auth_success_level: The syslog level at which successful
authentications are logged.
welcome_message: The welcome message that appears in the guest
registration page.
"""
_infoblox_type = 'captiveportal'
_fields = ['authn_server_group', 'company_name',
'enable_syslog_auth_failure', 'enable_syslog_auth_success',
'enable_user_type', 'encryption', 'files',
'guest_custom_field1_name', 'guest_custom_field1_required',
'guest_custom_field2_name', 'guest_custom_field2_required',
'guest_custom_field3_name', 'guest_custom_field3_required',
'guest_custom_field4_name', 'guest_custom_field4_required',
'guest_email_required', 'guest_first_name_required',
'guest_last_name_required', 'guest_middle_name_required',
'guest_phone_required', 'helpdesk_message', 'listen_address_ip',
'listen_address_type', 'name', 'network_view', 'port',
'service_enabled', 'syslog_auth_failure_level',
'syslog_auth_success_level', 'welcome_message']
_search_for_update_fields = ['name']
_updateable_search_fields = []
_all_searchable_fields = ['name']
_return_fields = ['name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'files': CaptiveportalFile.from_dict,
}
class CertificateAuthservice(InfobloxObject):
""" CertificateAuthservice: Certificate authentication service
object.
Corresponds to WAPI object 'certificate:authservice'
This object represents an certificate authentication service.
Attributes:
auto_populate_login: Specifies the value of the client
certificate for automatically populating the NIOS login
name.
ca_certificates: The list of CA certificates.
comment: The descriptive comment for the certificate
authentication service.
disabled: Determines if this certificate authentication service
is enabled or disabled.
enable_password_request: Determines if username/password
authentication together with client certificate
authentication is enabled or disabled.
enable_remote_lookup: Determines if the lookup for user group
membership information on remote services is enabled or
disabled.
max_retries: The number of validation attempts before the
appliance contacts the next responder.
name: The name of the certificate authentication service.
ocsp_check: Specifies the source of OCSP settings.
ocsp_responders: An ordered list of OCSP responders that are
part of the certificate authentication service.
recovery_interval: The period of time the appliance waits before
it attempts to contact a responder that is out of service
again. The value must be between 1 and 600 seconds.
remote_lookup_password: The password for the service account.
remote_lookup_service: The service that will be used for remote
lookup.
remote_lookup_username: The username for the service account.
response_timeout: The validation timeout period in milliseconds.
trust_model: The OCSP trust model.
user_match_type: Specifies how to search for a user.
"""
_infoblox_type = 'certificate:authservice'
_fields = ['auto_populate_login', 'ca_certificates', 'comment', 'disabled',
'enable_password_request', 'enable_remote_lookup',
'max_retries', 'name', 'ocsp_check', 'ocsp_responders',
'recovery_interval', 'remote_lookup_password',
'remote_lookup_service', 'remote_lookup_username',
'response_timeout', 'trust_model', 'user_match_type']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'ocsp_responders': OcspResponder.from_dict,
}
def test_ocsp_responder_settings(self, *args, **kwargs):
return self._call_func("test_ocsp_responder_settings", *args, **kwargs)
class CiscoiseEndpoint(InfobloxObject):
""" CiscoiseEndpoint: Cisco ISE Endpoint object.
Corresponds to WAPI object 'ciscoise:endpoint'
The object contains information and configuration for third-party
Cisco ISE servers integration, configuration for Cisco ISE
publishing and subscription.
Attributes:
address: The Cisco ISE endpoint IPv4 Address or IPv6 Address or
Fully-Qualified Domain Name (FQDN)
bulk_download_certificate_subject: The Cisco ISE bulk download
certificate subject.
bulk_download_certificate_token: The token returned by the
uploadinit function call in object fileop for Cisco ISE bulk
download certificate.
bulk_download_certificate_valid_from: The Cisco ISE bulk
download certificate valid from.
bulk_download_certificate_valid_to: The Cisco ISE bulk download
certificate valid to.
client_certificate_subject: The Cisco ISE client certificate
subject.
client_certificate_token: The token returned by the uploadinit
function call in object fileop for Cisco ISE client
certificate.
client_certificate_valid_from: The Cisco ISE client certificate
valid from.
client_certificate_valid_to: The Cisco ISE client certificate
valid to.
comment: The Cisco ISE endpoint descriptive comment.
connection_status: The Cisco ISE connection status.
connection_timeout: The Cisco ISE connection timeout.
disable: Determines whether a Cisco ISE endpoint is disabled or
not. When this is set to False, the Cisco ISE endpoint is
enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
network_view: The Cisco ISE network view name.
publish_settings: The Cisco ISE publish settings.
resolved_address: The resolved IPv4 Address or IPv6 Address of
the Cisco ISE endpoint.
resolved_secondary_address: The resolved IPv4 Address or IPv6
Address of the Cisco ISE endpoint.
secondary_address: The Cisco ISE endpoint secondary IPv4 Address
or IPv6 Address or Fully-Qualified Domain Name (FQDN)
subscribe_settings: The Cisco ISE subscribe settings.
subscribing_member: The name of the Grid Member object that is
serving Cisco ISE endpoint.
type: The Cisco ISE endpoint type.
version: The Cisco ISE endpoint version.
"""
_infoblox_type = 'ciscoise:endpoint'
_fields = ['address', 'bulk_download_certificate_subject',
'bulk_download_certificate_token',
'bulk_download_certificate_valid_from',
'bulk_download_certificate_valid_to',
'client_certificate_subject', 'client_certificate_token',
'client_certificate_valid_from', 'client_certificate_valid_to',
'comment', 'connection_status', 'connection_timeout', 'disable',
'extattrs', 'network_view', 'publish_settings',
'resolved_address', 'resolved_secondary_address',
'secondary_address', 'subscribe_settings', 'subscribing_member',
'type', 'version']
_search_for_update_fields = ['address', 'resolved_address', 'type',
'version']
_updateable_search_fields = ['address', 'comment', 'network_view',
'secondary_address', 'subscribing_member',
'type', 'version']
_all_searchable_fields = ['address', 'comment', 'network_view',
'resolved_address', 'resolved_secondary_address',
'secondary_address', 'subscribing_member',
'type', 'version']
_return_fields = ['address', 'disable', 'extattrs', 'resolved_address',
'type', 'version']
_remap = {}
_shadow_fields = ['_ref']
def test_connection(self, *args, **kwargs):
return self._call_func("test_connection", *args, **kwargs)
class Csvimporttask(InfobloxObject):
""" Csvimporttask: CSV Import task object.
Corresponds to WAPI object 'csvimporttask'
This object represents a CSV import task, if the task was created
but not started by an import operation, it can be started by
modifying it and assigning the value 'START' to the 'action' field.
Attributes:
action: The action to execute.
admin_name: The login name of the administrator.
end_time: The end time of this import operation.
file_name: The name of the file used for the import operation.
file_size: The size of the file used for the import operation.
import_id: The ID of the current import task.
lines_failed: The number of lines that encountered an error.
lines_processed: The number of lines that have been processed.
lines_warning: The number of lines that encountered a warning.
on_error: The action to take when an error is encountered.
operation: The operation to execute.
separator: The separator to be used for the data in the CSV
file.
start_time: The start time of the import operation.
status: The status of the import operation
update_method: The update method to be used for the operation.
"""
_infoblox_type = 'csvimporttask'
_fields = ['action', 'admin_name', 'end_time', 'file_name', 'file_size',
'import_id', 'lines_failed', 'lines_processed', 'lines_warning',
'on_error', 'operation', 'separator', 'start_time', 'status',
'update_method']
_search_for_update_fields = ['import_id']
_updateable_search_fields = []
_all_searchable_fields = ['import_id']
_return_fields = ['action', 'admin_name', 'end_time', 'file_name',
'file_size', 'import_id', 'lines_failed',
'lines_processed', 'lines_warning', 'on_error',
'operation', 'separator', 'start_time', 'status',
'update_method']
_remap = {}
_shadow_fields = ['_ref']
def stop(self, *args, **kwargs):
return self._call_func("stop", *args, **kwargs)
class DbObjects(InfobloxObject):
""" DbObjects: The DB Objects object.
Corresponds to WAPI object 'db_objects'
The DB Objects object is used to search for changes in objects of
the Infoblox Grid.
Attributes:
last_sequence_id: The last returned sequence ID.
object: The record object when supported by WAPI. Otherwise, the
value is "None".
object_type: The object type. This is undefined if the object is
not supported.
unique_id: The unique ID of the requested object.
"""
_infoblox_type = 'db_objects'
_fields = ['last_sequence_id', 'object', 'object_type', 'unique_id']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = ['last_sequence_id', 'object', 'object_type', 'unique_id']
_remap = {}
_shadow_fields = ['_ref']
class Dbsnapshot(InfobloxObject):
""" Dbsnapshot: The DBSnapshot WAPI object.
Corresponds to WAPI object 'dbsnapshot'
The object provides information about the OneDB snapshot, the last
time it was taken and the descriptive comment.
Attributes:
comment: The descriptive comment.
timestamp: The time when the latest OneDB snapshot was taken in
Epoch seconds format.
"""
_infoblox_type = 'dbsnapshot'
_fields = ['comment', 'timestamp']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = ['comment', 'timestamp']
_remap = {}
_shadow_fields = ['_ref']
def rollback_db_snapshot(self, *args, **kwargs):
return self._call_func("rollback_db_snapshot", *args, **kwargs)
def save_db_snapshot(self, *args, **kwargs):
return self._call_func("save_db_snapshot", *args, **kwargs)
class DdnsPrincipalcluster(InfobloxObject):
""" DdnsPrincipalcluster: DDNS Principal Cluster object.
Corresponds to WAPI object 'ddns:principalcluster'
The DDNS Principal Cluster object represents a set of principals
such that any principal in a DDNS Principal Cluster can update
records created by any other principal in the same cluster.
Attributes:
comment: Comment for the DDNS Principal Cluster.
group: The DDNS Principal cluster group name.
name: The name of this DDNS Principal Cluster.
principals: The list of equivalent principals.
"""
_infoblox_type = 'ddns:principalcluster'
_fields = ['comment', 'group', 'name', 'principals']
_search_for_update_fields = ['group', 'name']
_updateable_search_fields = ['comment', 'group', 'name']
_all_searchable_fields = ['comment', 'group', 'name']
_return_fields = ['comment', 'group', 'name', 'principals']
_remap = {}
_shadow_fields = ['_ref']
class DdnsPrincipalclusterGroup(InfobloxObject):
""" DdnsPrincipalclusterGroup: DDNS Principal Cluster Group object.
Corresponds to WAPI object 'ddns:principalcluster:group'
The DDNS Principal Cluster Group object represents a set of DDNS
Principal Clusters. A single group can be active at any time.
Attributes:
clusters: The list of equivalent DDNS principal clusters.
comment: Comment for the DDNS Principal Cluster Group.
name: The name of this DDNS Principal Cluster Group.
"""
_infoblox_type = 'ddns:principalcluster:group'
_fields = ['clusters', 'comment', 'name']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'name']
_remap = {}
_shadow_fields = ['_ref']
class DeletedObjects(InfobloxObject):
""" DeletedObjects: The Deleted Objects object.
Corresponds to WAPI object 'deleted_objects'
The Deleted Objects object is used to display information about
deleted objects. You can retrieve it from the appliance only as a
part of DB Objects response.
Attributes:
object_type: The object type of the deleted object. This is
undefined if the object is not supported.
"""
_infoblox_type = 'deleted_objects'
_fields = ['object_type']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = ['object_type']
_remap = {}
_shadow_fields = ['_ref']
class DhcpStatistics(InfobloxObject):
""" DhcpStatistics: DHCP Statistics object.
Corresponds to WAPI object 'dhcp:statistics'
DHCP Statistics object is used to display information about DHCP
utilization status, number of static and dynamic hosts, overall DHCP
utilization in percentage. DHCP Statistics object supports
references on following objects: network, range, sharednetwork,
msserver:dhcp, member:dhcpproperties.
Note that get by reference is not allowed for this object. Search
result returns the dhcp:statistics object itself (not a list).
Note that read by reference is not supported.
Attributes:
dhcp_utilization: The percentage of the total DHCP utilization
of DHCP objects multiplied by 1000. This is the percentage
of the total number of available IP addresses belonging to
the object versus the total number of all IP addresses in
object.
dhcp_utilization_status: A string describing the utilization
level of the DHCP object.
dynamic_hosts: The total number of DHCP leases issued for the
DHCP object.
static_hosts: The number of static DHCP addresses configured in
the DHCP object.
total_hosts: The total number of DHCP addresses configured in
the DHCP object.
"""
_infoblox_type = 'dhcp:statistics'
_fields = ['dhcp_utilization', 'dhcp_utilization_status', 'dynamic_hosts',
'static_hosts', 'total_hosts']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = ['dhcp_utilization', 'dhcp_utilization_status',
'dynamic_hosts', 'static_hosts', 'total_hosts']
_remap = {}
_shadow_fields = ['_ref']
class Dhcpfailover(InfobloxObject):
""" Dhcpfailover: DHCP Failover Association object.
Corresponds to WAPI object 'dhcpfailover'
DHCP failover is a protocol designed to allow a backup DHCP server
to take over for a main server if the main server is taken off the
network for any reason. DHCP failover can be used to configure two
DHCP servers to operate as a redundant pair.
Attributes:
association_type: The value indicating whether the failover
assoctaion is Microsoft or Grid based. This is a read-only
attribute.
comment: A descriptive comment about a DHCP failover object.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
failover_port: Determines the TCP port on which the server
should listen for connections from its failover peer. Valid
values are between 1 and 63999.
load_balance_split: A load balancing split value of a DHCP
failover object. Specify the value of the maximum load
balancing delay in a 8-bit integer format (range from 0 to
256).
max_client_lead_time: The maximum client lead time value of a
DHCP failover object. Specify the value of the maximum
client lead time in a 32-bit integer format (range from 0 to
4294967295) that represents the duration in seconds. Valid
values are between 1 and 4294967295.
max_load_balance_delay: The maximum load balancing delay value
of a DHCP failover object. Specify the value of the maximum
load balancing delay in a 32-bit integer format (range from
0 to 4294967295) that represents the duration in seconds.
Valid values are between 1 and 4294967295.
max_response_delay: The maximum response delay value of a DHCP
failover object. Specify the value of the maximum response
delay in a 32-bit integer format (range from 0 to
4294967295) that represents the duration in seconds. Valid
values are between 1 and 4294967295.
max_unacked_updates: The maximum number of unacked updates value
of a DHCP failover object. Specify the value of the maximum
number of unacked updates in a 32-bit integer format (range
from 0 to 4294967295) that represents the number of
messages. Valid values are between 1 and 4294967295.
ms_association_mode: The value that indicates whether the
failover association is read-write or read-only. This is a
read-only attribute.
ms_enable_authentication: Determines if the authentication for
the failover association is enabled or not.
ms_enable_switchover_interval: Determines if the switchover
interval is enabled or not.
ms_failover_mode: The mode for the failover association.
ms_failover_partner: Failover partner defined in the association
with the Microsoft Server.
ms_hotstandby_partner_role: The partner role in the case of
HotStandby.
ms_is_conflict: Determines if the matching Microsfot failover
association (if any) is in synchronization (False) or not
(True). If there is no matching failover association the
returned values is False. This is a read-only attribute.
ms_previous_state: The previous failover association state. This
is a read-only attribute.
ms_server: The primary Microsoft Server.
ms_shared_secret: The failover association authentication. This
is a write-only attribute.
ms_state: The failover association state. This is a read-only
attribute.
ms_switchover_interval: The time (in seconds) that DHCPv4 server
will wait before transitioning the server from the
COMMUNICATION-INT state to PARTNER-DOWN state.
name: The name of a DHCP failover object.
primary: The primary server of a DHCP failover object.
primary_server_type: The type of the primary server of DHCP
Failover association object.
primary_state: The primary server status of a DHCP failover
object.
recycle_leases: Determines if the leases are kept in recycle bin
until one week after expiration or not.
secondary: The secondary server of a DHCP failover object.
secondary_server_type: The type of the secondary server of DHCP
Failover association object.
secondary_state: The secondary server status of a DHCP failover
object.
use_failover_port: Use flag for: failover_port
use_ms_switchover_interval: Use flag for: ms_switchover_interval
use_recycle_leases: Use flag for: recycle_leases
"""
_infoblox_type = 'dhcpfailover'
_fields = ['association_type', 'comment', 'extattrs', 'failover_port',
'load_balance_split', 'max_client_lead_time',
'max_load_balance_delay', 'max_response_delay',
'max_unacked_updates', 'ms_association_mode',
'ms_enable_authentication', 'ms_enable_switchover_interval',
'ms_failover_mode', 'ms_failover_partner',
'ms_hotstandby_partner_role', 'ms_is_conflict',
'ms_previous_state', 'ms_server', 'ms_shared_secret',
'ms_state', 'ms_switchover_interval', 'name', 'primary',
'primary_server_type', 'primary_state', 'recycle_leases',
'secondary', 'secondary_server_type', 'secondary_state',
'use_failover_port', 'use_ms_switchover_interval',
'use_recycle_leases']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
def set_dhcp_failover_partner_down(self, *args, **kwargs):
return self._call_func("set_dhcp_failover_partner_down", *args,
**kwargs)
def set_dhcp_failover_secondary_recovery(self, *args, **kwargs):
return self._call_func("set_dhcp_failover_secondary_recovery", *args,
**kwargs)
class DhcpOptionDefinition(InfobloxObject):
@classmethod
def get_v4_class(cls):
return DhcpOptionDefinitionV4
@classmethod
def get_v6_class(cls):
return DhcpOptionDefinitionV6
class DhcpOptionDefinitionV4(DhcpOptionDefinition):
""" DhcpOptionDefinitionV4: DHCP option definition object.
Corresponds to WAPI object 'dhcpoptiondefinition'
An option definition defines a DHCP option within a specific option
space. A custom option can be defined in the predefined DHCP option
space or in the user-defined vendor option space. To define an
option, add the option definition to the required option space.
Attributes:
code: The code of a DHCP option definition object. An option
code number is used to identify the DHCP option.
name: The name of a DHCP option definition object.
space: The space of a DHCP option definition object.
type: The data type of the Grid DHCP option.
"""
_infoblox_type = 'dhcpoptiondefinition'
_fields = ['code', 'name', 'space', 'type']
_search_for_update_fields = ['code', 'name', 'type']
_updateable_search_fields = ['code', 'name', 'space', 'type']
_all_searchable_fields = ['code', 'name', 'space', 'type']
_return_fields = ['code', 'name', 'type']
_remap = {}
_shadow_fields = ['_ref']
_ip_version = 4
class DhcpOptionDefinitionV6(DhcpOptionDefinition):
""" DhcpOptionDefinitionV6: DHCP IPv6 option definition object.
Corresponds to WAPI object 'ipv6dhcpoptiondefinition'
An IPv6 option definition defines a DHCP IPv6 option within a
specific IPv6 option space. A custom IPv6 option can be defined in
the predefined DHCP IPv6 option space or in the user-defined vendor
IPv6 option space. To define an IPv6 option, add the IPv6 option
definition to the required IPv6 option space.
Attributes:
code: The code of a DHCP IPv6 option definition object. An
option code number is used to identify the DHCP option.
name: The name of a DHCP IPv6 option definition object.
space: The space of a DHCP option definition object.
type: The data type of the Grid DHCP IPv6 option.
"""
_infoblox_type = 'ipv6dhcpoptiondefinition'
_fields = ['code', 'name', 'space', 'type']
_search_for_update_fields = ['code', 'name', 'type']
_updateable_search_fields = ['code', 'name', 'space', 'type']
_all_searchable_fields = ['code', 'name', 'space', 'type']
_return_fields = ['code', 'name', 'type']
_remap = {}
_shadow_fields = ['_ref']
_ip_version = 6
class DhcpOptionSpace(InfobloxObject):
@classmethod
def get_v4_class(cls):
return DhcpOptionSpaceV4
@classmethod
def get_v6_class(cls):
return DhcpOptionSpaceV6
class DhcpOptionSpaceV4(DhcpOptionSpace):
""" DhcpOptionSpaceV4: DHCP option space object.
Corresponds to WAPI object 'dhcpoptionspace'
An Option Space defines a namespace in which vendor options can be
defined. To define a specific vendor option space, add an option
space to DHCP.
Attributes:
comment: A descriptive comment of a DHCP option space object.
name: The name of a DHCP option space object.
option_definitions: The list of DHCP option definition objects.
space_type: The type of a DHCP option space object.
"""
_infoblox_type = 'dhcpoptionspace'
_fields = ['comment', 'name', 'option_definitions', 'space_type']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'name']
_remap = {}
_shadow_fields = ['_ref']
_ip_version = 4
class DhcpOptionSpaceV6(DhcpOptionSpace):
""" DhcpOptionSpaceV6: DHCP IPv6 option space object.
Corresponds to WAPI object 'ipv6dhcpoptionspace'
An IPv6 option space defines a namespace in which vendor IPv6
options can be defined. To define a specific vendor IPv6 option
space, add an IPv6 option space to DHCP.
Attributes:
comment: A descriptive comment of a DHCP IPv6 option space
object.
enterprise_number: The enterprise number of a DHCP IPv6 option
space object.
name: The name of a DHCP IPv6 option space object.
option_definitions: The list of DHCP IPv6 option definition
objects.
"""
_infoblox_type = 'ipv6dhcpoptionspace'
_fields = ['comment', 'enterprise_number', 'name', 'option_definitions']
_search_for_update_fields = ['enterprise_number', 'name']
_updateable_search_fields = ['comment', 'enterprise_number', 'name']
_all_searchable_fields = ['comment', 'enterprise_number', 'name']
_return_fields = ['comment', 'enterprise_number', 'name']
_remap = {}
_shadow_fields = ['_ref']
_ip_version = 6
class Discovery(InfobloxObject):
""" Discovery: Discovery object.
Corresponds to WAPI object 'discovery'
This object can be used to control the Network Insight functionality
of the appliance.
Attributes:
"""
_infoblox_type = 'discovery'
_fields = []
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = []
_remap = {}
_shadow_fields = ['_ref']
def clear_network_port_assignment(self, *args, **kwargs):
return self._call_func("clear_network_port_assignment", *args,
**kwargs)
def control_switch_port(self, *args, **kwargs):
return self._call_func("control_switch_port", *args, **kwargs)
def discovery_data_conversion(self, *args, **kwargs):
return self._call_func("discovery_data_conversion", *args, **kwargs)
def get_device_support_info(self, *args, **kwargs):
return self._call_func("get_device_support_info", *args, **kwargs)
def get_job_devices(self, *args, **kwargs):
return self._call_func("get_job_devices", *args, **kwargs)
def get_job_process_details(self, *args, **kwargs):
return self._call_func("get_job_process_details", *args, **kwargs)
def import_device_support_bundle(self, *args, **kwargs):
return self._call_func("import_device_support_bundle", *args, **kwargs)
def modify_sdn_assignment(self, *args, **kwargs):
return self._call_func("modify_sdn_assignment", *args, **kwargs)
def modify_vrf_assignment(self, *args, **kwargs):
return self._call_func("modify_vrf_assignment", *args, **kwargs)
def provision_network_dhcp_relay(self, *args, **kwargs):
return self._call_func("provision_network_dhcp_relay", *args, **kwargs)
def provision_network_port(self, *args, **kwargs):
return self._call_func("provision_network_port", *args, **kwargs)
class DiscoveryCredentialgroup(InfobloxObject):
""" DiscoveryCredentialgroup: The Credential group object.
Corresponds to WAPI object 'discovery:credentialgroup'
This object provides information about the Credential group.
Attributes:
name: The name of the Credential group.
"""
_infoblox_type = 'discovery:credentialgroup'
_fields = ['name']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = ['name']
_remap = {}
_shadow_fields = ['_ref']
class DiscoveryDevice(InfobloxObject):
""" DiscoveryDevice: Discovery Device object.
Corresponds to WAPI object 'discovery:device'
The devices discovered by Network Automation
Attributes:
address: The IPv4 Address or IPv6 Address of the device.
address_ref: The ref to management IP address of the device.
available_mgmt_ips: The list of available management IPs for the
device.
cap_admin_status_ind: Determines whether to modify the admin
status of an interface of the device.
cap_admin_status_na_reason: The reason that the edit admin
status action is not available.
cap_description_ind: Determines whether to modify the
description of an interface on the device.
cap_description_na_reason: The reason that the edit description
action is not available.
cap_net_deprovisioning_ind: Determines whether to deprovision a
network from interfaces of the device.
cap_net_deprovisioning_na_reason: The reason that the
deprovision a network from interfaces of this device is not
available.
cap_net_provisioning_ind: Determines whether to modify the
network associated to an interface of the device.
cap_net_provisioning_na_reason: The reason that network
provisioning is not available.
cap_net_vlan_provisioning_ind: Determines whether to create a
VLAN and then provision a network to the interface of the
device.
cap_net_vlan_provisioning_na_reason: The reason that network
provisioning on VLAN is not available.
cap_vlan_assignment_ind: Determines whether to modify the VLAN
assignement of an interface of the device.
cap_vlan_assignment_na_reason: The reason that VLAN assignment
action is not available.
cap_voice_vlan_ind: Determines whether to modify the voice VLAN
assignment of an interface of the device.
cap_voice_vlan_na_reason: The reason that voice VLAN assignment
action is not available.
chassis_serial_number: The device chassis serial number.
description: The description of the device.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
interfaces: List of the device interfaces.
location: The location of the device.
model: The model name of the device.
ms_ad_user_data: The Microsoft Active Directory user related
information.
name: The name of the device.
neighbors: List of the device neighbors.
network: The ref to the network to which belongs the management
IP address belongs.
network_infos: The list of networks to which the device
interfaces belong.
network_view: The name of the network view in which this device
resides.
networks: The list of networks to which the device interfaces
belong.
os_version: The Operating System version running on the device.
port_stats: The port statistics of the device.
privileged_polling: A flag indicated that NI should send enable
command when interacting with device.
type: The type of the device.
user_defined_mgmt_ip: User-defined management IP address of the
device.
vendor: The vendor name of the device.
vlan_infos: The list of VLAN information associated with the
device.
"""
_infoblox_type = 'discovery:device'
_fields = ['address', 'address_ref', 'available_mgmt_ips',
'cap_admin_status_ind', 'cap_admin_status_na_reason',
'cap_description_ind', 'cap_description_na_reason',
'cap_net_deprovisioning_ind',
'cap_net_deprovisioning_na_reason', 'cap_net_provisioning_ind',
'cap_net_provisioning_na_reason',
'cap_net_vlan_provisioning_ind',
'cap_net_vlan_provisioning_na_reason',
'cap_vlan_assignment_ind', 'cap_vlan_assignment_na_reason',
'cap_voice_vlan_ind', 'cap_voice_vlan_na_reason',
'chassis_serial_number', 'description', 'extattrs',
'interfaces', 'location', 'model', 'ms_ad_user_data', 'name',
'neighbors', 'network', 'network_infos', 'network_view',
'networks', 'os_version', 'port_stats', 'privileged_polling',
'type', 'user_defined_mgmt_ip', 'vendor', 'vlan_infos']
_search_for_update_fields = ['address', 'name', 'network_view']
_updateable_search_fields = []
_all_searchable_fields = ['address', 'chassis_serial_number', 'location',
'model', 'name', 'network_view', 'os_version',
'type', 'vendor']
_return_fields = ['address', 'extattrs', 'name', 'network_view']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'network_infos': DiscoveryNetworkinfo.from_dict,
'vlan_infos': DiscoveryVlaninfo.from_dict,
}
class DiscoveryDevicecomponent(InfobloxObject):
""" DiscoveryDevicecomponent: Device Component object.
Corresponds to WAPI object 'discovery:devicecomponent'
The device components discovered by Network Automation.
Attributes:
component_name: The component name.
description: The description of the device component.
device: A reference to a device, to which this component belongs
to.
model: The model of the device component.
serial: The serial number of the device component.
type: The type of device component.
"""
_infoblox_type = 'discovery:devicecomponent'
_fields = ['component_name', 'description', 'device', 'model', 'serial',
'type']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = ['device']
_return_fields = ['component_name', 'description', 'model', 'serial',
'type']
_remap = {}
_shadow_fields = ['_ref']
class DiscoveryDeviceinterface(InfobloxObject):
""" DiscoveryDeviceinterface: Device Interface object.
Corresponds to WAPI object 'discovery:deviceinterface'
Interfaces on devices discovered by Network Automation
Attributes:
admin_status: Administrative state of the interface.
admin_status_task_info: The configured admin status task info of
the interface.
aggr_interface_name: Name of the port channel current interface
belongs to.
cap_if_admin_status_ind: Determines whether to modify the admin
status of the interface.
cap_if_admin_status_na_reason: The reason that the edit admin
status action is not available.
cap_if_description_ind: Determines whether to modify the
description of the interface.
cap_if_description_na_reason: The reason that the edit
description action is not available.
cap_if_net_deprovisioning_ipv4_ind: Determines whether to
deprovision a IPv4 network from the interfaces.
cap_if_net_deprovisioning_ipv4_na_reason: The reason that the
deprovision a IPv4 network from the interface.
cap_if_net_deprovisioning_ipv6_ind: Determines whether to
deprovision a IPv6 network from the interfaces.
cap_if_net_deprovisioning_ipv6_na_reason: The reason that the
deprovision a IPv6 network from the interface.
cap_if_net_provisioning_ipv4_ind: Determines whether to modify
the IPv4 network associated to the interface.
cap_if_net_provisioning_ipv4_na_reason: The reason that IPv4
network provisioning is not available.
cap_if_net_provisioning_ipv6_ind: Determines whether to modify
the IPv6 network associated to the interface.
cap_if_net_provisioning_ipv6_na_reason: The reason that IPv6
network provisioning is not available.
cap_if_vlan_assignment_ind: Determines whether to modify the
VLAN assignement of the interface.
cap_if_vlan_assignment_na_reason: The reason that VLAN
assignment action is not available.
cap_if_voice_vlan_ind: Determines whether to modify the voice
VLAN assignement of the interface.
cap_if_voice_vlan_na_reason: The reason that voice VLAN
assignment action is not available.
description: The description of the interface.
description_task_info: The configured description task info of
the interface.
device: The ref to the device to which the interface belongs.
duplex: The duplex state of the interface.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
ifaddr_infos: List of IFaddr information associated with the
interface.
index: The interface index number, as reported by SNMP.
last_change: Timestamp of the last interface property change
detected.
link_aggregation: This field indicates if this is a link
aggregation interface.
mac: The MAC address of the interface.
ms_ad_user_data: The Microsoft Active Directory user related
information.
name: The interface system name.
network_view: Th name of the network view.
oper_status: Operating state of the interface.
port_fast: The Port Fast status of the interface.
reserved_object: The reference to
object(Host/FixedAddress/GridMember) to which this port is
reserved.
speed: The interface speed in bps.
trunk_status: Indicates if the interface is tagged as a VLAN
trunk or not.
type: The type of interface.
vlan_info_task_info: The configured VLAN status task info of the
interface.
vlan_infos: The list of VLAN information associated with the
interface.
vpc_peer: Aggregated interface name of vPC peer device current
port is connected to.
vpc_peer_device: The reference to vPC peer device.
vrf_description: The description of the Virtual Routing and
Forwarding (VRF) associated with the interface.
vrf_name: The name of the Virtual Routing and Forwarding (VRF)
associated with the interface.
vrf_rd: The route distinguisher of the Virtual Routing and
Forwarding (VRF) associated with the interface.
"""
_infoblox_type = 'discovery:deviceinterface'
_fields = ['admin_status', 'admin_status_task_info', 'aggr_interface_name',
'cap_if_admin_status_ind', 'cap_if_admin_status_na_reason',
'cap_if_description_ind', 'cap_if_description_na_reason',
'cap_if_net_deprovisioning_ipv4_ind',
'cap_if_net_deprovisioning_ipv4_na_reason',
'cap_if_net_deprovisioning_ipv6_ind',
'cap_if_net_deprovisioning_ipv6_na_reason',
'cap_if_net_provisioning_ipv4_ind',
'cap_if_net_provisioning_ipv4_na_reason',
'cap_if_net_provisioning_ipv6_ind',
'cap_if_net_provisioning_ipv6_na_reason',
'cap_if_vlan_assignment_ind',
'cap_if_vlan_assignment_na_reason', 'cap_if_voice_vlan_ind',
'cap_if_voice_vlan_na_reason', 'description',
'description_task_info', 'device', 'duplex', 'extattrs',
'ifaddr_infos', 'index', 'last_change', 'link_aggregation',
'mac', 'ms_ad_user_data', 'name', 'network_view', 'oper_status',
'port_fast', 'reserved_object', 'speed', 'trunk_status', 'type',
'vlan_info_task_info', 'vlan_infos', 'vpc_peer',
'vpc_peer_device', 'vrf_description', 'vrf_name', 'vrf_rd']
_search_for_update_fields = ['name', 'type']
_updateable_search_fields = []
_all_searchable_fields = ['aggr_interface_name', 'description', 'mac',
'name', 'network_view', 'oper_status', 'speed',
'type', 'vpc_peer', 'vrf_description',
'vrf_name', 'vrf_rd']
_return_fields = ['extattrs', 'name', 'type']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'ifaddr_infos': DiscoveryIfaddrinfo.from_dict,
'vlan_infos': DiscoveryVlaninfo.from_dict,
}
class DiscoveryDeviceneighbor(InfobloxObject):
""" DiscoveryDeviceneighbor: Device Neighbor object.
Corresponds to WAPI object 'discovery:deviceneighbor'
The neighbor associated with the device discovered by Network
Automation.
Attributes:
address: The IPv4 Address or IPv6 Address of the device
neighbor.
address_ref: The ref to the management IP address of the device
neighbor.
device: The ref to the device to which the device neighbor
belongs.
interface: The ref to the interface to which the device neighbor
belongs.
mac: The MAC address of the device neighbor.
name: The name of the device neighbor.
vlan_infos: The list of VLAN information associated with the
device neighbor.
"""
_infoblox_type = 'discovery:deviceneighbor'
_fields = ['address', 'address_ref', 'device', 'interface', 'mac', 'name',
'vlan_infos']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = ['device']
_return_fields = ['address', 'address_ref', 'mac', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'vlan_infos': DiscoveryVlaninfo.from_dict,
}
class DiscoveryDevicesupportbundle(InfobloxObject):
""" DiscoveryDevicesupportbundle: Device support bundle object.
Corresponds to WAPI object 'discovery:devicesupportbundle'
Infoblox frequently provides support files for additional network
devices that may not have previously been supported by discovery,
and updates to support new operating system versions of existing
devices.
The device support bundle represents the entity for displaying and
managing device support files.
Attributes:
author: The developer of the device support bundle.
integrated_ind: Determines whether the device support bundle is
integrated or imported. Note that integrated support bundles
cannot be removed.
name: The descriptive device name for the device support bundle.
version: The version of the currently active device support
bundle.
"""
_infoblox_type = 'discovery:devicesupportbundle'
_fields = ['author', 'integrated_ind', 'name', 'version']
_search_for_update_fields = ['name']
_updateable_search_fields = []
_all_searchable_fields = ['name']
_return_fields = ['author', 'integrated_ind', 'name', 'version']
_remap = {}
_shadow_fields = ['_ref']
class DiscoveryDiagnostictask(InfobloxObject):
""" DiscoveryDiagnostictask: The discovery diagnostic task object.
Corresponds to WAPI object 'discovery:diagnostictask'
The object provides information about the discovery diagnostic task.
Attributes:
community_string: The SNMP community string of the discovery
diagnostic task.
debug_snmp: The SNMP debug flag of the discovery diagnostic
task.
force_test: The force test flag of the discovery diagnostic
task.
ip_address: The IP address of the discovery diagnostic task.
network_view: The network view name of the discovery diagnostic
task.
start_time: The time when the discovery diagnostic task was
started.
task_id: The ID of the discovery diagnostic task.
"""
_infoblox_type = 'discovery:diagnostictask'
_fields = ['community_string', 'debug_snmp', 'force_test', 'ip_address',
'network_view', 'start_time', 'task_id']
_search_for_update_fields = ['ip_address', 'network_view', 'task_id']
_updateable_search_fields = ['ip_address', 'network_view', 'task_id']
_all_searchable_fields = ['ip_address', 'network_view', 'task_id']
_return_fields = ['ip_address', 'network_view', 'task_id']
_remap = {}
_shadow_fields = ['_ref']
class DiscoveryGridproperties(InfobloxObject):
""" DiscoveryGridproperties: The Grid discovery properties object.
Corresponds to WAPI object 'discovery:gridproperties'
The object provides information about the Grid discovery properties.
Attributes:
advanced_polling_settings: Discovery advanced polling settings.
advanced_sdn_polling_settings: Discovery advanced polling
settings.
advisor_settings: Advisor settings.
auto_conversion_settings: Automatic conversion settings.
basic_polling_settings: Discovery basic polling settings.
basic_sdn_polling_settings: Discovery basic polling settings.
cli_credentials: Discovery CLI credentials.
discovery_blackout_setting: Discovery blackout setting.
dns_lookup_option: The type of the devices the DNS processor
operates on.
dns_lookup_throttle: The percentage of available capacity the
DNS processor operates at.Valid values are unsigned integer
between 1 and 100, inclusive.
enable_advisor: Advisor application enabled/disabled.
enable_auto_conversion: The flag that enables automatic
conversion of discovered data.
enable_auto_updates: The flag that enables updating discovered
data for managed objects.
grid_name: The Grid name.
ignore_conflict_duration: Determines the timeout to ignore the
discovery conflict duration (in seconds).
port_control_blackout_setting: Port control blackout setting.
ports: Ports to scan.
same_port_control_discovery_blackout: Determines if the same
port control is used for discovery blackout.
snmpv1v2_credentials: Discovery SNMP v1 and v2 credentials.
snmpv3_credentials: Discovery SNMP v3 credentials.
unmanaged_ips_limit: Limit of discovered unmanaged IP address
which determines how frequently the user is notified about
the new unmanaged IP address in a particular network.
unmanaged_ips_timeout: Determines the timeout between two
notifications (in seconds) about the new unmanaged IP
address in a particular network. The value must be between
60 seconds and the number of seconds remaining to Jan 2038.
vrf_mapping_policy: The policy type used to define the behavior
of the VRF mapping.
vrf_mapping_rules: VRF mapping rules.
"""
_infoblox_type = 'discovery:gridproperties'
_fields = ['advanced_polling_settings', 'advanced_sdn_polling_settings',
'advisor_settings', 'auto_conversion_settings',
'basic_polling_settings', 'basic_sdn_polling_settings',
'cli_credentials', 'discovery_blackout_setting',
'dns_lookup_option', 'dns_lookup_throttle', 'enable_advisor',
'enable_auto_conversion', 'enable_auto_updates', 'grid_name',
'ignore_conflict_duration', 'port_control_blackout_setting',
'ports', 'same_port_control_discovery_blackout',
'snmpv1v2_credentials', 'snmpv3_credentials',
'unmanaged_ips_limit', 'unmanaged_ips_timeout',
'vrf_mapping_policy', 'vrf_mapping_rules']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = ['grid_name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'auto_conversion_settings': DiscoveryAutoconversionsetting.from_dict,
'cli_credentials': DiscoveryClicredential.from_dict,
'ports': DiscoveryPort.from_dict,
'snmpv1v2_credentials': DiscoverySnmpcredential.from_dict,
'snmpv3_credentials': DiscoverySnmp3Credential.from_dict,
'vrf_mapping_rules': DiscoveryVrfmappingrule.from_dict,
}
def advisor_run_now(self, *args, **kwargs):
return self._call_func("advisor_run_now", *args, **kwargs)
def advisor_test_connection(self, *args, **kwargs):
return self._call_func("advisor_test_connection", *args, **kwargs)
def diagnostic(self, *args, **kwargs):
return self._call_func("diagnostic", *args, **kwargs)
def diagnostic_status(self, *args, **kwargs):
return self._call_func("diagnostic_status", *args, **kwargs)
class DiscoveryMemberproperties(InfobloxObject):
""" DiscoveryMemberproperties: The Grid discovery member properties
object.
Corresponds to WAPI object 'discovery:memberproperties'
The object provides information about the Grid member discovery
properties.
Attributes:
address: The Grid member address IP address.
cli_credentials: Discovery CLI credentials.
default_seed_routers: Default seed routers.
discovery_member: The name of the network discovery Grid member.
enable_service: Determines if the discovery service is enabled.
gateway_seed_routers: Gateway seed routers.
is_sa: Determines if the standalone mode for discovery network
monitor is enabled or not.
role: Discovery member role.
scan_interfaces: Discovery networks to which the member is
assigned.
sdn_configs: List of SDN/SDWAN controller configurations.
seed_routers: Seed routers.
snmpv1v2_credentials: Discovery SNMP v1 and v2 credentials.
snmpv3_credentials: Discovery SNMP v3 credentials.
use_cli_credentials: Use flag for: cli_credentials
use_snmpv1v2_credentials: Use flag for: snmpv1v2_credentials
use_snmpv3_credentials: Use flag for: snmpv3_credentials
"""
_infoblox_type = 'discovery:memberproperties'
_fields = ['address', 'cli_credentials', 'default_seed_routers',
'discovery_member', 'enable_service', 'gateway_seed_routers',
'is_sa', 'role', 'scan_interfaces', 'sdn_configs',
'seed_routers', 'snmpv1v2_credentials', 'snmpv3_credentials',
'use_cli_credentials', 'use_snmpv1v2_credentials',
'use_snmpv3_credentials']
_search_for_update_fields = ['discovery_member']
_updateable_search_fields = ['enable_service', 'is_sa', 'role']
_all_searchable_fields = ['discovery_member', 'enable_service', 'is_sa',
'role']
_return_fields = ['discovery_member']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'cli_credentials': DiscoveryClicredential.from_dict,
'default_seed_routers': DiscoverySeedrouter.from_dict,
'gateway_seed_routers': DiscoverySeedrouter.from_dict,
'scan_interfaces': DiscoveryScaninterface.from_dict,
'sdn_configs': DiscoverySdnconfig.from_dict,
'seed_routers': DiscoverySeedrouter.from_dict,
'snmpv1v2_credentials': DiscoverySnmpcredential.from_dict,
'snmpv3_credentials': DiscoverySnmp3Credential.from_dict,
}
class DiscoverySdnnetwork(InfobloxObject):
""" DiscoverySdnnetwork: The SDN network object.
Corresponds to WAPI object 'discovery:sdnnetwork'
This object provides information about the SDN networks. They are
the elements of address space hierarchy discovered on SDN/SDWAN
controllers
Attributes:
first_seen: Timestamp when this SDN network was first
discovered.
name: The name of the SDN network.
network_view: The name of the network view assigned to this SDN
network.
source_sdn_config: Name of SDN configuration this network
belongs to.
"""
_infoblox_type = 'discovery:sdnnetwork'
_fields = ['first_seen', 'name', 'network_view', 'source_sdn_config']
_search_for_update_fields = ['name', 'network_view', 'source_sdn_config']
_updateable_search_fields = []
_all_searchable_fields = ['name', 'network_view', 'source_sdn_config']
_return_fields = ['name', 'network_view', 'source_sdn_config']
_remap = {}
_shadow_fields = ['_ref']
class DiscoveryStatus(InfobloxObject):
""" DiscoveryStatus: Discovery Status object.
Corresponds to WAPI object 'discovery:status'
The discovery status of discovered data
Attributes:
address: The IPv4 Address or IPv6 Address of the device.
cli_collection_enabled: Indicates if CLI collection is enabled.
cli_credential_info: The CLI credential status information of
the device.
existence_info: The existence status information of the device.
fingerprint_enabled: Indicates if DHCP finterprinting is
enabled.
fingerprint_info: This DHCP finterprinting status information of
the device.
first_seen: The timestamp when the device was first discovered.
last_action: The timestamp of the last detected interface
property change.
last_seen: The timestamp when the device was last discovered.
last_timestamp: The timestamp of the last executed action for
the device.
name: The name of the device.
network_view: The name of the network view in which this device
resides.
reachable_info: The reachable status information of the device.
sdn_collection_enabled: Indicate whether SDN collection enabled
for the device.
sdn_collection_info: Device SDN collection status information.
snmp_collection_enabled: Indicates if SNMP collection is
enabled.
snmp_collection_info: The SNMP collection status information of
the device.
snmp_credential_info: The SNMP credential status information of
the device.
status: The overall status of the device.
type: The type of device.
"""
_infoblox_type = 'discovery:status'
_fields = ['address', 'cli_collection_enabled', 'cli_credential_info',
'existence_info', 'fingerprint_enabled', 'fingerprint_info',
'first_seen', 'last_action', 'last_seen', 'last_timestamp',
'name', 'network_view', 'reachable_info',
'sdn_collection_enabled', 'sdn_collection_info',
'snmp_collection_enabled', 'snmp_collection_info',
'snmp_credential_info', 'status', 'type']
_search_for_update_fields = ['address', 'name', 'network_view']
_updateable_search_fields = []
_all_searchable_fields = ['address', 'name', 'network_view']
_return_fields = ['address', 'name', 'network_view', 'status']
_remap = {}
_shadow_fields = ['_ref']
class DiscoveryVrf(InfobloxObject):
""" DiscoveryVrf: The VRF object.
Corresponds to WAPI object 'discovery:vrf'
This object provides information about the virtual network
membership (VRF).
Attributes:
description: Additional information about the VRF.
device: The device to which the VRF belongs.
name: The name of the VRF.
network_view: The name of the network view in which this VRF
resides.
route_distinguisher: The route distinguisher associated with the
VRF.
"""
_infoblox_type = 'discovery:vrf'
_fields = ['description', 'device', 'name', 'network_view',
'route_distinguisher']
_search_for_update_fields = ['name', 'network_view']
_updateable_search_fields = []
_all_searchable_fields = ['name', 'network_view']
_return_fields = ['device', 'name', 'network_view', 'route_distinguisher']
_remap = {}
_shadow_fields = ['_ref']
class Discoverytask(InfobloxObject):
""" Discoverytask: The discovery task object.
Corresponds to WAPI object 'discoverytask'
Represents the configuration of network discovery jobs.
Configuration parameters have control over the behavior of network
discovery jobs.
Attributes:
csv_file_name: The network discovery CSV file name.
disable_ip_scanning: Determines whether IP scanning is disabled.
disable_vmware_scanning: Determines whether VMWare scanning is
disabled.
discovery_task_oid: The discovery task identifier.
member_name: The Grid member that runs the discovery.
merge_data: Determines whether to replace or merge new data with
existing data.
mode: Network discovery scanning mode.
network_view: Name of the network view in which target networks
for network discovery reside.
networks: The list of the networks on which the network
discovery will be invoked.
ping_retries: The number of times to perfrom ping for ICMP and
FULL modes.
ping_timeout: The ping timeout for ICMP and FULL modes.
scheduled_run: The schedule setting for network discovery task.
state: The network discovery process state.
state_time: Time when the network discovery process state was
last updated.
status: The network discovery process descriptive status.
status_time: The time when the network discovery process status
was last updated.
tcp_ports: The ports to scan for FULL and TCP modes.
tcp_scan_technique: The TCP scan techinque for FULL and TCP
modes.
v_network_view: Name of the network view in which target
networks for VMWare scanning reside.
vservers: The list of VMware vSphere servers for VM discovery.
warning: The network discovery process warning.
"""
_infoblox_type = 'discoverytask'
_fields = ['csv_file_name', 'disable_ip_scanning',
'disable_vmware_scanning', 'discovery_task_oid', 'member_name',
'merge_data', 'mode', 'network_view', 'networks',
'ping_retries', 'ping_timeout', 'scheduled_run', 'state',
'state_time', 'status', 'status_time', 'tcp_ports',
'tcp_scan_technique', 'v_network_view', 'vservers', 'warning']
_search_for_update_fields = ['discovery_task_oid']
_updateable_search_fields = []
_all_searchable_fields = ['discovery_task_oid']
_return_fields = ['discovery_task_oid', 'member_name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'tcp_ports': Discoverytaskport.from_dict,
'vservers': Discoverytaskvserver.from_dict,
}
def network_discovery_control(self, *args, **kwargs):
return self._call_func("network_discovery_control", *args, **kwargs)
class Distributionschedule(InfobloxObject):
""" Distributionschedule: Distribution schedule object.
Corresponds to WAPI object 'distributionschedule'
Distributing the software upgrade files involves unpacking the
software files and loading the new software. When you distribute the
files, the NIOS appliance loads the new software code into an
alternative disk partition that overwrites any previously saved
version of existing code. Therefore, starting the distribution
disables the appliance from reverting to a release prior to the
current version. The Grid Master distributes the software upgrade to
each member in the Grid including itself.
When you schedule a distribution, you schedule the distribution of
the Grid Master as well as the upgrade groups, including the Default
group. The Grid Master distribution must always occur before the
distribution of the upgrade groups.
The distribution schedule object provides configuration for
scheduled distribution of the software, activation of the schedule,
as well as date and time settings.
Attributes:
active: Determines whether the distribution schedule is active.
start_time: The start time of the distribution.
time_zone: Time zone of the distribution start time.
upgrade_groups: The upgrade groups scheduling settings.
"""
_infoblox_type = 'distributionschedule'
_fields = ['active', 'start_time', 'time_zone', 'upgrade_groups']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = ['active', 'start_time', 'time_zone']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'upgrade_groups': UpgradegroupSchedule.from_dict,
}
class Dns64Group(InfobloxObject):
""" Dns64Group: DNS64 synthesis group object.
Corresponds to WAPI object 'dns64group'
To support the increasing number of IPv6 and dual-stack networks,
Infoblox DNS servers now support DNS64, a mechanism that synthesizes
AAAA records from A records when no AAAA records exist.
The DNS64 synthesis group specifies the IPv6 prefix for the
synthesized AAAA records. The Infoblox DNS server provides a default
DNS64 synthesis group with the well-known prefix 64:ff9b::/96 which
is reserved for representing IPv4 addresses in the IPv6 address
space.
Attributes:
clients: Access Control settings that contain IPv4 and IPv6 DNS
clients and networks to which the DNS server is allowed to
send synthesized AAAA records with the specified IPv6
prefix.
comment: The descriptive comment for the DNS64 synthesis group
object.
disable: Determines whether the DNS64 synthesis group is
disabled.
enable_dnssec_dns64: Determines whether the DNS64 synthesis of
AAAA records is enabled for DNS64 synthesis groups that
request DNSSEC data.
exclude: Access Control settings that contain IPv6 addresses or
prefix ranges that cannot be used by IPv6-only hosts, such
as IP addresses in the ::ffff:0:0/96 network. When DNS
server retrieves an AAAA record that contains an IPv6
address that matches an excluded address, it does not return
the AAAA record. Instead it synthesizes an AAAA record from
the A record.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
mapped: Access Control settings that contain IPv4 addresses and
networks for which the DNS server can synthesize AAAA
records with the specified prefix.
name: The name of the DNS64 synthesis group object.
prefix: The IPv6 prefix used for the synthesized AAAA records.
The prefix length must be /32, /40, /48, /56, /64 or /96,
and all bits beyond the specified length must be zero.
"""
_infoblox_type = 'dns64group'
_fields = ['clients', 'comment', 'disable', 'enable_dnssec_dns64',
'exclude', 'extattrs', 'mapped', 'name', 'prefix']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name', 'prefix']
_all_searchable_fields = ['comment', 'name', 'prefix']
_return_fields = ['comment', 'disable', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'clients': Addressac.from_dict,
'exclude': Addressac.from_dict,
'mapped': Addressac.from_dict,
}
class Dtc(InfobloxObject):
""" Dtc: DTC object.
Corresponds to WAPI object 'dtc'
This object can be used to control the DTC functionality of the
appliance.
Attributes:
"""
_infoblox_type = 'dtc'
_fields = []
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = []
_remap = {}
_shadow_fields = ['_ref']
def add_certificate(self, *args, **kwargs):
return self._call_func("add_certificate", *args, **kwargs)
def generate_ea_topology_db(self, *args, **kwargs):
return self._call_func("generate_ea_topology_db", *args, **kwargs)
def import_maxminddb(self, *args, **kwargs):
return self._call_func("import_maxminddb", *args, **kwargs)
def query(self, *args, **kwargs):
return self._call_func("query", *args, **kwargs)
class DtcAllrecords(InfobloxObject):
""" DtcAllrecords: DTC AllRecords object.
Corresponds to WAPI object 'dtc:allrecords'
The DTC AllRecords object is a read-only synthetic object used to
retrieve records that belong to a particular DTC server.
Since this is a synthetic object, it is read-only by specifying
search parameters, not by specifying a reference.
Attributes:
comment: The record comment.
disable: The disable value determines if the record is disabled
or not. "False" means the record is enabled.
dtc_server: The name of the DTC Server object with which the
record is associated.
record: The record object, if supported by the WAPI. Otherwise,
the value is "None".
ttl: The TTL value of the record associated with the DTC
AllRecords object.
type: The record type. When searching for an unspecified record
type, the search is performed for all records. On retrieval,
the appliance returns "UNSUPPORTED" for unsupported records.
"""
_infoblox_type = 'dtc:allrecords'
_fields = ['comment', 'disable', 'dtc_server', 'record', 'ttl', 'type']
_search_for_update_fields = ['dtc_server', 'type']
_updateable_search_fields = []
_all_searchable_fields = ['comment', 'dtc_server', 'type']
_return_fields = ['comment', 'dtc_server', 'type']
_remap = {}
_shadow_fields = ['_ref']
class DtcCertificate(InfobloxObject):
""" DtcCertificate: DTC Certificate object.
Corresponds to WAPI object 'dtc:certificate'
These are DTC health monitor certificates.
Attributes:
certificate: Reference to underlying X509Certificate.
in_use: Determines whether the certificate is in use or not.
"""
_infoblox_type = 'dtc:certificate'
_fields = ['certificate', 'in_use']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = []
_remap = {}
_shadow_fields = ['_ref']
class DtcLbdn(InfobloxObject):
""" DtcLbdn: DTC LBDN object.
Corresponds to WAPI object 'dtc:lbdn'
Load Balanced Domain Name (LBDN) is a Load balanced domain name
record type, which is served by Infoblox Name Servers. LBDN is a
qualified domain name associated with a specific service such as
ftp.abc.com or www.abc.com.
Attributes:
auth_zones: List of linked auth zones.
auto_consolidated_monitors: Flag for enabling auto managing DTC
Consolidated Monitors on related DTC Pools.
comment: Comment for the DTC LBDN; maximum 256 characters.
disable: Determines whether the DTC LBDN is disabled or not.
When this is set to False, the fixed address is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
health: The LBDN health information.
lb_method: The load balancing method. Used to select pool.
name: The display name of the DTC LBDN, not DNS related.
patterns: LBDN wildcards for pattern match.
persistence: Maximum time, in seconds, for which client specific
LBDN responses will be cached. Zero specifies no caching.
pools: The maximum time, in seconds, for which client specific
LBDN responses will be cached. Zero specifies no caching.
priority: The LBDN pattern match priority for "overlapping" DTC
LBDN objects. LBDNs are "overlapping" if they are
simultaneously assigned to a zone and have patterns that can
match the same FQDN. The matching LBDN with highest priority
(lowest ordinal) will be used.
topology: The topology rules for TOPOLOGY method.
ttl: The Time To Live (TTL) value for the DTC LBDN. A 32-bit
unsigned integer that represents the duration, in seconds,
for which the record is valid (cached). Zero indicates that
the record should not be cached.
types: The list of resource record types supported by LBDN.
use_ttl: Use flag for: ttl
"""
_infoblox_type = 'dtc:lbdn'
_fields = ['auth_zones', 'auto_consolidated_monitors', 'comment',
'disable', 'extattrs', 'health', 'lb_method', 'name',
'patterns', 'persistence', 'pools', 'priority', 'topology',
'ttl', 'types', 'use_ttl']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'pools': DtcPoolLink.from_dict,
}
class DtcMonitor(InfobloxObject):
""" DtcMonitor: DTC monitor object.
Corresponds to WAPI object 'dtc:monitor'
The DTC Monitor object is used to determine the health of a server
by evaluating the response to a health request.
Attributes:
comment: Comment for this DTC monitor; maximum 256 characters.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
interval: The interval for a health check.
monitor: The actual monitor object.
name: The display name for this DTC monitor.
port: The health monitor port value.
retry_down: The number of how many times the server should
appear as "DOWN" to be treated as dead after it was alive.
retry_up: The number of many times the server should appear as
"UP" to be treated as alive after it was dead.
timeout: The timeout for a health check.
type: The request transport type.
"""
_infoblox_type = 'dtc:monitor'
_fields = ['comment', 'extattrs', 'interval', 'monitor', 'name', 'port',
'retry_down', 'retry_up', 'timeout', 'type']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name', 'type']
_remap = {}
_shadow_fields = ['_ref']
class DtcMonitorHttp(InfobloxObject):
""" DtcMonitorHttp: DTC HTTP monitor object.
Corresponds to WAPI object 'dtc:monitor:http'
The DTC HTTP monitor object is used to determine the health of a
HTTP service by first sending a specific http message to a server
and then examining the response received from the server. The
validation is successful if the received response matches the
expected message.
Attributes:
ciphers: An optional cipher list for a secure HTTP/S connection.
client_cert: An optional client certificate, supplied in a
secure HTTP/S mode if present.
comment: Comment for this DTC monitor; maximum 256 characters.
content_check: The content check type.
content_check_input: A portion of response to use as input for
content check.
content_check_op: A content check success criteria operator.
content_check_regex: A content check regular expression.
content_extract_group: A content extraction sub-expression to
extract.
content_extract_type: A content extraction expected type for the
extracted data.
content_extract_value: A content extraction value to compare
with extracted result.
enable_sni: Determines whether the Server Name Indication (SNI)
for HTTPS monitor is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
interval: The interval for TCP health check.
name: The display name for this DTC monitor.
port: Port for TCP requests.
request: An HTTP request to send.
result: The type of an expected result.
result_code: The expected return code.
retry_down: The value of how many times the server should appear
as down to be treated as dead after it was alive.
retry_up: The value of how many times the server should appear
as up to be treated as alive after it was dead.
secure: The connection security status.
timeout: The timeout for TCP health check in seconds.
validate_cert: Determines whether the validation of the remote
server's certificate is enabled.
"""
_infoblox_type = 'dtc:monitor:http'
_fields = ['ciphers', 'client_cert', 'comment', 'content_check',
'content_check_input', 'content_check_op',
'content_check_regex', 'content_extract_group',
'content_extract_type', 'content_extract_value', 'enable_sni',
'extattrs', 'interval', 'name', 'port', 'request', 'result',
'result_code', 'retry_down', 'retry_up', 'secure', 'timeout',
'validate_cert']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
class DtcMonitorIcmp(InfobloxObject):
""" DtcMonitorIcmp: DTC ICMP monitor object.
Corresponds to WAPI object 'dtc:monitor:icmp'
The DTC ICMP monitor object is used to determine the health of a
server by monitoring the response to an ICMP ping.
Attributes:
comment: Comment for this DTC monitor; maximum 256 characters.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
interval: The interval for TCP health check.
name: The display name for this DTC monitor.
retry_down: The value of how many times the server should appear
as down to be treated as dead after it was alive.
retry_up: The value of how many times the server should appear
as up to be treated as alive after it was dead.
timeout: The timeout for TCP health check in seconds.
"""
_infoblox_type = 'dtc:monitor:icmp'
_fields = ['comment', 'extattrs', 'interval', 'name', 'retry_down',
'retry_up', 'timeout']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
class DtcMonitorPdp(InfobloxObject):
""" DtcMonitorPdp: DTC PDP monitor object.
Corresponds to WAPI object 'dtc:monitor:pdp'
The DTC PDP monitor object is used to determine the health of a
server by sending a PDP ECHO and considering a valid reply to mean
that service is available.
Attributes:
comment: Comment for this DTC monitor; maximum 256 characters.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
interval: The interval for TCP health check.
name: The display name for this DTC monitor.
port: The port value for PDP requests.
retry_down: The value of how many times the server should appear
as down to be treated as dead after it was alive.
retry_up: The value of how many times the server should appear
as up to be treated as alive after it was dead.
timeout: The timeout for TCP health check in seconds.
"""
_infoblox_type = 'dtc:monitor:pdp'
_fields = ['comment', 'extattrs', 'interval', 'name', 'port', 'retry_down',
'retry_up', 'timeout']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
class DtcMonitorSip(InfobloxObject):
""" DtcMonitorSip: DTC SIP monitor object.
Corresponds to WAPI object 'dtc:monitor:sip'
The DTC SIP monitor object is used to determine the health of a SIP
server such as SIP Proxies and Session Border Controllers, and SIP
gateways by issuing SIP options to a server and examining the
response provided by the server. The service is considered available
If the received response matches the expected response.
Attributes:
ciphers: An optional cipher list for secure TLS/SIPS connection.
client_cert: An optional client certificate, supplied in TLS and
SIPS mode if present.
comment: Comment for this DTC monitor; maximum 256 characters.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
interval: The interval for TCP health check.
name: The display name for this DTC monitor.
port: The port value for SIP requests.
request: A SIP request to send
result: The type of an expected result.
result_code: The expected return code value.
retry_down: The value of how many times the server should appear
as down to be treated as dead after it was alive.
retry_up: The value of how many times the server should appear
as up to be treated as alive after it was dead.
timeout: The timeout for TCP health check in seconds.
transport: The transport layer protocol to use for SIP check.
validate_cert: Determines whether the validation of the remote
server's certificate is enabled.
"""
_infoblox_type = 'dtc:monitor:sip'
_fields = ['ciphers', 'client_cert', 'comment', 'extattrs', 'interval',
'name', 'port', 'request', 'result', 'result_code',
'retry_down', 'retry_up', 'timeout', 'transport',
'validate_cert']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
class DtcMonitorSnmp(InfobloxObject):
""" DtcMonitorSnmp: DTC SNMP monitor object.
Corresponds to WAPI object 'dtc:monitor:snmp'
The DTC SNMP Health Monitor determines the health of SNMP servers,
such as SNMP Proxies and Session Border Controllers, and SNMP
gateways by issuing SNMP options to a server and examining the
response sent by the server. The service is considered available if
the returned response matches the expected response.
Attributes:
comment: Comment for this DTC monitor; maximum 256 characters.
community: The SNMP community string for SNMP authentication.
context: The SNMPv3 context.
engine_id: The SNMPv3 engine identifier.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
interval: The interval for TCP health check.
name: The display name for this DTC monitor.
oids: A list of OIDs for SNMP monitoring.
port: The port value for SNMP requests.
retry_down: The value of how many times the server should appear
as down to be treated as dead after it was alive.
retry_up: The value of how many times the server should appear
as up to be treated as alive after it was dead.
timeout: The timeout for TCP health check in seconds.
user: The SNMPv3 user setting.
version: The SNMP protocol version for the SNMP health check.
"""
_infoblox_type = 'dtc:monitor:snmp'
_fields = ['comment', 'community', 'context', 'engine_id', 'extattrs',
'interval', 'name', 'oids', 'port', 'retry_down', 'retry_up',
'timeout', 'user', 'version']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'context', 'engine_id', 'name']
_all_searchable_fields = ['comment', 'context', 'engine_id', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'oids': DtcMonitorSnmpOid.from_dict,
}
class DtcMonitorTcp(InfobloxObject):
""" DtcMonitorTcp: DTC TCP monitor object.
Corresponds to WAPI object 'dtc:monitor:tcp'
The DTC TCP monitor object is used to determine the health of a
server by evaluating the response to a TCP request.
Attributes:
comment: Comment for this DTC monitor; maximum 256 characters.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
interval: The interval for TCP health check.
name: The display name for this DTC monitor.
port: The port value for TCP requests.
retry_down: The value of how many times the server should appear
as down to be treated as dead after it was alive.
retry_up: The value of how many times the server should appear
as up to be treated as alive after it was dead.
timeout: The timeout for TCP health check in seconds.
"""
_infoblox_type = 'dtc:monitor:tcp'
_fields = ['comment', 'extattrs', 'interval', 'name', 'port', 'retry_down',
'retry_up', 'timeout']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
class DtcObject(InfobloxObject):
""" DtcObject: DTC object.
Corresponds to WAPI object 'dtc:object'
An object for all load balancer managed DTC objects.
Attributes:
abstract_type: The abstract object type.
comment: The comment for the DTC object; maximum 256 characters.
display_type: The display object type.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
ipv4_address_list: The list of IPv4 addresses.
ipv6_address_list: The list of IPv6 addresses.
name: The display name of the DTC object.
object: The specific DTC object.
status: The availability color status.
status_time: The timestamp when status or health was last
determined.
"""
_infoblox_type = 'dtc:object'
_fields = ['abstract_type', 'comment', 'display_type', 'extattrs',
'ipv4_address_list', 'ipv6_address_list', 'name', 'object',
'status', 'status_time']
_search_for_update_fields = ['name']
_updateable_search_fields = []
_all_searchable_fields = ['comment', 'name']
_return_fields = ['abstract_type', 'comment', 'display_type', 'extattrs',
'name', 'status']
_remap = {}
_shadow_fields = ['_ref']
class DtcPool(InfobloxObject):
""" DtcPool: DTC Pool object.
Corresponds to WAPI object 'dtc:pool'
The collection of IDNS resources (virtual servers).
Attributes:
auto_consolidated_monitors: Flag for enabling auto managing DTC
Consolidated Monitors in DTC Pool.
availability: A resource in the pool is available if ANY, at
least QUORUM, or ALL monitors for the pool say that it is
up.
comment: The comment for the DTC Pool; maximum 256 characters.
consolidated_monitors: List of monitors and associated members
statuses of which are shared across members and consolidated
in server availability determination.
disable: Determines whether the DTC Pool is disabled or not.
When this is set to False, the fixed address is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
health: The health status.
lb_alternate_method: The alternate load balancing method. Use
this to select a method type from the pool if the preferred
method does not return any results.
lb_alternate_topology: The alternate topology for load
balancing.
lb_dynamic_ratio_alternate: The DTC Pool settings for dynamic
ratio when it's selected as alternate method.
lb_dynamic_ratio_preferred: The DTC Pool settings for dynamic
ratio when it's selected as preferred method.
lb_preferred_method: The preferred load balancing method. Use
this to select a method type from the pool.
lb_preferred_topology: The preferred topology for load
balancing.
monitors: The monitors related to pool.
name: The DTC Pool display name.
quorum: For availability mode QUORUM, at least this many
monitors must report the resource as up for it to be
available
servers: The servers related to the pool.
ttl: The Time To Live (TTL) value for the DTC Pool. A 32-bit
unsigned integer that represents the duration, in seconds,
for which the record is valid (cached). Zero indicates that
the record should not be cached.
use_ttl: Use flag for: ttl
"""
_infoblox_type = 'dtc:pool'
_fields = ['auto_consolidated_monitors', 'availability', 'comment',
'consolidated_monitors', 'disable', 'extattrs', 'health',
'lb_alternate_method', 'lb_alternate_topology',
'lb_dynamic_ratio_alternate', 'lb_dynamic_ratio_preferred',
'lb_preferred_method', 'lb_preferred_topology', 'monitors',
'name', 'quorum', 'servers', 'ttl', 'use_ttl']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'consolidated_monitors': DtcPoolConsolidatedMonitorHealth.from_dict,
'servers': DtcServerLink.from_dict,
}
class ADtcRecordBase(InfobloxObject):
@classmethod
def get_v4_class(cls):
return ADtcRecord
@classmethod
def get_v6_class(cls):
return AAAADtcRecord
class ADtcRecord(ADtcRecordBase):
""" ADtcRecord: DTC A Record object.
Corresponds to WAPI object 'dtc:record:a'
A DTC A object represents a DNS Traffic Control Address (DTC A)
resource record. This resource record specifies mapping from domain
name to IPv4 address.
Attributes:
auto_created: Flag that indicates whether this record was
automatically created by NIOS.
comment: Comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
dtc_server: The name of the DTC Server object with which the DTC
record is associated.
ipv4addr: The IPv4 Address of the domain name.
ttl: The Time to Live (TTL) value.
use_ttl: Use flag for: ttl
"""
_infoblox_type = 'dtc:record:a'
_fields = ['auto_created', 'comment', 'disable', 'dtc_server', 'ipv4addr',
'ttl', 'use_ttl']
_search_for_update_fields = ['dtc_server', 'ipv4addr']
_updateable_search_fields = ['comment', 'ipv4addr']
_all_searchable_fields = ['comment', 'dtc_server', 'ipv4addr']
_return_fields = ['dtc_server', 'ipv4addr']
_remap = {'ip': 'ipv4addr'}
_shadow_fields = ['_ref', 'ip']
_ip_version = 4
class AAAADtcRecord(ADtcRecordBase):
""" AAAADtcRecord: DTC AAAA Record object.
Corresponds to WAPI object 'dtc:record:aaaa'
A DTC AAAA object represents a DNS Traffic Control IPv6 Address (DTC
AAAA) resource record. This resource record specifies mapping from
domain name to IPv6 address.
Attributes:
auto_created: Flag that indicates whether this record was
automatically created by NIOS.
comment: Comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
dtc_server: The name of the DTC Server object with which the DTC
record is associated.
ipv6addr: The IPv6 Address of the domain name.
ttl: The Time to Live (TTL) value.
use_ttl: Use flag for: ttl
"""
_infoblox_type = 'dtc:record:aaaa'
_fields = ['auto_created', 'comment', 'disable', 'dtc_server', 'ipv6addr',
'ttl', 'use_ttl']
_search_for_update_fields = ['dtc_server', 'ipv6addr']
_updateable_search_fields = ['comment', 'ipv6addr']
_all_searchable_fields = ['comment', 'dtc_server', 'ipv6addr']
_return_fields = ['dtc_server', 'ipv6addr']
_remap = {'ip': 'ipv6addr'}
_shadow_fields = ['_ref', 'ip']
_ip_version = 6
class CNAMEDtcRecord(InfobloxObject):
""" CNAMEDtcRecord: DTC CNAME Record object.
Corresponds to WAPI object 'dtc:record:cname'
A DTC CNAME object represents a DNS Traffic Control Canonical name
(DTC CNAME) resource record. DTC CNAME record maps domain name alias
to its canonical domain name.
Attributes:
auto_created: Flag that indicates whether this record was
automatically created by NIOS.
canonical: The canonical name of the host.
comment: Comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
dns_canonical: The canonical name as server by DNS protocol.
dtc_server: The name of the DTC Server object with which the DTC
record is associated.
ttl: The Time to Live (TTL) value.
use_ttl: Use flag for: ttl
"""
_infoblox_type = 'dtc:record:cname'
_fields = ['auto_created', 'canonical', 'comment', 'disable',
'dns_canonical', 'dtc_server', 'ttl', 'use_ttl']
_search_for_update_fields = ['canonical', 'dtc_server']
_updateable_search_fields = ['canonical', 'comment']
_all_searchable_fields = ['canonical', 'comment', 'dtc_server']
_return_fields = ['canonical', 'dtc_server']
_remap = {}
_shadow_fields = ['_ref']
class NaptrDtcRecord(InfobloxObject):
""" NaptrDtcRecord: DTC NAPTR Record object.
Corresponds to WAPI object 'dtc:record:naptr'
A DTC NAPTR object represents a DNS Traffic Control Naming Authority
Pointer (DTC NAPTR) resource record. This resource record specifies
a regular expression-based rewrite rule that, when applied to an
existing string, produces a new domain name or URI.
Attributes:
comment: Comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
dtc_server: The name of the DTC Server object with which the DTC
record is associated.
flags: The flags used to control the interpretation of the
fields for an NAPTR record object. Supported values for the
flags field are "U", "S", "P" and "A".
order: The order parameter of the NAPTR records. This parameter
specifies the order in which the NAPTR rules are applied
when multiple rules are present. Valid values are from 0 to
65535 (inclusive), in 32-bit unsigned integer format.
preference: The preference of the NAPTR record. The preference
field determines the order the NAPTR records are processed
when multiple records with the same order parameter are
present. Valid values are from 0 to 65535 (inclusive), in
32-bit unsigned integer format.
regexp: The regular expression-based rewriting rule of the NAPTR
record. This should be a POSIX compliant regular expression,
including the substitution rule and flags. Refer to RFC 2915
for the field syntax details.
replacement: The replacement field of the NAPTR record object.
For nonterminal NAPTR records, this field specifies the next
domain name to look up. This value can be in unicode format.
services: The services field of the NAPTR record object; maximum
128 characters. The services field contains protocol and
service identifiers, such as "http+E2U" or "SIPS+D2T".
ttl: The Time to Live (TTL) value.
use_ttl: Use flag for: ttl
"""
_infoblox_type = 'dtc:record:naptr'
_fields = ['comment', 'disable', 'dtc_server', 'flags', 'order',
'preference', 'regexp', 'replacement', 'services', 'ttl',
'use_ttl']
_search_for_update_fields = ['dtc_server', 'order', 'preference',
'replacement', 'services']
_updateable_search_fields = ['comment', 'flags', 'order', 'preference',
'replacement', 'services']
_all_searchable_fields = ['comment', 'dtc_server', 'flags', 'order',
'preference', 'replacement', 'services']
_return_fields = ['dtc_server', 'order', 'preference', 'regexp',
'replacement', 'services']
_remap = {}
_shadow_fields = ['_ref']
class SRVDtcRecord(InfobloxObject):
""" SRVDtcRecord: DTC SRV Record object.
Corresponds to WAPI object 'dtc:record:srv'
A DTC SRV object represents a DNS Traffic Control (DTC SRV) resource
record. This resource record provides information on available
services.
Attributes:
comment: Comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
dtc_server: The name of the DTC Server object with which the DTC
record is associated.
name: The name for an SRV record in unicode format.
port: The port of the SRV record. Valid values are from 0 to
65535 (inclusive), in 32-bit unsigned integer format.
priority: The priority of the SRV record. Valid values are from
0 to 65535 (inclusive), in 32-bit unsigned integer format.
target: The target of the SRV record in FQDN format. This value
can be in unicode format.
ttl: The Time to Live (TTL) value.
use_ttl: Use flag for: ttl
weight: The weight of the SRV record. Valid values are from 0 to
65535 (inclusive), in 32-bit unsigned integer format.
"""
_infoblox_type = 'dtc:record:srv'
_fields = ['comment', 'disable', 'dtc_server', 'name', 'port', 'priority',
'target', 'ttl', 'use_ttl', 'weight']
_search_for_update_fields = ['dtc_server', 'name', 'port', 'priority',
'target', 'weight']
_updateable_search_fields = ['comment', 'name', 'port', 'priority',
'target', 'weight']
_all_searchable_fields = ['comment', 'dtc_server', 'name', 'port',
'priority', 'target', 'weight']
_return_fields = ['dtc_server', 'name', 'port', 'priority', 'target',
'weight']
_remap = {}
_shadow_fields = ['_ref']
class DtcServer(InfobloxObject):
""" DtcServer: DTC Server object.
Corresponds to WAPI object 'dtc:server'
This is a DTC Server. Aka resource, virtual server or pool member.
Attributes:
auto_create_host_record: Enabling this option will auto-create a
single read-only A/AAAA/CNAME record corresponding to the
configured hostname and update it if the hostname changes.
comment: Comment for the DTC Server; maximum 256 characters.
disable: Determines whether the DTC Server is disabled or not.
When this is set to False, the fixed address is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
health: The health status.
host: The address or FQDN of the server.
monitors: List of IP/FQDN and monitor pairs to be used for
additional monitoring.
name: The DTC Server display name.
sni_hostname: The hostname for Server Name Indication (SNI) in
FQDN format.
use_sni_hostname: Use flag for: sni_hostname
"""
_infoblox_type = 'dtc:server'
_fields = ['auto_create_host_record', 'comment', 'disable', 'extattrs',
'health', 'host', 'monitors', 'name', 'sni_hostname',
'use_sni_hostname']
_search_for_update_fields = ['host', 'name']
_updateable_search_fields = ['comment', 'host', 'name', 'sni_hostname']
_all_searchable_fields = ['comment', 'host', 'name', 'sni_hostname']
_return_fields = ['comment', 'extattrs', 'host', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'monitors': DtcServerMonitor.from_dict,
}
class DtcTopology(InfobloxObject):
""" DtcTopology: DTC Topology object.
Corresponds to WAPI object 'dtc:topology'
A topology is a named list of ordered topology rules. Topology rules
map client IPs to pools or resources. They require the Topology DB
and named labels refer to it.
Attributes:
comment: The comment for the DTC TOPOLOGY monitor object;
maximum 256 characters.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
name: Display name of the DTC Topology.
rules: Topology rules.
"""
_infoblox_type = 'dtc:topology'
_fields = ['comment', 'extattrs', 'name', 'rules']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
class DtcTopologyLabel(InfobloxObject):
""" DtcTopologyLabel: DTC Topology Label object.
Corresponds to WAPI object 'dtc:topology:label'
This is the label of the field in the Topology database.
Attributes:
field: The name of the field in the Topology database the label
was obtained from.
label: The DTC Topology label name.
"""
_infoblox_type = 'dtc:topology:label'
_fields = ['field', 'label']
_search_for_update_fields = ['field', 'label']
_updateable_search_fields = []
_all_searchable_fields = ['field', 'label']
_return_fields = ['field', 'label']
_remap = {}
_shadow_fields = ['_ref']
class DtcTopologyRule(InfobloxObject):
""" DtcTopologyRule: DTC Topology Rule object.
Corresponds to WAPI object 'dtc:topology:rule'
Topology rules map client IPs to pools or resources. They require
the Topology DB and named labels refer to it. Can be created only as
part of topology.
Attributes:
dest_type: The type of the destination for this DTC Topology
rule.
destination_link: The reference to the destination DTC pool or
DTC server.
return_type: Type of the DNS response for rule.
sources: The conditions for matching sources. Should be empty to
set rule as default destination.
topology: The DTC Topology the rule belongs to.
valid: True if the label in the rule exists in the current
Topology DB. Always true for SUBNET rules. Rules with non-
existent labels may be configured but will never match.
"""
_infoblox_type = 'dtc:topology:rule'
_fields = ['dest_type', 'destination_link', 'return_type', 'sources',
'topology', 'valid']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = ['topology']
_return_fields = []
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'sources': DtcTopologyRuleSource.from_dict,
}
class DxlEndpoint(InfobloxObject):
""" DxlEndpoint: The Data Exchange Layer endpoint object.
Corresponds to WAPI object 'dxl:endpoint'
The DXL endpoint object represents the settings of a particular DXL
endpoint.
Attributes:
brokers: The list of DXL endpoint brokers. Note that you cannot
specify brokers and brokers_import_token at the same time.
brokers_import_token: The token returned by the uploadinit
function call in object fileop for a DXL broker
configuration file. Note that you cannot specify brokers and
brokers_import_token at the same time.
client_certificate_subject: The client certificate subject of a
DXL endpoint.
client_certificate_token: The token returned by the uploadinit
function call in object fileop for a DXL endpoint client
certificate.
client_certificate_valid_from: The timestamp when client
certificate for a DXL endpoint was created.
client_certificate_valid_to: The timestamp when the client
certificate for a DXL endpoint expires.
comment: The comment of a DXL endpoint.
disable: Determines whether a DXL endpoint is disabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
log_level: The log level for a DXL endpoint.
name: The name of a DXL endpoint.
outbound_member_type: The outbound member that will generate
events.
outbound_members: The list of members for outbound events.
template_instance: The DXL template instance. You cannot change
the parameters of the DXL endpoint template instance.
timeout: The timeout of session management (in seconds).
topics: DXL topics
vendor_identifier: The vendor identifier.
wapi_user_name: The user name for WAPI integration.
wapi_user_password: The user password for WAPI integration.
"""
_infoblox_type = 'dxl:endpoint'
_fields = ['brokers', 'brokers_import_token', 'client_certificate_subject',
'client_certificate_token', 'client_certificate_valid_from',
'client_certificate_valid_to', 'comment', 'disable', 'extattrs',
'log_level', 'name', 'outbound_member_type', 'outbound_members',
'template_instance', 'timeout', 'topics', 'vendor_identifier',
'wapi_user_name', 'wapi_user_password']
_search_for_update_fields = ['name', 'outbound_member_type']
_updateable_search_fields = ['log_level', 'name', 'outbound_member_type',
'vendor_identifier']
_all_searchable_fields = ['log_level', 'name', 'outbound_member_type',
'vendor_identifier']
_return_fields = ['disable', 'extattrs', 'name', 'outbound_member_type']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'brokers': DxlEndpointBroker.from_dict,
}
def clear_outbound_worker_log(self, *args, **kwargs):
return self._call_func("clear_outbound_worker_log", *args, **kwargs)
def test_broker_connectivity(self, *args, **kwargs):
return self._call_func("test_broker_connectivity", *args, **kwargs)
class EADefinition(InfobloxObject):
""" EADefinition: Extensible Attribute Definition object.
Corresponds to WAPI object 'extensibleattributedef'
The Extensible Attribute Definition object is used to retrieve the
definition of an extensible attribute.
Defined attributes can be associated with other Infoblox objects:
DHCP Fixed Address, DHCP Fixed Address Template, DHCP Network, DHCP
Network Template, DHCP Range, DHCP Range Template, DNS Host, DHCP
Failover and DNS Zone objects that support extensible attributes
Attributes:
allowed_object_types: The object types this extensible attribute
is allowed to associate with.
comment: Comment for the Extensible Attribute Definition;
maximum 256 characters.
default_value: Default value used to pre-populate the attribute
value in the GUI. For email, URL, and string types, the
value is a string with a maximum of 256 characters. For an
integer, the value is an integer from -2147483648 through
2147483647. For a date, the value is the number of seconds
that have elapsed since January 1st, 1970 UTC.
descendants_action: This option describes the action that must
be taken on the extensible attribute by its descendant in
case the 'Inheritable' flag is set.
flags: This field contains extensible attribute flags. Possible
values: (A)udited, (C)loud API, Cloud (G)master,
(I)nheritable, (L)isted, (M)andatory value, MGM (P)rivate,
(R)ead Only, (S)ort enum values, Multiple (V)alues If there
are two or more flags in the field, you must list them
according to the order they are listed above.For example,
'CR' is a valid value for the 'flags' field because C =
Cloud API is listed before R = Read only. However, the value
'RC' is invalid because the order for the 'flags' field is
broken.
list_values: List of Values. Applicable if the extensible
attribute type is ENUM.
max: Maximum allowed value of extensible attribute. Applicable
if the extensible attribute type is INTEGER.
min: Minimum allowed value of extensible attribute. Applicable
if the extensible attribute type is INTEGER.
name: The name of the Extensible Attribute Definition.
namespace: Namespace for the Extensible Attribute Definition.
type: Type for the Extensible Attribute Definition.
"""
_infoblox_type = 'extensibleattributedef'
_fields = ['allowed_object_types', 'comment', 'default_value',
'descendants_action', 'flags', 'list_values', 'max', 'min',
'name', 'namespace', 'type']
_search_for_update_fields = ['name', 'type']
_updateable_search_fields = ['comment', 'name', 'type']
_all_searchable_fields = ['comment', 'name', 'namespace', 'type']
_return_fields = ['comment', 'default_value', 'name', 'type']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'list_values': ExtensibleattributedefListvalues.from_dict,
}
class Fileop(InfobloxObject):
""" Fileop: File operations object.
Corresponds to WAPI object 'fileop'
This object controls uploading and downloading data from the
appliance.
Attributes:
"""
_infoblox_type = 'fileop'
_fields = []
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = []
_remap = {}
_shadow_fields = ['_ref']
def upload_file(self, *args, **kwargs):
return self.connector.upload_file(*args, **kwargs)
def download_file(self, *args, **kwargs):
return self.connector.download_file(*args, **kwargs)
def csv_error_log(self, *args, **kwargs):
return self._call_func("csv_error_log", *args, **kwargs)
def csv_export(self, *args, **kwargs):
return self._call_func("csv_export", *args, **kwargs)
def csv_import(self, *args, **kwargs):
return self._call_func("csv_import", *args, **kwargs)
def csv_snapshot_file(self, *args, **kwargs):
return self._call_func("csv_snapshot_file", *args, **kwargs)
def csv_uploaded_file(self, *args, **kwargs):
return self._call_func("csv_uploaded_file", *args, **kwargs)
def download_atp_rule_update(self, *args, **kwargs):
return self._call_func("download_atp_rule_update", *args, **kwargs)
def download_pool_status(self, *args, **kwargs):
return self._call_func("download_pool_status", *args, **kwargs)
def downloadcertificate(self, *args, **kwargs):
return self._call_func("downloadcertificate", *args, **kwargs)
def downloadcomplete(self, *args, **kwargs):
return self._call_func("downloadcomplete", *args, **kwargs)
def generatecsr(self, *args, **kwargs):
return self._call_func("generatecsr", *args, **kwargs)
def generatedxlendpointcerts(self, *args, **kwargs):
return self._call_func("generatedxlendpointcerts", *args, **kwargs)
def generatesafenetclientcert(self, *args, **kwargs):
return self._call_func("generatesafenetclientcert", *args, **kwargs)
def generateselfsignedcert(self, *args, **kwargs):
return self._call_func("generateselfsignedcert", *args, **kwargs)
def get_file_url(self, *args, **kwargs):
return self._call_func("get_file_url", *args, **kwargs)
def get_last_uploaded_atp_ruleset(self, *args, **kwargs):
return self._call_func("get_last_uploaded_atp_ruleset", *args,
**kwargs)
def get_log_files(self, *args, **kwargs):
return self._call_func("get_log_files", *args, **kwargs)
def get_support_bundle(self, *args, **kwargs):
return self._call_func("get_support_bundle", *args, **kwargs)
def getgriddata(self, *args, **kwargs):
return self._call_func("getgriddata", *args, **kwargs)
def getleasehistoryfiles(self, *args, **kwargs):
return self._call_func("getleasehistoryfiles", *args, **kwargs)
def getmemberdata(self, *args, **kwargs):
return self._call_func("getmemberdata", *args, **kwargs)
def getsafenetclientcert(self, *args, **kwargs):
return self._call_func("getsafenetclientcert", *args, **kwargs)
def read(self, *args, **kwargs):
return self._call_func("read", *args, **kwargs)
def restapi_template_export(self, *args, **kwargs):
return self._call_func("restapi_template_export", *args, **kwargs)
def restapi_template_export_schema(self, *args, **kwargs):
return self._call_func("restapi_template_export_schema", *args,
**kwargs)
def restapi_template_import(self, *args, **kwargs):
return self._call_func("restapi_template_import", *args, **kwargs)
def restoredatabase(self, *args, **kwargs):
return self._call_func("restoredatabase", *args, **kwargs)
def restoredtcconfig(self, *args, **kwargs):
return self._call_func("restoredtcconfig", *args, **kwargs)
def set_captive_portal_file(self, *args, **kwargs):
return self._call_func("set_captive_portal_file", *args, **kwargs)
def set_dhcp_leases(self, *args, **kwargs):
return self._call_func("set_dhcp_leases", *args, **kwargs)
def set_downgrade_file(self, *args, **kwargs):
return self._call_func("set_downgrade_file", *args, **kwargs)
def set_last_uploaded_atp_ruleset(self, *args, **kwargs):
return self._call_func("set_last_uploaded_atp_ruleset", *args,
**kwargs)
def set_upgrade_file(self, *args, **kwargs):
return self._call_func("set_upgrade_file", *args, **kwargs)
def setdiscoverycsv(self, *args, **kwargs):
return self._call_func("setdiscoverycsv", *args, **kwargs)
def setfiledest(self, *args, **kwargs):
return self._call_func("setfiledest", *args, **kwargs)
def setleasehistoryfiles(self, *args, **kwargs):
return self._call_func("setleasehistoryfiles", *args, **kwargs)
def setmemberdata(self, *args, **kwargs):
return self._call_func("setmemberdata", *args, **kwargs)
def update_atp_ruleset(self, *args, **kwargs):
return self._call_func("update_atp_ruleset", *args, **kwargs)
def update_licenses(self, *args, **kwargs):
return self._call_func("update_licenses", *args, **kwargs)
def uploadcertificate(self, *args, **kwargs):
return self._call_func("uploadcertificate", *args, **kwargs)
def uploadinit(self, *args, **kwargs):
return self._call_func("uploadinit", *args, **kwargs)
def uploadserviceaccount(self, *args, **kwargs):
return self._call_func("uploadserviceaccount", *args, **kwargs)
class Filterfingerprint(InfobloxObject):
""" Filterfingerprint: DHCP Fingerprint Filter object.
Corresponds to WAPI object 'filterfingerprint'
The appliance can filter an address request by the DHCP fingerprint
of a requesting client. Depending on how you apply DHCP fingerprint
filters, the appliance can grant or deny the address request if the
requesting client matches the filter criteria.
Only superuser can add/modify/delete fingerprint filters.
Attributes:
comment: The descriptive comment.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
fingerprint: The list of DHCP Fingerprint objects.
name: The name of a DHCP Fingerprint Filter object.
"""
_infoblox_type = 'filterfingerprint'
_fields = ['comment', 'extattrs', 'fingerprint', 'name']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
class Filtermac(InfobloxObject):
""" Filtermac: DHCP MAC Address Filter object.
Corresponds to WAPI object 'filtermac'
An Infoblox appliance can filter address requests by the MAC address
and/or vendor prefix (i.e., the first 6 hexadecimal characters of
the MAC address) of a requesting host. The filter instructs the
appliance to either grant or deny an address request if the
requesting host matches the filter.
Attributes:
comment: The descriptive comment of a DHCP MAC Filter object.
default_mac_address_expiration: The default MAC expiration time
of the DHCP MAC Address Filter object.By default, the MAC
address filter never expires; otherwise, it is the absolute
interval when the MAC address filter expires. The maximum
value can extend up to 4294967295 secs. The minimum value is
60 secs (1 min).
disable: Determines if the DHCP Fingerprint object is disabled
or not.
enforce_expiration_times: The flag to enforce MAC address
expiration of the DHCP MAC Address Filter object.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
lease_time: The length of time the DHCP server leases an IP
address to a client. The lease time applies to hosts that
meet the filter criteria.
name: The name of a DHCP MAC Filter object.
never_expires: Determines if DHCP MAC Filter never expires or
automatically expires.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
reserved_for_infoblox: This is reserved for writing comments
related to the particular MAC address filter. The length of
comment cannot exceed 1024 bytes.
"""
_infoblox_type = 'filtermac'
_fields = ['comment', 'default_mac_address_expiration', 'disable',
'enforce_expiration_times', 'extattrs', 'lease_time', 'name',
'never_expires', 'options', 'reserved_for_infoblox']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'options': DhcpOption.from_dict,
}
class Filternac(InfobloxObject):
""" Filternac: DHCP NAC Filter object.
Corresponds to WAPI object 'filternac'
If NAC authentication is configured, the appliance receives
authentication responses from NAC authentication servers, and it
grants or denies a lease request if the authentication response
matches conditions defined by the NAC filters.
Only superuser can add/modify/delete NAC filters.
Attributes:
comment: The descriptive comment of a DHCP NAC Filter object.
expression: The conditional expression of a DHCP NAC Filter
object.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
lease_time: The length of time the DHCP server leases an IP
address to a client. The lease time applies to hosts that
meet the filter criteria.
name: The name of a DHCP NAC Filter object.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
"""
_infoblox_type = 'filternac'
_fields = ['comment', 'expression', 'extattrs', 'lease_time', 'name',
'options']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'options': DhcpOption.from_dict,
}
class Filteroption(InfobloxObject):
""" Filteroption: DHCP filter option object.
Corresponds to WAPI object 'filteroption'
In the ISC DHCP terms, it defines a class of clients that match a
particular (option, value) pair. To define an option filter, add
Option to the DHCP Filter object.
Only superuser can add/modify/delete option filters.
Attributes:
apply_as_class: Determines if apply as class is enabled or not.
If this flag is set to "true" the filter is treated as
global DHCP class, e.g it is written to dhcpd config file
even if it is not present in any DHCP range.
bootfile: A name of boot file of a DHCP filter option object.
bootserver: Determines the boot server of a DHCP filter option
object. You can specify the name and/or IP address of the
boot server that host needs to boot.
comment: The descriptive comment of a DHCP filter option object.
expression: The conditional expression of a DHCP filter option
object.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
lease_time: Determines the lease time of a DHCP filter option
object.
name: The name of a DHCP option filter object.
next_server: Determines the next server of a DHCP filter option
object. You can specify the name and/or IP address of the
next server that the host needs to boot.
option_list: An array of DHCP option structs that lists the DHCP
options associated with the object.
option_space: The option space of a DHCP filter option object.
pxe_lease_time: Determines the PXE (Preboot Execution
Environment) lease time of a DHCP filter option object. To
specify the duration of time it takes a host to connect to a
boot server, such as a TFTP server, and download the file it
needs to boot.
"""
_infoblox_type = 'filteroption'
_fields = ['apply_as_class', 'bootfile', 'bootserver', 'comment',
'expression', 'extattrs', 'lease_time', 'name', 'next_server',
'option_list', 'option_space', 'pxe_lease_time']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'option_list': DhcpOption.from_dict,
}
class Filterrelayagent(InfobloxObject):
""" Filterrelayagent: The filter relay agent object.
Corresponds to WAPI object 'filterrelayagent'
The Infoblox appliance can screen address requests through relay
agent filters (DHCP option 82) that assist the agents in forwarding
address assignments across the proper circuit. When a relay agent
receives the DHCPDISCOVER message, it can add one or two agent IDs
in the DHCP option 82 suboption fields to the message. If the agent
ID strings match those defined in a relay agent filter applied to a
DHCP address range, the Infoblox appliance either assigns addresses
from that range or denies the request (based on previously
configured parameters; that is, the Grant lease and Deny lease
parameters).
Attributes:
circuit_id_name: The circuit_id_name of a DHCP relay agent
filter object. This filter identifies the circuit between
the remote host and the relay agent. For example, the
identifier can be the ingress interface number of the
circuit access unit, perhaps concatenated with the unit ID
number and slot number. Also, the circuit ID can be an ATM
virtual circuit ID or cable data virtual circuit ID.
circuit_id_substring_length: The circuit ID substring length.
circuit_id_substring_offset: The circuit ID substring offset.
comment: A descriptive comment of a DHCP relay agent filter
object.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
is_circuit_id: The circuit ID matching rule of a DHCP relay
agent filter object. The circuit_id value takes effect only
if the value is "MATCHES_VALUE".
is_circuit_id_substring: Determines if the substring of circuit
ID, instead of the full circuit ID, is matched.
is_remote_id: The remote ID matching rule of a DHCP relay agent
filter object. The remote_id value takes effect only if the
value is Matches_Value.
is_remote_id_substring: Determines if the substring of remote
ID, instead of the full remote ID, is matched.
name: The name of a DHCP relay agent filter object.
remote_id_name: The remote ID name attribute of a relay agent
filter object. This filter identifies the remote host. The
remote ID name can represent many different things such as
the caller ID telephone number for a dial-up connection, a
user name for logging in to the ISP, a modem ID, etc. When
the remote ID name is defined on the relay agent, the DHCP
server will have a trusted relationship to identify the
remote host. The remote ID name is considered as a trusted
identifier.
remote_id_substring_length: The remote ID substring length.
remote_id_substring_offset: The remote ID substring offset.
"""
_infoblox_type = 'filterrelayagent'
_fields = ['circuit_id_name', 'circuit_id_substring_length',
'circuit_id_substring_offset', 'comment', 'extattrs',
'is_circuit_id', 'is_circuit_id_substring', 'is_remote_id',
'is_remote_id_substring', 'name', 'remote_id_name',
'remote_id_substring_length', 'remote_id_substring_offset']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
class Fingerprint(InfobloxObject):
""" Fingerprint: DHCP Fingerprint object.
Corresponds to WAPI object 'fingerprint'
The DHCP Fingerprint object is part of the Fingerprint filter.
Only 'CUSTOM' fingerprint can be added or modified. The 'STANDARD'
fingerprint can be disabled only.
Attributes:
comment: Comment for the Fingerprint; maximum 256 characters.
device_class: A class of DHCP Fingerprint object; maximum 256
characters.
disable: Determines if the DHCP Fingerprint object is disabled
or not.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
ipv6_option_sequence: A list (comma separated list) of IPv6
option number sequences of the device or operating system.
name: Name of the DHCP Fingerprint object.
option_sequence: A list (comma separated list) of IPv4 option
number sequences of the device or operating system.
type: The type of the DHCP Fingerprint object.
vendor_id: A list of vendor IDs of the device or operating
system.
"""
_infoblox_type = 'fingerprint'
_fields = ['comment', 'device_class', 'disable', 'extattrs',
'ipv6_option_sequence', 'name', 'option_sequence', 'type',
'vendor_id']
_search_for_update_fields = ['device_class', 'name']
_updateable_search_fields = ['comment', 'device_class', 'name', 'type']
_all_searchable_fields = ['comment', 'device_class', 'name', 'type']
_return_fields = ['comment', 'device_class', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
class FixedAddress(InfobloxObject):
@classmethod
def get_v4_class(cls):
return FixedAddressV4
@classmethod
def get_v6_class(cls):
return FixedAddressV6
class FixedAddressV4(FixedAddress):
""" FixedAddressV4: DHCP Fixed Address object.
Corresponds to WAPI object 'fixedaddress'
A fixed address is a specific IP address that a DHCP server always
assigns when a lease request comes from a particular MAC address of
the client.
Attributes:
agent_circuit_id: The agent circuit ID for the fixed address.
agent_remote_id: The agent remote ID for the fixed address.
allow_telnet: This field controls whether the credential is used
for both the Telnet and SSH credentials. If set to False,
the credential is used only for SSH.
always_update_dns: This field controls whether only the DHCP
server is allowed to update DNS, regardless of the DHCP
client requests.
bootfile: The bootfile name for the fixed address. You can
configure the DHCP server to support clients that use the
boot file name option in their DHCPREQUEST messages.
bootserver: The bootserver address for the fixed address. You
can specify the name and/or IP address of the boot server
that the host needs to boot.The boot server IPv4 Address or
name in FQDN format.
cli_credentials: The CLI credentials for the fixed address.
client_identifier_prepend_zero: This field controls whether
there is a prepend for the dhcp-client-identifier of a fixed
address.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the fixed address; maximum 256 characters.
ddns_domainname: The dynamic DNS domain name the appliance uses
specifically for DDNS updates for this fixed address.
ddns_hostname: The DDNS host name for this fixed address.
deny_bootp: If set to true, BOOTP settings are disabled and
BOOTP requests will be denied.
device_description: The description of the device.
device_location: The location of the device.
device_type: The type of the device.
device_vendor: The vendor of the device.
dhcp_client_identifier: The DHCP client ID for the fixed
address.
disable: Determines whether a fixed address is disabled or not.
When this is set to False, the fixed address is enabled.
disable_discovery: Determines if the discovery for this fixed
address is disabled or not. False means that the discovery
is enabled.
discover_now_status: The discovery status of this fixed address.
discovered_data: The discovered data for this fixed address.
enable_ddns: The dynamic DNS updates flag of a DHCP Fixed
Address object. If set to True, the DHCP server sends DDNS
updates to DNS servers in the same Grid, and to external DNS
servers.
enable_immediate_discovery: Determines if the discovery for the
fixed address should be immediately enabled.
enable_pxe_lease_time: Set this to True if you want the DHCP
server to use a different lease time for PXE clients.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
ignore_dhcp_option_list_request: If this field is set to False,
the appliance returns all DHCP options the client is
eligible to receive, rather than only the list of options
the client has requested.
ipv4addr: The IPv4 Address of the fixed address.
is_invalid_mac: This flag reflects whether the MAC address for
this fixed address is invalid.
logic_filter_rules: This field contains the logic filters to be
applied on the this fixed address.This list corresponds to
the match rules that are written to the dhcpd configuration
file.
mac: The MAC address value for this fixed address.
match_client: The match_client value for this fixed address.
Valid values are:"MAC_ADDRESS": The fixed IP address is
leased to the matching MAC address."CLIENT_ID": The fixed IP
address is leased to the matching DHCP client
identifier."RESERVED": The fixed IP address is reserved for
later use with a MAC address that only has
zeros."CIRCUIT_ID": The fixed IP address is leased to the
DHCP client with a matching circuit ID. Note that the
"agent_circuit_id" field must be set in this
case."REMOTE_ID": The fixed IP address is leased to the DHCP
client with a matching remote ID. Note that the
"agent_remote_id" field must be set in this case.
ms_ad_user_data: The Microsoft Active Directory user related
information.
ms_options: This field contains the Microsoft DHCP options for
this fixed address.
ms_server: The Microsoft server associated with this fixed
address.
name: This field contains the name of this fixed address.
network: The network to which this fixed address belongs, in
IPv4 Address/CIDR format.
network_view: The name of the network view in which this fixed
address resides.
nextserver: The name in FQDN and/or IPv4 Address format of the
next server that the host needs to boot.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
pxe_lease_time: The PXE lease time value for a DHCP Fixed
Address object. Some hosts use PXE (Preboot Execution
Environment) to boot remotely from a server. To better
manage your IP resources, set a different lease time for PXE
boot requests. You can configure the DHCP server to allocate
an IP address with a shorter lease time to hosts that send
PXE boot requests, so IP addresses are not leased longer
than necessary.A 32-bit unsigned integer that represents the
duration, in seconds, for which the update is cached. Zero
indicates that the update is not cached.
reserved_interface: The ref to the reserved interface to which
the device belongs.
restart_if_needed: Restarts the member service. The
restart_if_needed flag can trigger a restart on DHCP
services only when it is enabled on CP member.
snmp3_credential: The SNMPv3 credential for this fixed address.
snmp_credential: The SNMPv1 or SNMPv2 credential for this fixed
address.
template: If set on creation, the fixed address will be created
according to the values specified in the named template.
use_bootfile: Use flag for: bootfile
use_bootserver: Use flag for: bootserver
use_cli_credentials: If set to true, the CLI credential will
override member-level settings.
use_ddns_domainname: Use flag for: ddns_domainname
use_deny_bootp: Use flag for: deny_bootp
use_enable_ddns: Use flag for: enable_ddns
use_ignore_dhcp_option_list_request: Use flag for:
ignore_dhcp_option_list_request
use_logic_filter_rules: Use flag for: logic_filter_rules
use_ms_options: Use flag for: ms_options
use_nextserver: Use flag for: nextserver
use_options: Use flag for: options
use_pxe_lease_time: Use flag for: pxe_lease_time
use_snmp3_credential: Determines if the SNMPv3 credential should
be used for the fixed address.
use_snmp_credential: If set to true, the SNMP credential will
override member-level settings.
"""
_infoblox_type = 'fixedaddress'
_fields = ['agent_circuit_id', 'agent_remote_id', 'allow_telnet',
'always_update_dns', 'bootfile', 'bootserver',
'cli_credentials', 'client_identifier_prepend_zero',
'cloud_info', 'comment', 'ddns_domainname', 'ddns_hostname',
'deny_bootp', 'device_description', 'device_location',
'device_type', 'device_vendor', 'dhcp_client_identifier',
'disable', 'disable_discovery', 'discover_now_status',
'discovered_data', 'enable_ddns', 'enable_immediate_discovery',
'enable_pxe_lease_time', 'extattrs',
'ignore_dhcp_option_list_request', 'ipv4addr', 'is_invalid_mac',
'logic_filter_rules', 'mac', 'match_client', 'ms_ad_user_data',
'ms_options', 'ms_server', 'name', 'network', 'network_view',
'nextserver', 'options', 'pxe_lease_time', 'reserved_interface',
'restart_if_needed', 'snmp3_credential', 'snmp_credential',
'template', 'use_bootfile', 'use_bootserver',
'use_cli_credentials', 'use_ddns_domainname', 'use_deny_bootp',
'use_enable_ddns', 'use_ignore_dhcp_option_list_request',
'use_logic_filter_rules', 'use_ms_options', 'use_nextserver',
'use_options', 'use_pxe_lease_time', 'use_snmp3_credential',
'use_snmp_credential']
_search_for_update_fields = ['ipv4addr', 'network_view', 'mac']
_updateable_search_fields = ['comment', 'device_description',
'device_location', 'device_type',
'device_vendor', 'ipv4addr', 'mac',
'match_client', 'ms_server', 'network',
'network_view']
_all_searchable_fields = ['comment', 'device_description',
'device_location', 'device_type',
'device_vendor', 'ipv4addr', 'mac',
'match_client', 'ms_server', 'network',
'network_view']
_return_fields = ['extattrs', 'ipv4addr', 'network_view', 'mac']
_remap = {'ipv4addr': 'ip'}
_shadow_fields = ['_ref', 'ip']
_ip_version = 4
@property
def ip(self):
if hasattr(self, '_ip'):
return str(self._ip)
# This object represents both ipv4 and ipv6 objects, so it doesn't need
# versioned object for that. Just set v4 or v6 field in addition
# to setting shadow field 'ip' itself.
@ip.setter
def ip(self, ip):
self._ip = ip
_custom_field_processing = {
'cli_credentials': DiscoveryClicredential.from_dict,
'logic_filter_rules': Logicfilterrule.from_dict,
'ms_options': Msdhcpoption.from_dict,
'options': DhcpOption.from_dict,
}
class FixedAddressV6(FixedAddress):
""" FixedAddressV6: DHCP IPv6 Fixed Address object.
Corresponds to WAPI object 'ipv6fixedaddress'
A IPv6 fixed address is a specific IP address that a DHCP server
always assigns when a lease request comes from a particular DUID of
the client.
Attributes:
address_type: The address type value for this IPv6 fixed
address.When the address type is "ADDRESS", a value for the
'ipv6addr' member is required. When the address type is
"PREFIX", values for 'ipv6prefix' and 'ipv6prefix_bits' are
required. When the address type is "BOTH", values for
'ipv6addr', 'ipv6prefix', and 'ipv6prefix_bits' are all
required.
allow_telnet: This field controls whether the credential is used
for both the Telnet and SSH credentials. If set to False,
the credential is used only for SSH.
cli_credentials: The CLI credentials for the IPv6 fixed address.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the fixed address; maximum 256 characters.
device_description: The description of the device.
device_location: The location of the device.
device_type: The type of the device.
device_vendor: The vendor of the device.
disable: Determines whether a fixed address is disabled or not.
When this is set to False, the IPv6 fixed address is
enabled.
disable_discovery: Determines if the discovery for this IPv6
fixed address is disabled or not. False means that the
discovery is enabled.
discover_now_status: The discovery status of this IPv6 fixed
address.
discovered_data: The discovered data for this IPv6 fixed
address.
domain_name: The domain name for this IPv6 fixed address.
domain_name_servers: The IPv6 addresses of DNS recursive name
servers to which the DHCP client can send name resolution
requests. The DHCP server includes this information in the
DNS Recursive Name Server option in Advertise, Rebind,
Information-Request, and Reply messages.
duid: The DUID value for this IPv6 fixed address.
enable_immediate_discovery: Determines if the discovery for the
IPv6 fixed address should be immediately enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
ipv6addr: The IPv6 Address of the DHCP IPv6 fixed address.
ipv6prefix: The IPv6 Address prefix of the DHCP IPv6 fixed
address.
ipv6prefix_bits: Prefix bits of the DHCP IPv6 fixed address.
logic_filter_rules: This field contains the logic filters to be
applied to this IPv6 fixed address.This list corresponds to
the match rules that are written to the DHCPv6 configuration
file.
ms_ad_user_data: The Microsoft Active Directory user related
information.
name: This field contains the name of this IPv6 fixed address.
network: The network to which this IPv6 fixed address belongs,
in IPv6 Address/CIDR format.
network_view: The name of the network view in which this IPv6
fixed address resides.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
preferred_lifetime: The preferred lifetime value for this DHCP
IPv6 fixed address object.
reserved_interface: The reference to the reserved interface to
which the device belongs.
restart_if_needed: Restarts the member service. The
restart_if_needed flag can trigger a restart on DHCP
services only when it is enabled on CP member.
snmp3_credential: The SNMPv3 credential for this IPv6 fixed
address.
snmp_credential: The SNMPv1 or SNMPv2 credential for this IPv6
fixed address.
template: If set on creation, the IPv6 fixed address will be
created according to the values specified in the named
template.
use_cli_credentials: If set to true, the CLI credential will
override member-level settings.
use_domain_name: Use flag for: domain_name
use_domain_name_servers: Use flag for: domain_name_servers
use_logic_filter_rules: Use flag for: logic_filter_rules
use_options: Use flag for: options
use_preferred_lifetime: Use flag for: preferred_lifetime
use_snmp3_credential: Determines if the SNMPv3 credential should
be used for the IPv6 fixed address.
use_snmp_credential: If set to true, SNMP credential will
override member level settings.
use_valid_lifetime: Use flag for: valid_lifetime
valid_lifetime: The valid lifetime value for this DHCP IPv6
Fixed Address object.
"""
_infoblox_type = 'ipv6fixedaddress'
_fields = ['address_type', 'allow_telnet', 'cli_credentials', 'cloud_info',
'comment', 'device_description', 'device_location',
'device_type', 'device_vendor', 'disable', 'disable_discovery',
'discover_now_status', 'discovered_data', 'domain_name',
'domain_name_servers', 'duid', 'enable_immediate_discovery',
'extattrs', 'ipv6addr', 'ipv6prefix', 'ipv6prefix_bits',
'logic_filter_rules', 'ms_ad_user_data', 'name', 'network',
'network_view', 'options', 'preferred_lifetime',
'reserved_interface', 'restart_if_needed', 'snmp3_credential',
'snmp_credential', 'template', 'use_cli_credentials',
'use_domain_name', 'use_domain_name_servers',
'use_logic_filter_rules', 'use_options',
'use_preferred_lifetime', 'use_snmp3_credential',
'use_snmp_credential', 'use_valid_lifetime', 'valid_lifetime']
_search_for_update_fields = ['duid', 'ipv6addr', 'network_view']
_updateable_search_fields = ['address_type', 'comment',
'device_description', 'device_location',
'device_type', 'device_vendor', 'duid',
'ipv6addr', 'ipv6prefix', 'ipv6prefix_bits',
'network', 'network_view']
_all_searchable_fields = ['address_type', 'comment', 'device_description',
'device_location', 'device_type',
'device_vendor', 'duid', 'ipv6addr',
'ipv6prefix', 'ipv6prefix_bits', 'network',
'network_view']
_return_fields = ['duid', 'extattrs', 'ipv6addr', 'network_view']
_remap = {'ipv6addr': 'ip'}
_shadow_fields = ['_ref', 'mac', 'ip']
_ip_version = 6
"""Set mac and duid fields
To have common interface with FixedAddress accept mac address
and set duid as a side effect.
'mac' was added to _shadow_fields to prevent sending it out over wapi.
"""
@property
def mac(self):
return self._mac
@mac.setter
def mac(self, mac):
self._mac = mac
if mac:
self.duid = ib_utils.generate_duid(mac)
elif not hasattr(self, 'duid'):
self.duid = None
@property
def ip(self):
if hasattr(self, '_ip'):
return str(self._ip)
# This object represents both ipv4 and ipv6 objects, so it doesn't need
# versioned object for that. Just set v4 or v6 field in addition
# to setting shadow field 'ip' itself.
@ip.setter
def ip(self, ip):
self._ip = ip
_custom_field_processing = {
'cli_credentials': DiscoveryClicredential.from_dict,
'logic_filter_rules': Logicfilterrule.from_dict,
'options': DhcpOption.from_dict,
}
class FixedAddressTemplate(InfobloxObject):
@classmethod
def get_v4_class(cls):
return FixedAddressTemplateV4
@classmethod
def get_v6_class(cls):
return FixedAddressTemplateV6
class FixedAddressTemplateV4(FixedAddressTemplate):
""" FixedAddressTemplateV4: The fixed address template object.
Corresponds to WAPI object 'fixedaddresstemplate'
The fixed address template used to create a fixed address objects in
a quick and consistent way. Fixed address object created from a
fixed address template will inherit most properties defined in fixed
address template object so most of the fixed address template
properties are the same as the fixed address object properties.
Attributes:
bootfile: The boot file name for the fixed address. You can
configure the DHCP server to support clients that use the
boot file name option in their DHCPREQUEST messages.
bootserver: The boot server address for the fixed address. You
can specify the name and/or IP address of the boot server
that the host needs to boot.The boot server IPv4 Address or
name in FQDN format.
comment: A descriptive comment of a fixed address template
object.
ddns_domainname: The dynamic DNS domain name the appliance uses
specifically for DDNS updates for this fixed address.
ddns_hostname: The DDNS host name for this fixed address.
deny_bootp: Determines if BOOTP settings are disabled and BOOTP
requests will be denied.
enable_ddns: Determines if the DHCP server sends DDNS updates to
DNS servers in the same Grid, and to external DNS servers.
enable_pxe_lease_time: Set this to True if you want the DHCP
server to use a different lease time for PXE clients.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
ignore_dhcp_option_list_request: If this field is set to False,
the appliance returns all DHCP options the client is
eligible to receive, rather than only the list of options
the client has requested.
logic_filter_rules: This field contains the logic filters to be
applied on this fixed address.This list corresponds to the
match rules that are written to the dhcpd configuration
file.
name: The name of a fixed address template object.
nextserver: The name in FQDN and/or IPv4 Address format of the
next server that the host needs to boot.
number_of_addresses: The number of addresses for this fixed
address.
offset: The start address offset for this fixed address.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
pxe_lease_time: The PXE lease time value for a DHCP Fixed
Address object. Some hosts use PXE (Preboot Execution
Environment) to boot remotely from a server. To better
manage your IP resources, set a different lease time for PXE
boot requests. You can configure the DHCP server to allocate
an IP address with a shorter lease time to hosts that send
PXE boot requests, so IP addresses are not leased longer
than necessary.A 32-bit unsigned integer that represents the
duration, in seconds, for which the update is cached. Zero
indicates that the update is not cached.
use_bootfile: Use flag for: bootfile
use_bootserver: Use flag for: bootserver
use_ddns_domainname: Use flag for: ddns_domainname
use_deny_bootp: Use flag for: deny_bootp
use_enable_ddns: Use flag for: enable_ddns
use_ignore_dhcp_option_list_request: Use flag for:
ignore_dhcp_option_list_request
use_logic_filter_rules: Use flag for: logic_filter_rules
use_nextserver: Use flag for: nextserver
use_options: Use flag for: options
use_pxe_lease_time: Use flag for: pxe_lease_time
"""
_infoblox_type = 'fixedaddresstemplate'
_fields = ['bootfile', 'bootserver', 'comment', 'ddns_domainname',
'ddns_hostname', 'deny_bootp', 'enable_ddns',
'enable_pxe_lease_time', 'extattrs',
'ignore_dhcp_option_list_request', 'logic_filter_rules', 'name',
'nextserver', 'number_of_addresses', 'offset', 'options',
'pxe_lease_time', 'use_bootfile', 'use_bootserver',
'use_ddns_domainname', 'use_deny_bootp', 'use_enable_ddns',
'use_ignore_dhcp_option_list_request', 'use_logic_filter_rules',
'use_nextserver', 'use_options', 'use_pxe_lease_time']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
_ip_version = 4
_custom_field_processing = {
'logic_filter_rules': Logicfilterrule.from_dict,
'options': DhcpOption.from_dict,
}
class FixedAddressTemplateV6(FixedAddressTemplate):
""" FixedAddressTemplateV6: The IPv6 fixed address template object.
Corresponds to WAPI object 'ipv6fixedaddresstemplate'
The IPv6 fixed address template used to create IPv6 fixed address
objects in a quick and consistent way. An IPv6 fixed address object
created from an IPv6 fixed address template will inherit most
properties defined in the IPv6 fixed address template object;
therefor, most of the IPv6 fixed address template properties are the
same as the fixed address object properties.
Attributes:
comment: A descriptive comment of an IPv6 fixed address template
object.
domain_name: Domain name of the IPv6 fixed address template
object.
domain_name_servers: The IPv6 addresses of DNS recursive name
servers to which the DHCP client can send name resolution
requests. The DHCP server includes this information in the
DNS Recursive Name Server option in Advertise, Rebind,
Information-Request, and Reply messages.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
logic_filter_rules: This field contains the logic filters to be
applied to this IPv6 fixed address.This list corresponds to
the match rules that are written to the DHCPv6 configuration
file.
name: Name of an IPv6 fixed address template object.
number_of_addresses: The number of IPv6 addresses for this fixed
address.
offset: The start address offset for this IPv6 fixed address.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
preferred_lifetime: The preferred lifetime value for this DHCP
IPv6 fixed address template object.
use_domain_name: Use flag for: domain_name
use_domain_name_servers: Use flag for: domain_name_servers
use_logic_filter_rules: Use flag for: logic_filter_rules
use_options: Use flag for: options
use_preferred_lifetime: Use flag for: preferred_lifetime
use_valid_lifetime: Use flag for: valid_lifetime
valid_lifetime: The valid lifetime value for this DHCP IPv6
fixed address template object.
"""
_infoblox_type = 'ipv6fixedaddresstemplate'
_fields = ['comment', 'domain_name', 'domain_name_servers', 'extattrs',
'logic_filter_rules', 'name', 'number_of_addresses', 'offset',
'options', 'preferred_lifetime', 'use_domain_name',
'use_domain_name_servers', 'use_logic_filter_rules',
'use_options', 'use_preferred_lifetime', 'use_valid_lifetime',
'valid_lifetime']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
_ip_version = 6
_custom_field_processing = {
'logic_filter_rules': Logicfilterrule.from_dict,
'options': DhcpOption.from_dict,
}
class Ftpuser(InfobloxObject):
""" Ftpuser: FTP user object.
Corresponds to WAPI object 'ftpuser'
The FTP user represents the user accounts to be used with the FTP
client.
Attributes:
create_home_dir: Determines whether to create the home directory
with the user name or to use the existing directory as the
home directory.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
home_dir: The absolute path of the FTP user's home directory.
password: The FTP user password.
permission: The FTP user permission.
username: The FTP user name.
"""
_infoblox_type = 'ftpuser'
_fields = ['create_home_dir', 'extattrs', 'home_dir', 'password',
'permission', 'username']
_search_for_update_fields = ['username']
_updateable_search_fields = []
_all_searchable_fields = ['username']
_return_fields = ['extattrs', 'username']
_remap = {}
_shadow_fields = ['_ref']
class Grid(InfobloxObject):
""" Grid: Grid object.
Corresponds to WAPI object 'grid'
This object represents the Infoblox Grid.
Attributes:
allow_recursive_deletion: The property to allow recursive
deletion. Determines the users who can choose to perform
recursive deletion on networks or zones from the GUI only.
audit_log_format: Determines the audit log format.
audit_to_syslog_enable: If set to True, audit log messages are
also copied to the syslog.
automated_traffic_capture_setting: The grid level settings for
automated traffic capture.
consent_banner_setting: The Grid consent banner settings.
csp_api_config: The Grid csp api config settings.
csp_grid_setting: CSP settings at grid level
deny_mgm_snapshots: If set to True, the managed Grid will not
send snapshots to the Multi-Grid Master.
descendants_action: The default actions for extensbile
attributes that exist on descendants.
dns_resolver_setting: The DNS resolver setting.
dscp: The DSCP value.Valid values are integers between 0 and 63
inclusive.
email_setting: The e-mail settings for the Grid.
enable_gui_api_for_lan_vip: If set to True, GUI and API access
are enabled on the LAN/VIP port and MGMT port (if
configured).
enable_lom: Determines if the LOM functionality is enabled or
not.
enable_member_redirect: Determines redirections is enabled or
not for members.
enable_recycle_bin: Determines if the Recycle Bin is enabled or
not.
enable_rir_swip: Determines if the RIR/SWIP support is enabled
or not.
external_syslog_backup_servers: The list of external backup
syslog servers.
external_syslog_server_enable: If set to True, external syslog
servers are enabled.
http_proxy_server_setting: The Grid HTTP proxy server settings.
informational_banner_setting: The Grid informational level
banner settings.
is_grid_visualization_visible: If set to True, graphical
visualization of the Grid is enabled.
lockout_setting: Security Setting for Account lockout.
lom_users: The list of LOM users.
mgm_strict_delegate_mode: Determines if strict delegate mode for
the Grid managed by the Master Grid is enabled or not.
ms_setting: The settings for all Microsoft servers in the Grid.
name: The grid name.
nat_groups: The list of all Network Address Translation (NAT)
groups configured on the Grid.
ntp_setting: The Grid Network Time Protocol (NTP) settings.
objects_changes_tracking_setting: Determines the object changes
tracking settings.
password_setting: The Grid password settings.
restart_banner_setting: The setting for the Restart Banner.
restart_status: The restart status for the Grid.
rpz_hit_rate_interval: The time interval (in seconds) that
determines how often the appliance calculates the RPZ hit
rate.
rpz_hit_rate_max_query: The maximum number of incoming queries
between the RPZ hit rate checks.
rpz_hit_rate_min_query: The minimum number of incoming queries
between the RPZ hit rate checks.
scheduled_backup: The scheduled backup configuration.
secret: The shared secret of the Grid. This is a write-only
attribute.
security_banner_setting: The Grid security banner settings.
security_setting: The Grid security settings.
service_status: Determines overall service status of the Grid.
snmp_setting: The Grid SNMP settings.
support_bundle_download_timeout: Support bundle download timeout
in seconds.
syslog_facility: If 'audit_to_syslog_enable' is set to True, the
facility that determines the processes and daemons from
which the log messages are generated.
syslog_servers: The list of external syslog servers.
syslog_size: The maximum size for the syslog file expressed in
megabytes.
threshold_traps: Determines the list of threshold traps. The
user can only change the values for each trap or remove
traps.
time_zone: The time zone of the Grid. The UTC string that
represents the time zone, such as "(UTC - 5:00) Eastern Time
(US and Canada)".
token_usage_delay: The delayed usage (in minutes) of a
permission token.
traffic_capture_auth_dns_setting: Grid level settings for
enabling authoritative DNS latency thresholds for automated
traffic capture.
traffic_capture_chr_setting: Grid level settings for enabling
DNS cache hit ratio threshold for automated traffic capture.
traffic_capture_qps_setting: Grid level settings for enabling
DNS query per second threshold for automated traffic
capture.
traffic_capture_rec_dns_setting: Grid level settings for
enabling recursive DNS latency thresholds for automated
traffic capture.
traffic_capture_rec_queries_setting: Grid level settings for
enabling count for concurrent outgoing recursive queries for
automated traffic capture.
trap_notifications: Determines configuration of the trap
notifications.
updates_download_member_config: The list of member configuration
structures, which provides information and settings for
configuring the member that is responsible for downloading
updates.
vpn_port: The VPN port.
"""
_infoblox_type = 'grid'
_fields = ['allow_recursive_deletion', 'audit_log_format',
'audit_to_syslog_enable', 'automated_traffic_capture_setting',
'consent_banner_setting', 'csp_api_config', 'csp_grid_setting',
'deny_mgm_snapshots', 'descendants_action',
'dns_resolver_setting', 'dscp', 'email_setting',
'enable_gui_api_for_lan_vip', 'enable_lom',
'enable_member_redirect', 'enable_recycle_bin',
'enable_rir_swip', 'external_syslog_backup_servers',
'external_syslog_server_enable', 'http_proxy_server_setting',
'informational_banner_setting', 'is_grid_visualization_visible',
'lockout_setting', 'lom_users', 'mgm_strict_delegate_mode',
'ms_setting', 'name', 'nat_groups', 'ntp_setting',
'objects_changes_tracking_setting', 'password_setting',
'restart_banner_setting', 'restart_status',
'rpz_hit_rate_interval', 'rpz_hit_rate_max_query',
'rpz_hit_rate_min_query', 'scheduled_backup', 'secret',
'security_banner_setting', 'security_setting', 'service_status',
'snmp_setting', 'support_bundle_download_timeout',
'syslog_facility', 'syslog_servers', 'syslog_size',
'threshold_traps', 'time_zone', 'token_usage_delay',
'traffic_capture_auth_dns_setting',
'traffic_capture_chr_setting', 'traffic_capture_qps_setting',
'traffic_capture_rec_dns_setting',
'traffic_capture_rec_queries_setting', 'trap_notifications',
'updates_download_member_config', 'vpn_port']
_search_for_update_fields = []
_updateable_search_fields = ['name']
_all_searchable_fields = ['name']
_return_fields = []
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'external_syslog_backup_servers': Extsyslogbackupserver.from_dict,
'lom_users': Lomuser.from_dict,
'syslog_servers': Syslogserver.from_dict,
'threshold_traps': Thresholdtrap.from_dict,
'trap_notifications': Trapnotification.from_dict,
'updates_download_member_config':
Updatesdownloadmemberconfig.from_dict,
}
def control_ip_address(self, *args, **kwargs):
return self._call_func("control_ip_address", *args, **kwargs)
def empty_recycle_bin(self, *args, **kwargs):
return self._call_func("empty_recycle_bin", *args, **kwargs)
def generate_tsig_key(self, *args, **kwargs):
return self._call_func("generate_tsig_key", *args, **kwargs)
def get_all_template_vendor_id(self, *args, **kwargs):
return self._call_func("get_all_template_vendor_id", *args, **kwargs)
def get_grid_revert_status(self, *args, **kwargs):
return self._call_func("get_grid_revert_status", *args, **kwargs)
def get_rpz_threat_details(self, *args, **kwargs):
return self._call_func("get_rpz_threat_details", *args, **kwargs)
def get_template_schema_versions(self, *args, **kwargs):
return self._call_func("get_template_schema_versions", *args, **kwargs)
def join(self, *args, **kwargs):
return self._call_func("join", *args, **kwargs)
def join_mgm(self, *args, **kwargs):
return self._call_func("join_mgm", *args, **kwargs)
def join_mgm_mod2(self, *args, **kwargs):
return self._call_func("join_mgm_mod2", *args, **kwargs)
def leave_mgm(self, *args, **kwargs):
return self._call_func("leave_mgm", *args, **kwargs)
def member_upgrade(self, *args, **kwargs):
return self._call_func("member_upgrade", *args, **kwargs)
def publish_changes(self, *args, **kwargs):
return self._call_func("publish_changes", *args, **kwargs)
def query_fqdn_on_member(self, *args, **kwargs):
return self._call_func("query_fqdn_on_member", *args, **kwargs)
def requestrestartservicestatus(self, *args, **kwargs):
return self._call_func("requestrestartservicestatus", *args, **kwargs)
def restartservices(self, *args, **kwargs):
return self._call_func("restartservices", *args, **kwargs)
def skip_member_upgrade(self, *args, **kwargs):
return self._call_func("skip_member_upgrade", *args, **kwargs)
def start_discovery(self, *args, **kwargs):
return self._call_func("start_discovery", *args, **kwargs)
def test_syslog_backup_server_connection(self, *args, **kwargs):
return self._call_func("test_syslog_backup_server_connection", *args,
**kwargs)
def test_syslog_connection(self, *args, **kwargs):
return self._call_func("test_syslog_connection", *args, **kwargs)
def upgrade(self, *args, **kwargs):
return self._call_func("upgrade", *args, **kwargs)
def upgrade_group_now(self, *args, **kwargs):
return self._call_func("upgrade_group_now", *args, **kwargs)
def upload_keytab(self, *args, **kwargs):
return self._call_func("upload_keytab", *args, **kwargs)
class GridCloudapi(InfobloxObject):
""" GridCloudapi: Grid Cloud API object.
Corresponds to WAPI object 'grid:cloudapi'
This object represents the Cloud Grid.
Attributes:
allow_api_admins: Defines administrators who can perform cloud
API requests on the Grid Master. The valid value is NONE (no
administrator), ALL (all administrators), or LIST
(administrators on the ACL).
allowed_api_admins: The list of administrators who can perform
cloud API requests on the Cloud Platform Appliance.
enable_recycle_bin: Determines whether the recycle bin for
deleted cloud objects is enabled or not on the Grid Master.
gateway_config: Structure containing all the information related
to Gateway configuration for the Grid Master
"""
_infoblox_type = 'grid:cloudapi'
_fields = ['allow_api_admins', 'allowed_api_admins', 'enable_recycle_bin',
'gateway_config']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = ['allow_api_admins', 'allowed_api_admins',
'enable_recycle_bin']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'allowed_api_admins': GridCloudapiUser.from_dict,
}
class GridCloudapiCloudstatistics(InfobloxObject):
""" GridCloudapiCloudstatistics: Grid Cloud Statistics object.
Corresponds to WAPI object 'grid:cloudapi:cloudstatistics'
Represents the cloud statistics data.
Attributes:
allocated_available_ratio: Ratio of allocated vs. available IPs
allocated_ip_count: Total number of IPs allocated by tenants.
available_ip_count: The total number of IP addresses available
to tenants. Only IP addresses in networks that are within a
delegation scope are counted.
fixed_ip_count: The total number of fixed IP addresses currently
in use by all tenants in the system.
floating_ip_count: The total number of floating IP addresses
currently in use by all tenants in the system.
tenant_count: Total number of tenant currently in the system.
tenant_ip_count: The total number of IP addresses currently in
use by all tenants in the system.
tenant_vm_count: The total number of VMs currently in use by all
tenants in the system.
"""
_infoblox_type = 'grid:cloudapi:cloudstatistics'
_fields = ['allocated_available_ratio', 'allocated_ip_count',
'available_ip_count', 'fixed_ip_count', 'floating_ip_count',
'tenant_count', 'tenant_ip_count', 'tenant_vm_count']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = ['allocated_available_ratio', 'allocated_ip_count',
'available_ip_count', 'fixed_ip_count',
'floating_ip_count', 'tenant_count', 'tenant_ip_count',
'tenant_vm_count']
_remap = {}
_shadow_fields = ['_ref']
class Tenant(InfobloxObject):
""" Tenant: Grid Cloud API Tenant object.
Corresponds to WAPI object 'grid:cloudapi:tenant'
A Tenant object represents an abstract administrative concept in
Cloud Management Platforms, which encompasses all network elements
such as networks, zones, VMs, IP addresses (fixed and floating),
network views, default DNS view, and all related extensive
attributes.
Attributes:
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the Grid Cloud API Tenant object; maximum
256 characters.
created_ts: The timestamp when the tenant was first created in
the system.
id: Unique ID associated with the tenant. This is set only when
the tenant is first created.
last_event_ts: The timestamp when the last event associated with
the tenant happened.
name: Name of the tenant.
network_count: Number of Networks associated with the tenant.
vm_count: Number of VMs associated with the tenant.
"""
_infoblox_type = 'grid:cloudapi:tenant'
_fields = ['cloud_info', 'comment', 'created_ts', 'id', 'last_event_ts',
'name', 'network_count', 'vm_count']
_search_for_update_fields = ['id', 'name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'id', 'name']
_return_fields = ['comment', 'id', 'name']
_remap = {}
_shadow_fields = ['_ref']
class GridCloudapiVm(InfobloxObject):
""" GridCloudapiVm: Grid Cloud API vm object.
Corresponds to WAPI object 'grid:cloudapi:vm'
A vm object represents a virtual machine which encompasses network
elements such as IP addresses (fixed and floating, private and
public), DNS names and all related extensive attributes.
Attributes:
availability_zone: Availability zone of the VM.
cloud_info: Structure containing all the cloud API related
information for this object.
comment: Comment for the vm object; maximum 1024 characters.
elastic_ip_address: Elastic IP address associated with the VM's
primary interface.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
first_seen: The timestamp when the VM was first seen in the
system.
hostname: Hostname part of the FQDN for the address associated
with the VM's primary interface.
id: Unique ID associated with the VM. This is set only when the
VM is first created.
kernel_id: Identifier of the kernel that this VM is running;
maximum 128 characters.
last_seen: The timestamp when the last event associated with the
VM happened.
name: Name of the VM.
network_count: Number of Networks containing any address
associated with this VM.
operating_system: Guest Operating system that this VM is
running; maximum 128 characters.
primary_mac_address: MAC address associated with the VM's
primary interface.
subnet_address: Address of the network that is the container of
the address associated with the VM's primary interface.
subnet_cidr: CIDR of the network that is the container of the
address associated with the VM's primary interface.
subnet_id: Subnet ID of the network that is the container of the
address associated with the VM's primary interface.
tenant_name: Name of the tenant associated with the VM.
vm_type: VM type; maximum 64 characters.
vpc_address: Network address of the parent VPC.
vpc_cidr: Network CIDR of the parent VPC.
vpc_id: Identifier of the parent VPC.
vpc_name: Name of the parent VPC.
"""
_infoblox_type = 'grid:cloudapi:vm'
_fields = ['availability_zone', 'cloud_info', 'comment',
'elastic_ip_address', 'extattrs', 'first_seen', 'hostname',
'id', 'kernel_id', 'last_seen', 'name', 'network_count',
'operating_system', 'primary_mac_address', 'subnet_address',
'subnet_cidr', 'subnet_id', 'tenant_name', 'vm_type',
'vpc_address', 'vpc_cidr', 'vpc_id', 'vpc_name']
_search_for_update_fields = ['id', 'name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'elastic_ip_address', 'id', 'name',
'primary_mac_address']
_return_fields = ['comment', 'extattrs', 'id', 'name']
_remap = {}
_shadow_fields = ['_ref']
class GridCloudapiVmaddress(InfobloxObject):
""" GridCloudapiVmaddress: Grid Cloud API VM address object.
Corresponds to WAPI object 'grid:cloudapi:vmaddress'
VM address is an abstract object that represents a virtual machine
running on the Cloud Management Platform.
Attributes:
address: The IP address of the interface.
address_type: IP address type (Public, Private, Elastic,
Floating, ...).
associated_ip: Reference to associated IPv4 or IPv6 address.
associated_object_types: Array of string denoting the types of
underlying objects IPv4/IPv6 - "A", "AAAA", "PTR", "HOST",
"FA", "RESERVATION", "UNMANAGED" + ("BULKHOST",
"DHCP_RANGE", "RESERVED_RANGE", "LEASE", "NETWORK",
"BROADCAST", "PENDING"),
associated_objects: The list of references to the object (Host,
Fixed Address, RR, ...) that defines this IP.
cloud_info: Structure containing all the cloud API related
information. Only management platform "mgmt_platform" is
updated for this object.
dns_names: The list of all FQDNs associated with the IP address.
elastic_address: Elastic IP address associated with this private
address, if this address is a private address; otherwise
empty.
interface_name: Name of the interface associated with this IP
address.
is_ipv4: Indicates whether the address is IPv4 or IPv6.
mac_address: The MAC address of the interface.
ms_ad_user_data: The Microsoft Active Directory user related
information.
network: The network to which this address belongs, in IPv4
Address/CIDR format.
network_view: Network view name of the delegated object.
port_id: Port identifier of the interface.
private_address: Private IP address associated with this public
(or elastic or floating) address, if this address is a
public address; otherwise empty.
private_hostname: Host part of the FQDN of this address if this
address is a private address; otherwise empty
public_address: Public IP address associated with this private
address, if this address is a private address; otherwise
empty.
public_hostname: Host part of the FQDN of this address if this
address is a public (or elastic or floating) address;
otherwise empty
subnet_address: Network address of the subnet that is the
container of this address.
subnet_cidr: CIDR of the subnet that is the container of this
address.
subnet_id: Subnet ID that is the container of this address.
tenant: The Cloud API Tenant object.
vm_availability_zone: Availability zone of the VM.
vm_comment: VM comment.
vm_creation_time: Date/time the VM was first created as NIOS
object.
vm_hostname: Host part of the FQDN of the address attached to
the primary interface.
vm_id: The UUID of the Virtual Machine.
vm_kernel_id: Kernel ID of the VM that this address is
associated with.
vm_last_update_time: Last time the VM was updated.
vm_name: The name of the Virtual Machine.
vm_network_count: Count of networks containing all the addresses
of the VM.
vm_operating_system: Operating system that the VM is running.
vm_type: Type of the VM this address is associated with.
vm_vpc_address: Network address of the VPC of the VM that this
address is associated with.
vm_vpc_cidr: CIDR of the VPC of the VM that this address is
associated with.
vm_vpc_id: Identifier of the VPC where the VM is defined.
vm_vpc_name: Name of the VPC where the VM is defined.
vm_vpc_ref: Reference to the VPC where the VM is defined.
"""
_infoblox_type = 'grid:cloudapi:vmaddress'
_fields = ['address', 'address_type', 'associated_ip',
'associated_object_types', 'associated_objects', 'cloud_info',
'dns_names', 'elastic_address', 'interface_name', 'is_ipv4',
'mac_address', 'ms_ad_user_data', 'network', 'network_view',
'port_id', 'private_address', 'private_hostname',
'public_address', 'public_hostname', 'subnet_address',
'subnet_cidr', 'subnet_id', 'tenant', 'vm_availability_zone',
'vm_comment', 'vm_creation_time', 'vm_hostname', 'vm_id',
'vm_kernel_id', 'vm_last_update_time', 'vm_name',
'vm_network_count', 'vm_operating_system', 'vm_type',
'vm_vpc_address', 'vm_vpc_cidr', 'vm_vpc_id', 'vm_vpc_name',
'vm_vpc_ref']
_search_for_update_fields = ['address', 'vm_name']
_updateable_search_fields = []
_all_searchable_fields = ['address', 'mac_address', 'vm_id', 'vm_name']
_return_fields = ['address', 'is_ipv4', 'network_view', 'port_id',
'vm_name']
_remap = {}
_shadow_fields = ['_ref']
class GridDashboard(InfobloxObject):
""" GridDashboard: Grid Dashboard object.
Corresponds to WAPI object 'grid:dashboard'
The Grid Dashboard object provides a configuration interface for
threshold values that are used to warn about critical ATP, RPZ and
Analytics events. These threshold values are used to calculate the
security status for ATP, RPZ, and Analytics.
Attributes:
analytics_tunneling_event_critical_threshold: The Grid Dashboard
critical threshold for Analytics tunneling events.
analytics_tunneling_event_warning_threshold: The Grid Dashboard
warning threshold for Analytics tunneling events.
atp_critical_event_critical_threshold: The Grid Dashboard
critical threshold for ATP critical events.
atp_critical_event_warning_threshold: The Grid Dashboard warning
threshold for ATP critical events.
atp_major_event_critical_threshold: The Grid Dashboard critical
threshold for ATP major events.
atp_major_event_warning_threshold: The Grid Dashboard warning
threshold for ATP major events.
atp_warning_event_critical_threshold: The Grid Dashboard
critical threshold for ATP warning events.
atp_warning_event_warning_threshold: The Grid Dashboard warning
threshold for ATP warning events.
rpz_blocked_hit_critical_threshold: The critical threshold value
for blocked RPZ hits in the Grid dashboard.
rpz_blocked_hit_warning_threshold: The warning threshold value
for blocked RPZ hits in the Grid dashboard.
rpz_passthru_event_critical_threshold: The Grid Dashboard
critical threshold for RPZ passthru events.
rpz_passthru_event_warning_threshold: The Grid Dashboard warning
threshold for RPZ passthru events.
rpz_substituted_hit_critical_threshold: The critical threshold
value for substituted RPZ hits in the Grid dashboard.
rpz_substituted_hit_warning_threshold: The warning threshold
value for substituted RPZ hits in the Grid dashboard.
"""
_infoblox_type = 'grid:dashboard'
_fields = ['analytics_tunneling_event_critical_threshold',
'analytics_tunneling_event_warning_threshold',
'atp_critical_event_critical_threshold',
'atp_critical_event_warning_threshold',
'atp_major_event_critical_threshold',
'atp_major_event_warning_threshold',
'atp_warning_event_critical_threshold',
'atp_warning_event_warning_threshold',
'rpz_blocked_hit_critical_threshold',
'rpz_blocked_hit_warning_threshold',
'rpz_passthru_event_critical_threshold',
'rpz_passthru_event_warning_threshold',
'rpz_substituted_hit_critical_threshold',
'rpz_substituted_hit_warning_threshold']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = ['analytics_tunneling_event_critical_threshold',
'analytics_tunneling_event_warning_threshold',
'atp_critical_event_critical_threshold',
'atp_critical_event_warning_threshold',
'atp_major_event_critical_threshold',
'atp_major_event_warning_threshold',
'atp_warning_event_critical_threshold',
'atp_warning_event_warning_threshold',
'rpz_blocked_hit_critical_threshold',
'rpz_blocked_hit_warning_threshold',
'rpz_passthru_event_critical_threshold',
'rpz_passthru_event_warning_threshold',
'rpz_substituted_hit_critical_threshold',
'rpz_substituted_hit_warning_threshold']
_remap = {}
_shadow_fields = ['_ref']
class GridDhcpproperties(InfobloxObject):
""" GridDhcpproperties: Grid DHCP properties object.
Corresponds to WAPI object 'grid:dhcpproperties'
This object represents a subset of the Infoblox Grid DHCP
properties.
Attributes:
authority: The Grid-level authority flag. This flag specifies
whether a DHCP server is authoritative for a domain.
bootfile: The name of a file that DHCP clients need to boot.
Some DHCP clients use BOOTP (bootstrap protocol) or include
the boot file name option in their DHCPREQUEST messages.
bootserver: The name of the server on which a boot file is
stored.
capture_hostname: The Grid-level capture hostname flag. Set this
flag to capture the hostname and lease time when assigning a
fixed address.
ddns_domainname: The member DDNS domain name value.
ddns_generate_hostname: Determines if the ability of a DHCP
server to generate a host name and update DNS with this host
name when it receives a DHCP REQUEST message that does not
include a host name is enabled or not.
ddns_retry_interval: Determines the retry interval when the DHCP
server makes repeated attempts to send DDNS updates to a DNS
server.
ddns_server_always_updates: Determines that only the DHCP server
is allowed to update DNS, regardless of the requests from
the DHCP clients.
ddns_ttl: The DDNS TTL (Dynamic DNS Time To Live) value
specifies the number of seconds an IP address for the name
is cached.
ddns_update_fixed_addresses: Determines if the Grid DHCP
server's ability to update the A and PTR records with a
fixed address is enabled or not.
ddns_use_option81: Determines if support for option 81 is
enabled or not.
deny_bootp: Determines if deny BOOTP is enabled or not.
disable_all_nac_filters: If set to True, NAC filters will be
disabled on the Infoblox Grid.
dns_update_style: The update style for dynamic DNS updates.
email_list: The Grid-level email_list value. Specify an e-mail
address to which you want the Infoblox appliance to send
e-mail notifications when the DHCP address usage for the
grid crosses a threshold. You can create a list of several
e-mail addresses.
enable_ddns: Determines if the member DHCP server's ability to
send DDNS updates is enabled or not.
enable_dhcp_thresholds: Represents the watermarks above or below
which address usage in a network is unexpected and might
warrant your attention.
enable_email_warnings: Determines if e-mail warnings are enabled
or disabled. When DHCP threshold is enabled and DHCP address
usage crosses a watermark threshold, the appliance sends an
e-mail notification to an administrator.
enable_fingerprint: Determines if the fingerprint feature is
enabled or not. If you enable this feature, the server will
match a fingerprint for incoming lease requests.
enable_gss_tsig: Determines whether all appliances are enabled
to receive GSS-TSIG authenticated updates from DHCP clients.
enable_hostname_rewrite: Determines if the Grid-level host name
rewrite feature is enabled or not.
enable_leasequery: Determines if lease query is allowed or not.
enable_roaming_hosts: Determines if DHCP servers in a Grid
support roaming hosts or not.
enable_snmp_warnings: Determined if the SNMP warnings on Grid-
level are enabled or not. When DHCP threshold is enabled and
DHCP address usage crosses a watermark threshold, the
appliance sends an SNMP trap to the trap receiver that you
defined you defined at the Grid member level.
format_log_option_82: The format option for Option 82 logging.
grid: Determines the Grid that serves DHCP. This specifies a
group of Infoblox appliances that are connected together to
provide a single point of device administration and service
configuration in a secure, highly available environment.
gss_tsig_keys: The list of GSS-TSIG keys for a Grid DHCP object.
high_water_mark: Determines the high watermark value of a Grid
DHCP server. If the percentage of allocated addresses
exceeds this watermark, the appliance makes a syslog entry
and sends an e-mail notification (if enabled). Specifies the
percentage of allocated addresses. The range is from 1 to
100.
high_water_mark_reset: Determines the high watermark reset value
of a member DHCP server. If the percentage of allocated
addresses drops below this value, a corresponding SNMP trap
is reset. Specifies the percentage of allocated addresses.
The range is from 1 to 100. The high watermark reset value
must be lower than the high watermark value.
hostname_rewrite_policy: The name of the default hostname
rewrite policy, which is also in the
protocol_hostname_rewrite_policies array.
ignore_dhcp_option_list_request: Determines if the ignore DHCP
option list request flag of a Grid DHCP is enabled or not.
If this flag is set to true all available DHCP options will
be returned to the client.
ignore_id: Indicates whether the appliance will ignore DHCP
client IDs or MAC addresses. Valid values are "NONE",
"CLIENT", or "MACADDR". The default is "NONE".
ignore_mac_addresses: A list of MAC addresses the appliance will
ignore.
immediate_fa_configuration: Determines if the fixed address
configuration takes effect immediately without DHCP service
restart or not.
ipv6_capture_hostname: Determines if the IPv6 host name and
lease time is captured or not while assigning a fixed
address.
ipv6_ddns_domainname: The Grid-level DDNS domain name value.
ipv6_ddns_enable_option_fqdn: Controls whether the FQDN option
sent by the client is to be used, or if the server can
automatically generate the FQDN.
ipv6_ddns_server_always_updates: Determines if the server always
updates DNS or updates only if requested by the client.
ipv6_ddns_ttl: The Grid-level IPv6 DDNS TTL value.
ipv6_default_prefix: The Grid-level IPv6 default prefix.
ipv6_dns_update_style: The update style for dynamic DHCPv6 DNS
updates.
ipv6_domain_name: The IPv6 domain name.
ipv6_domain_name_servers: The comma separated list of domain
name server addresses in IPv6 address format.
ipv6_enable_ddns: Determines if sending DDNS updates by the
DHCPv6 server is enabled or not.
ipv6_enable_gss_tsig: Determines whether the all appliances are
enabled to receive GSS-TSIG authenticated updates from
DHCPv6 clients.
ipv6_enable_lease_scavenging: Indicates whether DHCPv6 lease
scavenging is enabled or disabled.
ipv6_enable_retry_updates: Determines if the DHCPv6 server
retries failed dynamic DNS updates or not.
ipv6_generate_hostname: Determines if the server generates the
hostname if it is not sent by the client.
ipv6_gss_tsig_keys: The list of GSS-TSIG keys for a Grid DHCPv6
object.
ipv6_kdc_server: The IPv6 address or FQDN of the Kerberos server
for DHCPv6 GSS-TSIG authentication.
ipv6_lease_scavenging_time: The Grid-level grace period (in
seconds) to keep an expired lease before it is deleted by
the scavenging process.
ipv6_microsoft_code_page: The Grid-level Microsoft client DHCP
IPv6 code page value. This value is the hostname translation
code page for Microsoft DHCP IPv6 clients.
ipv6_options: An array of DHCP option structs that lists the
DHCPv6 options associated with the object.
ipv6_prefixes: The Grid-level list of IPv6 prefixes.
ipv6_recycle_leases: Determines if the IPv6 recycle leases
feature is enabled or not. If the feature is enabled, leases
are kept in the Recycle Bin until one week after expiration.
When the feature is disabled, the leases are irrecoverably
deleted.
ipv6_remember_expired_client_association: Enable binding for
expired DHCPv6 leases.
ipv6_retry_updates_interval: Determines the retry interval when
the member DHCPv6 server makes repeated attempts to send
DDNS updates to a DNS server.
ipv6_txt_record_handling: The Grid-level TXT record handling
value. This value specifies how DHCPv6 should treat the TXT
records when performing DNS updates.
ipv6_update_dns_on_lease_renewal: Controls whether the DHCPv6
server updates DNS when an IPv6 DHCP lease is renewed.
kdc_server: The IPv4 address or FQDN of the Kerberos server for
DHCPv4 GSS-TSIG authentication.
lease_logging_member: The Grid member on which you want to store
the DHCP lease history log. Infoblox recommends that you
dedicate a member other than the master as a logging member.
If possible, use this member solely for storing the DHCP
lease history log. If you do not select a member, no logging
can occur.
lease_per_client_settings: Defines how the appliance releases
DHCP leases. Valid values are "RELEASE_MACHING_ID",
"NEVER_RELEASE", or "ONE_LEASE_PER_CLIENT". The default is
"RELEASE_MATCHING_ID".
lease_scavenge_time: Determines the lease scavenging time value.
When this field is set, the appliance permanently deletes
the free and backup leases, that remain in the database
beyond a specified period of time.To disable lease
scavenging, set the parameter to -1. The minimum positive
value must be greater than 86400 seconds (1 day).
log_lease_events: This value specifies whether the Grid DHCP
members log lease events is enabled or not.
logic_filter_rules: This field contains the logic filters to be
applied on the Infoblox Grid.This list corresponds to the
match rules that are written to the dhcpd configuration
file.
low_water_mark: Determines the low watermark value. If the
percent of allocated addresses drops below this watermark,
the appliance makes a syslog entry and if enabled, sends an
e-mail notification.
low_water_mark_reset: Determines the low watermark reset
value.If the percentage of allocated addresses exceeds this
value, a corresponding SNMP trap is reset.A number that
specifies the percentage of allocated addresses. The range
is from 1 to 100. The low watermark reset value must be
higher than the low watermark value.
microsoft_code_page: The Microsoft client DHCP IPv4 code page
value of a Grid. This value is the hostname translation code
page for Microsoft DHCP IPv4 clients.
nextserver: The next server value of a DHCP server. This value
is the IP address or name of the boot file server on which
the boot file is stored.
option60_match_rules: The list of option 60 match rules.
options: An array of DHCP option structs that lists the DHCP
options associated with the object. Note that WAPI does not
return special options 'routers', 'domain-name-servers',
'domain-name' and 'broadcast-address' with empty values for
this object.
ping_count: Specifies the number of pings that the Infoblox
appliance sends to an IP address to verify that it is not in
use. Values are range is from 0 to 10, where 0 disables
pings.
ping_timeout: Indicates the number of milliseconds the appliance
waits for a response to its ping.Valid values are 100, 500,
1000, 2000, 3000, 4000 and 5000 milliseconds.
preferred_lifetime: The preferred lifetime value.
prefix_length_mode: The Prefix length mode for DHCPv6.
protocol_hostname_rewrite_policies: The list of hostname rewrite
policies.
pxe_lease_time: Specifies the duration of time it takes a host
to connect to a boot server, such as a TFTP server, and
download the file it needs to boot.A 32-bit unsigned integer
that represents the duration, in seconds, for which the
update is cached. Zero indicates that the update is not
cached.
recycle_leases: Determines if the recycle leases feature is
enabled or not. If you enabled this feature, and then delete
a DHCP range, the appliance stores active leases from this
range up to one week after the leases expires.
restart_setting: The restart setting.
retry_ddns_updates: Indicates whether the DHCP server makes
repeated attempts to send DDNS updates to a DNS server.
syslog_facility: The syslog facility is the location on the
syslog server to which you want to sort the syslog messages.
txt_record_handling: The Grid-level TXT record handling value.
This value specifies how DHCP should treat the TXT records
when performing DNS updates.
update_dns_on_lease_renewal: Controls whether the DHCP server
updates DNS when a DHCP lease is renewed.
valid_lifetime: The valid lifetime for the Grid members.
"""
_infoblox_type = 'grid:dhcpproperties'
_fields = ['authority', 'bootfile', 'bootserver', 'capture_hostname',
'ddns_domainname', 'ddns_generate_hostname',
'ddns_retry_interval', 'ddns_server_always_updates', 'ddns_ttl',
'ddns_update_fixed_addresses', 'ddns_use_option81',
'deny_bootp', 'disable_all_nac_filters', 'dns_update_style',
'email_list', 'enable_ddns', 'enable_dhcp_thresholds',
'enable_email_warnings', 'enable_fingerprint',
'enable_gss_tsig', 'enable_hostname_rewrite',
'enable_leasequery', 'enable_roaming_hosts',
'enable_snmp_warnings', 'format_log_option_82', 'grid',
'gss_tsig_keys', 'high_water_mark', 'high_water_mark_reset',
'hostname_rewrite_policy', 'ignore_dhcp_option_list_request',
'ignore_id', 'ignore_mac_addresses',
'immediate_fa_configuration', 'ipv6_capture_hostname',
'ipv6_ddns_domainname', 'ipv6_ddns_enable_option_fqdn',
'ipv6_ddns_server_always_updates', 'ipv6_ddns_ttl',
'ipv6_default_prefix', 'ipv6_dns_update_style',
'ipv6_domain_name', 'ipv6_domain_name_servers',
'ipv6_enable_ddns', 'ipv6_enable_gss_tsig',
'ipv6_enable_lease_scavenging', 'ipv6_enable_retry_updates',
'ipv6_generate_hostname', 'ipv6_gss_tsig_keys',
'ipv6_kdc_server', 'ipv6_lease_scavenging_time',
'ipv6_microsoft_code_page', 'ipv6_options', 'ipv6_prefixes',
'ipv6_recycle_leases',
'ipv6_remember_expired_client_association',
'ipv6_retry_updates_interval', 'ipv6_txt_record_handling',
'ipv6_update_dns_on_lease_renewal', 'kdc_server',
'lease_logging_member', 'lease_per_client_settings',
'lease_scavenge_time', 'log_lease_events', 'logic_filter_rules',
'low_water_mark', 'low_water_mark_reset', 'microsoft_code_page',
'nextserver', 'option60_match_rules', 'options', 'ping_count',
'ping_timeout', 'preferred_lifetime', 'prefix_length_mode',
'protocol_hostname_rewrite_policies', 'pxe_lease_time',
'recycle_leases', 'restart_setting', 'retry_ddns_updates',
'syslog_facility', 'txt_record_handling',
'update_dns_on_lease_renewal', 'valid_lifetime']
_search_for_update_fields = ['grid']
_updateable_search_fields = []
_all_searchable_fields = ['grid']
_return_fields = ['disable_all_nac_filters', 'grid']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'ipv6_options': DhcpOption.from_dict,
'logic_filter_rules': Logicfilterrule.from_dict,
'option60_match_rules': Option60Matchrule.from_dict,
'options': DhcpOption.from_dict,
}
class GridDns(InfobloxObject):
""" GridDns: Grid DNS properties object.
Corresponds to WAPI object 'grid:dns'
This object supports DNS service management and configuration such
as time-to-live (TTL) settings, zone transfers, queries, root name
servers, dynamic updates, sort lists, Transaction Signatures (TSIG)
for DNS and others, all at the grid level. The service
configurations of a grid are inherited by all members, zones, and
networks unless you specifically override them for selected members,
zones, and networks. For this reason, it is recommended that you
configure services at the grid level before configuring member, zone
and network services.
Attributes:
add_client_ip_mac_options: Add custom IP, MAC and DNS View name
ENDS0 options to outgoing recursive queries.
allow_bulkhost_ddns: Determines if DDNS bulk host is allowed or
not.
allow_gss_tsig_zone_updates: Determines whether GSS-TSIG zone
update is enabled for all Grid members.
allow_query: Determines if queries from the specified IPv4 or
IPv6 addresses and networks are allowed or not. The
appliance can also use Transaction Signature (TSIG) keys to
authenticate the queries.
allow_recursive_query: Determines if the responses to recursive
queries are enabled or not.
allow_transfer: Determines if zone transfers from specified IPv4
or IPv6 addresses and networks or transfers from hosts
authenticated by Transaction signature (TSIG) key are
allowed or not.
allow_update: Determines if dynamic updates from specified IPv4
or IPv6 addresses, networks or from host authenticated by
TSIG key are allowed or not.
anonymize_response_logging: Determines if the anonymization of
captured DNS responses is enabled or disabled.
attack_mitigation: Mitigation settings for DNS attacks.
auto_blackhole: The auto blackhole settings.
bind_check_names_policy: The BIND check names policy, which
indicates the action the appliance takes when it encounters
host names that do not comply with the Strict Hostname
Checking policy. This method applies only if the host name
restriction policy is set to "Strict Hostname Checking".
bind_hostname_directive: The value of the hostname directive for
BIND.
blackhole_list: The list of IPv4 or IPv6 addresses and networks
from which DNS queries are blocked.
blacklist_action: The action to perform when a domain name
matches the pattern defined in a rule that is specified by
the blacklist ruleset.
blacklist_log_query: Determines if blacklist redirection queries
are logged or not.
blacklist_redirect_addresses: The IP addresses the appliance
includes in the response it sends in place of a blacklisted
IP address.
blacklist_redirect_ttl: The TTL value (in seconds) of the
synthetic DNS responses that result from blacklist
redirection.
blacklist_rulesets: The DNS Ruleset object names assigned at the
Grid level for blacklist redirection.
bulk_host_name_templates: The list of bulk host name templates.
There are four Infoblox predefined bulk host name templates.
Template Name Template Format "Four Octets" -$1-$2-$3-$4
"Three Octets" -$2-$3-$4 "Two Octets" -$3-$4 "One Octet" -$4
capture_dns_queries_on_all_domains: Determines if the capture of
DNS queries for all domains is enabled or disabled.
check_names_for_ddns_and_zone_transfer: Determines whether the
application of BIND check-names for zone transfers and DDNS
updates are enabled.
client_subnet_domains: The list of zone domain names that are
allowed or forbidden for EDNS client subnet (ECS) recursion.
client_subnet_ipv4_prefix_length: Default IPv4 Source Prefix-
Length used when sending queries with EDNS client subnet
option.
client_subnet_ipv6_prefix_length: Default IPv6 Source Prefix-
Length used when sending queries with EDNS client subnet
option.
copy_client_ip_mac_options: Copy custom IP, MAC and DNS View
name ENDS0 options from incoming to outgoing recursive
queries.
copy_xfer_to_notify: The allowed IPs, from the zone transfer
list, added to the also-notify statement in the named.conf
file.
custom_root_name_servers: The list of customized root
nameserver(s). You can use Internet root name servers or
specify host names and IP addresses of custom root name
servers.
ddns_force_creation_timestamp_update: Defines whether creation
timestamp of RR should be updated ' when DDNS update happens
even if there is no change to ' the RR.
ddns_principal_group: The DDNS Principal cluster group name.
ddns_principal_tracking: Determines if the DDNS principal track
is enabled or disabled.
ddns_restrict_patterns: Determines if an option to restrict DDNS
update request based on FQDN patterns is enabled or
disabled.
ddns_restrict_patterns_list: The unordered list of restriction
patterns for an option of to restrict DDNS updates based on
FQDN patterns.
ddns_restrict_protected: Determines if an option to restrict
DDNS update request to protected resource records is enabled
or disabled.
ddns_restrict_secure: Determines if DDNS update request for
principal other than target resource record's principal is
restricted.
ddns_restrict_static: Determines if an option to restrict DDNS
update request to resource records which are marked as
'STATIC' is enabled or disabled.
default_bulk_host_name_template: Default bulk host name of a
Grid DNS.
default_ttl: The default TTL value of a Grid DNS object. This
interval tells the secondary how long the data can be
cached.
disable_edns: Determines if the EDNS0 support for queries that
require recursive resolution on Grid members is enabled or
not.
dns64_groups: The list of DNS64 synthesis groups associated with
this Grid DNS object.
dns_cache_acceleration_ttl: The minimum TTL value, in seconds,
that a DNS record must have in order for it to be cached by
the DNS Cache Acceleration service.An integer from 1 to
65000 that represents the TTL in seconds.
dns_health_check_anycast_control: Determines if the anycast
failure (BFD session down) is enabled on member failure or
not.
dns_health_check_domain_list: The list of domain names for the
DNS health check.
dns_health_check_interval: The time interval (in seconds) for
DNS health check.
dns_health_check_recursion_flag: Determines if the recursive DNS
health check is enabled or not.
dns_health_check_retries: The number of DNS health check
retries.
dns_health_check_timeout: The DNS health check timeout interval
(in seconds).
dns_query_capture_file_time_limit: The time limit (in minutes)
for the DNS query capture file.
dnssec_blacklist_enabled: Determines if the blacklist rules for
DNSSEC-enabled clients are enabled or not.
dnssec_dns64_enabled: Determines if the DNS64 groups for DNSSEC-
enabled clients are enabled or not.
dnssec_enabled: Determines if the DNS security extension is
enabled or not.
dnssec_expired_signatures_enabled: Determines when the DNS
member accepts expired signatures.
dnssec_key_params: This structure contains the DNSSEC key
parameters for this zone.
dnssec_negative_trust_anchors: A list of zones for which the
server does not perform DNSSEC validation.
dnssec_nxdomain_enabled: Determines if the NXDOMAIN rules for
DNSSEC-enabled clients are enabled or not.
dnssec_rpz_enabled: Determines if the RPZ policies for DNSSEC-
enabled clients are enabled or not.
dnssec_trusted_keys: The list of trusted keys for the DNSSEC
feature.
dnssec_validation_enabled: Determines if the DNS security
validation is enabled or not.
dnstap_setting: The DNSTAP settings.
domains_to_capture_dns_queries: The list of domains for DNS
query capture.
dtc_dns_queries_specific_behavior: Setting to control specific
behavior for DTC DNS responses for incoming lbdn matched
queries.
dtc_dnssec_mode: DTC DNSSEC operation mode.
dtc_edns_prefer_client_subnet: Determines whether to prefer the
client address from the edns-client-subnet option for DTC or
not.
dtc_scheduled_backup: The scheduled backup configuration.
dtc_topology_ea_list: The DTC topology extensible attribute
definition list. When configuring a DTC topology, users may
configure classification as either "Geographic" or
"Extensible Attributes". Selecting extensible attributes
will replace supported Topology database labels (Continent,
Country, Subdivision, City) with the names of the selection
EA types and provide values extracted from DHCP Network
Container, Network and Range objects with those extensible
attributes.
edns_udp_size: Advertises the EDNS0 buffer size to the upstream
server. The value should be between 512 and 4096 bytes. The
recommended value is between 512 and 1220 bytes.
email: The email address of a Grid DNS object.
enable_blackhole: Determines if the blocking of DNS queries is
enabled or not.
enable_blacklist: Determines if a blacklist is enabled or not.
enable_capture_dns_queries: Determines if the capture of DNS
queries is enabled or disabled.
enable_capture_dns_responses: Determines if the capture of DNS
responses is enabled or disabled.
enable_client_subnet_forwarding: Determines whether to enable
forwarding EDNS client subnet options to upstream servers.
enable_client_subnet_recursive: Determines whether to enable
adding EDNS client subnet options in recursive resolution.
enable_delete_associated_ptr: Determines if the ability to
automatically remove associated PTR records while deleting A
or AAAA records is enabled or not.
enable_dns64: Determines if the DNS64 support is enabled or not.
enable_dns_health_check: Determines if the DNS health check is
enabled or not.
enable_dnstap_queries: Determines whether the query messages
need to be forwarded to DNSTAP or not.
enable_dnstap_responses: Determines whether the response
messages need to be forwarded to DNSTAP or not.
enable_excluded_domain_names: Determines if excluding domain
names from captured DNS queries and responses is enabled or
disabled.
enable_fixed_rrset_order_fqdns: Determines if the fixed RRset
order FQDN is enabled or not.
enable_ftc: Determines whether Fault Tolerant Caching (FTC) is
enabled.
enable_gss_tsig: Determines whether all appliances in the Grid
are enabled to receive GSS-TSIG authenticated updates from
DNS clients.
enable_host_rrset_order: Determines if the host RRset order is
enabled or not.
enable_hsm_signing: Determines whether Hardware Security Modules
(HSMs) are enabled for key generation and signing. Note,
that you must configure the HSM group with at least one
enabled HSM.
enable_notify_source_port: Determines if the notify source port
at the Grid Level is enabled or not.
enable_query_rewrite: Determines if the DNS query rewrite is
enabled or not.
enable_query_source_port: Determines if the query source port at
the Grid Level is enabled or not.
excluded_domain_names: The list of domains that are excluded
from DNS query and response capture.
expire_after: The expiration time of a Grid DNS object. If the
secondary DNS server fails to contact the primary server for
the specified interval, the secondary server stops giving
out answers about the zone because the zone data is too old
to be useful.
file_transfer_setting: The DNS capture file transfer
settings.Include the specified parameter to set the
attribute value. Omit the parameter to retrieve the
attribute value.
filter_aaaa: The type of AAAA filtering for this member DNS
object.
filter_aaaa_list: The list of IPv4 addresses and networks from
which queries are received. AAAA filtering is applied to
these addresses.
fixed_rrset_order_fqdns: The fixed RRset order FQDN. If this
field does not contain an empty value, the appliance will
automatically set the enable_fixed_rrset_order_fqdns field
to 'true', unless the same request sets the enable field to
'false'.
forward_only: Determines if member sends queries to forwarders
only. When the value is "true", the member sends queries to
forwarders only, and not to other internal or Internet root
servers.
forward_updates: Determines if secondary servers is allowed to
forward updates to the DNS server or not.
forwarders: The forwarders for the member. A forwarder is
essentially a name server to which other name servers first
send all of their off-site queries. The forwarder builds up
a cache of information, avoiding the need for the other name
servers to send queries off-site.
ftc_expired_record_timeout: The timeout interval (in seconds)
after which the expired Fault Tolerant Caching (FTC)record
is stale and no longer valid.
ftc_expired_record_ttl: The TTL value (in seconds) of the
expired Fault Tolerant Caching (FTC) record in DNS
responses.
gen_eadb_from_hosts: Flag for taking EA values from IPAM Hosts
into consideration for the DTC topology EA database.
gen_eadb_from_network_containers: Flag for taking EA values from
IPAM Network Containers into consideration for the DTC
topology EA database.
gen_eadb_from_networks: Flag for taking EA values from IPAM
Network into consideration for the DTC topology EA database.
gen_eadb_from_ranges: Flag for taking EA values from IPAM Ranges
into consideration for the DTC topology EA database.
gss_tsig_keys: The list of GSS-TSIG keys for a Grid DNS object.
lame_ttl: The number of seconds to cache lame delegations or
lame servers.
last_queried_acl: Determines last queried ACL for the specified
IPv4 or IPv6 addresses and networks in scavenging settings.
logging_categories: The logging categories.
max_cache_ttl: The maximum time (in seconds) for which the
server will cache positive answers.
max_cached_lifetime: The maximum time (in seconds) a DNS
response can be stored in the hardware acceleration
cache.Valid values are unsigned integer between 60 and
86400, inclusive.
max_ncache_ttl: The maximum time (in seconds) for which the
server will cache negative (NXDOMAIN) responses.The maximum
allowed value is 604800.
max_udp_size: The value is used by authoritative DNS servers to
never send DNS responses larger than the configured value.
The value should be between 512 and 4096 bytes. The
recommended value is between 512 and 1220 bytes.
member_secondary_notify: Determines if Grid members that are
authoritative secondary servers are allowed to send
notification messages to external name servers, if the Grid
member that is primary for a zone fails or loses
connectivity.
negative_ttl: The negative TTL value of a Grid DNS object. This
interval tells the secondary how long data can be cached for
"Does Not Respond" responses.
notify_delay: Specifies with how many seconds of delay the
notify messages are sent to secondaries.
notify_source_port: The source port for notify messages. When
requesting zone transfers from the primary server, some
secondary DNS servers use the source port number (the
primary server used to send the notify message) as the
destination port number in the zone transfer request.Valid
values are between 1 and 63999. The default is picked by
BIND.
nsgroup_default: The default nameserver group.
nsgroups: A name server group is a collection of one primary DNS
server and one or more secondary DNS servers.
nxdomain_log_query: Determines if NXDOMAIN redirection queries
are logged or not.
nxdomain_redirect: Determines if NXDOMAIN redirection is enabled
or not.
nxdomain_redirect_addresses: The list of IPv4 NXDOMAIN
redirection addresses.
nxdomain_redirect_addresses_v6: The list of IPv6 NXDOMAIN
redirection addresses.
nxdomain_redirect_ttl: The TTL value (in seconds) of synthetic
DNS responses that result from NXDOMAIN redirection.
nxdomain_rulesets: The Ruleset object names assigned at the Grid
level for NXDOMAIN redirection.
preserve_host_rrset_order_on_secondaries: Determines if the host
RRset order on secondaries is preserved or not.
protocol_record_name_policies: The list of record name policies.
query_rewrite_domain_names: The list of domain names that
trigger DNS query rewrite.
query_rewrite_prefix: The domain name prefix for DNS query
rewrite.
query_source_port: The source port for queries. Specifying a
source port number for recursive queries ensures that a
firewall will allow the response.Valid values are between 1
and 63999. The default is picked by BIND.
recursive_query_list: The list of IPv4 or IPv6 addresses,
networks or hosts authenticated by Transaction signature
(TSIG) key from which recursive queries are allowed or
denied.
refresh_timer: The refresh time. This interval tells the
secondary how often to send a message to the primary for a
zone to check that its data is current, and retrieve fresh
data if it is not.
resolver_query_timeout: The recursive query timeout for the
member.
response_rate_limiting: The response rate limiting settings for
the member.
restart_setting: The restart setting.
retry_timer: The retry time. This interval tells the secondary
how long to wait before attempting to recontact the primary
after a connection failure occurs between the two servers.
root_name_server_type: Determines the type of root name servers.
rpz_disable_nsdname_nsip: Determines if NSDNAME and NSIP
resource records from RPZ feeds are enabled or not.
rpz_drop_ip_rule_enabled: Enables the appliance to ignore RPZ-IP
triggers with prefix lengths less than the specified minimum
prefix length.
rpz_drop_ip_rule_min_prefix_length_ipv4: The minimum prefix
length for IPv4 RPZ-IP triggers. The appliance ignores RPZ-
IP triggers with prefix lengths less than the specified
minimum IPv4 prefix length.
rpz_drop_ip_rule_min_prefix_length_ipv6: The minimum prefix
length for IPv6 RPZ-IP triggers. The appliance ignores RPZ-
IP triggers with prefix lengths less than the specified
minimum IPv6 prefix length.
rpz_qname_wait_recurse: Determines if recursive RPZ lookups are
enabled.
scavenging_settings: The Grid level scavenging settings.
serial_query_rate: The number of maximum concurrent SOA queries
per second.Valid values are unsigned integer between 20 and
1000, inclusive.
server_id_directive: The value of the server-id directive for
BIND and Unbound DNS.
sortlist: A sort list determines the order of addresses in
responses made to DNS queries.
store_locally: Determines if the storage of query capture
reports on the appliance is enabled or disabled.
syslog_facility: The syslog facility. This is the location on
the syslog server to which you want to sort the DNS logging
messages.
transfer_excluded_servers: The list of excluded DNS servers
during zone transfers.
transfer_format: The BIND format for a zone transfer. This
provides tracking capabilities for single or multiple
transfers and their associated servers.
transfers_in: The number of maximum concurrent transfers for the
Grid.Valid values are unsigned integer between 10 and 10000,
inclusive.
transfers_out: The number of maximum outbound concurrent zone
transfers.Valid values are unsigned integer between 10 and
10000, inclusive.
transfers_per_ns: The number of maximum concurrent transfers per
member.Valid values are unsigned integer between 2 and
10000, inclusive.
zone_deletion_double_confirm: Determines if the double
confirmation during zone deletion is enabled or not.
"""
_infoblox_type = 'grid:dns'
_fields = ['add_client_ip_mac_options', 'allow_bulkhost_ddns',
'allow_gss_tsig_zone_updates', 'allow_query',
'allow_recursive_query', 'allow_transfer', 'allow_update',
'anonymize_response_logging', 'attack_mitigation',
'auto_blackhole', 'bind_check_names_policy',
'bind_hostname_directive', 'blackhole_list', 'blacklist_action',
'blacklist_log_query', 'blacklist_redirect_addresses',
'blacklist_redirect_ttl', 'blacklist_rulesets',
'bulk_host_name_templates',
'capture_dns_queries_on_all_domains',
'check_names_for_ddns_and_zone_transfer',
'client_subnet_domains', 'client_subnet_ipv4_prefix_length',
'client_subnet_ipv6_prefix_length',
'copy_client_ip_mac_options', 'copy_xfer_to_notify',
'custom_root_name_servers',
'ddns_force_creation_timestamp_update', 'ddns_principal_group',
'ddns_principal_tracking', 'ddns_restrict_patterns',
'ddns_restrict_patterns_list', 'ddns_restrict_protected',
'ddns_restrict_secure', 'ddns_restrict_static',
'default_bulk_host_name_template', 'default_ttl',
'disable_edns', 'dns64_groups', 'dns_cache_acceleration_ttl',
'dns_health_check_anycast_control',
'dns_health_check_domain_list', 'dns_health_check_interval',
'dns_health_check_recursion_flag', 'dns_health_check_retries',
'dns_health_check_timeout', 'dns_query_capture_file_time_limit',
'dnssec_blacklist_enabled', 'dnssec_dns64_enabled',
'dnssec_enabled', 'dnssec_expired_signatures_enabled',
'dnssec_key_params', 'dnssec_negative_trust_anchors',
'dnssec_nxdomain_enabled', 'dnssec_rpz_enabled',
'dnssec_trusted_keys', 'dnssec_validation_enabled',
'dnstap_setting', 'domains_to_capture_dns_queries',
'dtc_dns_queries_specific_behavior', 'dtc_dnssec_mode',
'dtc_edns_prefer_client_subnet', 'dtc_scheduled_backup',
'dtc_topology_ea_list', 'edns_udp_size', 'email',
'enable_blackhole', 'enable_blacklist',
'enable_capture_dns_queries', 'enable_capture_dns_responses',
'enable_client_subnet_forwarding',
'enable_client_subnet_recursive',
'enable_delete_associated_ptr', 'enable_dns64',
'enable_dns_health_check', 'enable_dnstap_queries',
'enable_dnstap_responses', 'enable_excluded_domain_names',
'enable_fixed_rrset_order_fqdns', 'enable_ftc',
'enable_gss_tsig', 'enable_host_rrset_order',
'enable_hsm_signing', 'enable_notify_source_port',
'enable_query_rewrite', 'enable_query_source_port',
'excluded_domain_names', 'expire_after',
'file_transfer_setting', 'filter_aaaa', 'filter_aaaa_list',
'fixed_rrset_order_fqdns', 'forward_only', 'forward_updates',
'forwarders', 'ftc_expired_record_timeout',
'ftc_expired_record_ttl', 'gen_eadb_from_hosts',
'gen_eadb_from_network_containers', 'gen_eadb_from_networks',
'gen_eadb_from_ranges', 'gss_tsig_keys', 'lame_ttl',
'last_queried_acl', 'logging_categories', 'max_cache_ttl',
'max_cached_lifetime', 'max_ncache_ttl', 'max_udp_size',
'member_secondary_notify', 'negative_ttl', 'notify_delay',
'notify_source_port', 'nsgroup_default', 'nsgroups',
'nxdomain_log_query', 'nxdomain_redirect',
'nxdomain_redirect_addresses', 'nxdomain_redirect_addresses_v6',
'nxdomain_redirect_ttl', 'nxdomain_rulesets',
'preserve_host_rrset_order_on_secondaries',
'protocol_record_name_policies', 'query_rewrite_domain_names',
'query_rewrite_prefix', 'query_source_port',
'recursive_query_list', 'refresh_timer',
'resolver_query_timeout', 'response_rate_limiting',
'restart_setting', 'retry_timer', 'root_name_server_type',
'rpz_disable_nsdname_nsip', 'rpz_drop_ip_rule_enabled',
'rpz_drop_ip_rule_min_prefix_length_ipv4',
'rpz_drop_ip_rule_min_prefix_length_ipv6',
'rpz_qname_wait_recurse', 'scavenging_settings',
'serial_query_rate', 'server_id_directive', 'sortlist',
'store_locally', 'syslog_facility', 'transfer_excluded_servers',
'transfer_format', 'transfers_in', 'transfers_out',
'transfers_per_ns', 'zone_deletion_double_confirm']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = []
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'allow_query': Addressac.from_dict,
'allow_transfer': Addressac.from_dict,
'allow_update': Addressac.from_dict,
'blackhole_list': Addressac.from_dict,
'client_subnet_domains': Clientsubnetdomain.from_dict,
'custom_root_name_servers': Extserver.from_dict,
'dnssec_trusted_keys': Dnssectrustedkey.from_dict,
'filter_aaaa_list': Addressac.from_dict,
'fixed_rrset_order_fqdns': GridDnsFixedrrsetorderfqdn.from_dict,
'last_queried_acl': Addressac.from_dict,
'recursive_query_list': Addressac.from_dict,
'sortlist': Sortlist.from_dict,
}
def run_scavenging(self, *args, **kwargs):
return self._call_func("run_scavenging", *args, **kwargs)
class GridFiledistribution(InfobloxObject):
""" GridFiledistribution: Grid file distribution object.
Corresponds to WAPI object 'grid:filedistribution'
The Grid file distribution object represents the file distribution
storage limit configuration and global file distribution statistics.
Attributes:
allow_uploads: Determines whether the uploads to Grid members
are allowed.
backup_storage: Determines whether to include distributed files
in the backup.
current_usage: The value is the percentage of the allocated TFTP
storage space that is used, expressed in tenth of a percent.
Valid values are from 0 to 1000.
enable_anonymous_ftp: Determines whether the FTP anonymous login
is enabled.
global_status: The Grid file distribution global status.
name: The Grid name.
storage_limit: Maximum storage in megabytes allowed on the Grid.
The maximum storage space allowed for all file distribution
services on a Grid is equal to the storage space allowed to
the Grid member with the smallest amount of space allowed.
"""
_infoblox_type = 'grid:filedistribution'
_fields = ['allow_uploads', 'backup_storage', 'current_usage',
'enable_anonymous_ftp', 'global_status', 'name',
'storage_limit']
_search_for_update_fields = ['name']
_updateable_search_fields = []
_all_searchable_fields = ['name']
_return_fields = ['allow_uploads', 'current_usage', 'global_status',
'name', 'storage_limit']
_remap = {}
_shadow_fields = ['_ref']
class GridLicensePool(InfobloxObject):
""" GridLicensePool: Grid License Pool object.
Corresponds to WAPI object 'grid:license_pool'
This object represents the Grid license pool.
Attributes:
assigned: The number of dynamic licenses allocated to vNIOS
appliances.
expiration_status: The license expiration status.
expiry_date: The expiration timestamp of the license.
installed: The total number of dynamic licenses allowed for this
license pool.
key: The license string for the license pool.
limit: The limitation of dynamic license that can be allocated
from the license pool.
limit_context: The license limit context.
model: The supported vNIOS virtual appliance model.
subpools: The license pool subpools.
temp_assigned: The total number of temporary dynamic licenses
allocated to vNIOS appliances.
type: The license type.
"""
_infoblox_type = 'grid:license_pool'
_fields = ['assigned', 'expiration_status', 'expiry_date', 'installed',
'key', 'limit', 'limit_context', 'model', 'subpools',
'temp_assigned', 'type']
_search_for_update_fields = ['type']
_updateable_search_fields = []
_all_searchable_fields = ['key', 'limit', 'model', 'type']
_return_fields = ['type']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'subpools': GridLicensesubpool.from_dict,
}
class GridLicensePoolContainer(InfobloxObject):
""" GridLicensePoolContainer: Grid License Pool Container object.
Corresponds to WAPI object 'grid:license_pool_container'
This object represents the Grid license pool container.
Attributes:
last_entitlement_update: The timestamp when the last pool
licenses were updated.
lpc_uid: The world-wide unique ID for the license pool
container.
"""
_infoblox_type = 'grid:license_pool_container'
_fields = ['last_entitlement_update', 'lpc_uid']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = []
_remap = {}
_shadow_fields = ['_ref']
def allocate_licenses(self, *args, **kwargs):
return self._call_func("allocate_licenses", *args, **kwargs)
class GridMaxminddbinfo(InfobloxObject):
""" GridMaxminddbinfo: Topology DB Info object.
Corresponds to WAPI object 'grid:maxminddbinfo'
The information about Topology DB.
Attributes:
binary_major_version: The major version of DB binary format.
binary_minor_version: The minor version of DB binary format.
build_time: The time at which the DB was built.
database_type: The structure of data records
("GeoLite2-Country", GeoLite2-City", etc.).
deployment_time: The time at which the current Topology DB was
deployed.
member: The member for testing the connection.
topology_type: The topology type.
"""
_infoblox_type = 'grid:maxminddbinfo'
_fields = ['binary_major_version', 'binary_minor_version', 'build_time',
'database_type', 'deployment_time', 'member', 'topology_type']
_search_for_update_fields = ['topology_type']
_updateable_search_fields = []
_all_searchable_fields = ['topology_type']
_return_fields = ['binary_major_version', 'binary_minor_version',
'build_time', 'database_type', 'deployment_time',
'member', 'topology_type']
_remap = {}
_shadow_fields = ['_ref']
class GridMemberCloudapi(InfobloxObject):
""" GridMemberCloudapi: Member Cloud API object.
Corresponds to WAPI object 'grid:member:cloudapi'
Class that represents member Cloud configuration settings.
Attributes:
allow_api_admins: Defines which administrators are allowed to
perform Cloud API request on the Grid Member: no
administrators (NONE), any administrators (ALL) or
administrators in the ACL list (LIST). Default is ALL.
allowed_api_admins: List of administrators allowed to perform
Cloud Platform API requests on that member.
enable_service: Controls whether the Cloud API service runs on
the member or not.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
gateway_config: Structure containing all the information related
to Gateway configuration for the member
member: The related Grid Member.
status: Status of Cloud API service on the member.
"""
_infoblox_type = 'grid:member:cloudapi'
_fields = ['allow_api_admins', 'allowed_api_admins', 'enable_service',
'extattrs', 'gateway_config', 'member', 'status']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = ['allow_api_admins', 'allowed_api_admins',
'enable_service', 'extattrs', 'member', 'status']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'allowed_api_admins': GridCloudapiUser.from_dict,
}
class GridServicerestartGroup(InfobloxObject):
""" GridServicerestartGroup: Service Restart Group object.
Corresponds to WAPI object 'grid:servicerestart:group'
The Grid Service Restart Group object provides the following
information about the restart: applicable services, members, restart
order, and periodicity.
Attributes:
comment: Comment for the Restart Group; maximum 256 characters.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
is_default: Determines if this Restart Group is the default
group.
last_updated_time: The timestamp when the status of the latest
request has changed.
members: The list of members belonging to the group.
mode: The default restart method for this Restart Group.
name: The name of this Restart Group.
position: The order to restart.
recurring_schedule: The recurring schedule for restart of a
group.
requests: The list of requests associated with a restart group.
service: The applicable service for this Restart Group.
status: The restart status for a restart group.
"""
_infoblox_type = 'grid:servicerestart:group'
_fields = ['comment', 'extattrs', 'is_default', 'last_updated_time',
'members', 'mode', 'name', 'position', 'recurring_schedule',
'requests', 'service', 'status']
_search_for_update_fields = ['name', 'service']
_updateable_search_fields = ['comment', 'name', 'service']
_all_searchable_fields = ['comment', 'is_default', 'name', 'service']
_return_fields = ['comment', 'extattrs', 'name', 'service']
_remap = {}
_shadow_fields = ['_ref']
class GridServicerestartGroupOrder(InfobloxObject):
""" GridServicerestartGroupOrder: Restart Group Order object.
Corresponds to WAPI object 'grid:servicerestart:group:order'
The Grid Service Restart Group Order Setting is used to set the
restart order for particular services and members.
Attributes:
groups: The ordered list of the Service Restart Group.
"""
_infoblox_type = 'grid:servicerestart:group:order'
_fields = ['groups']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = []
_remap = {}
_shadow_fields = ['_ref']
class GridServicerestartRequest(InfobloxObject):
""" GridServicerestartRequest: Restart Request object.
Corresponds to WAPI object 'grid:servicerestart:request'
The Restart Request object provides information and statistics about
the service restart routine for the Service Restart Group.
Attributes:
error: The error message if restart has failed.
forced: Indicates if this is a force restart.
group: The name of the Restart Group associated with the
request.
last_updated_time: The timestamp when the status of the request
has changed.
member: The member to restart.
needed: Indicates if restart is needed.
order: The order to restart.
result: The result of the restart operation.
service: The service to restart.
state: The state of the request.
"""
_infoblox_type = 'grid:servicerestart:request'
_fields = ['error', 'forced', 'group', 'last_updated_time', 'member',
'needed', 'order', 'result', 'service', 'state']
_search_for_update_fields = ['group']
_updateable_search_fields = []
_all_searchable_fields = ['group', 'member']
_return_fields = ['error', 'group', 'result', 'state']
_remap = {}
_shadow_fields = ['_ref']
class GridServicerestartRequestChangedobject(InfobloxObject):
""" GridServicerestartRequestChangedobject: Grid service restart
request changed object.
Corresponds to WAPI object
'grid:servicerestart:request:changedobject'
The Grid service restart request changed object provides information
about changes that are waiting for the restart.
Attributes:
action: The operation on the changed object.
changed_properties: The list of changed properties in the
object.
changed_time: The time when the object was changed.
object_name: The name of the changed object.
object_type: The type of the changed object. This is undefined
if the object is not supported.
user_name: The name of the user who changed the object
properties.
"""
_infoblox_type = 'grid:servicerestart:request:changedobject'
_fields = ['action', 'changed_properties', 'changed_time', 'object_name',
'object_type', 'user_name']
_search_for_update_fields = ['user_name']
_updateable_search_fields = []
_all_searchable_fields = ['user_name']
_return_fields = ['action', 'changed_properties', 'changed_time',
'object_name', 'object_type', 'user_name']
_remap = {}
_shadow_fields = ['_ref']
class GridServicerestartStatus(InfobloxObject):
""" GridServicerestartStatus: Restart Status object.
Corresponds to WAPI object 'grid:servicerestart:status'
The Restart Status object provides information and statistics about
service restart routine for the Grid or Service Restart Group.
Attributes:
failures: The number of failed requests.
finished: The number of finished requests.
grouped: The type of grouping.
needed_restart: The number of created yet unprocessed requests
for restart.
no_restart: The number of requests that did not require a
restart.
parent: A reference to the grid or grid:servicerestart:group
object associated with the request.
pending: The number of requests that are pending a restart.
pending_restart: The number of forced or needed requests pending
for restart.
processing: The number of not forced and not needed requests
pending for restart.
restarting: The number of service restarts for corresponding
members.
success: The number of requests associated with successful
restarts.
timeouts: The number of timeout requests.
"""
_infoblox_type = 'grid:servicerestart:status'
_fields = ['failures', 'finished', 'grouped', 'needed_restart',
'no_restart', 'parent', 'pending', 'pending_restart',
'processing', 'restarting', 'success', 'timeouts']
_search_for_update_fields = ['parent']
_updateable_search_fields = []
_all_searchable_fields = ['parent']
_return_fields = ['failures', 'finished', 'grouped', 'needed_restart',
'no_restart', 'parent', 'pending', 'pending_restart',
'processing', 'restarting', 'success', 'timeouts']
_remap = {}
_shadow_fields = ['_ref']
class GridThreatanalytics(InfobloxObject):
""" GridThreatanalytics: Grid threat analytics object.
Corresponds to WAPI object 'grid:threatanalytics'
To mitigate DNS data exfiltration, Infoblox DNS threat analytics
employs analytics algorithms that analyze incoming DNS queries and
responses to detect DNS tunneling traffic.
The Grid threat analytics object contains settings and information
about updates download, and mitigation response policy zone to which
queries on blacklisted domains are transfered.
Attributes:
configure_domain_collapsing: Disable domain collapsing at grid
level
current_moduleset: The current threat analytics module set.
current_whitelist: The Grid whitelist.
dns_tunnel_black_list_rpz_zones: The list of response policy
zones for DNS tunnelling requests.
domain_collapsing_level: Level of domain collapsing
enable_auto_download: Determines whether the automatic threat
analytics module set download is enabled.
enable_scheduled_download: Determines whether the scheduled
download of the threat analytics module set is enabled.
enable_whitelist_auto_download: Indicates whether auto download
service is enabled
enable_whitelist_scheduled_download: Indicates whether the
custom scheduled settings for auto download is enabled. If
false then default frequency is once per 24 hours
last_checked_for_update: The last time when the threat analytics
module set was checked for the update.
last_checked_for_whitelist_update: Timestamp of last checked
whitelist
last_module_update_time: The last update time for the threat
analytics module set.
last_module_update_version: The version number of the last
updated threat analytics module set.
last_whitelist_update_time: The last update time for the threat
analytics whitelist.
last_whitelist_update_version: The version number of the last
updated threat analytics whitelist.
module_update_policy: The update policy for the threat analytics
module set.
name: The Grid name.
scheduled_download: The schedule settings for the threat
analytics module set download.
scheduled_whitelist_download: Schedule setting for automatic
whitelist update run
whitelist_update_policy: whitelist update policy (manual or
automatic)
"""
_infoblox_type = 'grid:threatanalytics'
_fields = ['configure_domain_collapsing', 'current_moduleset',
'current_whitelist', 'dns_tunnel_black_list_rpz_zones',
'domain_collapsing_level', 'enable_auto_download',
'enable_scheduled_download', 'enable_whitelist_auto_download',
'enable_whitelist_scheduled_download',
'last_checked_for_update', 'last_checked_for_whitelist_update',
'last_module_update_time', 'last_module_update_version',
'last_whitelist_update_time', 'last_whitelist_update_version',
'module_update_policy', 'name', 'scheduled_download',
'scheduled_whitelist_download', 'whitelist_update_policy']
_search_for_update_fields = ['name']
_updateable_search_fields = []
_all_searchable_fields = ['name']
_return_fields = ['enable_auto_download', 'enable_scheduled_download',
'module_update_policy', 'name']
_remap = {}
_shadow_fields = ['_ref']
def download_threat_analytics_moduleset_update(self, *args, **kwargs):
return self._call_func("download_threat_analytics_moduleset_update",
*args, **kwargs)
def download_threat_analytics_whitelist_update(self, *args, **kwargs):
return self._call_func("download_threat_analytics_whitelist_update",
*args, **kwargs)
def move_blacklist_rpz_to_white_list(self, *args, **kwargs):
return self._call_func("move_blacklist_rpz_to_white_list", *args,
**kwargs)
def set_last_uploaded_threat_analytics_moduleset(self, *args, **kwargs):
return self._call_func("set_last_uploaded_threat_analytics_moduleset",
*args, **kwargs)
def test_threat_analytics_server_connectivity(self, *args, **kwargs):
return self._call_func("test_threat_analytics_server_connectivity",
*args, **kwargs)
def update_threat_analytics_moduleset(self, *args, **kwargs):
return self._call_func("update_threat_analytics_moduleset", *args,
**kwargs)
class GridThreatprotection(InfobloxObject):
""" GridThreatprotection: The Grid threat protection object.
Corresponds to WAPI object 'grid:threatprotection'
The Grid threat protection settings.
Attributes:
current_ruleset: The current Grid ruleset.
disable_multiple_dns_tcp_request: Determines if multiple BIND
responses via TCP connection are disabled.
enable_accel_resp_before_threat_protection: Determines if DNS
responses are sent from acceleration cache before applying
Threat Protection rules. Recommended for better performance
when using DNS Cache Acceleration.
enable_auto_download: Determines if auto download service is
enabled.
enable_nat_rules: Determines if NAT (Network Address
Translation) mapping for threat protection is enabled or
not.
enable_scheduled_download: Determines if scheduled download is
enabled. The default frequency is once in every 24 hours if
it is disabled.
events_per_second_per_rule: The number of events logged per
second per rule.
grid_name: The Grid name.
last_checked_for_update: The time when the Grid last checked for
updates.
last_rule_update_timestamp: The last rule update timestamp.
last_rule_update_version: The version of last rule update.
nat_rules: The list of NAT mapping rules for threat protection.
outbound_settings: Outbound settings for ATP events.
rule_update_policy: The update rule policy.
scheduled_download: The schedule setting for automatic rule
update.
"""
_infoblox_type = 'grid:threatprotection'
_fields = ['current_ruleset', 'disable_multiple_dns_tcp_request',
'enable_accel_resp_before_threat_protection',
'enable_auto_download', 'enable_nat_rules',
'enable_scheduled_download', 'events_per_second_per_rule',
'grid_name', 'last_checked_for_update',
'last_rule_update_timestamp', 'last_rule_update_version',
'nat_rules', 'outbound_settings', 'rule_update_policy',
'scheduled_download']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = ['grid_name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'nat_rules': ThreatprotectionNatrule.from_dict,
}
def atp_object_reset(self, *args, **kwargs):
return self._call_func("atp_object_reset", *args, **kwargs)
def test_atp_server_connectivity(self, *args, **kwargs):
return self._call_func("test_atp_server_connectivity", *args, **kwargs)
class GridX509Certificate(InfobloxObject):
""" GridX509Certificate: X509Certificate object.
Corresponds to WAPI object 'grid:x509certificate'
In the X.509 system, a certification authority issues a certificate
binding a public key to a particular distinguished name in the X.500
tradition, or to an alternative name such as an e-mail address or a
DNS entry.
Attributes:
issuer: Certificate issuer.
serial: X509Certificate serial number.
subject: A Distinguished Name that is made of multiple relative
distinguished names (RDNs).
valid_not_after: Certificate expiry date.
valid_not_before: Certificate validity start date.
"""
_infoblox_type = 'grid:x509certificate'
_fields = ['issuer', 'serial', 'subject', 'valid_not_after',
'valid_not_before']
_search_for_update_fields = ['issuer', 'serial', 'subject']
_updateable_search_fields = []
_all_searchable_fields = ['issuer', 'serial', 'subject', 'valid_not_after',
'valid_not_before']
_return_fields = ['issuer', 'serial', 'subject']
_remap = {}
_shadow_fields = ['_ref']
class Hostnamerewritepolicy(InfobloxObject):
""" Hostnamerewritepolicy: Hostname rewrite policy object.
Corresponds to WAPI object 'hostnamerewritepolicy'
A hostname rewrite policy object represents the set of valid
characters as well as replacement characters for names that do not
conform to the policy.
Attributes:
is_default: True if the policy is the Grid default.
name: The name of a hostname rewrite policy object.
pre_defined: Determines whether the policy is a predefined one.
replacement_character: The replacement character for symbols in
hostnames that do not conform to the hostname policy.
valid_characters: The set of valid characters represented in
string format.
"""
_infoblox_type = 'hostnamerewritepolicy'
_fields = ['is_default', 'name', 'pre_defined', 'replacement_character',
'valid_characters']
_search_for_update_fields = ['name']
_updateable_search_fields = ['name']
_all_searchable_fields = ['name']
_return_fields = ['name', 'replacement_character', 'valid_characters']
_remap = {}
_shadow_fields = ['_ref']
class HsmAllgroups(InfobloxObject):
""" HsmAllgroups: All Hardware Security Module groups object.
Corresponds to WAPI object 'hsm:allgroups'
The All Hardware Security Module (HSM) groups object is used to
retrieve all HSM groups configured on the appliance.
Attributes:
groups: The list of HSM groups configured on the appliance.
"""
_infoblox_type = 'hsm:allgroups'
_fields = ['groups']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = ['groups']
_remap = {}
_shadow_fields = ['_ref']
class HsmSafenetgroup(InfobloxObject):
""" HsmSafenetgroup: The Hardware Security Module SafeNet group
object.
Corresponds to WAPI object 'hsm:safenetgroup'
You can integrate a Grid with a third-party, network-attached
Hardware Security Modules (HSMs) for secure private key storage and
generation, and zone-signing offloading. Infoblox appliances support
integration with either SafeNet HSMs or Thales HSMs. When using a
network-attached HSM, you can provide tight physical access control,
allowing only selected security personnel to physically access the
HSM that stores the DNSSEC keys.
The Hardware Security Module (HSM) SafeNet group represents the
collection of HSM SafeeNet devices that are used for private key
storage and generation.
Note that you can create one HSM SafeNet group in the Grid.
Attributes:
comment: The HSM SafeNet group comment.
group_sn: The HSM SafeNet group serial number.
hsm_safenet: The list of HSM SafeNet devices.
hsm_version: The HSM SafeNet version.
name: The HSM SafeNet group name.
pass_phrase: The pass phrase used to unlock the HSM SafeNet
keystore.
status: The status of all HSM SafeNet devices in the group.
"""
_infoblox_type = 'hsm:safenetgroup'
_fields = ['comment', 'group_sn', 'hsm_safenet', 'hsm_version', 'name',
'pass_phrase', 'status']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'hsm_version', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'hsm_safenet': HsmSafenet.from_dict,
}
def refresh_hsm(self, *args, **kwargs):
return self._call_func("refresh_hsm", *args, **kwargs)
def test_hsm_status(self, *args, **kwargs):
return self._call_func("test_hsm_status", *args, **kwargs)
class HsmThalesgroup(InfobloxObject):
""" HsmThalesgroup: The Thales Harware Security Module group object.
Corresponds to WAPI object 'hsm:thalesgroup'
You can integrate a Grid with a third-party, network-attached
Hardware Security Modules (HSMs) for secure private key storage and
generation, and zone-signing offloading. Infoblox appliances support
integration with either SafeNet HSMs or Thales HSMs. When using a
network-attached HSM, you can provide tight physical access control,
allowing only selected security personnel to physically access the
HSM that stores the DNSSEC keys.
The Thales Hardware Security Module (HSM) group represents the
collection of Thales HSM devices that are used for private key
storage and generation.
Note that you can create one Thales HSM group in the Grid.
Attributes:
card_name: The Thales HSM softcard name.
comment: The Thales HSM group comment.
key_server_ip: The remote file server (RFS) IPv4 Address.
key_server_port: The remote file server (RFS) port.
name: The Thales HSM group name.
pass_phrase: The password phrase used to unlock the Thales HSM
keystore.
protection: The level of protection that the HSM group uses for
the DNSSEC key data.
status: The status of all Thales HSM devices in the group.
thales_hsm: The list of Thales HSM devices.
"""
_infoblox_type = 'hsm:thalesgroup'
_fields = ['card_name', 'comment', 'key_server_ip', 'key_server_port',
'name', 'pass_phrase', 'protection', 'status', 'thales_hsm']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'key_server_ip', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'thales_hsm': HsmThales.from_dict,
}
def refresh_hsm(self, *args, **kwargs):
return self._call_func("refresh_hsm", *args, **kwargs)
def test_hsm_status(self, *args, **kwargs):
return self._call_func("test_hsm_status", *args, **kwargs)
class IpamStatistics(InfobloxObject):
""" IpamStatistics: IPAM statistics object.
Corresponds to WAPI object 'ipam:statistics'
A synthetic object used to view the IPAM statistics of the network
or network container in an Infoblox appliance
Attributes:
cidr: The network CIDR.
conflict_count: The number of conflicts discovered via network
discovery. This attribute is only valid for a Network
object.
ms_ad_user_data: The Microsoft Active Directory user related
information.
network: The network address.
network_view: The network view.
unmanaged_count: The number of unmanaged IP addresses as
discovered by network discovery. This attribute is only
valid for a Network object.
utilization: The network utilization in percentage.
utilization_update: The time that the utilization statistics
were updated last. This attribute is only valid for a
Network object. For a Network Container object, the return
value is undefined.
"""
_infoblox_type = 'ipam:statistics'
_fields = ['cidr', 'conflict_count', 'ms_ad_user_data', 'network',
'network_view', 'unmanaged_count', 'utilization',
'utilization_update']
_search_for_update_fields = ['network', 'network_view']
_updateable_search_fields = []
_all_searchable_fields = ['network', 'network_view']
_return_fields = ['cidr', 'network', 'network_view']
_remap = {}
_shadow_fields = ['_ref']
class IPAddress(InfobloxObject):
@classmethod
def get_v4_class(cls):
return IPv4Address
@classmethod
def get_v6_class(cls):
return IPv6Address
class IPv4Address(IPAddress):
""" IPv4Address: IPAM IPv4Address object.
Corresponds to WAPI object 'ipv4address'
This object is created only as part of the record.host object , it
cannot be created directly.
Attributes:
comment: Comment for the address; maximum 256 characters.
conflict_types: Types of the conflict.
dhcp_client_identifier: The client unique identifier.
discover_now_status: Discover now status for this address.
discovered_data: The discovered data for this address.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
fingerprint: DHCP fingerprint for the address.
ip_address: The IP address.
is_conflict: If set to True, the IP address has either a MAC
address conflict or a DHCP lease conflict detected through a
network discovery.
is_invalid_mac: This flag reflects whether the MAC address for
this address is invalid.
lease_state: The lease state of the address.
mac_address: The MAC address.
ms_ad_user_data: The Microsoft Active Directory user related
information.
names: The DNS names. For example, if the IP address belongs to
a host record, this field contains the hostname. This field
supports both single and array search.
network: The network to which this address belongs, in FQDN/CIDR
format.
network_view: The name of the network view.
objects: The objects associated with the IP address.
reserved_port: The reserved port for the address.
status: The current status of the address.
types: The types of associated objects. This field supports both
single and array search.
usage: Indicates whether the IP address is configured for DNS or
DHCP. This field supports both single and array search.
username: The name of the user who created or modified the
record.
"""
_infoblox_type = 'ipv4address'
_fields = ['comment', 'conflict_types', 'dhcp_client_identifier',
'discover_now_status', 'discovered_data', 'extattrs',
'fingerprint', 'ip_address', 'is_conflict', 'is_invalid_mac',
'lease_state', 'mac_address', 'ms_ad_user_data', 'names',
'network', 'network_view', 'objects', 'reserved_port', 'status',
'types', 'usage', 'username']
_search_for_update_fields = ['dhcp_client_identifier', 'ip_address',
'is_conflict', 'lease_state', 'mac_address',
'names', 'network', 'network_view', 'status',
'types', 'usage', 'username']
_updateable_search_fields = []
_all_searchable_fields = ['comment', 'dhcp_client_identifier',
'fingerprint', 'ip_address', 'is_conflict',
'lease_state', 'mac_address', 'names', 'network',
'network_view', 'status', 'types', 'usage',
'username']
_return_fields = ['dhcp_client_identifier', 'extattrs', 'ip_address',
'is_conflict', 'lease_state', 'mac_address', 'names',
'network', 'network_view', 'objects', 'status', 'types',
'usage', 'username']
_remap = {}
_shadow_fields = ['_ref']
_ip_version = 4
class IPv6Address(IPAddress):
""" IPv6Address: IPAM IPv6Address object.
Corresponds to WAPI object 'ipv6address'
This object is created only as part of the record.host object , it
cannot be created directly.
Attributes:
comment: Comment for the address; maximum 256 characters.
conflict_types: Types of the conflict.
discover_now_status: Discover now status for this address.
discovered_data: The discovered data for this address.
duid: DHCPv6 Unique Identifier (DUID) of the address object.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
fingerprint: DHCP fingerprint for the address.
ip_address: IPv6 addresses of the address object.
is_conflict: IP address has either a duid conflict or a DHCP
lease conflict detected through a network discovery.
lease_state: The lease state of the address.
ms_ad_user_data: The Microsoft Active Directory user related
information.
names: The DNS names. For example, if the IP address belongs to
a host record, this field contains the hostname. This field
supports both single and array search.
network: The network to which this address belongs, in FQDN/CIDR
format.
network_view: The name of the network view.
objects: The objects associated with the IP address.
reserved_port: The reserved port for the address.
status: The current status of the address.
types: The types of associated objects. This field supports both
single and array search.
usage: Indicates whether the IP address is configured for DNS or
DHCP. This field supports both single and array search.
"""
_infoblox_type = 'ipv6address'
_fields = ['comment', 'conflict_types', 'discover_now_status',
'discovered_data', 'duid', 'extattrs', 'fingerprint',
'ip_address', 'is_conflict', 'lease_state', 'ms_ad_user_data',
'names', 'network', 'network_view', 'objects', 'reserved_port',
'status', 'types', 'usage']
_search_for_update_fields = ['duid', 'ip_address', 'is_conflict',
'lease_state', 'names', 'network',
'network_view', 'status', 'types', 'usage']
_updateable_search_fields = []
_all_searchable_fields = ['comment', 'duid', 'fingerprint', 'ip_address',
'is_conflict', 'lease_state', 'names', 'network',
'network_view', 'status', 'types', 'usage']
_return_fields = ['duid', 'extattrs', 'ip_address', 'is_conflict',
'lease_state', 'names', 'network', 'network_view',
'objects', 'status', 'types', 'usage']
_remap = {}
_shadow_fields = ['_ref']
_ip_version = 6
class Ipv6Filteroption(InfobloxObject):
""" Ipv6Filteroption: DHCP filter option object.
Corresponds to WAPI object 'ipv6filteroption'
In the ISC DHCP terms, it defines a class of clients that match a
particular (option, value) pair. To define an option filter, add an
Option to the IPv6 DHCP Filter object.
Only superuser can add/modify/delete IPv6 option filters.
Attributes:
apply_as_class: Determines if apply as class is enabled or not.
If this flag is set to "true" the filter is treated as
global DHCP class, e.g it is written to DHCPv6 configuration
file even if it is not present in any DHCP range.
comment: The descriptive comment of a DHCP IPv6 filter option
object.
expression: The conditional expression of a DHCP IPv6 filter
option object.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
lease_time: Determines the lease time of a DHCP IPv6 filter
option object.
name: The name of a DHCP IPv6 option filter object.
option_list: An array of DHCP option structs that lists the DHCP
options associated with the object.
option_space: The option space of a DHCP IPv6 filter option
object.
"""
_infoblox_type = 'ipv6filteroption'
_fields = ['apply_as_class', 'comment', 'expression', 'extattrs',
'lease_time', 'name', 'option_list', 'option_space']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'option_list': DhcpOption.from_dict,
}
class Network(InfobloxObject):
@classmethod
def get_v4_class(cls):
return NetworkV4
@classmethod
def get_v6_class(cls):
return NetworkV6
class NetworkV4(Network):
""" NetworkV4: DHCP Network object.
Corresponds to WAPI object 'network'
When DHCP services are configured on an appliance, the network that
it serves must be defined. After a network is created, you can
either create all the subnets individually, or create a parent
network that encompasses the subnets.
Attributes:
authority: Authority for the DHCP network.
auto_create_reversezone: This flag controls whether reverse
zones are automatically created when the network is added.
bootfile: The bootfile name for the network. You can configure
the DHCP server to support clients that use the boot file
name option in their DHCPREQUEST messages.
bootserver: The bootserver address for the network. You can
specify the name and/or IP address of the boot server that
the host needs to boot.The boot server IPv4 Address or name
in FQDN format.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the network, maximum 256 characters.
conflict_count: The number of conflicts discovered via network
discovery.
ddns_domainname: The dynamic DNS domain name the appliance uses
specifically for DDNS updates for this network.
ddns_generate_hostname: If this field is set to True, the DHCP
server generates a hostname and updates DNS with it when the
DHCP client request does not contain a hostname.
ddns_server_always_updates: This field controls whether only the
DHCP server is allowed to update DNS, regardless of the DHCP
clients requests. Note that changes for this field take
effect only if ddns_use_option81 is True.
ddns_ttl: The DNS update Time to Live (TTL) value of a DHCP
network object.The TTL is a 32-bit unsigned integer that
represents the duration, in seconds, for which the update is
cached. Zero indicates that the update is not cached.
ddns_update_fixed_addresses: By default, the DHCP server does
not update DNS when it allocates a fixed address to a
client. You can configure the DHCP server to update the A
and PTR records of a client with a fixed address. When this
feature is enabled and the DHCP server adds A and PTR
records for a fixed address, the DHCP server never discards
the records.
ddns_use_option81: The support for DHCP Option 81 at the network
level.
delete_reason: The reason for deleting the RIR registration
request.
deny_bootp: If set to true, BOOTP settings are disabled and
BOOTP requests will be denied.
dhcp_utilization: The percentage of the total DHCP utilization
of the network multiplied by 1000. This is the percentage of
the total number of available IP addresses belonging to the
network versus the total number of all IP addresses in
network.
dhcp_utilization_status: A string describing the utilization
level of the network.
disable: Determines whether a network is disabled or not. When
this is set to False, the network is enabled.
discover_now_status: Discover now status for this network.
discovered_bgp_as: Number of the discovered BGP AS.When multiple
BGP autonomous systems are discovered in the network, this
field displays "Multiple".
discovered_bridge_domain: Discovered bridge domain.
discovered_tenant: Discovered tenant.
discovered_vlan_id: The identifier of the discovered VLAN.When
multiple VLANs are discovered in the network, this field
displays "Multiple".
discovered_vlan_name: The name of the discovered VLAN.When
multiple VLANs are discovered in the network, this field
displays "Multiple".
discovered_vrf_description: Description of the discovered
VRF.When multiple VRFs are discovered in the network, this
field displays "Multiple".
discovered_vrf_name: The name of the discovered VRF.When
multiple VRFs are discovered in the network, this field
displays "Multiple".
discovered_vrf_rd: Route distinguisher of the discovered
VRF.When multiple VRFs are discovered in the network, this
field displays "Multiple".
discovery_basic_poll_settings: The discovery basic poll settings
for this network.
discovery_blackout_setting: The discovery blackout setting for
this network.
discovery_engine_type: The network discovery engine type.
discovery_member: The member that will run discovery for this
network.
dynamic_hosts: The total number of DHCP leases issued for the
network.
email_list: The e-mail lists to which the appliance sends DHCP
threshold alarm e-mail messages.
enable_ddns: The dynamic DNS updates flag of a DHCP network
object. If set to True, the DHCP server sends DDNS updates
to DNS servers in the same Grid, and to external DNS
servers.
enable_dhcp_thresholds: Determines if DHCP thresholds are
enabled for the network.
enable_discovery: Determines whether a discovery is enabled or
not for this network. When this is set to False, the network
discovery is disabled.
enable_email_warnings: Determines if DHCP threshold warnings are
sent through email.
enable_ifmap_publishing: Determines if IFMAP publishing is
enabled for the network.
enable_immediate_discovery: Determines if the discovery for the
network should be immediately enabled.
enable_pxe_lease_time: Set this to True if you want the DHCP
server to use a different lease time for PXE clients.
enable_snmp_warnings: Determines if DHCP threshold warnings are
send through SNMP.
endpoint_sources: The endpoints that provides data for the DHCP
Network object.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
high_water_mark: The percentage of DHCP network usage threshold
above which network usage is not expected and may warrant
your attention. When the high watermark is reached, the
Infoblox appliance generates a syslog message and sends a
warning (if enabled).A number that specifies the percentage
of allocated addresses. The range is from 1 to 100.
high_water_mark_reset: The percentage of DHCP network usage
below which the corresponding SNMP trap is reset.A number
that specifies the percentage of allocated addresses. The
range is from 1 to 100. The high watermark reset value must
be lower than the high watermark value.
ignore_dhcp_option_list_request: If this field is set to False,
the appliance returns all DHCP options the client is
eligible to receive, rather than only the list of options
the client has requested.
ignore_id: Indicates whether the appliance will ignore DHCP
client IDs or MAC addresses. Valid values are "NONE",
"CLIENT", or "MACADDR". The default is "NONE".
ignore_mac_addresses: A list of MAC addresses the appliance will
ignore.
ipam_email_addresses: The e-mail lists to which the appliance
sends IPAM threshold alarm e-mail messages.
ipam_threshold_settings: The IPAM Threshold settings for this
network.
ipam_trap_settings: The IPAM Trap settings for this network.
ipv4addr: The IPv4 Address of the network.
last_rir_registration_update_sent: The timestamp when the last
RIR registration update was sent.
last_rir_registration_update_status: Last RIR registration
update status.
lease_scavenge_time: An integer that specifies the period of
time (in seconds) that frees and backs up leases remained in
the database before they are automatically deleted. To
disable lease scavenging, set the parameter to -1. The
minimum positive value must be greater than 86400 seconds (1
day).
logic_filter_rules: This field contains the logic filters to be
applied on the this network.This list corresponds to the
match rules that are written to the dhcpd configuration
file.
low_water_mark: The percentage of DHCP network usage below which
the Infoblox appliance generates a syslog message and sends
a warning (if enabled).A number that specifies the
percentage of allocated addresses. The range is from 1 to
100.
low_water_mark_reset: The percentage of DHCP network usage
threshold below which network usage is not expected and may
warrant your attention. When the low watermark is crossed,
the Infoblox appliance generates a syslog message and sends
a warning (if enabled).A number that specifies the
percentage of allocated addresses. The range is from 1 to
100. The low watermark reset value must be higher than the
low watermark value.
members: A list of members or Microsoft (r) servers that serve
DHCP for this network.
mgm_private: This field controls whether this object is
synchronized with the Multi-Grid Master. If this field is
set to True, objects are not synchronized.
mgm_private_overridable: This field is assumed to be True unless
filled by any conforming objects, such as Network, IPv6
Network, Network Container, IPv6 Network Container, and
Network View. This value is set to False if mgm_private is
set to True in the parent object.
ms_ad_user_data: The Microsoft Active Directory user related
information.
netmask: The netmask of the network in CIDR format.
network: The network address in IPv4 Address/CIDR format. For
regular expression searches, only the IPv4 Address portion
is supported. Searches for the CIDR portion is always an
exact match.For example, both network containers 10.0.0.0/8
and 20.1.0.0/16 are matched by expression '.0' and only
20.1.0.0/16 is matched by '.0/16'.
network_container: The network container to which this network
belongs (if any).
network_view: The name of the network view in which this network
resides.
nextserver: The name in FQDN and/or IPv4 Address of the next
server that the host needs to boot.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
port_control_blackout_setting: The port control blackout setting
for this network.
pxe_lease_time: The PXE lease time value of a DHCP Network
object. Some hosts use PXE (Preboot Execution Environment)
to boot remotely from a server. To better manage your IP
resources, set a different lease time for PXE boot requests.
You can configure the DHCP server to allocate an IP address
with a shorter lease time to hosts that send PXE boot
requests, so IP addresses are not leased longer than
necessary.A 32-bit unsigned integer that represents the
duration, in seconds, for which the update is cached. Zero
indicates that the update is not cached.
recycle_leases: If the field is set to True, the leases are kept
in the Recycle Bin until one week after expiration.
Otherwise, the leases are permanently deleted.
restart_if_needed: Restarts the member service.
rir: The registry (RIR) that allocated the network address
space.
rir_organization: The RIR organization assoicated with the
network.
rir_registration_action: The RIR registration action.
rir_registration_status: The registration status of the network
in RIR.
same_port_control_discovery_blackout: If the field is set to
True, the discovery blackout setting will be used for port
control blackout setting.
send_rir_request: Determines whether to send the RIR
registration request.
static_hosts: The number of static DHCP addresses configured in
the network.
subscribe_settings: The DHCP Network Cisco ISE subscribe
settings.
template: If set on creation, the network is created according
to the values specified in the selected template.
total_hosts: The total number of DHCP addresses configured in
the network.
unmanaged: Determines whether the DHCP IPv4 Network is unmanaged
or not.
unmanaged_count: The number of unmanaged IP addresses as
discovered by network discovery.
update_dns_on_lease_renewal: This field controls whether the
DHCP server updates DNS when a DHCP lease is renewed.
use_authority: Use flag for: authority
use_blackout_setting: Use flag for: discovery_blackout_setting ,
port_control_blackout_setting,
same_port_control_discovery_blackout
use_bootfile: Use flag for: bootfile
use_bootserver: Use flag for: bootserver
use_ddns_domainname: Use flag for: ddns_domainname
use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
use_ddns_ttl: Use flag for: ddns_ttl
use_ddns_update_fixed_addresses: Use flag for:
ddns_update_fixed_addresses
use_ddns_use_option81: Use flag for: ddns_use_option81
use_deny_bootp: Use flag for: deny_bootp
use_discovery_basic_polling_settings: Use flag for:
discovery_basic_poll_settings
use_email_list: Use flag for: email_list
use_enable_ddns: Use flag for: enable_ddns
use_enable_dhcp_thresholds: Use flag for: enable_dhcp_thresholds
use_enable_discovery: Use flag for: discovery_member ,
enable_discovery
use_enable_ifmap_publishing: Use flag for:
enable_ifmap_publishing
use_ignore_dhcp_option_list_request: Use flag for:
ignore_dhcp_option_list_request
use_ignore_id: Use flag for: ignore_id
use_ipam_email_addresses: Use flag for: ipam_email_addresses
use_ipam_threshold_settings: Use flag for:
ipam_threshold_settings
use_ipam_trap_settings: Use flag for: ipam_trap_settings
use_lease_scavenge_time: Use flag for: lease_scavenge_time
use_logic_filter_rules: Use flag for: logic_filter_rules
use_mgm_private: Use flag for: mgm_private
use_nextserver: Use flag for: nextserver
use_options: Use flag for: options
use_pxe_lease_time: Use flag for: pxe_lease_time
use_recycle_leases: Use flag for: recycle_leases
use_subscribe_settings: Use flag for: subscribe_settings
use_update_dns_on_lease_renewal: Use flag for:
update_dns_on_lease_renewal
use_zone_associations: Use flag for: zone_associations
utilization: The network utilization in percentage.
utilization_update: The timestamp when the utilization
statistics were last updated.
vlans: List of VLANs assigned to Network.
zone_associations: The list of zones associated with this
network.
"""
_infoblox_type = 'network'
_fields = ['authority', 'auto_create_reversezone', 'bootfile',
'bootserver', 'cloud_info', 'comment', 'conflict_count',
'ddns_domainname', 'ddns_generate_hostname',
'ddns_server_always_updates', 'ddns_ttl',
'ddns_update_fixed_addresses', 'ddns_use_option81',
'delete_reason', 'deny_bootp', 'dhcp_utilization',
'dhcp_utilization_status', 'disable', 'discover_now_status',
'discovered_bgp_as', 'discovered_bridge_domain',
'discovered_tenant', 'discovered_vlan_id',
'discovered_vlan_name', 'discovered_vrf_description',
'discovered_vrf_name', 'discovered_vrf_rd',
'discovery_basic_poll_settings', 'discovery_blackout_setting',
'discovery_engine_type', 'discovery_member', 'dynamic_hosts',
'email_list', 'enable_ddns', 'enable_dhcp_thresholds',
'enable_discovery', 'enable_email_warnings',
'enable_ifmap_publishing', 'enable_immediate_discovery',
'enable_pxe_lease_time', 'enable_snmp_warnings',
'endpoint_sources', 'extattrs', 'high_water_mark',
'high_water_mark_reset', 'ignore_dhcp_option_list_request',
'ignore_id', 'ignore_mac_addresses', 'ipam_email_addresses',
'ipam_threshold_settings', 'ipam_trap_settings', 'ipv4addr',
'last_rir_registration_update_sent',
'last_rir_registration_update_status', 'lease_scavenge_time',
'logic_filter_rules', 'low_water_mark', 'low_water_mark_reset',
'members', 'mgm_private', 'mgm_private_overridable',
'ms_ad_user_data', 'netmask', 'network', 'network_container',
'network_view', 'nextserver', 'options',
'port_control_blackout_setting', 'pxe_lease_time',
'recycle_leases', 'restart_if_needed', 'rir',
'rir_organization', 'rir_registration_action',
'rir_registration_status',
'same_port_control_discovery_blackout', 'send_rir_request',
'static_hosts', 'subscribe_settings', 'template', 'total_hosts',
'unmanaged', 'unmanaged_count', 'update_dns_on_lease_renewal',
'use_authority', 'use_blackout_setting', 'use_bootfile',
'use_bootserver', 'use_ddns_domainname',
'use_ddns_generate_hostname', 'use_ddns_ttl',
'use_ddns_update_fixed_addresses', 'use_ddns_use_option81',
'use_deny_bootp', 'use_discovery_basic_polling_settings',
'use_email_list', 'use_enable_ddns',
'use_enable_dhcp_thresholds', 'use_enable_discovery',
'use_enable_ifmap_publishing',
'use_ignore_dhcp_option_list_request', 'use_ignore_id',
'use_ipam_email_addresses', 'use_ipam_threshold_settings',
'use_ipam_trap_settings', 'use_lease_scavenge_time',
'use_logic_filter_rules', 'use_mgm_private', 'use_nextserver',
'use_options', 'use_pxe_lease_time', 'use_recycle_leases',
'use_subscribe_settings', 'use_update_dns_on_lease_renewal',
'use_zone_associations', 'utilization', 'utilization_update',
'vlans', 'zone_associations']
_search_for_update_fields = ['network', 'network_view']
_updateable_search_fields = ['comment', 'discovered_bridge_domain',
'discovered_tenant', 'ipv4addr', 'network',
'rir_organization', 'unmanaged']
_all_searchable_fields = ['comment', 'discovered_bgp_as',
'discovered_bridge_domain', 'discovered_tenant',
'discovered_vlan_id', 'discovered_vlan_name',
'discovered_vrf_description',
'discovered_vrf_name', 'discovered_vrf_rd',
'discovery_engine_type', 'ipv4addr', 'network',
'network_container', 'network_view', 'rir',
'rir_organization', 'unmanaged']
_return_fields = ['comment', 'extattrs', 'network', 'network_view']
_remap = {'cidr': 'network'}
_shadow_fields = ['_ref', 'cidr']
_ip_version = 4
_custom_field_processing = {
'logic_filter_rules': Logicfilterrule.from_dict,
'members': Dhcpmember.from_dict,
'options': DhcpOption.from_dict,
'vlans': Vlanlink.from_dict,
'zone_associations': Zoneassociation.from_dict,
}
def expand_network(self, *args, **kwargs):
return self._call_func("expand_network", *args, **kwargs)
def next_available_ip(self, *args, **kwargs):
return self._call_func("next_available_ip", *args, **kwargs)
def next_available_network(self, *args, **kwargs):
return self._call_func("next_available_network", *args, **kwargs)
def next_available_vlan(self, *args, **kwargs):
return self._call_func("next_available_vlan", *args, **kwargs)
def resize(self, *args, **kwargs):
return self._call_func("resize", *args, **kwargs)
def split_network(self, *args, **kwargs):
return self._call_func("split_network", *args, **kwargs)
class NetworkV6(Network):
""" NetworkV6: DHCP IPv6Network object.
Corresponds to WAPI object 'ipv6network'
When DHCP services are configured on an appliance, the network that
it serves must be defined. After a network is created, you can
either create all the subnets individually, or create a parent
network that encompasses the subnets.
Attributes:
auto_create_reversezone: This flag controls whether reverse
zones are automatically created when the network is added.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the network; maximum 256 characters.
ddns_domainname: The dynamic DNS domain name the appliance uses
specifically for DDNS updates for this network.
ddns_enable_option_fqdn: Use this method to set or retrieve the
ddns_enable_option_fqdn flag of a DHCP IPv6 Network object.
This method controls whether the FQDN option sent by the
client is to be used, or if the server can automatically
generate the FQDN. This setting overrides the upper-level
settings.
ddns_generate_hostname: If this field is set to True, the DHCP
server generates a hostname and updates DNS with it when the
DHCP client request does not contain a hostname.
ddns_server_always_updates: This field controls whether only the
DHCP server is allowed to update DNS, regardless of the DHCP
clients requests. Note that changes for this field take
effect only if ddns_enable_option_fqdn is True.
ddns_ttl: The DNS update Time to Live (TTL) value of a DHCP
network object.The TTL is a 32-bit unsigned integer that
represents the duration, in seconds, for which the update is
cached. Zero indicates that the update is not cached.
delete_reason: The reason for deleting the RIR registration
request.
disable: Determines whether a network is disabled or not. When
this is set to False, the network is enabled.
discover_now_status: Discover now status for this network.
discovered_bgp_as: Number of the discovered BGP AS.When multiple
BGP autonomous systems are discovered in the network, this
field displays "Multiple".
discovered_bridge_domain: Discovered bridge domain.
discovered_tenant: Discovered tenant.
discovered_vlan_id: The identifier of the discovered VLAN.When
multiple VLANs are discovered in the network, this field
displays "Multiple".
discovered_vlan_name: The name of the discovered VLAN.When
multiple VLANs are discovered in the network, this field
displays "Multiple".
discovered_vrf_description: Description of the discovered
VRF.When multiple VRFs are discovered in the network, this
field displays "Multiple".
discovered_vrf_name: The name of the discovered VRF.When
multiple VRFs are discovered in the network, this field
displays "Multiple".
discovered_vrf_rd: Route distinguisher of the discovered
VRF.When multiple VRFs are discovered in the network, this
field displays "Multiple".
discovery_basic_poll_settings: The discovery basic poll settings
for this network.
discovery_blackout_setting: The discovery blackout setting for
this network.
discovery_engine_type: The network discovery engine type.
discovery_member: The member that will run discovery for this
network.
domain_name: Use this method to set or retrieve the domain_name
value of a DHCP IPv6 Network object.
domain_name_servers: Use this method to set or retrieve the
dynamic DNS updates flag of a DHCP IPv6 Network object. The
DHCP server can send DDNS updates to DNS servers in the same
Grid and to external DNS servers. This setting overrides the
member level settings.
enable_ddns: The dynamic DNS updates flag of a DHCP IPv6 network
object. If set to True, the DHCP server sends DDNS updates
to DNS servers in the same Grid, and to external DNS
servers.
enable_discovery: Determines whether a discovery is enabled or
not for this network. When this is set to False, the network
discovery is disabled.
enable_ifmap_publishing: Determines if IFMAP publishing is
enabled for the network.
enable_immediate_discovery: Determines if the discovery for the
network should be immediately enabled.
endpoint_sources: The endpoints that provides data for the DHCP
IPv6 Network object.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
last_rir_registration_update_sent: The timestamp when the last
RIR registration update was sent.
last_rir_registration_update_status: Last RIR registration
update status.
logic_filter_rules: This field contains the logic filters to be
applied on this IPv6 network.This list corresponds to the
match rules that are written to the DHCPv6 configuration
file.
members: A list of members servers that serve DHCP for the
network.All members in the array must be of the same type.
The struct type must be indicated in each element, by
setting the "_struct" member to the struct type.
mgm_private: This field controls whether this object is
synchronized with the Multi-Grid Master. If this field is
set to True, objects are not synchronized.
mgm_private_overridable: This field is assumed to be True unless
filled by any conforming objects, such as Network, IPv6
Network, Network Container, IPv6 Network Container, and
Network View. This value is set to False if mgm_private is
set to True in the parent object.
ms_ad_user_data: The Microsoft Active Directory user related
information.
network: The network address in IPv6 Address/CIDR format. For
regular expression searches, only the IPv6 Address portion
is supported. Searches for the CIDR portion is always an
exact match.For example, both network containers 16::0/28
and 26::0/24 are matched by expression '.6' and only
26::0/24 is matched by '.6/24'.
network_container: The network container to which this network
belongs, if any.
network_view: The name of the network view in which this network
resides.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
port_control_blackout_setting: The port control blackout setting
for this network.
preferred_lifetime: Use this method to set or retrieve the
preferred lifetime value of a DHCP IPv6 Network object.
recycle_leases: If the field is set to True, the leases are kept
in the Recycle Bin until one week after expiration.
Otherwise, the leases are permanently deleted.
restart_if_needed: Restarts the member service.
rir: The registry (RIR) that allocated the IPv6 network address
space.
rir_organization: The RIR organization associated with the IPv6
network.
rir_registration_action: The RIR registration action.
rir_registration_status: The registration status of the IPv6
network in RIR.
same_port_control_discovery_blackout: If the field is set to
True, the discovery blackout setting will be used for port
control blackout setting.
send_rir_request: Determines whether to send the RIR
registration request.
subscribe_settings: The DHCP IPv6 Network Cisco ISE subscribe
settings.
template: If set on creation, the network is created according
to the values specified in the selected template.
unmanaged: Determines whether the DHCP IPv6 Network is unmanaged
or not.
unmanaged_count: The number of unmanaged IP addresses as
discovered by network discovery.
update_dns_on_lease_renewal: This field controls whether the
DHCP server updates DNS when a DHCP lease is renewed.
use_blackout_setting: Use flag for: discovery_blackout_setting ,
port_control_blackout_setting,
same_port_control_discovery_blackout
use_ddns_domainname: Use flag for: ddns_domainname
use_ddns_enable_option_fqdn: Use flag for:
ddns_enable_option_fqdn
use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
use_ddns_ttl: Use flag for: ddns_ttl
use_discovery_basic_polling_settings: Use flag for:
discovery_basic_poll_settings
use_domain_name: Use flag for: domain_name
use_domain_name_servers: Use flag for: domain_name_servers
use_enable_ddns: Use flag for: enable_ddns
use_enable_discovery: Use flag for: discovery_member ,
enable_discovery
use_enable_ifmap_publishing: Use flag for:
enable_ifmap_publishing
use_logic_filter_rules: Use flag for: logic_filter_rules
use_mgm_private: Use flag for: mgm_private
use_options: Use flag for: options
use_preferred_lifetime: Use flag for: preferred_lifetime
use_recycle_leases: Use flag for: recycle_leases
use_subscribe_settings: Use flag for: subscribe_settings
use_update_dns_on_lease_renewal: Use flag for:
update_dns_on_lease_renewal
use_valid_lifetime: Use flag for: valid_lifetime
use_zone_associations: Use flag for: zone_associations
valid_lifetime: Use this method to set or retrieve the valid
lifetime value of a DHCP IPv6 Network object.
vlans: List of VLANs assigned to Network.
zone_associations: The list of zones associated with this
network.
"""
_infoblox_type = 'ipv6network'
_fields = ['auto_create_reversezone', 'cloud_info', 'comment',
'ddns_domainname', 'ddns_enable_option_fqdn',
'ddns_generate_hostname', 'ddns_server_always_updates',
'ddns_ttl', 'delete_reason', 'disable', 'discover_now_status',
'discovered_bgp_as', 'discovered_bridge_domain',
'discovered_tenant', 'discovered_vlan_id',
'discovered_vlan_name', 'discovered_vrf_description',
'discovered_vrf_name', 'discovered_vrf_rd',
'discovery_basic_poll_settings', 'discovery_blackout_setting',
'discovery_engine_type', 'discovery_member', 'domain_name',
'domain_name_servers', 'enable_ddns', 'enable_discovery',
'enable_ifmap_publishing', 'enable_immediate_discovery',
'endpoint_sources', 'extattrs',
'last_rir_registration_update_sent',
'last_rir_registration_update_status', 'logic_filter_rules',
'members', 'mgm_private', 'mgm_private_overridable',
'ms_ad_user_data', 'network', 'network_container',
'network_view', 'options', 'port_control_blackout_setting',
'preferred_lifetime', 'recycle_leases', 'restart_if_needed',
'rir', 'rir_organization', 'rir_registration_action',
'rir_registration_status',
'same_port_control_discovery_blackout', 'send_rir_request',
'subscribe_settings', 'template', 'unmanaged',
'unmanaged_count', 'update_dns_on_lease_renewal',
'use_blackout_setting', 'use_ddns_domainname',
'use_ddns_enable_option_fqdn', 'use_ddns_generate_hostname',
'use_ddns_ttl', 'use_discovery_basic_polling_settings',
'use_domain_name', 'use_domain_name_servers', 'use_enable_ddns',
'use_enable_discovery', 'use_enable_ifmap_publishing',
'use_logic_filter_rules', 'use_mgm_private', 'use_options',
'use_preferred_lifetime', 'use_recycle_leases',
'use_subscribe_settings', 'use_update_dns_on_lease_renewal',
'use_valid_lifetime', 'use_zone_associations', 'valid_lifetime',
'vlans', 'zone_associations']
_search_for_update_fields = ['network', 'network_view']
_updateable_search_fields = ['comment', 'discovered_bridge_domain',
'discovered_tenant', 'network',
'network_view', 'rir_organization',
'unmanaged']
_all_searchable_fields = ['comment', 'discovered_bgp_as',
'discovered_bridge_domain', 'discovered_tenant',
'discovered_vlan_id', 'discovered_vlan_name',
'discovered_vrf_description',
'discovered_vrf_name', 'discovered_vrf_rd',
'discovery_engine_type', 'network',
'network_container', 'network_view', 'rir',
'rir_organization', 'unmanaged']
_return_fields = ['comment', 'extattrs', 'network', 'network_view']
_remap = {'cidr': 'network'}
_shadow_fields = ['_ref', 'cidr']
_ip_version = 6
_custom_field_processing = {
'logic_filter_rules': Logicfilterrule.from_dict,
'members': Dhcpmember.from_dict,
'options': DhcpOption.from_dict,
'vlans': Vlanlink.from_dict,
'zone_associations': Zoneassociation.from_dict,
}
def expand_network(self, *args, **kwargs):
return self._call_func("expand_network", *args, **kwargs)
def next_available_ip(self, *args, **kwargs):
return self._call_func("next_available_ip", *args, **kwargs)
def next_available_network(self, *args, **kwargs):
return self._call_func("next_available_network", *args, **kwargs)
def next_available_vlan(self, *args, **kwargs):
return self._call_func("next_available_vlan", *args, **kwargs)
def split_network(self, *args, **kwargs):
return self._call_func("split_network", *args, **kwargs)
class NetworkContainer(InfobloxObject):
@classmethod
def get_v4_class(cls):
return NetworkContainerV4
@classmethod
def get_v6_class(cls):
return NetworkContainerV6
class NetworkContainerV4(NetworkContainer):
""" NetworkContainerV4: DHCP Network Container object.
Corresponds to WAPI object 'networkcontainer'
A network can contain child networks. The network that contains
child networks is called a network container. This object
encapsulates an IPv4 network container object.
Attributes:
authority: Authority for the DHCP network container.
auto_create_reversezone: This flag controls whether reverse
zones are automatically created when the network is added.
bootfile: The boot server IPv4 Address or name in FQDN format
for the network container. You can specify the name and/or
IP address of the boot server that the host needs to boot.
bootserver: The bootserver address for the network container.
You can specify the name and/or IP address of the boot
server that the host needs to boot.The boot server IPv4
Address or name in FQDN format.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the network container; maximum 256
characters.
ddns_domainname: The dynamic DNS domain name the appliance uses
specifically for DDNS updates for this network container.
ddns_generate_hostname: If this field is set to True, the DHCP
server generates a hostname and updates DNS with it when the
DHCP client request does not contain a hostname.
ddns_server_always_updates: This field controls whether the DHCP
server is allowed to update DNS, regardless of the DHCP
client requests. Note that changes for this field take
effect only if ddns_use_option81 is True.
ddns_ttl: The DNS update Time to Live (TTL) value of a DHCP
network container object.The TTL is a 32-bit unsigned
integer that represents the duration, in seconds, for which
the update is cached. Zero indicates that the update is not
cached.
ddns_update_fixed_addresses: By default, the DHCP server does
not update DNS when it allocates a fixed address to a
client. You can configure the DHCP server to update the A
and PTR records of a client with a fixed address. When this
feature is enabled and the DHCP server adds A and PTR
records for a fixed address, the DHCP server never discards
the records.
ddns_use_option81: The support for DHCP Option 81 at the network
container level.
delete_reason: The reason for deleting the RIR registration
request.
deny_bootp: If set to True, BOOTP settings are disabled and
BOOTP requests will be denied.
discover_now_status: Discover now status for this network
container.
discovery_basic_poll_settings: The discovery basic poll settings
for this network container.
discovery_blackout_setting: The discovery blackout setting for
this network container.
discovery_engine_type: The network discovery engine type.
discovery_member: The member that will run discovery for this
network container.
email_list: The e-mail lists to which the appliance sends DHCP
threshold alarm e-mail messages.
enable_ddns: The dynamic DNS updates flag of a DHCP network
container object. If set to True, the DHCP server sends DDNS
updates to DNS servers in the same Grid, and to external DNS
servers.
enable_dhcp_thresholds: Determines if DHCP thresholds are
enabled for the network container.
enable_discovery: Determines whether a discovery is enabled or
not for this network container. When this is set to False,
the network container discovery is disabled.
enable_email_warnings: Determines if DHCP threshold warnings are
sent through email.
enable_immediate_discovery: Determines if the discovery for the
network container should be immediately enabled.
enable_pxe_lease_time: Set this to True if you want the DHCP
server to use a different lease time for PXE clients.
enable_snmp_warnings: Determines if DHCP threshold warnings are
send through SNMP.
endpoint_sources: The endpoints that provides data for the DHCP
Network Container object.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
high_water_mark: The percentage of DHCP network container usage
threshold above which network container usage is not
expected and may warrant your attention. When the high
watermark is reached, the Infoblox appliance generates a
syslog message and sends a warning (if enabled).A number
that specifies the percentage of allocated addresses. The
range is from 1 to 100.
high_water_mark_reset: The percentage of DHCP network container
usage below which the corresponding SNMP trap is reset.A
number that specifies the percentage of allocated addresses.
The range is from 1 to 100. The high watermark reset value
must be lower than the high watermark value.
ignore_dhcp_option_list_request: If this field is set to False,
the appliance returns all DHCP options the client is
eligible to receive, rather than only the list of options
the client has requested.
ignore_id: Indicates whether the appliance will ignore DHCP
client IDs or MAC addresses.
ignore_mac_addresses: A list of MAC addresses the appliance will
ignore.
ipam_email_addresses: The e-mail lists to which the appliance
sends IPAM threshold alarm e-mail messages.
ipam_threshold_settings: The IPAM Threshold settings for this
network container.
ipam_trap_settings: The IPAM Trap settings for this network
container.
last_rir_registration_update_sent: The timestamp when the last
RIR registration update was sent.
last_rir_registration_update_status: Last RIR registration
update status.
lease_scavenge_time: An integer that specifies the period of
time (in seconds) that frees and backs up leases remained in
the database before they are automatically deleted. To
disable lease scavenging, set the parameter to -1. The
minimum positive value must be greater than 86400 seconds (1
day).
logic_filter_rules: This field contains the logic filters to be
applied on the this network container.This list corresponds
to the match rules that are written to the dhcpd
configuration file.
low_water_mark: The percentage of DHCP network container usage
below which the Infoblox appliance generates a syslog
message and sends a warning (if enabled).A number that
specifies the percentage of allocated addresses. The range
is from 1 to 100.
low_water_mark_reset: The percentage of DHCP network container
usage threshold below which network container usage is not
expected and may warrant your attention. When the low
watermark is crossed, the Infoblox appliance generates a
syslog message and sends a warning (if enabled).A number
that specifies the percentage of allocated addresses. The
range is from 1 to 100. The low watermark reset value must
be higher than the low watermark value.
mgm_private: This field controls whether this object is
synchronized with the Multi-Grid Master. If this field is
set to True, objects are not synchronized.
mgm_private_overridable: This field is assumed to be True unless
filled by any conforming objects, such as Network, IPv6
Network, Network Container, IPv6 Network Container, and
Network View. This value is set to False if mgm_private is
set to True in the parent object.
ms_ad_user_data: The Microsoft Active Directory user related
information.
network: The network address in IPv4 Address/CIDR format. For
regular expression searches, only the IPv4 Address portion
is supported. Searches for the CIDR portion is always an
exact match.For example, both network containers 10.0.0.0/8
and 20.1.0.0/16 are matched by expression '.0' and only
20.1.0.0/16 is matched by '.0/16'.
network_container: The network container to which this network
belongs, if any.
network_view: The name of the network view in which this network
resides.
nextserver: The name in FQDN and/or IPv4 Address of the next
server that the host needs to boot.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
port_control_blackout_setting: The port control blackout setting
for this network container.
pxe_lease_time: The PXE lease time value of a DHCP Network
container object. Some hosts use PXE (Preboot Execution
Environment) to boot remotely from a server. To better
manage your IP resources, set a different lease time for PXE
boot requests. You can configure the DHCP server to allocate
an IP address with a shorter lease time to hosts that send
PXE boot requests, so IP addresses are not leased longer
than necessary.A 32-bit unsigned integer that represents the
duration, in seconds, for which the update is cached. Zero
indicates that the update is not cached.
recycle_leases: If the field is set to True, the leases are kept
in the Recycle Bin until one week after expiration.
Otherwise, the leases are permanently deleted.
restart_if_needed: Restarts the member service.
rir: The registry (RIR) that allocated the network container
address space.
rir_organization: The RIR organization assoicated with the
network container.
rir_registration_action: The RIR registration action.
rir_registration_status: The registration status of the network
container in RIR.
same_port_control_discovery_blackout: If the field is set to
True, the discovery blackout setting will be used for port
control blackout setting.
send_rir_request: Determines whether to send the RIR
registration request.
subscribe_settings: The DHCP Network Container Cisco ISE
subscribe settings.
unmanaged: Determines whether the network container is unmanaged
or not.
update_dns_on_lease_renewal: This field controls whether the
DHCP server updates DNS when a DHCP lease is renewed.
use_authority: Use flag for: authority
use_blackout_setting: Use flag for: discovery_blackout_setting ,
port_control_blackout_setting,
same_port_control_discovery_blackout
use_bootfile: Use flag for: bootfile
use_bootserver: Use flag for: bootserver
use_ddns_domainname: Use flag for: ddns_domainname
use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
use_ddns_ttl: Use flag for: ddns_ttl
use_ddns_update_fixed_addresses: Use flag for:
ddns_update_fixed_addresses
use_ddns_use_option81: Use flag for: ddns_use_option81
use_deny_bootp: Use flag for: deny_bootp
use_discovery_basic_polling_settings: Use flag for:
discovery_basic_poll_settings
use_email_list: Use flag for: email_list
use_enable_ddns: Use flag for: enable_ddns
use_enable_dhcp_thresholds: Use flag for: enable_dhcp_thresholds
use_enable_discovery: Use flag for: discovery_member ,
enable_discovery
use_ignore_dhcp_option_list_request: Use flag for:
ignore_dhcp_option_list_request
use_ignore_id: Use flag for: ignore_id
use_ipam_email_addresses: Use flag for: ipam_email_addresses
use_ipam_threshold_settings: Use flag for:
ipam_threshold_settings
use_ipam_trap_settings: Use flag for: ipam_trap_settings
use_lease_scavenge_time: Use flag for: lease_scavenge_time
use_logic_filter_rules: Use flag for: logic_filter_rules
use_mgm_private: Use flag for: mgm_private
use_nextserver: Use flag for: nextserver
use_options: Use flag for: options
use_pxe_lease_time: Use flag for: pxe_lease_time
use_recycle_leases: Use flag for: recycle_leases
use_subscribe_settings: Use flag for: subscribe_settings
use_update_dns_on_lease_renewal: Use flag for:
update_dns_on_lease_renewal
use_zone_associations: Use flag for: zone_associations
utilization: The network container utilization in percentage.
zone_associations: The list of zones associated with this
network.
"""
_infoblox_type = 'networkcontainer'
_fields = ['authority', 'auto_create_reversezone', 'bootfile',
'bootserver', 'cloud_info', 'comment', 'ddns_domainname',
'ddns_generate_hostname', 'ddns_server_always_updates',
'ddns_ttl', 'ddns_update_fixed_addresses', 'ddns_use_option81',
'delete_reason', 'deny_bootp', 'discover_now_status',
'discovery_basic_poll_settings', 'discovery_blackout_setting',
'discovery_engine_type', 'discovery_member', 'email_list',
'enable_ddns', 'enable_dhcp_thresholds', 'enable_discovery',
'enable_email_warnings', 'enable_immediate_discovery',
'enable_pxe_lease_time', 'enable_snmp_warnings',
'endpoint_sources', 'extattrs', 'high_water_mark',
'high_water_mark_reset', 'ignore_dhcp_option_list_request',
'ignore_id', 'ignore_mac_addresses', 'ipam_email_addresses',
'ipam_threshold_settings', 'ipam_trap_settings',
'last_rir_registration_update_sent',
'last_rir_registration_update_status', 'lease_scavenge_time',
'logic_filter_rules', 'low_water_mark', 'low_water_mark_reset',
'mgm_private', 'mgm_private_overridable', 'ms_ad_user_data',
'network', 'network_container', 'network_view', 'nextserver',
'options', 'port_control_blackout_setting', 'pxe_lease_time',
'recycle_leases', 'remove_subnets', 'restart_if_needed', 'rir',
'rir_organization', 'rir_registration_action',
'rir_registration_status',
'same_port_control_discovery_blackout', 'send_rir_request',
'subscribe_settings', 'unmanaged',
'update_dns_on_lease_renewal', 'use_authority',
'use_blackout_setting', 'use_bootfile', 'use_bootserver',
'use_ddns_domainname', 'use_ddns_generate_hostname',
'use_ddns_ttl', 'use_ddns_update_fixed_addresses',
'use_ddns_use_option81', 'use_deny_bootp',
'use_discovery_basic_polling_settings', 'use_email_list',
'use_enable_ddns', 'use_enable_dhcp_thresholds',
'use_enable_discovery', 'use_ignore_dhcp_option_list_request',
'use_ignore_id', 'use_ipam_email_addresses',
'use_ipam_threshold_settings', 'use_ipam_trap_settings',
'use_lease_scavenge_time', 'use_logic_filter_rules',
'use_mgm_private', 'use_nextserver', 'use_options',
'use_pxe_lease_time', 'use_recycle_leases',
'use_subscribe_settings', 'use_update_dns_on_lease_renewal',
'use_zone_associations', 'utilization', 'zone_associations']
_search_for_update_fields = ['network', 'network_view']
_updateable_search_fields = ['comment', 'rir_organization', 'unmanaged']
_all_searchable_fields = ['comment', 'discovery_engine_type', 'network',
'network_container', 'network_view', 'rir',
'rir_organization', 'unmanaged']
_return_fields = ['comment', 'extattrs', 'network', 'network_view']
_remap = {}
_shadow_fields = ['_ref']
_ip_version = 4
_custom_field_processing = {
'logic_filter_rules': Logicfilterrule.from_dict,
'options': DhcpOption.from_dict,
'zone_associations': Zoneassociation.from_dict,
}
def next_available_network(self, *args, **kwargs):
return self._call_func("next_available_network", *args, **kwargs)
def resize(self, *args, **kwargs):
return self._call_func("resize", *args, **kwargs)
class NetworkContainerV6(NetworkContainer):
""" NetworkContainerV6: DHCP IPv6NetworkContainer object.
Corresponds to WAPI object 'ipv6networkcontainer'
A network can contain child networks. The network that contains
child networks is called a network container. This object
encapsulates an IPv6 network container object.
Attributes:
auto_create_reversezone: This flag controls whether reverse
zones are automatically created when the network is added.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the network; maximum 256 characters.
ddns_domainname: The dynamic DNS domain name the appliance uses
specifically for DDNS updates for this network container.
ddns_enable_option_fqdn: Use this method to set or retrieve the
ddns_enable_option_fqdn flag of a DHCP IPv6 Network
Container object. This method controls whether the FQDN
option sent by the client is to be used, or if the server
can automatically generate the FQDN. This setting overrides
the upper-level settings.
ddns_generate_hostname: If this field is set to True, the DHCP
server generates a hostname and updates DNS with it when the
DHCP client request does not contain a hostname.
ddns_server_always_updates: This field controls whether the DHCP
server is allowed to update DNS, regardless of the DHCP
client requests. Note that changes for this field take
effect only if ddns_enable_option_fqdn is True.
ddns_ttl: The DNS update Time to Live (TTL) value of a DHCP
network container object.The TTL is a 32-bit unsigned
integer that represents the duration, in seconds, for which
the update is cached. Zero indicates that the update is not
cached.
delete_reason: The reason for deleting the RIR registration
request.
discover_now_status: Discover now status for this network
container.
discovery_basic_poll_settings: The discovery basic poll settings
for this network container.
discovery_blackout_setting: The discovery blackout setting for
this network container.
discovery_engine_type: The network discovery engine type.
discovery_member: The member that will run discovery for this
network container.
domain_name_servers: Use this method to set or retrieve the
dynamic DNS updates flag of a DHCP IPv6 Network Container
object. The DHCP server can send DDNS updates to DNS servers
in the same Grid and to external DNS servers. This setting
overrides the member level settings.
enable_ddns: The dynamic DNS updates flag of a DHCP IPv6 network
container object. If set to True, the DHCP server sends DDNS
updates to DNS servers in the same Grid, and to external DNS
servers.
enable_discovery: Determines whether a discovery is enabled or
not for this network container. When this is set to False,
the network container discovery is disabled.
enable_immediate_discovery: Determines if the discovery for the
network container should be immediately enabled.
endpoint_sources: The endpoints that provides data for the DHCP
IPv6 Network Container.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
last_rir_registration_update_sent: The timestamp when the last
RIR registration update was sent.
last_rir_registration_update_status: Last RIR registration
update status.
logic_filter_rules: This field contains the logic filters to be
applied on the this network container.This list corresponds
to the match rules that are written to the dhcpd
configuration file.
mgm_private: This field controls whether this object is
synchronized with the Multi-Grid Master. If this field is
set to True, objects are not synchronized.
mgm_private_overridable: This field is assumed to be True unless
filled by any conforming objects, such as Network, IPv6
Network, Network Container, IPv6 Network Container, and
Network View. This value is set to False if mgm_private is
set to True in the parent object.
ms_ad_user_data: The Microsoft Active Directory user related
information.
network: The network address in IPv6 Address/CIDR format. For
regular expression searches, only the IPv6 Address portion
is supported. Searches for the CIDR portion is always an
exact match.For example, both network containers 16::0/28
and 26::0/24 are matched by expression '.6' and only
26::0/24 is matched by '.6/24'.
network_container: The network container to which this network
belongs, if any.
network_view: The name of the network view in which this network
resides.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
port_control_blackout_setting: The port control blackout setting
for this network container.
preferred_lifetime: Use this method to set or retrieve the
preferred lifetime value of a DHCP IPv6 Network Container
object.
restart_if_needed: Restarts the member service.
rir: The registry (RIR) that allocated the IPv6 network
container address space.
rir_organization: The RIR organization associated with the IPv6
network container.
rir_registration_action: The RIR registration action.
rir_registration_status: The registration status of the IPv6
network container in RIR.
same_port_control_discovery_blackout: If the field is set to
True, the discovery blackout setting will be used for port
control blackout setting.
send_rir_request: Determines whether to send the RIR
registration request.
subscribe_settings: The DHCP IPv6 Network Container Cisco ISE
subscribe settings.
unmanaged: Determines whether the network container is unmanaged
or not.
update_dns_on_lease_renewal: This field controls whether the
DHCP server updates DNS when a DHCP lease is renewed.
use_blackout_setting: Use flag for: discovery_blackout_setting ,
port_control_blackout_setting,
same_port_control_discovery_blackout
use_ddns_domainname: Use flag for: ddns_domainname
use_ddns_enable_option_fqdn: Use flag for:
ddns_enable_option_fqdn
use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
use_ddns_ttl: Use flag for: ddns_ttl
use_discovery_basic_polling_settings: Use flag for:
discovery_basic_poll_settings
use_domain_name_servers: Use flag for: domain_name_servers
use_enable_ddns: Use flag for: enable_ddns
use_enable_discovery: Use flag for: discovery_member ,
enable_discovery
use_logic_filter_rules: Use flag for: logic_filter_rules
use_mgm_private: Use flag for: mgm_private
use_options: Use flag for: options
use_preferred_lifetime: Use flag for: preferred_lifetime
use_subscribe_settings: Use flag for: subscribe_settings
use_update_dns_on_lease_renewal: Use flag for:
update_dns_on_lease_renewal
use_valid_lifetime: Use flag for: valid_lifetime
use_zone_associations: Use flag for: zone_associations
utilization: The network container utilization in percentage.
valid_lifetime: Use this method to set or retrieve the valid
lifetime value of a DHCP IPv6 Network Container object.
zone_associations: The list of zones associated with this
network container.
"""
_infoblox_type = 'ipv6networkcontainer'
_fields = ['auto_create_reversezone', 'cloud_info', 'comment',
'ddns_domainname', 'ddns_enable_option_fqdn',
'ddns_generate_hostname', 'ddns_server_always_updates',
'ddns_ttl', 'delete_reason', 'discover_now_status',
'discovery_basic_poll_settings', 'discovery_blackout_setting',
'discovery_engine_type', 'discovery_member',
'domain_name_servers', 'enable_ddns', 'enable_discovery',
'enable_immediate_discovery', 'endpoint_sources', 'extattrs',
'last_rir_registration_update_sent',
'last_rir_registration_update_status', 'logic_filter_rules',
'mgm_private', 'mgm_private_overridable', 'ms_ad_user_data',
'network', 'network_container', 'network_view', 'options',
'port_control_blackout_setting', 'preferred_lifetime',
'remove_subnets', 'restart_if_needed', 'rir',
'rir_organization', 'rir_registration_action',
'rir_registration_status',
'same_port_control_discovery_blackout', 'send_rir_request',
'subscribe_settings', 'unmanaged',
'update_dns_on_lease_renewal', 'use_blackout_setting',
'use_ddns_domainname', 'use_ddns_enable_option_fqdn',
'use_ddns_generate_hostname', 'use_ddns_ttl',
'use_discovery_basic_polling_settings',
'use_domain_name_servers', 'use_enable_ddns',
'use_enable_discovery', 'use_logic_filter_rules',
'use_mgm_private', 'use_options', 'use_preferred_lifetime',
'use_subscribe_settings', 'use_update_dns_on_lease_renewal',
'use_valid_lifetime', 'use_zone_associations', 'utilization',
'valid_lifetime', 'zone_associations']
_search_for_update_fields = ['network', 'network_view']
_updateable_search_fields = ['comment', 'network_view', 'rir_organization',
'unmanaged']
_all_searchable_fields = ['comment', 'discovery_engine_type', 'network',
'network_container', 'network_view', 'rir',
'rir_organization', 'unmanaged']
_return_fields = ['comment', 'extattrs', 'network', 'network_view']
_remap = {}
_shadow_fields = ['_ref']
_ip_version = 6
_custom_field_processing = {
'logic_filter_rules': Logicfilterrule.from_dict,
'options': DhcpOption.from_dict,
'zone_associations': Zoneassociation.from_dict,
}
def next_available_network(self, *args, **kwargs):
return self._call_func("next_available_network", *args, **kwargs)
class NetworkTemplate(InfobloxObject):
@classmethod
def get_v4_class(cls):
return NetworkTemplateV4
@classmethod
def get_v6_class(cls):
return NetworkTemplateV6
class NetworkTemplateV4(NetworkTemplate):
""" NetworkTemplateV4: DHCP Network template object.
Corresponds to WAPI object 'networktemplate'
The network template used to create networks in a quick and
consistent way. Networks created from a network template inherit all
the properties defined in the network template, except for the
comment and netmask that can be defined in the network.
Attributes:
allow_any_netmask: This flag controls whether the template
allows any netmask. You must specify a netmask when creating
a network using this template. If you set this parameter to
false, you must specify the "netmask" field for the network
template object.
authority: Authority for the DHCP network.
auto_create_reversezone: This flag controls whether reverse
zones are automatically created when the network is added.
bootfile: The boot server IPv4 Address or name in FQDN format
for the network. You can specify the name and/or IP address
of the boot server that the host needs to boot.
bootserver: The bootserver address for the network. You can
specify the name and/or IP address of the boot server that
the host needs to boot.The boot server IPv4 Address or name
in FQDN format.
cloud_api_compatible: This flag controls whether this template
can be used to create network objects in a cloud-computing
deployment.
comment: Comment for the network; maximum 256 characters.
ddns_domainname: The dynamic DNS domain name the appliance uses
specifically for DDNS updates for this network.
ddns_generate_hostname: If this field is set to True, the DHCP
server generates a hostname and updates DNS with it when the
DHCP client request does not contain a hostname.
ddns_server_always_updates: This field controls whether the DHCP
server is allowed to update DNS, regardless of the DHCP
client requests. Note that changes for this field take
effect only if ddns_use_option81 is True.
ddns_ttl: The DNS update Time to Live (TTL) value of a DHCP
network object.The TTL is a 32-bit unsigned integer that
represents the duration, in seconds, for which the update is
cached. Zero indicates that the update is not cached.
ddns_update_fixed_addresses: By default, the DHCP server does
not update DNS when it allocates a fixed address to a
client. You can configure the DHCP server to update the A
and PTR records of a client with a fixed address. When this
feature is enabled and the DHCP server adds A and PTR
records for a fixed address, the DHCP server never discards
the records.
ddns_use_option81: The support for DHCP Option 81 at the network
level.
delegated_member: Reference the Cloud Platform Appliance to
which authority of the object should be delegated when the
object is created using the template.
deny_bootp: If set to True, BOOTP settings are disabled and
BOOTP requests will be denied.
email_list: The e-mail lists to which the appliance sends DHCP
threshold alarm e-mail messages.
enable_ddns: The dynamic DNS updates flag of a DHCP network
object. If set to True, the DHCP server sends DDNS updates
to DNS servers in the same Grid, and to external DNS
servers.
enable_dhcp_thresholds: Determines if DHCP thresholds are
enabled for the network.
enable_email_warnings: Determines if DHCP threshold warnings are
sent through email.
enable_pxe_lease_time: Set this to True if you want the DHCP
server to use a different lease time for PXE clients.
enable_snmp_warnings: Determines if DHCP threshold warnings are
send through SNMP.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
fixed_address_templates: The list of fixed address templates
assigned to this network template object. When you create a
network based on a network template object that contains
fixed address templates, the fixed addresses are created
based on the associated fixed address templates.
high_water_mark: The percentage of DHCP network usage threshold
above which network usage is not expected and may warrant
your attention. When the high watermark is reached, the
Infoblox appliance generates a syslog message and sends a
warning (if enabled).A number that specifies the percentage
of allocated addresses. The range is from 1 to 100.
high_water_mark_reset: The percentage of DHCP network usage
below which the corresponding SNMP trap is reset.A number
that specifies the percentage of allocated addresses. The
range is from 1 to 100. The high watermark reset value must
be lower than the high watermark value.
ignore_dhcp_option_list_request: If this field is set to False,
the appliance returns all DHCP options the client is
eligible to receive, rather than only the list of options
the client has requested.
ipam_email_addresses: The e-mail lists to which the appliance
sends IPAM threshold alarm e-mail messages.
ipam_threshold_settings: The IPAM Threshold settings for this
network template.
ipam_trap_settings: The IPAM Trap settings for this network
template.
lease_scavenge_time: An integer that specifies the period of
time (in seconds) that frees and backs up leases remained in
the database before they are automatically deleted. To
disable lease scavenging, set the parameter to -1. The
minimum positive value must be greater than 86400 seconds (1
day).
logic_filter_rules: This field contains the logic filters to be
applied on the this network template.This list corresponds
to the match rules that are written to the dhcpd
configuration file.
low_water_mark: The percentage of DHCP network usage below which
the Infoblox appliance generates a syslog message and sends
a warning (if enabled).A number that specifies the
percentage of allocated addresses. The range is from 1 to
100.
low_water_mark_reset: The percentage of DHCP network usage
threshold below which network usage is not expected and may
warrant your attention. When the low watermark is crossed,
the Infoblox appliance generates a syslog message and sends
a warning (if enabled).A number that specifies the
percentage of allocated addresses. The range is from 1 to
100. The low watermark reset value must be higher than the
low watermark value.
members: A list of members or Microsoft (r) servers that serve
DHCP for this network.
name: The name of this network template.
netmask: The netmask of the network in CIDR format.
nextserver: The name in FQDN and/or IPv4 Address of the next
server that the host needs to boot.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
pxe_lease_time: The PXE lease time value of a DHCP Network
object. Some hosts use PXE (Preboot Execution Environment)
to boot remotely from a server. To better manage your IP
resources, set a different lease time for PXE boot requests.
You can configure the DHCP server to allocate an IP address
with a shorter lease time to hosts that send PXE boot
requests, so IP addresses are not leased longer than
necessary.A 32-bit unsigned integer that represents the
duration, in seconds, for which the update is cached. Zero
indicates that the update is not cached.
range_templates: The list of IP address range templates assigned
to this network template object. When you create a network
based on a network template object that contains range
templates, the IP address ranges are created based on the
associated IP address range templates.
recycle_leases: If the field is set to True, the leases are kept
in the Recycle Bin until one week after expiration.
Otherwise, the leases are permanently deleted.
rir: THe registry (RIR) that allocated the network address
space.
rir_organization: The RIR organization assoicated with the
network.
rir_registration_action: The RIR registration action.
rir_registration_status: The registration status of the network
in RIR.
send_rir_request: Determines whether to send the RIR
registration request.
update_dns_on_lease_renewal: This field controls whether the
DHCP server updates DNS when a DHCP lease is renewed.
use_authority: Use flag for: authority
use_bootfile: Use flag for: bootfile
use_bootserver: Use flag for: bootserver
use_ddns_domainname: Use flag for: ddns_domainname
use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
use_ddns_ttl: Use flag for: ddns_ttl
use_ddns_update_fixed_addresses: Use flag for:
ddns_update_fixed_addresses
use_ddns_use_option81: Use flag for: ddns_use_option81
use_deny_bootp: Use flag for: deny_bootp
use_email_list: Use flag for: email_list
use_enable_ddns: Use flag for: enable_ddns
use_enable_dhcp_thresholds: Use flag for: enable_dhcp_thresholds
use_ignore_dhcp_option_list_request: Use flag for:
ignore_dhcp_option_list_request
use_ipam_email_addresses: Use flag for: ipam_email_addresses
use_ipam_threshold_settings: Use flag for:
ipam_threshold_settings
use_ipam_trap_settings: Use flag for: ipam_trap_settings
use_lease_scavenge_time: Use flag for: lease_scavenge_time
use_logic_filter_rules: Use flag for: logic_filter_rules
use_nextserver: Use flag for: nextserver
use_options: Use flag for: options
use_pxe_lease_time: Use flag for: pxe_lease_time
use_recycle_leases: Use flag for: recycle_leases
use_update_dns_on_lease_renewal: Use flag for:
update_dns_on_lease_renewal
"""
_infoblox_type = 'networktemplate'
_fields = ['allow_any_netmask', 'authority', 'auto_create_reversezone',
'bootfile', 'bootserver', 'cloud_api_compatible', 'comment',
'ddns_domainname', 'ddns_generate_hostname',
'ddns_server_always_updates', 'ddns_ttl',
'ddns_update_fixed_addresses', 'ddns_use_option81',
'delegated_member', 'deny_bootp', 'email_list', 'enable_ddns',
'enable_dhcp_thresholds', 'enable_email_warnings',
'enable_pxe_lease_time', 'enable_snmp_warnings', 'extattrs',
'fixed_address_templates', 'high_water_mark',
'high_water_mark_reset', 'ignore_dhcp_option_list_request',
'ipam_email_addresses', 'ipam_threshold_settings',
'ipam_trap_settings', 'lease_scavenge_time',
'logic_filter_rules', 'low_water_mark', 'low_water_mark_reset',
'members', 'name', 'netmask', 'nextserver', 'options',
'pxe_lease_time', 'range_templates', 'recycle_leases', 'rir',
'rir_organization', 'rir_registration_action',
'rir_registration_status', 'send_rir_request',
'update_dns_on_lease_renewal', 'use_authority', 'use_bootfile',
'use_bootserver', 'use_ddns_domainname',
'use_ddns_generate_hostname', 'use_ddns_ttl',
'use_ddns_update_fixed_addresses', 'use_ddns_use_option81',
'use_deny_bootp', 'use_email_list', 'use_enable_ddns',
'use_enable_dhcp_thresholds',
'use_ignore_dhcp_option_list_request',
'use_ipam_email_addresses', 'use_ipam_threshold_settings',
'use_ipam_trap_settings', 'use_lease_scavenge_time',
'use_logic_filter_rules', 'use_nextserver', 'use_options',
'use_pxe_lease_time', 'use_recycle_leases',
'use_update_dns_on_lease_renewal']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name', 'rir_organization']
_all_searchable_fields = ['comment', 'name', 'rir', 'rir_organization']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
_ip_version = 4
_custom_field_processing = {
'logic_filter_rules': Logicfilterrule.from_dict,
'members': Dhcpmember.from_dict,
'options': DhcpOption.from_dict,
}
class NetworkTemplateV6(NetworkTemplate):
""" NetworkTemplateV6: DHCP IPv6 network template object.
Corresponds to WAPI object 'ipv6networktemplate'
The IPv6 network template used to create IPv6 networks in a quick
and consistent way. IPv6 networks created from an IPv6 network
template inherit all the properties defined in the IPv6 network
template, except for the comment and CIDR that can be defined in the
IPv6 network.
Attributes:
allow_any_netmask: This flag controls whether the template
allows any netmask. You must specify a netmask when creating
a network using this template. If you set this parameter to
False, you must specify the "cidr" field for the network
template object.
auto_create_reversezone: This flag controls whether reverse
zones are automatically created when the network is added.
cidr: The CIDR of the network in CIDR format.
cloud_api_compatible: This flag controls whether this template
can be used to create network objects in a cloud-computing
deployment.
comment: Comment for the network; maximum 256 characters.
ddns_domainname: The dynamic DNS domain name the appliance uses
specifically for DDNS updates for this network.
ddns_enable_option_fqdn: Use this method to set or retrieve the
ddns_enable_option_fqdn flag of a DHCP IPv6 Network object.
This method controls whether the FQDN option sent by the
client is to be used, or if the server can automatically
generate the FQDN. This setting overrides the upper-level
settings.
ddns_generate_hostname: If this field is set to True, the DHCP
server generates a hostname and updates DNS with it when the
DHCP client request does not contain a hostname.
ddns_server_always_updates: This field controls whether the DHCP
server is allowed to update DNS, regardless of the DHCP
client requests. Note that changes for this field take
effect only if ddns_enable_option_fqdn is True.
ddns_ttl: The DNS update Time to Live (TTL) value of a DHCP
network object.The TTL is a 32-bit unsigned integer that
represents the duration, in seconds, for which the update is
cached. Zero indicates that the update is not cached.
delegated_member: Reference the Cloud Platform Appliance to
which authority of the object should be delegated when the
object is created using the template.
domain_name: Use this method to set or retrieve the domain_name
value of a DHCP IPv6 Network object.
domain_name_servers: Use this method to set or retrieve the
dynamic DNS updates flag of a DHCP IPv6 Network object. The
DHCP server can send DDNS updates to DNS servers in the same
Grid and to external DNS servers. This setting overrides the
member level settings.
enable_ddns: The dynamic DNS updates flag of a DHCP IPv6 network
object. If set to True, the DHCP server sends DDNS updates
to DNS servers in the same Grid, and to external DNS
servers.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
fixed_address_templates: The list of IPv6 fixed address
templates assigned to this IPv6 network template object.
When you create an IPv6 network based on an IPv6 network
template object that contains IPv6 fixed address templates,
the IPv6 fixed addresses are created based on the associated
IPv6 fixed address templates.
ipv6prefix: The IPv6 Address prefix of the DHCP IPv6 network.
logic_filter_rules: This field contains the logic filters to be
applied on this IPv6 network template.This list corresponds
to the match rules that are written to the DHCPv6
configuration file.
members: A list of members that serve DHCP for the network.All
members in the array must be of the same type. The struct
type must be indicated in each element, by setting the
"_struct" member to the struct type.
name: The name of this IPv6 network template.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
preferred_lifetime: Use this method to set or retrieve the
preferred lifetime value of a DHCP IPv6 Network object.
range_templates: The list of IPv6 address range templates
assigned to this IPv6 network template object. When you
create an IPv6 network based on an IPv6 network template
object that contains IPv6 range templates, the IPv6 address
ranges are created based on the associated IPv6 address
range templates.
recycle_leases: If the field is set to True, the leases are kept
in the Recycle Bin until one week after expiration.
Otherwise, the leases are permanently deleted.
rir: The registry (RIR) that allocated the IPv6 network address
space.
rir_organization: The RIR organization associated with the IPv6
network.
rir_registration_action: The action for the RIR registration.
rir_registration_status: The registration status of the IPv6
network in RIR.
send_rir_request: Determines whether to send the RIR
registration request.
update_dns_on_lease_renewal: This field controls whether the
DHCP server updates DNS when a DHCP lease is renewed.
use_ddns_domainname: Use flag for: ddns_domainname
use_ddns_enable_option_fqdn: Use flag for:
ddns_enable_option_fqdn
use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
use_ddns_ttl: Use flag for: ddns_ttl
use_domain_name: Use flag for: domain_name
use_domain_name_servers: Use flag for: domain_name_servers
use_enable_ddns: Use flag for: enable_ddns
use_logic_filter_rules: Use flag for: logic_filter_rules
use_options: Use flag for: options
use_preferred_lifetime: Use flag for: preferred_lifetime
use_recycle_leases: Use flag for: recycle_leases
use_update_dns_on_lease_renewal: Use flag for:
update_dns_on_lease_renewal
use_valid_lifetime: Use flag for: valid_lifetime
valid_lifetime: Use this method to set or retrieve the valid
lifetime value of a DHCP IPv6 Network object.
"""
_infoblox_type = 'ipv6networktemplate'
_fields = ['allow_any_netmask', 'auto_create_reversezone', 'cidr',
'cloud_api_compatible', 'comment', 'ddns_domainname',
'ddns_enable_option_fqdn', 'ddns_generate_hostname',
'ddns_server_always_updates', 'ddns_ttl', 'delegated_member',
'domain_name', 'domain_name_servers', 'enable_ddns', 'extattrs',
'fixed_address_templates', 'ipv6prefix', 'logic_filter_rules',
'members', 'name', 'options', 'preferred_lifetime',
'range_templates', 'recycle_leases', 'rir', 'rir_organization',
'rir_registration_action', 'rir_registration_status',
'send_rir_request', 'update_dns_on_lease_renewal',
'use_ddns_domainname', 'use_ddns_enable_option_fqdn',
'use_ddns_generate_hostname', 'use_ddns_ttl', 'use_domain_name',
'use_domain_name_servers', 'use_enable_ddns',
'use_logic_filter_rules', 'use_options',
'use_preferred_lifetime', 'use_recycle_leases',
'use_update_dns_on_lease_renewal', 'use_valid_lifetime',
'valid_lifetime']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'ipv6prefix', 'name',
'rir_organization']
_all_searchable_fields = ['comment', 'ipv6prefix', 'name', 'rir',
'rir_organization']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
_ip_version = 6
_custom_field_processing = {
'logic_filter_rules': Logicfilterrule.from_dict,
'members': Dhcpmember.from_dict,
'options': DhcpOption.from_dict,
}
class IPRange(InfobloxObject):
@classmethod
def get_v4_class(cls):
return IPRangeV4
@classmethod
def get_v6_class(cls):
return IPRangeV6
class IPRangeV4(IPRange):
""" IPRangeV4: DHCP Range object.
Corresponds to WAPI object 'range'
A DHCP range defines the specified range of IP addresses in a
network. A DHCP range should be added for a network so the Infoblox
appliance can assign IP addresses within that specified range to
DHCP clients. If the client is on a network that is assigned a DHCP
range, the device distributes an available IP address from that
range to the DHCP client, or to a DHCP relay agent if the request
came through an agent. The DHCP range should also be assigned with a
device. If devices are in a grid, the particular member serving DHCP
for the DHCP range must be specified. If the server is an
independent device, this device must be specified as the member that
serves the DHCP range.
Attributes:
always_update_dns: This field controls whether only the DHCP
server is allowed to update DNS, regardless of the DHCP
clients requests.
bootfile: The bootfile name for the range. You can configure the
DHCP server to support clients that use the boot file name
option in their DHCPREQUEST messages.
bootserver: The bootserver address for the range. You can
specify the name and/or IP address of the boot server that
the host needs to boot.The boot server IPv4 Address or name
in FQDN format.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the range; maximum 256 characters.
ddns_domainname: The dynamic DNS domain name the appliance uses
specifically for DDNS updates for this range.
ddns_generate_hostname: If this field is set to True, the DHCP
server generates a hostname and updates DNS with it when the
DHCP client request does not contain a hostname.
deny_all_clients: If True, send NAK forcing the client to take
the new address.
deny_bootp: If set to true, BOOTP settings are disabled and
BOOTP requests will be denied.
dhcp_utilization: The percentage of the total DHCP utilization
of the range multiplied by 1000. This is the percentage of
the total number of available IP addresses belonging to the
range versus the total number of all IP addresses in the
range.
dhcp_utilization_status: A string describing the utilization
level of the range.
disable: Determines whether a range is disabled or not. When
this is set to False, the range is enabled.
discover_now_status: Discover now status for this range.
discovery_basic_poll_settings: The discovery basic poll settings
for this range.
discovery_blackout_setting: The discovery blackout setting for
this range.
discovery_member: The member that will run discovery for this
range.
dynamic_hosts: The total number of DHCP leases issued for the
range.
email_list: The e-mail lists to which the appliance sends DHCP
threshold alarm e-mail messages.
enable_ddns: The dynamic DNS updates flag of a DHCP range
object. If set to True, the DHCP server sends DDNS updates
to DNS servers in the same Grid, and to external DNS
servers.
enable_dhcp_thresholds: Determines if DHCP thresholds are
enabled for the range.
enable_discovery: Determines whether a discovery is enabled or
not for this range. When this is set to False, the discovery
for this range is disabled.
enable_email_warnings: Determines if DHCP threshold warnings are
sent through email.
enable_ifmap_publishing: Determines if IFMAP publishing is
enabled for the range.
enable_immediate_discovery: Determines if the discovery for the
range should be immediately enabled.
enable_pxe_lease_time: Set this to True if you want the DHCP
server to use a different lease time for PXE clients.
enable_snmp_warnings: Determines if DHCP threshold warnings are
send through SNMP.
end_addr: The IPv4 Address end address of the range.
endpoint_sources: The endpoints that provides data for the DHCP
Range object.
exclude: These are ranges of IP addresses that the appliance
does not use to assign to clients. You can use these
exclusion addresses as static IP addresses. They contain the
start and end addresses of the exclusion range, and
optionally, information about this exclusion range.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
failover_association: The name of the failover association: the
server in this failover association will serve the IPv4
range in case the main server is out of service.
fingerprint_filter_rules: This field contains the fingerprint
filters for this DHCP range.The appliance uses matching
rules in these filters to select the address range from
which it assigns a lease.
high_water_mark: The percentage of DHCP range usage threshold
above which range usage is not expected and may warrant your
attention. When the high watermark is reached, the Infoblox
appliance generates a syslog message and sends a warning (if
enabled).A number that specifies the percentage of allocated
addresses. The range is from 1 to 100.
high_water_mark_reset: The percentage of DHCP range usage below
which the corresponding SNMP trap is reset.A number that
specifies the percentage of allocated addresses. The range
is from 1 to 100. The high watermark reset value must be
lower than the high watermark value.
ignore_dhcp_option_list_request: If this field is set to False,
the appliance returns all DHCP options the client is
eligible to receive, rather than only the list of options
the client has requested.
ignore_id: Indicates whether the appliance will ignore DHCP
client IDs or MAC addresses. Valid values are "NONE",
"CLIENT", or "MACADDR". The default is "NONE".
ignore_mac_addresses: A list of MAC addresses the appliance will
ignore.
is_split_scope: This field will be 'true' if this particular
range is part of a split scope.
known_clients: Permission for known clients. This can be 'Allow'
or 'Deny'. If set to 'Deny' known clients will be denied IP
addresses.Known clients include roaming hosts and clients
with fixed addresses or DHCP host entries. Unknown clients
include clients that are not roaming hosts and clients that
do not have fixed addresses or DHCP host entries.
lease_scavenge_time: An integer that specifies the period of
time (in seconds) that frees and backs up leases remained in
the database before they are automatically deleted. To
disable lease scavenging, set the parameter to -1. The
minimum positive value must be greater than 86400 seconds (1
day).
logic_filter_rules: This field contains the logic filters to be
applied to this range.This list corresponds to the match
rules that are written to the dhcpd configuration file.
low_water_mark: The percentage of DHCP range usage below which
the Infoblox appliance generates a syslog message and sends
a warning (if enabled).A number that specifies the
percentage of allocated addresses. The range is from 1 to
100.
low_water_mark_reset: The percentage of DHCP range usage
threshold below which range usage is not expected and may
warrant your attention. When the low watermark is crossed,
the Infoblox appliance generates a syslog message and sends
a warning (if enabled).A number that specifies the
percentage of allocated addresses. The range is from 1 to
100. The low watermark reset value must be higher than the
low watermark value.
mac_filter_rules: This field contains the MAC filters to be
applied to this range.The appliance uses the matching rules
of these filters to select the address range from which it
assigns a lease.
member: The member that will provide service for this range.
ms_ad_user_data: The Microsoft Active Directory user related
information.
ms_options: This field contains the Microsoft DHCP options for
this range.
ms_server: The Microsoft server that will provide service for
this range.
nac_filter_rules: This field contains the NAC filters to be
applied to this range.The appliance uses the matching rules
of these filters to select the address range from which it
assigns a lease.
name: This field contains the name of the Microsoft scope.
network: The network to which this range belongs, in IPv4
Address/CIDR format.
network_view: The name of the network view in which this range
resides.
nextserver: The name in FQDN and/or IPv4 Address of the next
server that the host needs to boot.
option_filter_rules: This field contains the Option filters to
be applied to this range.The appliance uses the matching
rules of these filters to select the address range from
which it assigns a lease.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
port_control_blackout_setting: The port control blackout setting
for this range.
pxe_lease_time: The PXE lease time value of a DHCP Range object.
Some hosts use PXE (Preboot Execution Environment) to boot
remotely from a server. To better manage your IP resources,
set a different lease time for PXE boot requests. You can
configure the DHCP server to allocate an IP address with a
shorter lease time to hosts that send PXE boot requests, so
IP addresses are not leased longer than necessary.A 32-bit
unsigned integer that represents the duration, in seconds,
for which the update is cached. Zero indicates that the
update is not cached.
recycle_leases: If the field is set to True, the leases are kept
in the Recycle Bin until one week after expiration.
Otherwise, the leases are permanently deleted.
relay_agent_filter_rules: This field contains the Relay Agent
filters to be applied to this range.The appliance uses the
matching rules of these filters to select the address range
from which it assigns a lease.
restart_if_needed: Restarts the member service.
same_port_control_discovery_blackout: If the field is set to
True, the discovery blackout setting will be used for port
control blackout setting.
server_association_type: The type of server that is going to
serve the range.
split_member: The Microsoft member to which the split scope is
assigned. See split_scope_exclusion_percent for more
information
split_scope_exclusion_percent: This field controls the
percentage used when creating a split scope.Valid values are
numbers between 1 and 99. If the value is 40, it means that
the top 40% of the exclusion will be created on the DHCP
range assigned to ms_server and the lower 60% of the range
will be assigned to DHCP range assigned to split_member
start_addr: The IPv4 Address starting address of the range.
static_hosts: The number of static DHCP addresses configured in
the range.
subscribe_settings: The DHCP Range Cisco ISE subscribe settings.
template: If set on creation, the range will be created
according to the values specified in the named template.
total_hosts: The total number of DHCP addresses configured in
the range.
unknown_clients: Permission for unknown clients. This can be
'Allow' or 'Deny'. If set to 'Deny', unknown clients will be
denied IP addresses.Known clients include roaming hosts and
clients with fixed addresses or DHCP host entries. Unknown
clients include clients that are not roaming hosts and
clients that do not have fixed addresses or DHCP host
entries.
update_dns_on_lease_renewal: This field controls whether the
DHCP server updates DNS when a DHCP lease is renewed.
use_blackout_setting: Use flag for: discovery_blackout_setting ,
port_control_blackout_setting,
same_port_control_discovery_blackout
use_bootfile: Use flag for: bootfile
use_bootserver: Use flag for: bootserver
use_ddns_domainname: Use flag for: ddns_domainname
use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
use_deny_bootp: Use flag for: deny_bootp
use_discovery_basic_polling_settings: Use flag for:
discovery_basic_poll_settings
use_email_list: Use flag for: email_list
use_enable_ddns: Use flag for: enable_ddns
use_enable_dhcp_thresholds: Use flag for: enable_dhcp_thresholds
use_enable_discovery: Use flag for: discovery_member ,
enable_discovery
use_enable_ifmap_publishing: Use flag for:
enable_ifmap_publishing
use_ignore_dhcp_option_list_request: Use flag for:
ignore_dhcp_option_list_request
use_ignore_id: Use flag for: ignore_id
use_known_clients: Use flag for: known_clients
use_lease_scavenge_time: Use flag for: lease_scavenge_time
use_logic_filter_rules: Use flag for: logic_filter_rules
use_ms_options: Use flag for: ms_options
use_nextserver: Use flag for: nextserver
use_options: Use flag for: options
use_pxe_lease_time: Use flag for: pxe_lease_time
use_recycle_leases: Use flag for: recycle_leases
use_subscribe_settings: Use flag for: subscribe_settings
use_unknown_clients: Use flag for: unknown_clients
use_update_dns_on_lease_renewal: Use flag for:
update_dns_on_lease_renewal
"""
_infoblox_type = 'range'
_fields = ['always_update_dns', 'bootfile', 'bootserver', 'cloud_info',
'comment', 'ddns_domainname', 'ddns_generate_hostname',
'deny_all_clients', 'deny_bootp', 'dhcp_utilization',
'dhcp_utilization_status', 'disable', 'discover_now_status',
'discovery_basic_poll_settings', 'discovery_blackout_setting',
'discovery_member', 'dynamic_hosts', 'email_list',
'enable_ddns', 'enable_dhcp_thresholds', 'enable_discovery',
'enable_email_warnings', 'enable_ifmap_publishing',
'enable_immediate_discovery', 'enable_pxe_lease_time',
'enable_snmp_warnings', 'end_addr', 'endpoint_sources',
'exclude', 'extattrs', 'failover_association',
'fingerprint_filter_rules', 'high_water_mark',
'high_water_mark_reset', 'ignore_dhcp_option_list_request',
'ignore_id', 'ignore_mac_addresses', 'is_split_scope',
'known_clients', 'lease_scavenge_time', 'logic_filter_rules',
'low_water_mark', 'low_water_mark_reset', 'mac_filter_rules',
'member', 'ms_ad_user_data', 'ms_options', 'ms_server',
'nac_filter_rules', 'name', 'network', 'network_view',
'nextserver', 'option_filter_rules', 'options',
'port_control_blackout_setting', 'pxe_lease_time',
'recycle_leases', 'relay_agent_filter_rules',
'restart_if_needed', 'same_port_control_discovery_blackout',
'server_association_type', 'split_member',
'split_scope_exclusion_percent', 'start_addr', 'static_hosts',
'subscribe_settings', 'template', 'total_hosts',
'unknown_clients', 'update_dns_on_lease_renewal',
'use_blackout_setting', 'use_bootfile', 'use_bootserver',
'use_ddns_domainname', 'use_ddns_generate_hostname',
'use_deny_bootp', 'use_discovery_basic_polling_settings',
'use_email_list', 'use_enable_ddns',
'use_enable_dhcp_thresholds', 'use_enable_discovery',
'use_enable_ifmap_publishing',
'use_ignore_dhcp_option_list_request', 'use_ignore_id',
'use_known_clients', 'use_lease_scavenge_time',
'use_logic_filter_rules', 'use_ms_options', 'use_nextserver',
'use_options', 'use_pxe_lease_time', 'use_recycle_leases',
'use_subscribe_settings', 'use_unknown_clients',
'use_update_dns_on_lease_renewal']
_search_for_update_fields = ['end_addr', 'network', 'network_view',
'start_addr']
_updateable_search_fields = ['comment', 'end_addr', 'failover_association',
'member', 'ms_server', 'network',
'network_view', 'server_association_type',
'start_addr']
_all_searchable_fields = ['comment', 'end_addr', 'failover_association',
'member', 'ms_server', 'network', 'network_view',
'server_association_type', 'start_addr']
_return_fields = ['comment', 'end_addr', 'extattrs', 'network',
'network_view', 'start_addr']
_remap = {'cidr': 'network'}
_shadow_fields = ['_ref', 'cidr']
_ip_version = 4
_custom_field_processing = {
'exclude': Exclusionrange.from_dict,
'fingerprint_filter_rules': Filterrule.from_dict,
'logic_filter_rules': Logicfilterrule.from_dict,
'mac_filter_rules': Filterrule.from_dict,
'ms_options': Msdhcpoption.from_dict,
'nac_filter_rules': Filterrule.from_dict,
'option_filter_rules': Filterrule.from_dict,
'options': DhcpOption.from_dict,
'relay_agent_filter_rules': Filterrule.from_dict,
}
def next_available_ip(self, *args, **kwargs):
return self._call_func("next_available_ip", *args, **kwargs)
class IPRangeV6(IPRange):
""" IPRangeV6: DHCP IPv6 Range object.
Corresponds to WAPI object 'ipv6range'
A DHCP IPv6 range defines the specified range of IP addresses in an
IPv6 network. A DHCP IPv6 range should be added for an IPv6 network
so the Infoblox appliance can assign IP addresses within that
specified range to DHCP clients. If the client is on an IPv6 network
that is assigned a DHCP IPv6 range, the device distributes an
available IP address from that range to the DHCP client, or to a
DHCP relay agent if the request came through an agent. The DHCP IPv6
range should also be assigned with a device. If devices are in a
grid, the particular member serving DHCP for the DHCP IPv6 range
must be specified. If the server is an independent device, this
device must be specified as the member that serves the DHCP IPv6
range.
Attributes:
address_type: Type of a DHCP IPv6 Range object. Valid values are
"ADDRESS", "PREFIX", or "BOTH". When the address type is
"ADDRESS", values for the 'start_addr' and 'end_addr'
members are required. When the address type is "PREFIX",
values for 'ipv6_start_prefix', 'ipv6_end_prefix', and
'ipv6_prefix_bits' are required. When the address type is
"BOTH", values for 'start_addr', 'end_addr',
'ipv6_start_prefix', 'ipv6_end_prefix', and
'ipv6_prefix_bits' are all required.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the range; maximum 256 characters.
disable: Determines whether a range is disabled or not. When
this is set to False, the range is enabled.
discover_now_status: Discover now status for this range.
discovery_basic_poll_settings: The discovery basic poll settings
for this range.
discovery_blackout_setting: The discovery blackout setting for
this range.
discovery_member: The member that will run discovery for this
range.
enable_discovery: Determines whether a discovery is enabled or
not for this range. When this is set to False, the discovery
for this range is disabled.
enable_immediate_discovery: Determines if the discovery for the
range should be immediately enabled.
end_addr: The IPv6 Address end address of the DHCP IPv6 range.
endpoint_sources: The endpoints that provides data for the DHCP
IPv6 Range object.
exclude: These are ranges of IP addresses that the appliance
does not use to assign to clients. You can use these
exclusion addresses as static IP addresses. They contain the
start and end addresses of the exclusion range, and
optionally,information about this exclusion range.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
ipv6_end_prefix: The IPv6 Address end prefix of the DHCP IPv6
range.
ipv6_prefix_bits: Prefix bits of the DHCP IPv6 range.
ipv6_start_prefix: The IPv6 Address starting prefix of the DHCP
IPv6 range.
logic_filter_rules: This field contains the logic filters to be
applied to this IPv6 range. This list corresponds to the
match rules that are written to the DHCPv6 configuration
file.
member: The member that will provide service for this range.
name: This field contains the name of the Microsoft scope.
network: The network this range belongs to, in IPv6 Address/CIDR
format.
network_view: The name of the network view in which this range
resides.
option_filter_rules: This field contains the Option filters to
be applied to this IPv6 range. The appliance uses the
matching rules of these filters to select the address range
from which it assigns a lease.
port_control_blackout_setting: The port control blackout setting
for this range.
recycle_leases: If the field is set to True, the leases are kept
in the Recycle Bin until one week after expiration.
Otherwise, the leases are permanently deleted.
restart_if_needed: Restarts the member service.
same_port_control_discovery_blackout: If the field is set to
True, the discovery blackout setting will be used for port
control blackout setting.
server_association_type: The type of server that is going to
serve the range. Valid values are:
start_addr: The IPv6 Address starting address of the DHCP IPv6
range.
subscribe_settings: The DHCP IPv6 Range Cisco ISE subscribe
settings.
template: If set on creation, the range will be created
according to the values specified in the named template.
use_blackout_setting: Use flag for: discovery_blackout_setting ,
port_control_blackout_setting,
same_port_control_discovery_blackout
use_discovery_basic_polling_settings: Use flag for:
discovery_basic_poll_settings
use_enable_discovery: Use flag for: discovery_member ,
enable_discovery
use_logic_filter_rules: Use flag for: logic_filter_rules
use_recycle_leases: Use flag for: recycle_leases
use_subscribe_settings: Use flag for: subscribe_settings
"""
_infoblox_type = 'ipv6range'
_fields = ['address_type', 'cloud_info', 'comment', 'disable',
'discover_now_status', 'discovery_basic_poll_settings',
'discovery_blackout_setting', 'discovery_member',
'enable_discovery', 'enable_immediate_discovery', 'end_addr',
'endpoint_sources', 'exclude', 'extattrs', 'ipv6_end_prefix',
'ipv6_prefix_bits', 'ipv6_start_prefix', 'logic_filter_rules',
'member', 'name', 'network', 'network_view',
'option_filter_rules', 'port_control_blackout_setting',
'recycle_leases', 'restart_if_needed',
'same_port_control_discovery_blackout',
'server_association_type', 'start_addr', 'subscribe_settings',
'template', 'use_blackout_setting',
'use_discovery_basic_polling_settings', 'use_enable_discovery',
'use_logic_filter_rules', 'use_recycle_leases',
'use_subscribe_settings']
_search_for_update_fields = ['end_addr', 'network', 'network_view',
'start_addr']
_updateable_search_fields = ['address_type', 'comment', 'end_addr',
'ipv6_end_prefix', 'ipv6_prefix_bits',
'ipv6_start_prefix', 'member', 'name',
'network', 'network_view',
'server_association_type', 'start_addr']
_all_searchable_fields = ['address_type', 'comment', 'end_addr',
'ipv6_end_prefix', 'ipv6_prefix_bits',
'ipv6_start_prefix', 'member', 'name', 'network',
'network_view', 'server_association_type',
'start_addr']
_return_fields = ['comment', 'end_addr', 'extattrs', 'network',
'network_view', 'start_addr']
_remap = {'cidr': 'network'}
_shadow_fields = ['_ref', 'cidr']
_ip_version = 6
_custom_field_processing = {
'exclude': Exclusionrange.from_dict,
'logic_filter_rules': Logicfilterrule.from_dict,
'option_filter_rules': Filterrule.from_dict,
}
def next_available_ip(self, *args, **kwargs):
return self._call_func("next_available_ip", *args, **kwargs)
class RangeTemplate(InfobloxObject):
@classmethod
def get_v4_class(cls):
return RangeTemplateV4
@classmethod
def get_v6_class(cls):
return RangeTemplateV6
class RangeTemplateV4(RangeTemplate):
""" RangeTemplateV4: DHCP Range template object.
Corresponds to WAPI object 'rangetemplate'
The range template used to create a range objects in a quick and
consistant way. Range object created from a range template will
inherit most properties defined in range template object so most of
the range template properties are the same as the range object
properties.
Attributes:
bootfile: The bootfile name for the range. You can configure the
DHCP server to support clients that use the boot file name
option in their DHCPREQUEST messages.
bootserver: The bootserver address for the range. You can
specify the name and/or IP address of the boot server that
the host needs to boot.The boot server IPv4 Address or name
in FQDN format.
cloud_api_compatible: This flag controls whether this template
can be used to create network objects in a cloud-computing
deployment.
comment: A descriptive comment of a range template object.
ddns_domainname: The dynamic DNS domain name the appliance uses
specifically for DDNS updates for this range.
ddns_generate_hostname: If this field is set to True, the DHCP
server generates a hostname and updates DNS with it when the
DHCP client request does not contain a hostname.
delegated_member: The vconnector member that the object should
be delegated to when created from this range template.
deny_all_clients: If True, send NAK forcing the client to take
the new address.
deny_bootp: Determines if BOOTP settings are disabled and BOOTP
requests will be denied.
email_list: The e-mail lists to which the appliance sends DHCP
threshold alarm e-mail messages.
enable_ddns: Determines if the DHCP server sends DDNS updates to
DNS servers in the same Grid, and to external DNS servers.
enable_dhcp_thresholds: Determines if DHCP thresholds are
enabled for the range.
enable_email_warnings: Determines if DHCP threshold warnings are
sent through email.
enable_pxe_lease_time: Set this to True if you want the DHCP
server to use a different lease time for PXE clients.
enable_snmp_warnings: Determines if DHCP threshold warnings are
sent through SNMP.
exclude: These are ranges of IP addresses that the appliance
does not use to assign to clients. You can use these
exclusion addresses as static IP addresses. They contain the
start and end addresses of the exclusion range, and
optionally, information about this exclusion range.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
failover_association: The name of the failover association: the
server in this failover association will serve the IPv4
range in case the main server is out of service.
fingerprint_filter_rules: This field contains the fingerprint
filters for this DHCP range.The appliance uses matching
rules in these filters to select the address range from
which it assigns a lease.
high_water_mark: The percentage of DHCP range usage threshold
above which range usage is not expected and may warrant your
attention. When the high watermark is reached, the Infoblox
appliance generates a syslog message and sends a warning (if
enabled).A number that specifies the percentage of allocated
addresses. The range is from 1 to 100.
high_water_mark_reset: The percentage of DHCP range usage below
which the corresponding SNMP trap is reset.A number that
specifies the percentage of allocated addresses. The range
is from 1 to 100. The high watermark reset value must be
lower than the high watermark value.
ignore_dhcp_option_list_request: If this field is set to False,
the appliance returns all DHCP options the client is
eligible to receive, rather than only the list of options
the client has requested.
known_clients: Permission for known clients. If set to 'Deny'
known clients will be denied IP addresses.Known clients
include roaming hosts and clients with fixed addresses or
DHCP host entries. Unknown clients include clients that are
not roaming hosts and clients that do not have fixed
addresses or DHCP host entries.
lease_scavenge_time: An integer that specifies the period of
time (in seconds) that frees and backs up leases remained in
the database before they are automatically deleted. To
disable lease scavenging, set the parameter to -1. The
minimum positive value must be greater than 86400 seconds (1
day).
logic_filter_rules: This field contains the logic filters to be
applied on this range.This list corresponds to the match
rules that are written to the dhcpd configuration file.
low_water_mark: The percentage of DHCP range usage below which
the Infoblox appliance generates a syslog message and sends
a warning (if enabled).A number that specifies the
percentage of allocated addresses. The range is from 1 to
100.
low_water_mark_reset: The percentage of DHCP range usage
threshold below which range usage is not expected and may
warrant your attention. When the low watermark is crossed,
the Infoblox appliance generates a syslog message and sends
a warning (if enabled).A number that specifies the
percentage of allocated addresses. The range is from 1 to
100. The low watermark reset value must be higher than the
low watermark value.
mac_filter_rules: This field contains the MAC filters to be
applied to this range.The appliance uses the matching rules
of these filters to select the address range from which it
assigns a lease.
member: The member that will provide service for this range.
ms_options: The Microsoft DHCP options for this range.
ms_server: The Microsoft server that will provide service for
this range.
nac_filter_rules: This field contains the NAC filters to be
applied to this range.The appliance uses the matching rules
of these filters to select the address range from which it
assigns a lease.
name: The name of a range template object.
nextserver: The name in FQDN and/or IPv4 Address format of the
next server that the host needs to boot.
number_of_addresses: The number of addresses for this range.
offset: The start address offset for this range.
option_filter_rules: This field contains the Option filters to
be applied to this range.The appliance uses the matching
rules of these filters to select the address range from
which it assigns a lease.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
pxe_lease_time: The PXE lease time value for a range object.
Some hosts use PXE (Preboot Execution Environment) to boot
remotely from a server. To better manage your IP resources,
set a different lease time for PXE boot requests. You can
configure the DHCP server to allocate an IP address with a
shorter lease time to hosts that send PXE boot requests, so
IP addresses are not leased longer than necessary.A 32-bit
unsigned integer that represents the duration, in seconds,
for which the update is cached. Zero indicates that the
update is not cached.
recycle_leases: If the field is set to True, the leases are kept
in the Recycle Bin until one week after expiration.
Otherwise, the leases are permanently deleted.
relay_agent_filter_rules: This field contains the Relay Agent
filters to be applied to this range.The appliance uses the
matching rules of these filters to select the address range
from which it assigns a lease.
server_association_type: The type of server that is going to
serve the range.
unknown_clients: Permission for unknown clients. If set to
'Deny' unknown clients will be denied IP addresses.Known
clients include roaming hosts and clients with fixed
addresses or DHCP host entries. Unknown clients include
clients that are not roaming hosts and clients that do not
have fixed addresses or DHCP host entries.
update_dns_on_lease_renewal: This field controls whether the
DHCP server updates DNS when a DHCP lease is renewed.
use_bootfile: Use flag for: bootfile
use_bootserver: Use flag for: bootserver
use_ddns_domainname: Use flag for: ddns_domainname
use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
use_deny_bootp: Use flag for: deny_bootp
use_email_list: Use flag for: email_list
use_enable_ddns: Use flag for: enable_ddns
use_enable_dhcp_thresholds: Use flag for: enable_dhcp_thresholds
use_ignore_dhcp_option_list_request: Use flag for:
ignore_dhcp_option_list_request
use_known_clients: Use flag for: known_clients
use_lease_scavenge_time: Use flag for: lease_scavenge_time
use_logic_filter_rules: Use flag for: logic_filter_rules
use_ms_options: Use flag for: ms_options
use_nextserver: Use flag for: nextserver
use_options: Use flag for: options
use_pxe_lease_time: Use flag for: pxe_lease_time
use_recycle_leases: Use flag for: recycle_leases
use_unknown_clients: Use flag for: unknown_clients
use_update_dns_on_lease_renewal: Use flag for:
update_dns_on_lease_renewal
"""
_infoblox_type = 'rangetemplate'
_fields = ['bootfile', 'bootserver', 'cloud_api_compatible', 'comment',
'ddns_domainname', 'ddns_generate_hostname', 'delegated_member',
'deny_all_clients', 'deny_bootp', 'email_list', 'enable_ddns',
'enable_dhcp_thresholds', 'enable_email_warnings',
'enable_pxe_lease_time', 'enable_snmp_warnings', 'exclude',
'extattrs', 'failover_association', 'fingerprint_filter_rules',
'high_water_mark', 'high_water_mark_reset',
'ignore_dhcp_option_list_request', 'known_clients',
'lease_scavenge_time', 'logic_filter_rules', 'low_water_mark',
'low_water_mark_reset', 'mac_filter_rules', 'member',
'ms_options', 'ms_server', 'nac_filter_rules', 'name',
'nextserver', 'number_of_addresses', 'offset',
'option_filter_rules', 'options', 'pxe_lease_time',
'recycle_leases', 'relay_agent_filter_rules',
'server_association_type', 'unknown_clients',
'update_dns_on_lease_renewal', 'use_bootfile', 'use_bootserver',
'use_ddns_domainname', 'use_ddns_generate_hostname',
'use_deny_bootp', 'use_email_list', 'use_enable_ddns',
'use_enable_dhcp_thresholds',
'use_ignore_dhcp_option_list_request', 'use_known_clients',
'use_lease_scavenge_time', 'use_logic_filter_rules',
'use_ms_options', 'use_nextserver', 'use_options',
'use_pxe_lease_time', 'use_recycle_leases',
'use_unknown_clients', 'use_update_dns_on_lease_renewal']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'failover_association', 'member',
'ms_server', 'name',
'server_association_type']
_all_searchable_fields = ['comment', 'failover_association', 'member',
'ms_server', 'name', 'server_association_type']
_return_fields = ['comment', 'extattrs', 'name', 'number_of_addresses',
'offset']
_remap = {}
_shadow_fields = ['_ref']
_ip_version = 4
_custom_field_processing = {
'exclude': Exclusionrangetemplate.from_dict,
'fingerprint_filter_rules': Filterrule.from_dict,
'logic_filter_rules': Logicfilterrule.from_dict,
'mac_filter_rules': Filterrule.from_dict,
'ms_options': Msdhcpoption.from_dict,
'nac_filter_rules': Filterrule.from_dict,
'option_filter_rules': Filterrule.from_dict,
'options': DhcpOption.from_dict,
'relay_agent_filter_rules': Filterrule.from_dict,
}
class RangeTemplateV6(RangeTemplate):
""" RangeTemplateV6: IPv6 DHCP Range template object.
Corresponds to WAPI object 'ipv6rangetemplate'
The IPv6 range template used to create an IPv6 range object in a
quick and consistent way. The DHCP IPv6 range created from the DHCP
IPv6 range template will inherit the properties defined in this
template.
Attributes:
cloud_api_compatible: Determines whether the IPv6 DHCP range
template can be used to create network objects in a cloud-
computing deployment.
comment: The IPv6 DHCP range template descriptive comment.
delegated_member: The vConnector member that the object should
be delegated to when created from the IPv6 DHCP range
template. I assume that vConnector refers to VMware
vConnector.
exclude: These are ranges of IPv6 addresses that the appliance
does not use to assign to clients. You can use these
excluded addresses as static IPv6 addresses. They contain
the start and end addresses of the excluded range, and
optionally, information about this excluded range.
logic_filter_rules: This field contains the logic filters to be
applied on this IPv6 range.This list corresponds to the
match rules that are written to the DHCPv6 configuration
file.
member: The member that will provide service for the IPv6 DHCP
range.Set server_association_type to 'MEMBER' if you want
the server specified here to serve the range. For searching
by this field, use an HTTP method that contains a body (POST
or PUT) with MS DHCP server structure and the request should
have option _method=GET.
name: Name of the IPv6 DHCP range template.
number_of_addresses: The number of addresses for the IPv6 DHCP
range.
offset: The start address offset for the IPv6 DHCP range.
option_filter_rules: This field contains the Option filters to
be applied to this IPv6 range. The appliance uses the
matching rules of these filters to select the address range
from which it assigns a lease.
recycle_leases: Determines whether the leases are kept in
Recycle Bin until one week after expiry. If this is set to
False, the leases are permanently deleted.
server_association_type: The type of server that is going to
serve the IPv6 DHCP range.
use_logic_filter_rules: Use flag for: logic_filter_rules
use_recycle_leases: Use flag for: recycle_leases
"""
_infoblox_type = 'ipv6rangetemplate'
_fields = ['cloud_api_compatible', 'comment', 'delegated_member',
'exclude', 'logic_filter_rules', 'member', 'name',
'number_of_addresses', 'offset', 'option_filter_rules',
'recycle_leases', 'server_association_type',
'use_logic_filter_rules', 'use_recycle_leases']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'member', 'name',
'server_association_type']
_all_searchable_fields = ['comment', 'member', 'name',
'server_association_type']
_return_fields = ['comment', 'name', 'number_of_addresses', 'offset']
_remap = {}
_shadow_fields = ['_ref']
_ip_version = 6
_custom_field_processing = {
'exclude': Exclusionrangetemplate.from_dict,
'logic_filter_rules': Logicfilterrule.from_dict,
'option_filter_rules': Filterrule.from_dict,
}
class SharedNetwork(InfobloxObject):
@classmethod
def get_v4_class(cls):
return SharedNetworkV4
@classmethod
def get_v6_class(cls):
return SharedNetworkV6
class SharedNetworkV4(SharedNetwork):
""" SharedNetworkV4: DHCP Shared Network object.
Corresponds to WAPI object 'sharednetwork'
A shared network is a network segment to which you assign two or
more subnets. When subnets in a shared network contain IP addresses
that are available for dynamic allocation, the addresses are put
into a common pool for allocation when client requests arise. When
you create a shared network, the DHCP server can assign IP addresses
to client requests from any subnet (that resides on the same network
interface) in the shared network.
Attributes:
authority: Authority for the shared network.
bootfile: The bootfile name for the shared network. You can
configure the DHCP server to support clients that use the
boot file name option in their DHCPREQUEST messages.
bootserver: The bootserver address for the shared network. You
can specify the name and/or IP address of the boot server
that the host needs to boot.The boot server IPv4 Address or
name in FQDN format.
comment: Comment for the shared network, maximum 256 characters.
ddns_generate_hostname: If this field is set to True, the DHCP
server generates a hostname and updates DNS with it when the
DHCP client request does not contain a hostname.
ddns_server_always_updates: This field controls whether only the
DHCP server is allowed to update DNS, regardless of the DHCP
clients requests. Note that changes for this field take
effect only if ddns_use_option81 is True.
ddns_ttl: The DNS update Time to Live (TTL) value of a shared
network object.The TTL is a 32-bit unsigned integer that
represents the duration, in seconds, for which the update is
cached. Zero indicates that the update is not cached.
ddns_update_fixed_addresses: By default, the DHCP server does
not update DNS when it allocates a fixed address to a
client. You can configure the DHCP server to update the A
and PTR records of a client with a fixed address. When this
feature is enabled and the DHCP server adds A and PTR
records for a fixed address, the DHCP server never discards
the records.
ddns_use_option81: The support for DHCP Option 81 at the shared
network level.
deny_bootp: If set to true, BOOTP settings are disabled and
BOOTP requests will be denied.
dhcp_utilization: The percentage of the total DHCP utilization
of the networks belonging to the shared network multiplied
by 1000. This is the percentage of the total number of
available IP addresses from all the networks belonging to
the shared network versus the total number of all IP
addresses in all of the networks in the shared network.
dhcp_utilization_status: A string describing the utilization
level of the shared network.
disable: Determines whether a shared network is disabled or not.
When this is set to False, the shared network is enabled.
dynamic_hosts: The total number of DHCP leases issued for the
shared network.
enable_ddns: The dynamic DNS updates flag of a shared network
object. If set to True, the DHCP server sends DDNS updates
to DNS servers in the same Grid, and to external DNS
servers.
enable_pxe_lease_time: Set this to True if you want the DHCP
server to use a different lease time for PXE clients.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
ignore_client_identifier: If set to true, the client identifier
will be ignored.
ignore_dhcp_option_list_request: If this field is set to False,
the appliance returns all DHCP options the client is
eligible to receive, rather than only the list of options
the client has requested.
ignore_id: Indicates whether the appliance will ignore DHCP
client IDs or MAC addresses. Valid values are "NONE",
"CLIENT", or "MACADDR". The default is "NONE".
ignore_mac_addresses: A list of MAC addresses the appliance will
ignore.
lease_scavenge_time: An integer that specifies the period of
time (in seconds) that frees and backs up leases remained in
the database before they are automatically deleted. To
disable lease scavenging, set the parameter to -1. The
minimum positive value must be greater than 86400 seconds (1
day).
logic_filter_rules: This field contains the logic filters to be
applied on the this shared network.This list corresponds to
the match rules that are written to the dhcpd configuration
file.
ms_ad_user_data: The Microsoft Active Directory user related
information.
name: The name of the IPv6 Shared Network.
network_view: The name of the network view in which this shared
network resides.
networks: A list of networks belonging to the shared networkEach
individual list item must be specified as an object
containing a '_ref' parameter to a network reference, for
example:if the reference of the wanted network is not known,
it is possible to specify search parameters for the network
instead in the following way:note that in this case the
search must match exactly one network for the assignment to
be successful.
nextserver: The name in FQDN and/or IPv4 Address of the next
server that the host needs to boot.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
pxe_lease_time: The PXE lease time value of a shared network
object. Some hosts use PXE (Preboot Execution Environment)
to boot remotely from a server. To better manage your IP
resources, set a different lease time for PXE boot requests.
You can configure the DHCP server to allocate an IP address
with a shorter lease time to hosts that send PXE boot
requests, so IP addresses are not leased longer than
necessary.A 32-bit unsigned integer that represents the
duration, in seconds, for which the update is cached. Zero
indicates that the update is not cached.
static_hosts: The number of static DHCP addresses configured in
the shared network.
total_hosts: The total number of DHCP addresses configured in
the shared network.
update_dns_on_lease_renewal: This field controls whether the
DHCP server updates DNS when a DHCP lease is renewed.
use_authority: Use flag for: authority
use_bootfile: Use flag for: bootfile
use_bootserver: Use flag for: bootserver
use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
use_ddns_ttl: Use flag for: ddns_ttl
use_ddns_update_fixed_addresses: Use flag for:
ddns_update_fixed_addresses
use_ddns_use_option81: Use flag for: ddns_use_option81
use_deny_bootp: Use flag for: deny_bootp
use_enable_ddns: Use flag for: enable_ddns
use_ignore_client_identifier: Use flag for:
ignore_client_identifier
use_ignore_dhcp_option_list_request: Use flag for:
ignore_dhcp_option_list_request
use_ignore_id: Use flag for: ignore_id
use_lease_scavenge_time: Use flag for: lease_scavenge_time
use_logic_filter_rules: Use flag for: logic_filter_rules
use_nextserver: Use flag for: nextserver
use_options: Use flag for: options
use_pxe_lease_time: Use flag for: pxe_lease_time
use_update_dns_on_lease_renewal: Use flag for:
update_dns_on_lease_renewal
"""
_infoblox_type = 'sharednetwork'
_fields = ['authority', 'bootfile', 'bootserver', 'comment',
'ddns_generate_hostname', 'ddns_server_always_updates',
'ddns_ttl', 'ddns_update_fixed_addresses', 'ddns_use_option81',
'deny_bootp', 'dhcp_utilization', 'dhcp_utilization_status',
'disable', 'dynamic_hosts', 'enable_ddns',
'enable_pxe_lease_time', 'extattrs', 'ignore_client_identifier',
'ignore_dhcp_option_list_request', 'ignore_id',
'ignore_mac_addresses', 'lease_scavenge_time',
'logic_filter_rules', 'ms_ad_user_data', 'name', 'network_view',
'networks', 'nextserver', 'options', 'pxe_lease_time',
'static_hosts', 'total_hosts', 'update_dns_on_lease_renewal',
'use_authority', 'use_bootfile', 'use_bootserver',
'use_ddns_generate_hostname', 'use_ddns_ttl',
'use_ddns_update_fixed_addresses', 'use_ddns_use_option81',
'use_deny_bootp', 'use_enable_ddns',
'use_ignore_client_identifier',
'use_ignore_dhcp_option_list_request', 'use_ignore_id',
'use_lease_scavenge_time', 'use_logic_filter_rules',
'use_nextserver', 'use_options', 'use_pxe_lease_time',
'use_update_dns_on_lease_renewal']
_search_for_update_fields = ['name', 'network_view']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name', 'network_view']
_return_fields = ['comment', 'extattrs', 'name', 'network_view',
'networks']
_remap = {}
_shadow_fields = ['_ref']
_ip_version = 4
_custom_field_processing = {
'logic_filter_rules': Logicfilterrule.from_dict,
'options': DhcpOption.from_dict,
}
class SharedNetworkV6(SharedNetwork):
""" SharedNetworkV6: DHCP IPv6 Shared Network object.
Corresponds to WAPI object 'ipv6sharednetwork'
A shared network is a network segment to which you assign two or
more subnets. When subnets in a shared network contain IP addresses
that are available for dynamic allocation, the addresses are put
into a common pool for allocation when client requests arise. When
you create a shared network, the DHCP server can assign IP addresses
to client requests from any subnet (that resides on the same network
interface) in the shared network.
Attributes:
comment: Comment for the IPv6 shared network, maximum 256
characters.
ddns_domainname: The dynamic DNS domain name the appliance uses
specifically for DDNS updates for this network.
ddns_generate_hostname: If this field is set to True, the DHCP
server generates a hostname and updates DNS with it when the
DHCP client request does not contain a hostname.
ddns_server_always_updates: This field controls whether only the
DHCP server is allowed to update DNS, regardless of the DHCP
clients requests. Note that changes for this field take
effect only if ddns_use_option81 is True.
ddns_ttl: The DNS update Time to Live (TTL) value of an IPv6
shared network object.The TTL is a 32-bit unsigned integer
that represents the duration, in seconds, for which the
update is cached. Zero indicates that the update is not
cached.
ddns_use_option81: The support for DHCP Option 81 at the IPv6
shared network level.
disable: Determines whether an IPv6 shared network is disabled
or not. When this is set to False, the IPv6 shared network
is enabled.
domain_name: Use this method to set or retrieve the domain_name
value of a DHCP IPv6 Shared Network object.
domain_name_servers: Use this method to set or retrieve the
dynamic DNS updates flag of a DHCP IPv6 Shared Network
object. The DHCP server can send DDNS updates to DNS servers
in the same Grid and to external DNS servers. This setting
overrides the member level settings.
enable_ddns: The dynamic DNS updates flag of an IPv6 shared
network object. If set to True, the DHCP server sends DDNS
updates to DNS servers in the same Grid, and to external DNS
servers.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
logic_filter_rules: This field contains the logic filters to be
applied on the this IPv6 shared network.This list
corresponds to the match rules that are written to the
DHCPv6 configuration file.
name: The name of the IPv6 Shared Network.
network_view: The name of the network view in which this IPv6
shared network resides.
networks: A list of IPv6 networks belonging to the shared
networkEach individual list item must be specified as an
object containing a '_ref' parameter to a network reference,
for example:if the reference of the wanted network is not
known, it is possible to specify search parameters for the
network instead in the following way:note that in this case
the search must match exactly one network for the assignment
to be successful.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
preferred_lifetime: Use this method to set or retrieve the
preferred lifetime value of a DHCP IPv6 Shared Network
object.
update_dns_on_lease_renewal: This field controls whether the
DHCP server updates DNS when a DHCP lease is renewed.
use_ddns_domainname: Use flag for: ddns_domainname
use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
use_ddns_ttl: Use flag for: ddns_ttl
use_ddns_use_option81: Use flag for: ddns_use_option81
use_domain_name: Use flag for: domain_name
use_domain_name_servers: Use flag for: domain_name_servers
use_enable_ddns: Use flag for: enable_ddns
use_logic_filter_rules: Use flag for: logic_filter_rules
use_options: Use flag for: options
use_preferred_lifetime: Use flag for: preferred_lifetime
use_update_dns_on_lease_renewal: Use flag for:
update_dns_on_lease_renewal
use_valid_lifetime: Use flag for: valid_lifetime
valid_lifetime: Use this method to set or retrieve the valid
lifetime value of a DHCP IPv6 Shared Network object.
"""
_infoblox_type = 'ipv6sharednetwork'
_fields = ['comment', 'ddns_domainname', 'ddns_generate_hostname',
'ddns_server_always_updates', 'ddns_ttl', 'ddns_use_option81',
'disable', 'domain_name', 'domain_name_servers', 'enable_ddns',
'extattrs', 'logic_filter_rules', 'name', 'network_view',
'networks', 'options', 'preferred_lifetime',
'update_dns_on_lease_renewal', 'use_ddns_domainname',
'use_ddns_generate_hostname', 'use_ddns_ttl',
'use_ddns_use_option81', 'use_domain_name',
'use_domain_name_servers', 'use_enable_ddns',
'use_logic_filter_rules', 'use_options',
'use_preferred_lifetime', 'use_update_dns_on_lease_renewal',
'use_valid_lifetime', 'valid_lifetime']
_search_for_update_fields = ['name', 'network_view']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name', 'network_view']
_return_fields = ['comment', 'extattrs', 'name', 'network_view',
'networks']
_remap = {}
_shadow_fields = ['_ref']
_ip_version = 6
_custom_field_processing = {
'logic_filter_rules': Logicfilterrule.from_dict,
'options': DhcpOption.from_dict,
}
class Kerberoskey(InfobloxObject):
""" Kerberoskey: Kerberos key object.
Corresponds to WAPI object 'kerberoskey'
GSS-TSIG (Generic Security Service Algorithm for Secret Key
Transaction) is used to authenticate DDNS updates. It is a modified
form of TSIG authentication that uses Kerberos v5 authentication
system.
You can configure the appliance to accept GSS-TSIG signed DDNS
updates from a single client or multiple clients that belong to
different AD domains in which each domain have a unique GSS-TSIG
key. You can also configure the appliance to support one or multiple
GSS-TSIG keys for each of Grid members.
The Kerberos key object represents the GSS-TSIG key used to
authenticate clients for GSS-TSIG signed DDNS updates.
Attributes:
domain: The Kerberos domain name.
enctype: The Kerberos key encryption type.
in_use: Determines whether the Kerberos key is assigned to the
Grid or Grid member.
members: The list of hostnames and services of Grid members
where the key is assigned or Grid/DHCP4 or Grid/DHCP6 or
Grid/DNS.
principal: The principal of the Kerberos key object.
upload_timestamp: The timestamp of the Kerberos key upload
operation.
version: The Kerberos key version number (KVNO).
"""
_infoblox_type = 'kerberoskey'
_fields = ['domain', 'enctype', 'in_use', 'members', 'principal',
'upload_timestamp', 'version']
_search_for_update_fields = ['domain', 'enctype', 'in_use', 'principal',
'version']
_updateable_search_fields = []
_all_searchable_fields = ['domain', 'enctype', 'in_use', 'principal',
'version']
_return_fields = ['domain', 'enctype', 'in_use', 'principal', 'version']
_remap = {}
_shadow_fields = ['_ref']
class LdapAuthService(InfobloxObject):
""" LdapAuthService: The LDAP authentication service object.
Corresponds to WAPI object 'ldap_auth_service'
LDAP (Lightweight Directory Access Protocol) is an internet protocol
for accessing distributed directory services. The appliance can
authenticate admin accounts by verifying user names and passwords
against LDAP. This object is used to configure the LDAP
authentication service.
Attributes:
comment: The LDAP descriptive comment.
disable: Determines if the LDAP authentication service is
disabled.
ea_mapping: The mapping LDAP fields to extensible attributes.
ldap_group_attribute: The name of the LDAP attribute that
defines group membership.
ldap_group_authentication_type: The LDAP group authentication
type.
ldap_user_attribute: The LDAP userid attribute that is used for
search.
mode: The LDAP authentication mode.
name: The LDAP authentication service name.
recovery_interval: The period of time in seconds to wait before
trying to contact a LDAP server that has been marked as
'DOWN'.
retries: The maximum number of LDAP authentication attempts.
search_scope: The starting point of the LDAP search.
servers: The list of LDAP servers used for authentication.
timeout: The LDAP authentication timeout in seconds.
"""
_infoblox_type = 'ldap_auth_service'
_fields = ['comment', 'disable', 'ea_mapping', 'ldap_group_attribute',
'ldap_group_authentication_type', 'ldap_user_attribute', 'mode',
'name', 'recovery_interval', 'retries', 'search_scope',
'servers', 'timeout']
_search_for_update_fields = ['mode', 'name']
_updateable_search_fields = ['comment', 'mode', 'name', 'search_scope']
_all_searchable_fields = ['comment', 'mode', 'name', 'search_scope']
_return_fields = ['comment', 'disable', 'ldap_user_attribute', 'mode',
'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'ea_mapping': LdapEamapping.from_dict,
'servers': LdapServer.from_dict,
}
def check_ldap_server_settings(self, *args, **kwargs):
return self._call_func("check_ldap_server_settings", *args, **kwargs)
class DHCPLease(InfobloxObject):
""" DHCPLease: DHCP Lease object.
Corresponds to WAPI object 'lease'
A DHCP lease is an IP address that the Infoblox appliance assigns to
a DHCP client for a certain amount of time. When the appliance
assigns a lease, it also assignes other information, such as the
time when the appliance issued or freed an IP address, the MAC
address and host name of the client that received the IP address,
and the Grid member that supplied the lease. The DHCP Lease object
allows the appliance to store and correlate DHCP lease information
over the lifetime of a lease.
Note that deleting a lease object only clears the lease, it does not
remove the actual object.
Attributes:
address: The IPv4 Address or IPv6 Address of the lease.
billing_class: The billing_class value of a DHCP Lease object.
This field specifies the class to which this lease is
currently billed. This field is for IPv4 leases only.
binding_state: The binding state for the current lease.
Following are some of the values this field can be set to:
client_hostname: The client_hostname of a DHCP Lease object.
This field specifies the host name that the DHCP client
sends to the Infoblox appliance using DHCP option 12.
cltt: The CLTT (Client Last Transaction Time) value of a DHCP
Lease object. This field specifies the time of the last
transaction with the DHCP client for this lease.
discovered_data: The discovered data for this lease.
ends: The end time value of a DHCP Lease object. This field
specifies the time when a lease ended.
fingerprint: DHCP fingerprint for the lease.
hardware: The hardware type of a DHCP Lease object. This field
specifies the MAC address of the network interface on which
the lease will be used. This field is for IPv4 leases only.
ipv6_duid: The DUID value for this lease. This field is only
applicable for IPv6 leases.
ipv6_iaid: The interface ID of an IPv6 address that the Infoblox
appliance leased to the DHCP client. This field is for IPv6
leases only.
ipv6_preferred_lifetime: The preferred lifetime value of an IPv6
address that the Infoblox appliance leased to the DHCP
client. This field is for IPv6 leases only.
ipv6_prefix_bits: Prefix bits for this lease. This field is for
IPv6 leases only.
is_invalid_mac: This flag reflects whether the MAC address for
this lease is invalid.
ms_ad_user_data: The Microsoft Active Directory user related
information.
network: The network, in "network/netmask" format, with which
this lease is associated.
network_view: The name of the network view in which this lease
resides.
never_ends: If this field is set to True, the lease does not
have an end time.
never_starts: If this field is set to True, the lease does not
have a start time.
next_binding_state: The subsequent binding state when the
current lease expires. This field is for IPv4 leases only.
Following are some of the values this field can be set to:
on_commit: The list of commands to be executed when the lease is
granted.
on_expiry: The list of commands to be executed when the lease
expires.
on_release: The list of commands to be executed when the lease
is released.
option: The option value of a DHCP Lease object. This field
specifies the agent circuit ID and remote ID sent by a DHCP
relay agent in DHCP option 82. This field is for IPv4 leases
only.
protocol: This field determines whether the lease is an IPv4 or
IPv6 address.
remote_id: This field represents the "Remote ID" sub-option of
DHCP option 82.Remote ID can be in ASCII form (e.g. "abcd")
or in colon-separated HEX form (e.g. 1:2:ab:cd). HEX
representation is used only when the sub-option value
contains unprintable characters. If a remote ID sub-option
value is in ASCII form, it is always enclosed in quotes to
prevent ambiguous values (e.g. "10:20" - ASCII 5-byte
string; 10:20 - HEX 2-byte value).NIOS does not support the
convertion between HEX and ASCII formats. Searches are
performed using the exact same format and value as the sub-
option is represented.Query examples assume the following
leases are stored in the database:Expected results:
served_by: The IP address of the server that sends an active
lease to a client.
server_host_name: The host name of the Grid member or Microsoft
DHCP server that issues the lease.
starts: The start time of a DHCP Lease object. This field
specifies the time when the lease starts.
tsfp: The TSFP (Time Sent From Partner) value of a DHCP Lease
object. This field specifies the time that the current lease
state ends, from the point of view of a remote DHCP failover
peer. This field is for IPv4 leases only.
tstp: The TSTP (Time Sent To Partner) value of a DHCP Lease
object. This field specifies the time that the current lease
state ends, from the point of view of a local DHCP failover
peer. This field is for IPv4 leases only.
uid: The UID (User ID) value of a DHCP Lease object. This field
specifies the client identifier that the DHCP client sends
the Infoblox appliance (in DHCP option 61) when it acquires
the lease. Not all DHCP clients send a UID. This field is
for IPv4 leases only.
username: The user name that the server has associated with a
DHCP Lease object.
variable: The variable value of a DHCP Lease object. This field
keeps all variables related to the DDNS update of the DHCP
lease. The variables related to the DDNS updates of the DHCP
lease. The variables can be one of the following:ddns-text:
The ddns-text variable is used to record the value of the
client's TXT identification record when the interim DDNS
update style has been used to update the DNS service for a
particular lease.ddns-fwd-name: When a DDNS update was
successfully completed, the ddns-fwd-name variable records
the value of the name used when the client's A record was
updated. The server may have used this name when it updated
the client's PTR record.ddns-client-fqdn: If the server is
configured to use the interim DDNS update style and is also
configured to allow clients to update their own FQDNs, the
ddns-client-fqdn variable records the name that the client
used when it updated its own FQDN. This is also the name
that the server used to update the client's PTR record.ddns-
rev-name: If the server successfully updates the client's
PTR record, this variable will record the name that the DHCP
server used for the PTR record. The name to which the PTR
record points will be either the ddns-fwd-name or the ddns-
client-fqdn.
"""
_infoblox_type = 'lease'
_fields = ['address', 'billing_class', 'binding_state', 'client_hostname',
'cltt', 'discovered_data', 'ends', 'fingerprint', 'hardware',
'ipv6_duid', 'ipv6_iaid', 'ipv6_preferred_lifetime',
'ipv6_prefix_bits', 'is_invalid_mac', 'ms_ad_user_data',
'network', 'network_view', 'never_ends', 'never_starts',
'next_binding_state', 'on_commit', 'on_expiry', 'on_release',
'option', 'protocol', 'remote_id', 'served_by',
'server_host_name', 'starts', 'tsfp', 'tstp', 'uid', 'username',
'variable']
_search_for_update_fields = ['address', 'network_view']
_updateable_search_fields = []
_all_searchable_fields = ['address', 'client_hostname', 'fingerprint',
'hardware', 'ipv6_duid', 'ipv6_prefix_bits',
'network', 'network_view', 'protocol',
'remote_id', 'username']
_return_fields = ['address', 'network_view']
_remap = {}
_shadow_fields = ['_ref']
class LicenseGridwide(InfobloxObject):
""" LicenseGridwide: Gridwide license object.
Corresponds to WAPI object 'license:gridwide'
This object represents the Grid-wide license.
Attributes:
expiration_status: The license expiration status.
expiry_date: The expiration timestamp of the license.
key: The license string.
limit: The license limit value.
limit_context: The license limit context.
type: The license type.
"""
_infoblox_type = 'license:gridwide'
_fields = ['expiration_status', 'expiry_date', 'key', 'limit',
'limit_context', 'type']
_search_for_update_fields = ['type']
_updateable_search_fields = []
_all_searchable_fields = ['key', 'limit', 'type']
_return_fields = ['type']
_remap = {}
_shadow_fields = ['_ref']
class LocaluserAuthservice(InfobloxObject):
""" LocaluserAuthservice: Local user authentication service object.
Corresponds to WAPI object 'localuser:authservice'
The object represents a local authentication service for
authenticating users against the local database.
Note that read by reference is not supported.
Attributes:
comment: The local user authentication service comment.
disabled: Flag that indicates whether the local user
authentication service is enabled or not.
name: The name of the local user authentication service.
"""
_infoblox_type = 'localuser:authservice'
_fields = ['comment', 'disabled', 'name']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = ['comment', 'disabled', 'name']
_remap = {}
_shadow_fields = ['_ref']
class Macfilteraddress(InfobloxObject):
""" Macfilteraddress: MAC Filter Address object.
Corresponds to WAPI object 'macfilteraddress'
MAC filter address is part of the MAC filter.
Attributes:
authentication_time: The absolute UNIX time (in seconds) since
the address was last authenticated.
comment: Comment for the MAC filter address; maximum 256
characters.
expiration_time: The absolute UNIX time (in seconds) until the
address expires.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
filter: Name of the MAC filter to which this address belongs.
fingerprint: DHCP fingerprint for the address.
guest_custom_field1: Guest custom field 1.
guest_custom_field2: Guest custom field 2.
guest_custom_field3: Guest custom field 3.
guest_custom_field4: Guest custom field 4.
guest_email: Guest e-mail.
guest_first_name: Guest first name.
guest_last_name: Guest last name.
guest_middle_name: Guest middle name.
guest_phone: Guest phone number.
is_registered_user: Determines if the user has been
authenticated or not.
mac: MAC Address.
never_expires: Determines if MAC address expiration is enabled
or disabled.
reserved_for_infoblox: Reserved for future use.
username: Username for authenticated DHCP purposes.
"""
_infoblox_type = 'macfilteraddress'
_fields = ['authentication_time', 'comment', 'expiration_time', 'extattrs',
'filter', 'fingerprint', 'guest_custom_field1',
'guest_custom_field2', 'guest_custom_field3',
'guest_custom_field4', 'guest_email', 'guest_first_name',
'guest_last_name', 'guest_middle_name', 'guest_phone',
'is_registered_user', 'mac', 'never_expires',
'reserved_for_infoblox', 'username']
_search_for_update_fields = ['authentication_time', 'expiration_time',
'filter', 'guest_custom_field1',
'guest_custom_field2', 'guest_custom_field3',
'guest_custom_field4', 'guest_email',
'guest_first_name', 'guest_last_name',
'guest_middle_name', 'guest_phone', 'mac',
'never_expires', 'reserved_for_infoblox',
'username']
_updateable_search_fields = ['authentication_time', 'comment',
'expiration_time', 'filter',
'guest_custom_field1', 'guest_custom_field2',
'guest_custom_field3', 'guest_custom_field4',
'guest_email', 'guest_first_name',
'guest_last_name', 'guest_middle_name',
'guest_phone', 'mac', 'never_expires',
'reserved_for_infoblox', 'username']
_all_searchable_fields = ['authentication_time', 'comment',
'expiration_time', 'filter', 'fingerprint',
'guest_custom_field1', 'guest_custom_field2',
'guest_custom_field3', 'guest_custom_field4',
'guest_email', 'guest_first_name',
'guest_last_name', 'guest_middle_name',
'guest_phone', 'mac', 'never_expires',
'reserved_for_infoblox', 'username']
_return_fields = ['authentication_time', 'comment', 'expiration_time',
'extattrs', 'filter', 'guest_custom_field1',
'guest_custom_field2', 'guest_custom_field3',
'guest_custom_field4', 'guest_email', 'guest_first_name',
'guest_last_name', 'guest_middle_name', 'guest_phone',
'is_registered_user', 'mac', 'never_expires',
'reserved_for_infoblox', 'username']
_remap = {}
_shadow_fields = ['_ref']
class Mastergrid(InfobloxObject):
""" Mastergrid: Master Grid object.
Corresponds to WAPI object 'mastergrid'
This object represents the Master Grid. The Master Grid object is
automatically generated when a Grid successfully joins the Master
Grid.
Attributes:
address: The domain name or IP address for the Master Grid.
connection_disabled: Determines if the sub-grid is currently
disabled.
connection_timestamp: The timestamp that indicates when the
connection to the Master Grid was established.
detached: The detached flag for the Master Grid.
enable: Determines if the Master Grid is enabled.
joined: The flag shows if the Grid has joined the Master Grid.
last_event: The Master Grid's last event.
last_event_details: The details of the Master Grid's last event.
last_sync_timestamp: The timestamp or the last synchronization
operation with the Master Grid.
port: The Master Grid port to which the Grid connects.
status: The Master Grid's status.
use_mgmt_port: The flag shows if the MGMT port was used to join
the Grid.
"""
_infoblox_type = 'mastergrid'
_fields = ['address', 'connection_disabled', 'connection_timestamp',
'detached', 'enable', 'joined', 'last_event',
'last_event_details', 'last_sync_timestamp', 'port', 'status',
'use_mgmt_port']
_search_for_update_fields = ['address', 'port']
_updateable_search_fields = ['address', 'port']
_all_searchable_fields = ['address', 'port']
_return_fields = ['address', 'enable', 'port']
_remap = {}
_shadow_fields = ['_ref']
class Member(InfobloxObject):
""" Member: Member object.
Corresponds to WAPI object 'member'
This object represents the Infoblox Grid Member.
Attributes:
active_position: The active server of a Grid member.
additional_ip_list: The additional IP list of a Grid member.
This list contains additional interface information that can
be used at the member level.Note that interface structure(s)
with interface type set to 'MGMT' are not supported.
automated_traffic_capture_setting: Member level settings for
automated traffic capture.
bgp_as: The BGP configuration for anycast for a Grid member.
comment: A descriptive comment of the Grid member.
config_addr_type: Address configuration type.
csp_access_key: CSP portal on-prem host access key
csp_member_setting: csp setting at member level
dns_resolver_setting: DNS resolver setting for member.
dscp: The DSCP (Differentiated Services Code Point) value.
email_setting: The email setting for member.
enable_ha: If set to True, the member has two physical nodes (HA
pair).
enable_lom: Determines if the LOM functionality is enabled or
not.
enable_member_redirect: Determines if the member will redirect
GUI connections to the Grid Master or not.
enable_ro_api_access: If set to True and the member object is a
Grid Master Candidate, then read-only API access is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
external_syslog_backup_servers: The list of external syslog
backup servers.
external_syslog_server_enable: Determines if external syslog
servers should be enabled.
host_name: The host name of the Grid member.
ipv6_setting: IPV6 setting for member.
ipv6_static_routes: List of IPv6 static routes.
is_dscp_capable: Determines if a Grid member supports DSCP
(Differentiated Services Code Point).
lan2_enabled: If this is set to "true", the LAN2 port is enabled
as an independent port or as a port for failover purposes.
lan2_port_setting: Settings for the Grid member LAN2 port if
'lan2_enabled' is set to "true".
lcd_input: Determines if the Liquid Crystal Display (LCD) input
buttons on the front panel of the appliance are enabled or
not.
lom_network_config: The Network configurations for LOM.
lom_users: The list of LOM users.
master_candidate: Determines if a Grid member is a Grid Master
Candidate or not. This flag enables the Grid member to
assume the role of the Grid Master as a disaster recovery
measure.
member_service_communication: Configure communication type for
various services.
mgmt_port_setting: Settings for the member MGMT port.
mmdb_ea_build_time: Extensible attributes Topology database
build time.
mmdb_geoip_build_time: GeoIP Topology database build time.
nat_setting: NAT settings for the member.
node_info: The node information list with detailed status report
on the operations of the Grid Member.
ntp_setting: The member Network Time Protocol (NTP) settings.
ospf_list: The OSPF area configuration (for anycast) list for a
Grid member.
passive_ha_arp_enabled: The ARP protocol setting on the passive
node of an HA pair. If you do not specify a value, the
default value is "false". You can only set this value to
"true" if the member is an HA pair.
platform: Hardware Platform.
pre_provisioning: Pre-provisioning information.
preserve_if_owns_delegation: Set this flag to "true" to prevent
the deletion of the member if any delegated object remains
attached to it.
remote_console_access_enable: If set to True, superuser admins
can access the Infoblox CLI from a remote location using an
SSH (Secure Shell) v2 client.
router_id: Virutal router identifier. Provide this ID if
"ha_enabled" is set to "true". This is a unique VRID number
(from 1 to 255) for the local subnet.
service_status: The service status list of a grid member.
service_type_configuration: Configure all services to the given
type.
snmp_setting: The Grid Member SNMP settings.
static_routes: List of static routes.
support_access_enable: Determines if support access for the Grid
member should be enabled.
support_access_info: The information string for support access.
syslog_proxy_setting: The Grid Member syslog proxy settings.
syslog_servers: The list of external syslog servers.
syslog_size: The maximum size for the syslog file expressed in
megabytes.
threshold_traps: Determines the list of threshold traps. The
user can only change the values for each trap or remove
traps.
time_zone: The time zone of the Grid member. The UTC string that
represents the time zone, such as "(UTC - 5:00) Eastern Time
(US and Canada)".
traffic_capture_auth_dns_setting: Grid level settings for
enabling authoritative DNS latency thresholds for automated
traffic capture.
traffic_capture_chr_setting: Member level settings for enabling
DNS cache hit ratio threshold for automated traffic capture.
traffic_capture_qps_setting: Member level settings for enabling
DNS query per second threshold for automated traffic
capture.
traffic_capture_rec_dns_setting: Grid level settings for
enabling recursive DNS latency thresholds for automated
traffic capture.
traffic_capture_rec_queries_setting: Grid level settings for
enabling count for concurrent outgoing recursive queries for
automated traffic capture.
trap_notifications: Determines configuration of the trap
notifications.
upgrade_group: The name of the upgrade group to which this Grid
member belongs.
use_automated_traffic_capture: This flag is the use flag for
enabling automated traffic capture based on DNS cache ratio
thresholds.
use_dns_resolver_setting: Use flag for: dns_resolver_setting
use_dscp: Use flag for: dscp
use_email_setting: Use flag for: email_setting
use_enable_lom: Use flag for: enable_lom
use_enable_member_redirect: Use flag for: enable_member_redirect
use_external_syslog_backup_servers: Use flag for:
external_syslog_backup_servers
use_lcd_input: Use flag for: lcd_input
use_remote_console_access_enable: Use flag for:
remote_console_access_enable
use_snmp_setting: Use flag for: snmp_setting
use_support_access_enable: Use flag for: support_access_enable
use_syslog_proxy_setting: Use flag for:
external_syslog_server_enable , syslog_servers,
syslog_proxy_setting, syslog_size
use_threshold_traps: Use flag for: threshold_traps
use_time_zone: Use flag for: time_zone
use_traffic_capture_auth_dns: This flag is the use flag for
enabling automated traffic capture based on authorative DNS
latency.
use_traffic_capture_chr: This flag is the use flag for automated
traffic capture settings at member level.
use_traffic_capture_qps: This flag is the use flag for enabling
automated traffic capture based on DNS querie per second
thresholds.
use_traffic_capture_rec_dns: This flag is the use flag for
enabling automated traffic capture based on recursive DNS
latency.
use_traffic_capture_rec_queries: This flag is the use flag for
enabling automated traffic capture based on outgoing
recursive queries.
use_trap_notifications: Use flag for: trap_notifications
use_v4_vrrp: Specify "true" to use VRRPv4 or "false" to use
VRRPv6.
vip_setting: The network settings for the Grid member.
vpn_mtu: The VPN maximum transmission unit (MTU).
"""
_infoblox_type = 'member'
_fields = ['active_position', 'additional_ip_list',
'automated_traffic_capture_setting', 'bgp_as', 'comment',
'config_addr_type', 'csp_access_key', 'csp_member_setting',
'dns_resolver_setting', 'dscp', 'email_setting', 'enable_ha',
'enable_lom', 'enable_member_redirect', 'enable_ro_api_access',
'extattrs', 'external_syslog_backup_servers',
'external_syslog_server_enable', 'host_name', 'ipv6_setting',
'ipv6_static_routes', 'is_dscp_capable', 'lan2_enabled',
'lan2_port_setting', 'lcd_input', 'lom_network_config',
'lom_users', 'master_candidate', 'member_service_communication',
'mgmt_port_setting', 'mmdb_ea_build_time',
'mmdb_geoip_build_time', 'nat_setting', 'node_info',
'ntp_setting', 'ospf_list', 'passive_ha_arp_enabled',
'platform', 'pre_provisioning', 'preserve_if_owns_delegation',
'remote_console_access_enable', 'router_id', 'service_status',
'service_type_configuration', 'snmp_setting', 'static_routes',
'support_access_enable', 'support_access_info',
'syslog_proxy_setting', 'syslog_servers', 'syslog_size',
'threshold_traps', 'time_zone',
'traffic_capture_auth_dns_setting',
'traffic_capture_chr_setting', 'traffic_capture_qps_setting',
'traffic_capture_rec_dns_setting',
'traffic_capture_rec_queries_setting', 'trap_notifications',
'upgrade_group', 'use_automated_traffic_capture',
'use_dns_resolver_setting', 'use_dscp', 'use_email_setting',
'use_enable_lom', 'use_enable_member_redirect',
'use_external_syslog_backup_servers', 'use_lcd_input',
'use_remote_console_access_enable', 'use_snmp_setting',
'use_support_access_enable', 'use_syslog_proxy_setting',
'use_threshold_traps', 'use_time_zone',
'use_traffic_capture_auth_dns', 'use_traffic_capture_chr',
'use_traffic_capture_qps', 'use_traffic_capture_rec_dns',
'use_traffic_capture_rec_queries', 'use_trap_notifications',
'use_v4_vrrp', 'vip_setting', 'vpn_mtu', 'ipv4_address',
'ipv6_address']
_search_for_update_fields = ['config_addr_type', 'host_name', 'platform',
'service_type_configuration', 'ipv4_address',
'ipv6_address']
_updateable_search_fields = ['comment', 'config_addr_type', 'enable_ha',
'enable_ro_api_access', 'host_name',
'master_candidate', 'platform',
'preserve_if_owns_delegation', 'router_id',
'service_type_configuration']
_all_searchable_fields = ['comment', 'config_addr_type', 'enable_ha',
'enable_ro_api_access', 'host_name',
'master_candidate', 'platform',
'preserve_if_owns_delegation', 'router_id',
'service_type_configuration', 'ipv4_address',
'ipv6_address']
_return_fields = ['config_addr_type', 'extattrs', 'host_name', 'platform',
'service_type_configuration']
_remap = {'name': 'host_name'}
_shadow_fields = ['_ref', 'name']
_custom_field_processing = {
'additional_ip_list': Interface.from_dict,
'bgp_as': Bgpas.from_dict,
'external_syslog_backup_servers': Extsyslogbackupserver.from_dict,
'ipv6_static_routes': Ipv6Networksetting.from_dict,
'lom_network_config': Lomnetworkconfig.from_dict,
'lom_users': Lomuser.from_dict,
'member_service_communication': Memberservicecommunication.from_dict,
'node_info': Nodeinfo.from_dict,
'ospf_list': Ospf.from_dict,
'service_status': Memberservicestatus.from_dict,
'static_routes': SettingNetwork.from_dict,
'syslog_servers': Syslogserver.from_dict,
'threshold_traps': Thresholdtrap.from_dict,
'trap_notifications': Trapnotification.from_dict,
}
def capture_traffic_control(self, *args, **kwargs):
return self._call_func("capture_traffic_control", *args, **kwargs)
def capture_traffic_status(self, *args, **kwargs):
return self._call_func("capture_traffic_status", *args, **kwargs)
def create_token(self, *args, **kwargs):
return self._call_func("create_token", *args, **kwargs)
def member_admin_operation(self, *args, **kwargs):
return self._call_func("member_admin_operation", *args, **kwargs)
def read_token(self, *args, **kwargs):
return self._call_func("read_token", *args, **kwargs)
def requestrestartservicestatus(self, *args, **kwargs):
return self._call_func("requestrestartservicestatus", *args, **kwargs)
def restartservices(self, *args, **kwargs):
return self._call_func("restartservices", *args, **kwargs)
class MemberDhcpproperties(InfobloxObject):
""" MemberDhcpproperties: Member DHCP properties object.
Corresponds to WAPI object 'member:dhcpproperties'
This object represents a subset of the Infoblox Member DHCP
properties.
Attributes:
auth_server_group: The Authentication Server Group object
associated with this member.
authn_captive_portal: The captive portal responsible for
authenticating this DHCP member.
authn_captive_portal_authenticated_filter: The MAC filter
representing the authenticated range.
authn_captive_portal_enabled: The flag that controls if this
DHCP member is enabled for captive portal authentication.
authn_captive_portal_guest_filter: The MAC filter representing
the guest range.
authn_server_group_enabled: The flag that controls if this DHCP
member can send authentication requests to an authentication
server group.
authority: The authority flag of a Grid member. This flag
specifies if a DHCP server is authoritative for a domain.
bootfile: The name of a file that DHCP clients need to boot.
This setting overrides the Grid level setting.
bootserver: The name of the server on which a boot file is
stored. This setting overrides the Grid level setting.
ddns_domainname: The member DDNS domain name value.
ddns_generate_hostname: Determines the ability of a member DHCP
server to generate a host name and update DNS with this host
name when it receives a DHCP REQUEST message that does not
include a host name.
ddns_retry_interval: Determines the retry interval when the
member DHCP server makes repeated attempts to send DDNS
updates to a DNS server.
ddns_server_always_updates: Determines that only the DHCP server
is allowed to update DNS, regardless of the requests from
the DHCP clients. This setting overrides the Grid level
setting.
ddns_ttl: The DDNS TTL (Dynamic DNS Time To Live) value
specifies the number of seconds an IP address for the name
is cached.
ddns_update_fixed_addresses: Determines if the member DHCP
server's ability to update the A and PTR records with a
fixed address is enabled or not.
ddns_use_option81: Determines if support for option 81 is
enabled or not.
ddns_zone_primaries: An ordered list of zone primaries that will
receive DDNS updates.
deny_bootp: Determines if a BOOTP server denies BOOTP request or
not. This setting overrides the Grid level setting.
dhcp_utilization: The percentage of the total DHCP utilization
of DHCP objects belonging to the Grid Member multiplied by
1000. This is the percentage of the total number of
available IP addresses from all the DHCP objects belonging
to the Grid Member versus the total number of all IP
addresses in all of the DHCP objects on the Grid Member.
dhcp_utilization_status: A string describing the utilization
level of DHCP objects that belong to the Grid Member.
dns_update_style: The update style for dynamic DNS updates.
dynamic_hosts: The total number of DHCP leases issued for the
DHCP objects on the Grid Member.
email_list: The email_list value of a member DHCP server.
enable_ddns: Determines if the member DHCP server's ability to
send DDNS updates is enabled or not.
enable_dhcp: Determines if the DHCP service of a member is
enabled or not.
enable_dhcp_on_ipv6_lan2: Determines if the DHCP service on the
IPv6 LAN2 interface is enabled or not.
enable_dhcp_on_lan2: Determines if the DHCP service on the LAN2
interface is enabled or not.
enable_dhcp_thresholds: Represents the watermarks above or below
which address usage in a network is unexpected and might
warrant your attention. This setting overrides the Grid
level setting.
enable_dhcpv6_service: Determines if DHCPv6 service for the
member is enabled or not.
enable_email_warnings: Determines if e-mail warnings are enabled
or disabled. When DHCP threshold is enabled and DHCP address
usage crosses a watermark threshold, the appliance sends an
e-mail notification to an administrator.
enable_fingerprint: Determines if fingerprint feature is enabled
on this member. If you enable this feature, the server will
match a fingerprint for incoming lease requests.
enable_gss_tsig: Determines whether the appliance is enabled to
receive GSS-TSIG authenticated updates from DHCP clients.
enable_hostname_rewrite: Determines if the Grid member's host
name rewrite feature is enabled or not.
enable_leasequery: Determines if lease query is allowed or not.
This setting overrides the Grid-level setting.
enable_snmp_warnings: Determines if SNMP warnings are enabled or
disabled on this DHCP member. When DHCP threshold is enabled
and DHCP address usage crosses a watermark threshold, the
appliance sends an SNMP trap to the trap receiver that was
defined for the Grid member level.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
gss_tsig_keys: The list of GSS-TSIG keys for a member DHCP
object.
high_water_mark: Determines the high watermark value of a member
DHCP server. If the percentage of allocated addresses
exceeds this watermark, the appliance makes a syslog entry
and sends an e-mail notification (if enabled).Specifies the
percentage of allocated addresses. The range is from 1 to
100.
high_water_mark_reset: Determines the high watermark reset value
of a member DHCP server. If the percentage of allocated
addresses drops below this value, a corresponding SNMP trap
is reset.Specifies the percentage of allocated addresses.
The range is from 1 to 100. The high watermark reset value
must be lower than the high watermark value.
host_name: Host name of the Grid member.
hostname_rewrite_policy: The hostname rewrite policy that is in
the protocol hostname rewrite policies array of the Grid
DHCP object. This attribute is mandatory if
enable_hostname_rewrite is "true".
ignore_dhcp_option_list_request: Determines if the ignore DHCP
option list request flag of a Grid member DHCP is enabled or
not. If this flag is set to true all available DHCP options
will be returned to the client.
ignore_id: Indicates whether the appliance will ignore DHCP
client IDs or MAC addresses. Valid values are "NONE",
"CLIENT", or "MACADDR". The default is "NONE".
ignore_mac_addresses: A list of MAC addresses the appliance will
ignore.
immediate_fa_configuration: Determines if the Immediate Fixed
address configuration apply feature for the DHCP member is
enabled or not.
ipv4addr: The IPv4 Address of the Grid member.
ipv6_ddns_domainname: The member DDNS IPv6 domain name value.
ipv6_ddns_enable_option_fqdn: Controls whether the FQDN option
sent by the DHCPv6 client is to be used, or if the server
can automatically generate the FQDN.
ipv6_ddns_hostname: The member IPv6 DDNS hostname value.
ipv6_ddns_server_always_updates: Determines if the server always
updates DNS or updates only if requested by the client.
ipv6_ddns_ttl: The member IPv6 DDNS TTL value.
ipv6_dns_update_style: The update style for dynamic DHCPv6 DNS
updates.
ipv6_domain_name: The IPv6 domain name.
ipv6_domain_name_servers: The comma separated list of domain
name server addresses in IPv6 address format.
ipv6_enable_ddns: Determines if sending DDNS updates by the
member DHCPv6 server is enabled or not.
ipv6_enable_gss_tsig: Determines whether the appliance is
enabled to receive GSS-TSIG authenticated updates from
DHCPv6 clients.
ipv6_enable_lease_scavenging: Indicates whether DHCPv6 lease
scavenging is enabled or disabled.
ipv6_enable_retry_updates: Determines if the DHCPv6 server
retries failed dynamic DNS updates or not.
ipv6_generate_hostname: Determines if the server generates the
hostname if it is not sent by the client.
ipv6_gss_tsig_keys: The list of GSS-TSIG keys for a member
DHCPv6 object.
ipv6_kdc_server: Determines the IPv6 address or FQDN of the
Kerberos server for DHCPv6 GSS-TSIG authentication. This
setting overrides the Grid level setting.
ipv6_lease_scavenging_time: The member-level grace period (in
seconds) to keep an expired lease before it is deleted by
the scavenging process.
ipv6_microsoft_code_page: The Microsoft client DHCP IPv6 code
page value of a Grid member. This value is the hostname
translation code page for Microsoft DHCP IPv6 clients and
overrides the Grid level Microsoft DHCP IPv6 client code
page.
ipv6_options: An array of DHCP option structs that lists the
DHCPv6 options associated with the object.
ipv6_recycle_leases: Determines if the IPv6 recycle leases
feature is enabled or not. If the feature is enabled, leases
are kept in the Recycle Bin until one week after lease
expiration. When the feature is disabled, the leases are
irrecoverably deleted.
ipv6_remember_expired_client_association: Enable binding for
expired DHCPv6 leases.
ipv6_retry_updates_interval: Determines the retry interval when
the member DHCPv6 server makes repeated attempts to send
DDNS updates to a DNS server.
ipv6_server_duid: The server DHCPv6 unique identifier (DUID) for
the Grid member.
ipv6_update_dns_on_lease_renewal: Controls whether the DHCPv6
server updates DNS when an IPv6 DHCP lease is renewed.
ipv6addr: The IPv6 Address of the Grid member.
kdc_server: The IPv4 address or FQDN of the Kerberos server for
DHCPv4 GSS-TSIG authentication. This setting overrides the
Grid level setting.
lease_per_client_settings: Defines how the appliance releases
DHCP leases. Valid values are "RELEASE_MACHING_ID",
"NEVER_RELEASE", or "ONE_LEASE_PER_CLIENT". The default is
"RELEASE_MATCHING_ID".
lease_scavenge_time: Determines the lease scavenging time value.
When this field is set, the appliance permanently deletes
the free and backup leases that remain in the database
beyond a specified period of time.To disable lease
scavenging, set the parameter to -1. The minimum positive
value must be greater than 86400 seconds (1 day).
log_lease_events: This value specifies whether the grid member
logs lease events. This setting overrides the Grid level
setting.
logic_filter_rules: This field contains the logic filters to be
applied on the Grid member.This list corresponds to the
match rules that are written to the dhcpd configuration
file.
low_water_mark: Determines the low watermark value. If the
percent of allocated addresses drops below this watermark,
the appliance makes a syslog entry and sends an e-mail
notification (if enabled).
low_water_mark_reset: Determines the low watermark reset value.
If the percentage of allocated addresses exceeds this value,
a corresponding SNMP trap is reset.A number that specifies
the percentage of allocated addresses. The range is from 1
to 100. The low watermark reset value must be higher than
the low watermark value.
microsoft_code_page: The Microsoft client DHCP IPv4 code page
value of a grid member. This value is the hostname
translation code page for Microsoft DHCP IPv4 clients and
overrides the Grid level Microsoft DHCP IPv4 client code
page.
nextserver: The next server value of a member DHCP server. This
value is the IP address or name of the boot file server on
which the boot file is stored.
option60_match_rules: The list of option 60 match rules.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
ping_count: Specifies the number of pings that the Infoblox
appliance sends to an IP address to verify that it is not in
use. Values are from 0 to 10, where 0 disables pings.
ping_timeout: Indicates the number of milliseconds the appliance
waits for a response to its ping.Valid values are 100, 500,
1000, 2000, 3000, 4000 and 5000 milliseconds.
preferred_lifetime: The preferred lifetime value.
prefix_length_mode: The Prefix length mode for DHCPv6.
pxe_lease_time: Specifies the duration of time it takes a host
to connect to a boot server, such as a TFTP server, and
download the file it needs to boot.A 32-bit unsigned integer
that represents the duration, in seconds, for which the
update is cached. Zero indicates that the update is not
cached.
recycle_leases: Determines if the recycle leases feature is
enabled or not. If you enabled this feature and then delete
a DHCP range, the appliance stores active leases from this
range up to one week after the leases expires.
retry_ddns_updates: Indicates whether the DHCP server makes
repeated attempts to send DDNS updates to a DNS server.
static_hosts: The number of static DHCP addresses configured in
DHCP objects that belong to the Grid Member.
syslog_facility: The syslog facility is the location on the
syslog server to which you want to sort the syslog messages.
total_hosts: The total number of DHCP addresses configured in
DHCP objects that belong to the Grid Member.
update_dns_on_lease_renewal: Controls whether the DHCP server
updates DNS when a DHCP lease is renewed.
use_authority: Use flag for: authority
use_bootfile: Use flag for: bootfile
use_bootserver: Use flag for: bootserver
use_ddns_domainname: Use flag for: ddns_domainname
use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
use_ddns_ttl: Use flag for: ddns_ttl
use_ddns_update_fixed_addresses: Use flag for:
ddns_update_fixed_addresses
use_ddns_use_option81: Use flag for: ddns_use_option81
use_deny_bootp: Use flag for: deny_bootp
use_dns_update_style: Use flag for: dns_update_style
use_email_list: Use flag for: email_list
use_enable_ddns: Use flag for: enable_ddns
use_enable_dhcp_thresholds: Use flag for: enable_dhcp_thresholds
, high_water_mark, high_water_mark_reset, low_water_mark,
low_water_mark_reset
use_enable_fingerprint: Use flag for: enable_fingerprint
use_enable_gss_tsig: Use flag for: kdc_server , enable_gss_tsig
use_enable_hostname_rewrite: Use flag for:
enable_hostname_rewrite , hostname_rewrite_policy
use_enable_leasequery: Use flag for: enable_leasequery
use_enable_one_lease_per_client: Use flag for:
enable_one_lease_per_client
use_gss_tsig_keys: Use flag for: gss_tsig_keys
use_ignore_dhcp_option_list_request: Use flag for:
ignore_dhcp_option_list_request
use_ignore_id: Use flag for: ignore_id
use_immediate_fa_configuration: Use flag for:
immediate_fa_configuration
use_ipv6_ddns_domainname: Use flag for: ipv6_ddns_domainname
use_ipv6_ddns_enable_option_fqdn: Use flag for:
ipv6_ddns_enable_option_fqdn
use_ipv6_ddns_hostname: Use flag for: ipv6_ddns_hostname
use_ipv6_ddns_ttl: Use flag for: ipv6_ddns_ttl
use_ipv6_dns_update_style: Use flag for: ipv6_dns_update_style
use_ipv6_domain_name: Use flag for: ipv6_domain_name
use_ipv6_domain_name_servers: Use flag for:
ipv6_domain_name_servers
use_ipv6_enable_ddns: Use flag for: ipv6_enable_ddns
use_ipv6_enable_gss_tsig: Use flag for: ipv6_kdc_server ,
ipv6_enable_gss_tsig
use_ipv6_enable_retry_updates: Use flag for:
ipv6_enable_retry_updates , ipv6_retry_updates_interval
use_ipv6_generate_hostname: Use flag for: ipv6_generate_hostname
use_ipv6_gss_tsig_keys: Use flag for: ipv6_gss_tsig_keys
use_ipv6_lease_scavenging: Use flag for:
ipv6_enable_lease_scavenging , ipv6_lease_scavenging_time,
ipv6_remember_expired_client_association
use_ipv6_microsoft_code_page: Use flag for:
ipv6_microsoft_code_page
use_ipv6_options: Use flag for: ipv6_options
use_ipv6_recycle_leases: Use flag for: ipv6_recycle_leases
use_ipv6_update_dns_on_lease_renewal: Use flag for:
ipv6_update_dns_on_lease_renewal
use_lease_per_client_settings: Use flag for:
lease_per_client_settings
use_lease_scavenge_time: Use flag for: lease_scavenge_time
use_log_lease_events: Use flag for: log_lease_events
use_logic_filter_rules: Use flag for: logic_filter_rules
use_microsoft_code_page: Use flag for: microsoft_code_page
use_nextserver: Use flag for: nextserver
use_options: Use flag for: options
use_ping_count: Use flag for: ping_count
use_ping_timeout: Use flag for: ping_timeout
use_preferred_lifetime: Use flag for: preferred_lifetime
use_prefix_length_mode: Use flag for: prefix_length_mode
use_pxe_lease_time: Use flag for: pxe_lease_time
use_recycle_leases: Use flag for: recycle_leases
use_retry_ddns_updates: Use flag for: ddns_retry_interval ,
retry_ddns_updates
use_syslog_facility: Use flag for: syslog_facility
use_update_dns_on_lease_renewal: Use flag for:
update_dns_on_lease_renewal
use_valid_lifetime: Use flag for: valid_lifetime
valid_lifetime: The valid lifetime for Grid Member DHCP.
Specifies the length of time addresses that are assigned to
DHCPv6 clients remain in the valid state.
"""
_infoblox_type = 'member:dhcpproperties'
_fields = ['auth_server_group', 'authn_captive_portal',
'authn_captive_portal_authenticated_filter',
'authn_captive_portal_enabled',
'authn_captive_portal_guest_filter',
'authn_server_group_enabled', 'authority', 'bootfile',
'bootserver', 'ddns_domainname', 'ddns_generate_hostname',
'ddns_retry_interval', 'ddns_server_always_updates', 'ddns_ttl',
'ddns_update_fixed_addresses', 'ddns_use_option81',
'ddns_zone_primaries', 'deny_bootp', 'dhcp_utilization',
'dhcp_utilization_status', 'dns_update_style', 'dynamic_hosts',
'email_list', 'enable_ddns', 'enable_dhcp',
'enable_dhcp_on_ipv6_lan2', 'enable_dhcp_on_lan2',
'enable_dhcp_thresholds', 'enable_dhcpv6_service',
'enable_email_warnings', 'enable_fingerprint',
'enable_gss_tsig', 'enable_hostname_rewrite',
'enable_leasequery', 'enable_snmp_warnings', 'extattrs',
'gss_tsig_keys', 'high_water_mark', 'high_water_mark_reset',
'host_name', 'hostname_rewrite_policy',
'ignore_dhcp_option_list_request', 'ignore_id',
'ignore_mac_addresses', 'immediate_fa_configuration',
'ipv4addr', 'ipv6_ddns_domainname',
'ipv6_ddns_enable_option_fqdn', 'ipv6_ddns_hostname',
'ipv6_ddns_server_always_updates', 'ipv6_ddns_ttl',
'ipv6_dns_update_style', 'ipv6_domain_name',
'ipv6_domain_name_servers', 'ipv6_enable_ddns',
'ipv6_enable_gss_tsig', 'ipv6_enable_lease_scavenging',
'ipv6_enable_retry_updates', 'ipv6_generate_hostname',
'ipv6_gss_tsig_keys', 'ipv6_kdc_server',
'ipv6_lease_scavenging_time', 'ipv6_microsoft_code_page',
'ipv6_options', 'ipv6_recycle_leases',
'ipv6_remember_expired_client_association',
'ipv6_retry_updates_interval', 'ipv6_server_duid',
'ipv6_update_dns_on_lease_renewal', 'ipv6addr', 'kdc_server',
'lease_per_client_settings', 'lease_scavenge_time',
'log_lease_events', 'logic_filter_rules', 'low_water_mark',
'low_water_mark_reset', 'microsoft_code_page', 'nextserver',
'option60_match_rules', 'options', 'ping_count', 'ping_timeout',
'preferred_lifetime', 'prefix_length_mode', 'pxe_lease_time',
'recycle_leases', 'retry_ddns_updates', 'static_hosts',
'syslog_facility', 'total_hosts', 'update_dns_on_lease_renewal',
'use_authority', 'use_bootfile', 'use_bootserver',
'use_ddns_domainname', 'use_ddns_generate_hostname',
'use_ddns_ttl', 'use_ddns_update_fixed_addresses',
'use_ddns_use_option81', 'use_deny_bootp',
'use_dns_update_style', 'use_email_list', 'use_enable_ddns',
'use_enable_dhcp_thresholds', 'use_enable_fingerprint',
'use_enable_gss_tsig', 'use_enable_hostname_rewrite',
'use_enable_leasequery', 'use_enable_one_lease_per_client',
'use_gss_tsig_keys', 'use_ignore_dhcp_option_list_request',
'use_ignore_id', 'use_immediate_fa_configuration',
'use_ipv6_ddns_domainname', 'use_ipv6_ddns_enable_option_fqdn',
'use_ipv6_ddns_hostname', 'use_ipv6_ddns_ttl',
'use_ipv6_dns_update_style', 'use_ipv6_domain_name',
'use_ipv6_domain_name_servers', 'use_ipv6_enable_ddns',
'use_ipv6_enable_gss_tsig', 'use_ipv6_enable_retry_updates',
'use_ipv6_generate_hostname', 'use_ipv6_gss_tsig_keys',
'use_ipv6_lease_scavenging', 'use_ipv6_microsoft_code_page',
'use_ipv6_options', 'use_ipv6_recycle_leases',
'use_ipv6_update_dns_on_lease_renewal',
'use_lease_per_client_settings', 'use_lease_scavenge_time',
'use_log_lease_events', 'use_logic_filter_rules',
'use_microsoft_code_page', 'use_nextserver', 'use_options',
'use_ping_count', 'use_ping_timeout', 'use_preferred_lifetime',
'use_prefix_length_mode', 'use_pxe_lease_time',
'use_recycle_leases', 'use_retry_ddns_updates',
'use_syslog_facility', 'use_update_dns_on_lease_renewal',
'use_valid_lifetime', 'valid_lifetime']
_search_for_update_fields = ['host_name', 'ipv4addr', 'ipv6addr']
_updateable_search_fields = []
_all_searchable_fields = ['host_name', 'ipv4addr', 'ipv6addr']
_return_fields = ['extattrs', 'host_name', 'ipv4addr', 'ipv6addr']
_remap = {}
_shadow_fields = ['_ref', 'ip']
@property
def ip(self):
if hasattr(self, '_ip'):
return str(self._ip)
# This object represents both ipv4 and ipv6 objects, so it doesn't need
# versioned object for that. Just set v4 or v6 field in addition
# to setting shadow field 'ip' itself.
@ip.setter
def ip(self, ip):
self._ip = ip
if ib_utils.determine_ip_version(ip) == 6:
if 'ipv6addr' not in self._fields:
raise ib_ex.InfobloxInvalidIp(ip=ip)
self.ipv6addr = ip
else:
if 'ipv4addr' not in self._fields:
raise ib_ex.InfobloxInvalidIp(ip=ip)
self.ipv4addr = ip
_custom_field_processing = {
'ddns_zone_primaries': Dhcpddns.from_dict,
'ipv6_options': DhcpOption.from_dict,
'logic_filter_rules': Logicfilterrule.from_dict,
'option60_match_rules': Option60Matchrule.from_dict,
'options': DhcpOption.from_dict,
}
def clear_nac_auth_cache(self, *args, **kwargs):
return self._call_func("clear_nac_auth_cache", *args, **kwargs)
def purge_ifmap_data(self, *args, **kwargs):
return self._call_func("purge_ifmap_data", *args, **kwargs)
class MemberDns(InfobloxObject):
""" MemberDns: Member DNS object.
Corresponds to WAPI object 'member:dns'
The Grid Member DNS object can be used to configure DNS properties
for a Grid member, including enabling or disabling DNS services and
other DNS service related parameters. Grid service configurations
are inherited by all members.
Attributes:
add_client_ip_mac_options: Add custom IP, MAC and DNS View name
ENDS0 options to outgoing recursive queries.
additional_ip_list: The list of additional IP addresses on which
DNS is enabled for a Grid member. Only one of
"additional_ip_list" or "additional_ip_list_struct" should
be set when modifying the object.
additional_ip_list_struct: The list of additional IP addresses
and IP Space Discriminator short names on which DNS is
enabled for a Grid member. Only one of "additional_ip_list"
or "additional_ip_list_struct" should be set when modifying
the object.
allow_gss_tsig_zone_updates: Determines whether the GSS-TSIG
zone updates is enabled for the Grid member.
allow_query: Determines if queries from specified IPv4 or IPv6
addresses and networks are enabled or not. The appliance can
also use Transaction Signature (TSIG) keys to authenticate
the queries. This setting overrides the Grid query settings.
allow_recursive_query: Determines if the responses to recursive
queries is enabled or not. This setting overrides Grid
recursive query settings.
allow_transfer: Allows or rejects zone transfers from specified
IPv4 or IPv6 addresses and networks or allows transfers from
hosts authenticated by Transaction signature (TSIG) key.
This setting overrides the Grid zone transfer settings.
allow_update: Allows or rejects dynamic updates from specified
IPv4 or IPv6 addresses, networks or from host authenticated
by TSIG key. This setting overrides Grid update settings.
anonymize_response_logging: The flag that indicates whether the
anonymization of captured DNS responses is enabled or
disabled.
atc_fwd_enable: Enable DNS recursive query forwarding to Active
Trust Cloud.
attack_mitigation: Mitigation settings for DNS attacks.
auto_blackhole: The auto blackhole settings.
auto_create_a_and_ptr_for_lan2: Determines if the auto-
generation of A and PTR records for the LAN2 IP address is
enabled or not, if DNS service is enabled on LAN2.
auto_create_aaaa_and_ipv6ptr_for_lan2: Determines if auto-
generation of AAAA and IPv6 PTR records for LAN2 IPv6
address is enabled or not.
auto_sort_views: Determines if a Grid member to automatically
sort DNS views is enabled or not. The order of the DNS views
determines the order in which the appliance checks the match
lists.
bind_check_names_policy: The BIND check names policy, which
indicates the action the appliance takes when it encounters
host names that do not comply with the Strict Hostname
Checking policy. This method applies only if the host name
restriction policy is set to 'Strict Hostname Checking'.
bind_hostname_directive: The value of the hostname directive for
BIND.
bind_hostname_directive_fqdn: The value of the user-defined
hostname directive for BIND. To enable user-defined hostname
directive, you must set the bind_hostname_directive to
"USER_DEFINED".
blackhole_list: The list of IPv4 or IPv6 addresses and networks
from which DNS queries are blocked. This setting overrides
the Grid blackhole_list.
blacklist_action: The action to perform when a domain name
matches the pattern defined in a rule that is specified by
the blacklist_ruleset method.
blacklist_log_query: Determines if blacklist redirection queries
are logged or not.
blacklist_redirect_addresses: The IP addresses the appliance
includes in the response it sends in place of a blacklisted
IP address.
blacklist_redirect_ttl: The TTL value of the synthetic DNS
responses that result from blacklist redirection.
blacklist_rulesets: The DNS Ruleset object names assigned at the
Grid level for blacklist redirection.
capture_dns_queries_on_all_domains: The flag that indicates
whether the capture of DNS queries for all domains is
enabled or disabled.
check_names_for_ddns_and_zone_transfer: Determines whether the
application of BIND check-names for zone transfers and DDNS
updates are enabled.
copy_client_ip_mac_options: Copy custom IP, MAC and DNS View
name ENDS0 options from incoming to outgoing recursive
queries.
copy_xfer_to_notify: Copies the allowed IPs from the zone
transfer list into the also-notify statement in the
named.conf file.
custom_root_name_servers: The list of custom root name servers.
You can either select and use Internet root name servers or
specify custom root name servers by providing a host name
and IP address to which the Infoblox appliance can send
queries.
disable_edns: The EDNS0 support for queries that require
recursive resolution on Grid members.
dns64_groups: The list of DNS64 synthesis groups associated with
this member.
dns_cache_acceleration_status: The DNS cache acceleration
status.
dns_cache_acceleration_ttl: The minimum TTL value, in seconds,
that a DNS record must have in order for it to be cached by
the DNS Cache Acceleration service.An integer from 1 to
65000 that represents the TTL in seconds.
dns_health_check_anycast_control: The flag that indicates
whether the anycast failure (BFD session down) is enabled on
member failure or not.
dns_health_check_domain_list: The list of domain names for the
DNS health check.
dns_health_check_interval: The time interval (in seconds) for
DNS health check.
dns_health_check_recursion_flag: The flag that indicates whether
the recursive DNS health check is enabled or not.
dns_health_check_retries: The number of DNS health check
retries.
dns_health_check_timeout: The DNS health check timeout interval
(in seconds).
dns_notify_transfer_source: Determines which IP address is used
as the source for DDNS notify and transfer operations.
dns_notify_transfer_source_address: The source address used if
dns_notify_transfer_source type is "IP".
dns_over_tls_service: Enables DNS over TLS service.
dns_query_capture_file_time_limit: The time limit (in minutes)
for the DNS query capture file.
dns_query_source_address: The source address used if
dns_query_source_interface type is "IP".
dns_query_source_interface: Determines which IP address is used
as the source for DDNS query operations.
dns_view_address_settings: Array of notify/query source settings
for views.
dnssec_blacklist_enabled: Determines if the blacklist rules for
DNSSEC-enabled clients are enabled or not.
dnssec_dns64_enabled: Determines if the DNS64 groups for DNSSEC-
enabled clients are enabled or not.
dnssec_enabled: Determines if the DNS security extension is
enabled or not.
dnssec_expired_signatures_enabled: Determines when the DNS
member accepts expired signatures.
dnssec_negative_trust_anchors: A list of zones for which the
server does not perform DNSSEC validation.
dnssec_nxdomain_enabled: Determines if the NXDOMAIN rules for
DNSSEC-enabled clients are enabled or not.
dnssec_rpz_enabled: Determines if the RPZ policies for DNSSEC-
enabled clients are enabled or not.
dnssec_trusted_keys: The list of trusted keys for the DNSSEC
feature.
dnssec_validation_enabled: Determines if the DNS security
validation is enabled or not.
dnstap_setting: The DNSTAP settings.
doh_https_session_duration: DNS over HTTPS sessions duration.
doh_service: Enables DNS over HTTPS service.
domains_to_capture_dns_queries: The list of domains for DNS
query capture.
dtc_dns_queries_specific_behavior: Setting to control specific
behavior for DTC DNS responses for incoming lbdn matched
queries.
dtc_edns_prefer_client_subnet: Determines whether to prefer the
client address from the edns-client-subnet option for DTC or
not.
dtc_health_source: The health check source type.
dtc_health_source_address: The source address used if
dtc_health_source type is "IP".
edns_udp_size: Advertises the EDNS0 buffer size to the upstream
server. The value should be between 512 and 4096 bytes. The
recommended value is between 512 and 1220 bytes.
enable_blackhole: Determines if the blocking of DNS queries is
enabled or not. This setting overrides the Grid
enable_blackhole settings.
enable_blacklist: Determines if a blacklist is enabled or not on
the Grid member.
enable_capture_dns_queries: The flag that indicates whether the
capture of DNS queries is enabled or disabled.
enable_capture_dns_responses: The flag that indicates whether
the capture of DNS responses is enabled or disabled.
enable_dns: Determines if the DNS service of a member is enabled
or not.
enable_dns64: Determines if the DNS64 support is enabled or not
for this member.
enable_dns_cache_acceleration: Determines if the DNS Cache
Acceleration service is enabled or not for a member.
enable_dns_health_check: The flag that indicates whether the DNS
health check is enabled or not.
enable_dnstap_queries: Determines whether the query messages
need to be forwarded to DNSTAP or not.
enable_dnstap_responses: Determines whether the response
messages need to be forwarded to DNSTAP or not.
enable_excluded_domain_names: The flag that indicates whether
excluding domain names from captured DNS queries and
responses is enabled or disabled.
enable_fixed_rrset_order_fqdns: Determines if the fixed RRset
order FQDN is enabled or not.
enable_ftc: Determines whether Fault Tolerant Caching (FTC) is
enabled.
enable_gss_tsig: Determines whether the appliance is enabled to
receive GSS-TSIG authenticated updates from DHCP clients.
enable_notify_source_port: Determines if the notify source port
for a member is enabled or not.
enable_query_rewrite: Determines if the DNS query rewrite is
enabled or not for this member.
enable_query_source_port: Determines if the query source port
for a memer is enabled or not.
excluded_domain_names: The list of domains that are excluded
from DNS query and response capture.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
file_transfer_setting: The DNS capture file transfer settings.
Include the specified parameter to set the attribute value.
Omit the parameter to retrieve the attribute value.
filter_aaaa: The type of AAAA filtering for this member DNS
object.
filter_aaaa_list: The list of IPv4 addresses and networks from
which queries are received. AAAA filtering is applied to
these addresses.
fixed_rrset_order_fqdns: The fixed RRset order FQDN. If this
field does not contain an empty value, the appliance will
automatically set the enable_fixed_rrset_order_fqdns field
to 'true', unless the same request sets the enable field to
'false'.
forward_only: Permits this member to send queries to forwarders
only. When the value is "true", the member sends queries to
forwarders only, and not to other internal or Internet root
servers.
forward_updates: Allows secondary servers to forward updates to
the DNS server. This setting overrides grid update settings.
forwarders: The forwarders for the member. A forwarder is
essentially a name server to which other name servers first
send all of their off-site queries. The forwarder builds up
a cache of information, avoiding the need for the other name
servers to send queries off-site. This setting overrides the
Grid level setting.
ftc_expired_record_timeout: The timeout interval (in seconds)
after which the expired Fault Tolerant Caching (FTC)record
is stale and no longer valid.
ftc_expired_record_ttl: The TTL value (in seconds) of the
expired Fault Tolerant Caching (FTC) record in DNS
responses.
glue_record_addresses: The list of glue record addresses.
gss_tsig_keys: The list of GSS-TSIG keys for a member DNS
object.
host_name: The host name of the Grid member.
ipv4addr: The IPv4 Address of the Grid member.
ipv6_glue_record_addresses: The list of IPv6 glue record
addresses.
ipv6addr: The IPv6 Address of the Grid member.
is_unbound_capable: The flag that indicates whether member DNS
supports Unbound as the recursive resolver or not.
lame_ttl: The number of seconds to cache lame delegations or
lame servers.
logging_categories: The logging categories for this DNS member.
max_cache_ttl: The maximum time (in seconds) for which the
server will cache positive answers.
max_cached_lifetime: The maximum time in seconds a DNS response
can be stored in the hardware acceleration cache.Valid
values are unsigned integer between 60 and 86400, inclusive.
max_ncache_ttl: The maximum time (in seconds) for which the
server will cache negative (NXDOMAIN) responses.The maximum
allowed value is 604800.
max_udp_size: The value is used by authoritative DNS servers to
never send DNS responses larger than the configured value.
The value should be between 512 and 4096 bytes. The
recommended value is between 512 and 1220 bytes.
minimal_resp: Enables the ability to return a minimal amount of
data in response to a query. This capability speeds up the
DNS services provided by the appliance.
notify_delay: Specifies the number of seconds of delay the
notify messages are sent to secondaries.
notify_source_port: The source port for notify messages. When
requesting zone transfers from the primary server, some
secondary DNS servers use the source port number (the
primary server used to send the notify message) as the
destination port number in the zone transfer request. This
setting overrides Grid static source port settings.Valid
values are between 1 and 63999. The default is selected by
BIND.
nxdomain_log_query: Determines if NXDOMAIN redirection queries
are logged or not.
nxdomain_redirect: Enables NXDOMAIN redirection.
nxdomain_redirect_addresses: The IPv4 NXDOMAIN redirection
addresses.
nxdomain_redirect_addresses_v6: The IPv6 NXDOMAIN redirection
addresses.
nxdomain_redirect_ttl: The TTL value of synthetic DNS responses
that result from NXDOMAIN redirection.
nxdomain_rulesets: The names of the Ruleset objects assigned at
the Grid level for NXDOMAIN redirection.
query_source_port: The source port for queries. Specifying a
source port number for recursive queries ensures that a
firewall will allow the response.Valid values are between 1
and 63999. The default is selected by BIND.
record_name_policy: The record name restriction policy.
recursive_client_limit: A limit on the number of concurrent
recursive clients.
recursive_query_list: The list of IPv4 or IPv6 addresses,
networks or hosts authenticated by Transaction signature
(TSIG) key from which recursive queries are allowed or
denied.
recursive_resolver: The recursive resolver for member DNS.
resolver_query_timeout: The recursive query timeout for the
member. The value must be 0 or between 10 and 30.
response_rate_limiting: The response rate limiting settings for
the member.
root_name_server_type: Determines the type of root name servers.
rpz_disable_nsdname_nsip: Enables NSDNAME and NSIP resource
records from RPZ feeds at member level.
rpz_drop_ip_rule_enabled: Enables the appliance to ignore RPZ-IP
triggers with prefix lengths less than the specified minimum
prefix length.
rpz_drop_ip_rule_min_prefix_length_ipv4: The minimum prefix
length for IPv4 RPZ-IP triggers. The appliance ignores RPZ-
IP triggers with prefix lengths less than the specified
minimum IPv4 prefix length.
rpz_drop_ip_rule_min_prefix_length_ipv6: The minimum prefix
length for IPv6 RPZ-IP triggers. The appliance ignores RPZ-
IP triggers with prefix lengths less than the specified
minimum IPv6 prefix length.
rpz_qname_wait_recurse: The flag that indicates whether
recursive RPZ lookups are enabled.
serial_query_rate: The number of maximum concurrent SOA queries
per second for the member.
server_id_directive: The value of the server-id directive for
BIND and Unbound DNS.
server_id_directive_string: The value of the user-defined
hostname directive for BIND and UNBOUND DNS. To enable user-
defined hostname directive, you must set the
bind_hostname_directive to "USER_DEFINED".
skip_in_grid_rpz_queries: Determines if RPZ rules are applied to
queries originated from this member and received by other
Grid members.
sortlist: A sort list determines the order of addresses in
responses made to DNS queries. This setting overrides Grid
sort list settings.
store_locally: The flag that indicates whether the storage of
query capture reports on the appliance is enabled or
disabled.
syslog_facility: The syslog facility. This is the location on
the syslog server to which you want to sort the DNS logging
messages. This setting overrides the Grid logging facility
settings.
tcp_idle_timeout: TCP Idle timeout for DNS over TLS connections.
tls_session_duration: DNS over TLS sessions duration.
transfer_excluded_servers: Excludes specified DNS servers during
zone transfers.
transfer_format: The BIND format for a zone transfer. This
provides tracking capabilities for single or multiple
transfers and their associated servers.
transfers_in: The number of maximum concurrent transfers for the
member.
transfers_out: The number of maximum outbound concurrent zone
transfers for the member.
transfers_per_ns: The number of maximum concurrent transfers per
member for the member.
unbound_logging_level: Logging level for the Unbound recursive
resolver.
use_add_client_ip_mac_options: Use flag for:
add_client_ip_mac_options
use_allow_query: Use flag for: allow_query
use_allow_transfer: Use flag for: allow_transfer
use_attack_mitigation: Use flag for: attack_mitigation
use_auto_blackhole: Use flag for: auto_blackhole
use_bind_hostname_directive: Use flag for:
bind_hostname_directive
use_blackhole: Use flag for: enable_blackhole
use_blacklist: Use flag for: blackhole_list , blacklist_action,
blacklist_log_query, blacklist_redirect_addresses,
blacklist_redirect_ttl, blacklist_rulesets, enable_blacklist
use_capture_dns_queries_on_all_domains: Use flag for:
capture_dns_queries_on_all_domains
use_copy_client_ip_mac_options: Use flag for:
copy_client_ip_mac_options
use_copy_xfer_to_notify: Use flag for: copy_xfer_to_notify
use_disable_edns: Use flag for: disable_edns
use_dns64: Use flag for: enable_dns64 , dns64_groups
use_dns_cache_acceleration_ttl: Use flag for:
dns_cache_acceleration_ttl
use_dns_health_check: Use flag for: dns_health_check_domain_list
, dns_health_check_recursion_flag,
dns_health_check_anycast_control, enable_dns_health_check,
dns_health_check_interval, dns_health_check_timeout,
dns_health_check_retries
use_dnssec: Use flag for: dnssec_enabled ,
dnssec_expired_signatures_enabled,
dnssec_validation_enabled, dnssec_trusted_keys
use_dnstap_setting: Use flag for: enable_dnstap_queries ,
enable_dnstap_responses, dnstap_setting
use_dtc_dns_queries_specific_behavior: Use flag for:
dtc_dns_queries_specific_behavior
use_dtc_edns_prefer_client_subnet: Use flag for:
dtc_edns_prefer_client_subnet
use_edns_udp_size: Use flag for: edns_udp_size
use_enable_capture_dns: Use flag for: enable_capture_dns_queries
, enable_capture_dns_responses
use_enable_excluded_domain_names: Use flag for:
enable_excluded_domain_names
use_enable_gss_tsig: Use flag for: enable_gss_tsig
use_enable_query_rewrite: Use flag for: enable_query_rewrite
use_filter_aaaa: Use flag for: filter_aaaa , filter_aaaa_list
use_fixed_rrset_order_fqdns: Use flag for:
fixed_rrset_order_fqdns , enable_fixed_rrset_order_fqdns
use_forward_updates: Use flag for: forward_updates
use_forwarders: Use flag for: forwarders , forward_only
use_ftc: Use flag for: enable_ftc , ftc_expired_record_ttl,
ftc_expired_record_timeout
use_gss_tsig_keys: Use flag for: gss_tsig_keys
use_lame_ttl: Use flag for: lame_ttl
use_lan2_ipv6_port: Determines if the DNS service on the IPv6
LAN2 port is enabled or not.
use_lan2_port: Determines if the DNS service on the LAN2 port is
enabled or not.
use_lan_ipv6_port: Determines if the DNS service on the IPv6 LAN
port is enabled or not.
use_lan_port: Determines the status of the use of DNS services
on the IPv4 LAN1 port.
use_logging_categories: Use flag for: logging_categories
use_max_cache_ttl: Use flag for: max_cache_ttl
use_max_cached_lifetime: Use flag for: max_cached_lifetime
use_max_ncache_ttl: Use flag for: max_ncache_ttl
use_max_udp_size: Use flag for: max_udp_size
use_mgmt_ipv6_port: Determines if the DNS services on the IPv6
MGMT port is enabled or not.
use_mgmt_port: Determines if the DNS services on the MGMT port
is enabled or not.
use_notify_delay: Use flag for: notify_delay
use_nxdomain_redirect: Use flag for: nxdomain_redirect ,
nxdomain_redirect_addresses, nxdomain_redirect_addresses_v6,
nxdomain_redirect_ttl, nxdomain_log_query, nxdomain_rulesets
use_record_name_policy: Use flag for: record_name_policy
use_recursive_client_limit: Use flag for: recursive_client_limit
use_recursive_query_setting: Use flag for: allow_recursive_query
, recursive_query_list
use_resolver_query_timeout: Use flag for: resolver_query_timeout
use_response_rate_limiting: Use flag for: response_rate_limiting
use_root_name_server: Use flag for: root_name_server_type ,
custom_root_name_servers, use_root_server_for_all_views
use_root_server_for_all_views: Determines if root name servers
should be applied to all views or only to Default view.
use_rpz_disable_nsdname_nsip: Use flag for:
rpz_disable_nsdname_nsip
use_rpz_drop_ip_rule: Use flag for: rpz_drop_ip_rule_enabled ,
rpz_drop_ip_rule_min_prefix_length_ipv4,
rpz_drop_ip_rule_min_prefix_length_ipv6
use_rpz_qname_wait_recurse: Use flag for: rpz_qname_wait_recurse
use_serial_query_rate: Use flag for: serial_query_rate
use_server_id_directive: Use flag for: server_id_directive
use_sortlist: Use flag for: sortlist
use_source_ports: Use flag for: enable_notify_source_port ,
notify_source_port, enable_query_source_port,
query_source_port
use_syslog_facility: Use flag for: syslog_facility
use_transfers_in: Use flag for: transfers_in
use_transfers_out: Use flag for: transfers_out
use_transfers_per_ns: Use flag for: transfers_per_ns
use_update_setting: Use flag for: allow_update ,
allow_gss_tsig_zone_updates
use_zone_transfer_format: Use flag for:
transfer_excluded_servers , transfer_format
views: The list of views associated with this member.
"""
_infoblox_type = 'member:dns'
_fields = ['add_client_ip_mac_options', 'additional_ip_list',
'additional_ip_list_struct', 'allow_gss_tsig_zone_updates',
'allow_query', 'allow_recursive_query', 'allow_transfer',
'allow_update', 'anonymize_response_logging', 'atc_fwd_enable',
'attack_mitigation', 'auto_blackhole',
'auto_create_a_and_ptr_for_lan2',
'auto_create_aaaa_and_ipv6ptr_for_lan2', 'auto_sort_views',
'bind_check_names_policy', 'bind_hostname_directive',
'bind_hostname_directive_fqdn', 'blackhole_list',
'blacklist_action', 'blacklist_log_query',
'blacklist_redirect_addresses', 'blacklist_redirect_ttl',
'blacklist_rulesets', 'capture_dns_queries_on_all_domains',
'check_names_for_ddns_and_zone_transfer',
'copy_client_ip_mac_options', 'copy_xfer_to_notify',
'custom_root_name_servers', 'disable_edns', 'dns64_groups',
'dns_cache_acceleration_status', 'dns_cache_acceleration_ttl',
'dns_health_check_anycast_control',
'dns_health_check_domain_list', 'dns_health_check_interval',
'dns_health_check_recursion_flag', 'dns_health_check_retries',
'dns_health_check_timeout', 'dns_notify_transfer_source',
'dns_notify_transfer_source_address', 'dns_over_tls_service',
'dns_query_capture_file_time_limit', 'dns_query_source_address',
'dns_query_source_interface', 'dns_view_address_settings',
'dnssec_blacklist_enabled', 'dnssec_dns64_enabled',
'dnssec_enabled', 'dnssec_expired_signatures_enabled',
'dnssec_negative_trust_anchors', 'dnssec_nxdomain_enabled',
'dnssec_rpz_enabled', 'dnssec_trusted_keys',
'dnssec_validation_enabled', 'dnstap_setting',
'doh_https_session_duration', 'doh_service',
'domains_to_capture_dns_queries',
'dtc_dns_queries_specific_behavior',
'dtc_edns_prefer_client_subnet', 'dtc_health_source',
'dtc_health_source_address', 'edns_udp_size',
'enable_blackhole', 'enable_blacklist',
'enable_capture_dns_queries', 'enable_capture_dns_responses',
'enable_dns', 'enable_dns64', 'enable_dns_cache_acceleration',
'enable_dns_health_check', 'enable_dnstap_queries',
'enable_dnstap_responses', 'enable_excluded_domain_names',
'enable_fixed_rrset_order_fqdns', 'enable_ftc',
'enable_gss_tsig', 'enable_notify_source_port',
'enable_query_rewrite', 'enable_query_source_port',
'excluded_domain_names', 'extattrs', 'file_transfer_setting',
'filter_aaaa', 'filter_aaaa_list', 'fixed_rrset_order_fqdns',
'forward_only', 'forward_updates', 'forwarders',
'ftc_expired_record_timeout', 'ftc_expired_record_ttl',
'glue_record_addresses', 'gss_tsig_keys', 'host_name',
'ipv4addr', 'ipv6_glue_record_addresses', 'ipv6addr',
'is_unbound_capable', 'lame_ttl', 'logging_categories',
'max_cache_ttl', 'max_cached_lifetime', 'max_ncache_ttl',
'max_udp_size', 'minimal_resp', 'notify_delay',
'notify_source_port', 'nxdomain_log_query', 'nxdomain_redirect',
'nxdomain_redirect_addresses', 'nxdomain_redirect_addresses_v6',
'nxdomain_redirect_ttl', 'nxdomain_rulesets',
'query_source_port', 'record_name_policy',
'recursive_client_limit', 'recursive_query_list',
'recursive_resolver', 'resolver_query_timeout',
'response_rate_limiting', 'root_name_server_type',
'rpz_disable_nsdname_nsip', 'rpz_drop_ip_rule_enabled',
'rpz_drop_ip_rule_min_prefix_length_ipv4',
'rpz_drop_ip_rule_min_prefix_length_ipv6',
'rpz_qname_wait_recurse', 'serial_query_rate',
'server_id_directive', 'server_id_directive_string',
'skip_in_grid_rpz_queries', 'sortlist', 'store_locally',
'syslog_facility', 'tcp_idle_timeout', 'tls_session_duration',
'transfer_excluded_servers', 'transfer_format', 'transfers_in',
'transfers_out', 'transfers_per_ns', 'unbound_logging_level',
'use_add_client_ip_mac_options', 'use_allow_query',
'use_allow_transfer', 'use_attack_mitigation',
'use_auto_blackhole', 'use_bind_hostname_directive',
'use_blackhole', 'use_blacklist',
'use_capture_dns_queries_on_all_domains',
'use_copy_client_ip_mac_options', 'use_copy_xfer_to_notify',
'use_disable_edns', 'use_dns64',
'use_dns_cache_acceleration_ttl', 'use_dns_health_check',
'use_dnssec', 'use_dnstap_setting',
'use_dtc_dns_queries_specific_behavior',
'use_dtc_edns_prefer_client_subnet', 'use_edns_udp_size',
'use_enable_capture_dns', 'use_enable_excluded_domain_names',
'use_enable_gss_tsig', 'use_enable_query_rewrite',
'use_filter_aaaa', 'use_fixed_rrset_order_fqdns',
'use_forward_updates', 'use_forwarders', 'use_ftc',
'use_gss_tsig_keys', 'use_lame_ttl', 'use_lan2_ipv6_port',
'use_lan2_port', 'use_lan_ipv6_port', 'use_lan_port',
'use_logging_categories', 'use_max_cache_ttl',
'use_max_cached_lifetime', 'use_max_ncache_ttl',
'use_max_udp_size', 'use_mgmt_ipv6_port', 'use_mgmt_port',
'use_notify_delay', 'use_nxdomain_redirect',
'use_record_name_policy', 'use_recursive_client_limit',
'use_recursive_query_setting', 'use_resolver_query_timeout',
'use_response_rate_limiting', 'use_root_name_server',
'use_root_server_for_all_views', 'use_rpz_disable_nsdname_nsip',
'use_rpz_drop_ip_rule', 'use_rpz_qname_wait_recurse',
'use_serial_query_rate', 'use_server_id_directive',
'use_sortlist', 'use_source_ports', 'use_syslog_facility',
'use_transfers_in', 'use_transfers_out', 'use_transfers_per_ns',
'use_update_setting', 'use_zone_transfer_format', 'views']
_search_for_update_fields = ['host_name', 'ipv4addr', 'ipv6addr']
_updateable_search_fields = []
_all_searchable_fields = ['host_name', 'ipv4addr', 'ipv6addr']
_return_fields = ['extattrs', 'host_name', 'ipv4addr', 'ipv6addr']
_remap = {}
_shadow_fields = ['_ref', 'ip']
@property
def ip(self):
if hasattr(self, '_ip'):
return str(self._ip)
# This object represents both ipv4 and ipv6 objects, so it doesn't need
# versioned object for that. Just set v4 or v6 field in addition
# to setting shadow field 'ip' itself.
@ip.setter
def ip(self, ip):
self._ip = ip
if ib_utils.determine_ip_version(ip) == 6:
if 'ipv6addr' not in self._fields:
raise ib_ex.InfobloxInvalidIp(ip=ip)
self.ipv6addr = ip
else:
if 'ipv4addr' not in self._fields:
raise ib_ex.InfobloxInvalidIp(ip=ip)
self.ipv4addr = ip
_custom_field_processing = {
'additional_ip_list_struct': MemberDnsip.from_dict,
'allow_query': Addressac.from_dict,
'allow_transfer': Addressac.from_dict,
'allow_update': Addressac.from_dict,
'blackhole_list': Addressac.from_dict,
'custom_root_name_servers': Extserver.from_dict,
'dns_view_address_settings': SettingViewaddress.from_dict,
'dnssec_trusted_keys': Dnssectrustedkey.from_dict,
'filter_aaaa_list': Addressac.from_dict,
'fixed_rrset_order_fqdns': GridDnsFixedrrsetorderfqdn.from_dict,
'glue_record_addresses': MemberDnsgluerecordaddr.from_dict,
'ipv6_glue_record_addresses': MemberDnsgluerecordaddr.from_dict,
'recursive_query_list': Addressac.from_dict,
'sortlist': Sortlist.from_dict,
}
def clear_dns_cache(self, *args, **kwargs):
return self._call_func("clear_dns_cache", *args, **kwargs)
class MemberFiledistribution(InfobloxObject):
""" MemberFiledistribution: Grid member file distribution object.
Corresponds to WAPI object 'member:filedistribution'
The Grid member file distribution object is used to configure file
distribution services such as TFTP, FTP and HTTP, and access control
lists (ACL) that determine which clients are granted access to the
service (TFTP, FTP, HTTP), and which clients are denied access to
the service.
Attributes:
allow_uploads: Determines whether uploads to the Grid member are
allowed.
comment: The Grid member descriptive comment.
enable_ftp: Determines whether the FTP prtocol is enabled for
file distribution.
enable_ftp_filelist: Determines whether the LIST command for FTP
is enabled.
enable_ftp_passive: Determines whether the passive mode for FTP
is enabled.
enable_http: Determines whether the HTTP prtocol is enabled for
file distribution.
enable_http_acl: Determines whether the HTTP prtocol access
control (AC) settings are enabled.
enable_tftp: Determines whether the TFTP prtocol is enabled for
file distribution.
ftp_acls: Access control (AC) settings for the FTP protocol.
ftp_port: The network port used by the FTP protocol.
ftp_status: The FTP protocol status.
host_name: The Grid member host name.
http_acls: Access control (AC) settings for the HTTP protocol.
http_status: The HTTP protocol status.
ipv4_address: The IPv4 address of the Grid member.
ipv6_address: The IPv6 address of the Grid member.
status: The Grid member file distribution status.
tftp_acls: The access control (AC) settings for the TFTP
protocol.
tftp_port: The network port used by the TFTP protocol.
tftp_status: The TFTP protocol status.
use_allow_uploads: Use flag for: allow_uploads
"""
_infoblox_type = 'member:filedistribution'
_fields = ['allow_uploads', 'comment', 'enable_ftp', 'enable_ftp_filelist',
'enable_ftp_passive', 'enable_http', 'enable_http_acl',
'enable_tftp', 'ftp_acls', 'ftp_port', 'ftp_status',
'host_name', 'http_acls', 'http_status', 'ipv4_address',
'ipv6_address', 'status', 'tftp_acls', 'tftp_port',
'tftp_status', 'use_allow_uploads']
_search_for_update_fields = ['host_name', 'ipv4_address', 'ipv6_address']
_updateable_search_fields = []
_all_searchable_fields = ['comment', 'host_name', 'ipv4_address',
'ipv6_address']
_return_fields = ['host_name', 'ipv4_address', 'ipv6_address', 'status']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'ftp_acls': Addressac.from_dict,
'http_acls': Addressac.from_dict,
'tftp_acls': Addressac.from_dict,
}
class MemberLicense(InfobloxObject):
""" MemberLicense: Member License object.
Corresponds to WAPI object 'member:license'
This object represents the member license.
Attributes:
expiration_status: The license expiration status.
expiry_date: The expiration timestamp of the license.
hwid: The hardware ID of the physical node on which the license
is installed.
key: License string.
kind: The overall type of license: static or dynamic.
limit: The license limit value.
limit_context: The license limit context.
type: The license type.
"""
_infoblox_type = 'member:license'
_fields = ['expiration_status', 'expiry_date', 'hwid', 'key', 'kind',
'limit', 'limit_context', 'type']
_search_for_update_fields = ['type']
_updateable_search_fields = []
_all_searchable_fields = ['hwid', 'key', 'kind', 'limit', 'type']
_return_fields = ['type']
_remap = {}
_shadow_fields = ['_ref']
class MemberParentalcontrol(InfobloxObject):
""" MemberParentalcontrol: Member mobile security properties object.
Corresponds to WAPI object 'member:parentalcontrol'
This object represents a set of parental control properties for the
Grid member.
Attributes:
enable_service: Determines if the parental control service is
enabled.
name: The parental control member hostname.
"""
_infoblox_type = 'member:parentalcontrol'
_fields = ['enable_service', 'name']
_search_for_update_fields = ['name']
_updateable_search_fields = []
_all_searchable_fields = ['name']
_return_fields = ['enable_service', 'name']
_remap = {}
_shadow_fields = ['_ref']
class MemberThreatanalytics(InfobloxObject):
""" MemberThreatanalytics: Grid member threat analytics object.
Corresponds to WAPI object 'member:threatanalytics'
To mitigate DNS data exfiltration, Infoblox DNS threat analytics
employs analytics algorithms that analyze incoming DNS queries and
responses to detect DNS tunneling traffic.
The Grid member threat analytics object contains facilities for
starting and stopping the DNS threat analytics routines as well as
for monitoring the current status of the threat analytics service.
Attributes:
comment: The Grid member descriptive comment.
enable_service: Determines whether the threat analytics service
is enabled.
host_name: The Grid member host name.
ipv4_address: The IPv4 Address address of the Grid member.
ipv6_address: The IPv6 Address address of the Grid member.
status: The Grid member threat analytics status.
"""
_infoblox_type = 'member:threatanalytics'
_fields = ['comment', 'enable_service', 'host_name', 'ipv4_address',
'ipv6_address', 'status']
_search_for_update_fields = ['host_name', 'ipv4_address', 'ipv6_address']
_updateable_search_fields = []
_all_searchable_fields = ['comment', 'host_name', 'ipv4_address',
'ipv6_address']
_return_fields = ['host_name', 'ipv4_address', 'ipv6_address', 'status']
_remap = {}
_shadow_fields = ['_ref']
class MemberThreatprotection(InfobloxObject):
""" MemberThreatprotection: Member threat protection object.
Corresponds to WAPI object 'member:threatprotection'
This object provides information about the member threat protection
settings.
Attributes:
comment: The human readable comment for member threat protection
properties.
current_ruleset: The ruleset used for threat protection.
disable_multiple_dns_tcp_request: Determines if multiple BIND
responses via TCP connection is enabled or not.
enable_accel_resp_before_threat_protection: Determines if DNS
responses are sent from acceleration cache before applying
Threat Protection rules. Recommended for better performance
when using DNS Cache Acceleration.
enable_nat_rules: Determines if NAT (Network Address
Translation) mapping for threat protection is enabled or
not.
enable_service: Determines if the Threat protection service is
enabled or not.
events_per_second_per_rule: The number of events logged per
second per rule.
hardware_model: The hardware model of the member.
hardware_type: The hardware type of the member.
host_name: A Grid member name.
ipv4address: The IPv4 address of member threat protection
service.
ipv6address: The IPv6 address of member threat protection
service.
nat_rules: The list of NAT rules.
outbound_settings: Outbound settings for ATP events.
profile: The Threat Protection profile associated with the
member.
use_current_ruleset: Use flag for: current_ruleset
use_disable_multiple_dns_tcp_request: Use flag for:
disable_multiple_dns_tcp_request
use_enable_accel_resp_before_threat_protection: Use flag for:
enable_accel_resp_before_threat_protection
use_enable_nat_rules: Use flag for: enable_nat_rules
use_events_per_second_per_rule: Use flag for:
events_per_second_per_rule
use_outbound_settings: Use flag for: outbound_settings
"""
_infoblox_type = 'member:threatprotection'
_fields = ['comment', 'current_ruleset',
'disable_multiple_dns_tcp_request',
'enable_accel_resp_before_threat_protection',
'enable_nat_rules', 'enable_service',
'events_per_second_per_rule', 'hardware_model', 'hardware_type',
'host_name', 'ipv4address', 'ipv6address', 'nat_rules',
'outbound_settings', 'profile', 'use_current_ruleset',
'use_disable_multiple_dns_tcp_request',
'use_enable_accel_resp_before_threat_protection',
'use_enable_nat_rules', 'use_events_per_second_per_rule',
'use_outbound_settings']
_search_for_update_fields = []
_updateable_search_fields = ['current_ruleset', 'profile']
_all_searchable_fields = ['comment', 'current_ruleset', 'hardware_model',
'hardware_type', 'host_name', 'ipv4address',
'ipv6address', 'profile']
_return_fields = []
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'nat_rules': ThreatprotectionNatrule.from_dict,
}
class Memberdfp(InfobloxObject):
""" Memberdfp: Memberdfp object.
Corresponds to WAPI object 'memberdfp'
This object represnts DFP fields at member level
Attributes:
dfp_forward_first: Option to resolve DNS query if resolution
over Active Trust Cloud failed.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
host_name: Host name of the parent Member
is_dfp_override: DFP override lock'.
"""
_infoblox_type = 'memberdfp'
_fields = ['dfp_forward_first', 'extattrs', 'host_name', 'is_dfp_override']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = ['extattrs']
_remap = {}
_shadow_fields = ['_ref']
class Msserver(InfobloxObject):
""" Msserver: Microsoft Server object.
Corresponds to WAPI object 'msserver'
This object represents the Microsoft Server.
Attributes:
ad_domain: The Active Directory domain to which this server
belongs (if applicable).
ad_sites: The Active Directory Sites information
ad_user: The Active Directory User synchronization information.
address: The address or FQDN of the server.
comment: User comments for this Microsoft Server
connection_status: Result of the last RPC connection attempt
made
connection_status_detail: Detail of the last connection attempt
made
dhcp_server: RW fields needed for DHCP purposes at Microsoft
Server level
disabled: Allow/forbids usage of this Microsoft Server
dns_server: Structure containing DNS information
dns_view: Reference to the DNS view
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
grid_member: eference to the assigned grid member
last_seen: Timestamp of the last message received
log_destination: Directs logging of sync messages either to
syslog or mslog
log_level: Log level for this Microsoft Server
login_name: Microsoft Server login name, with optional
domainname
login_password: Microsoft Server login password
managing_member: Hostname of grid member managing this Microsoft
Server
ms_max_connection: Maximum number of connections to MS server
ms_rpc_timeout_in_seconds: Timeout in seconds of RPC connections
for this MS Server
network_view: Reference to the network view
read_only: Enable read-only management for this Microsoft Server
root_ad_domain: The root Active Directory domain to which this
server belongs (if applicable).
server_name: Gives the server name as reported by itself
synchronization_min_delay: Minimum number of minutes between two
synchronizations
synchronization_status: Synchronization status summary
synchronization_status_detail: Detail status if
synchronization_status is ERROR
use_log_destination: Override log_destination inherited from
grid level
use_ms_max_connection: Override grid ms_max_connection setting
use_ms_rpc_timeout_in_seconds: Flag to override cluster RPC
timeout
version: Version of the Microsoft Server
"""
_infoblox_type = 'msserver'
_fields = ['ad_domain', 'ad_sites', 'ad_user', 'address', 'comment',
'connection_status', 'connection_status_detail', 'dhcp_server',
'disabled', 'dns_server', 'dns_view', 'extattrs', 'grid_member',
'last_seen', 'log_destination', 'log_level', 'login_name',
'login_password', 'managing_member', 'ms_max_connection',
'ms_rpc_timeout_in_seconds', 'network_view', 'read_only',
'root_ad_domain', 'server_name', 'synchronization_min_delay',
'synchronization_status', 'synchronization_status_detail',
'use_log_destination', 'use_ms_max_connection',
'use_ms_rpc_timeout_in_seconds', 'version']
_search_for_update_fields = ['address']
_updateable_search_fields = ['address', 'grid_member']
_all_searchable_fields = ['address', 'grid_member']
_return_fields = ['address', 'extattrs']
_remap = {}
_shadow_fields = ['_ref']
class MsserverAdsitesDomain(InfobloxObject):
""" MsserverAdsitesDomain: Active Directory Domain object.
Corresponds to WAPI object 'msserver:adsites:domain'
The object provides information about the Active Directory Domain.
Attributes:
ea_definition: The name of the Extensible Attribute Definition
object that is linked to the Active Directory Sites Domain.
ms_sync_master_name: The IP address or FQDN of the managing
master for the MS server, if applicable.
name: The name of the Active Directory Domain properties object.
netbios: The NetBIOS name of the Active Directory Domain
properties object.
network_view: The name of the network view in which the Active
Directory Domain resides.
read_only: Determines whether the Active Directory Domain
properties object is a read-only object.
"""
_infoblox_type = 'msserver:adsites:domain'
_fields = ['ea_definition', 'ms_sync_master_name', 'name', 'netbios',
'network_view', 'read_only']
_search_for_update_fields = ['name', 'netbios', 'network_view']
_updateable_search_fields = []
_all_searchable_fields = ['ea_definition', 'name', 'netbios',
'network_view']
_return_fields = ['name', 'netbios', 'network_view']
_remap = {}
_shadow_fields = ['_ref']
class MsserverAdsitesSite(InfobloxObject):
""" MsserverAdsitesSite: Active Directory Site object.
Corresponds to WAPI object 'msserver:adsites:site'
This object provides information about the Active Directory Site.
Attributes:
domain: The reference to the Active Directory Domain to which
the site belongs.
name: The name of the site properties object for the Active
Directory Sites.
networks: The list of networks to which the device interfaces
belong.
"""
_infoblox_type = 'msserver:adsites:site'
_fields = ['domain', 'name', 'networks']
_search_for_update_fields = ['domain', 'name']
_updateable_search_fields = ['domain', 'name']
_all_searchable_fields = ['domain', 'name']
_return_fields = ['domain', 'name']
_remap = {}
_shadow_fields = ['_ref']
def move_subnets(self, *args, **kwargs):
return self._call_func("move_subnets", *args, **kwargs)
class MsserverDhcp(InfobloxObject):
""" MsserverDhcp: Microsoft Server DHCP properties object.
Corresponds to WAPI object 'msserver:dhcp'
This object represents a subset of the Microsoft Server DHCP
properties.
Attributes:
address: The address or FQDN of the DHCP Microsoft Server.
comment: Comment from Microsoft Server
dhcp_utilization: The percentage of the total DHCP utilization
of DHCP objects belonging to the DHCP Microsoft Server
multiplied by 1000. This is the percentage of the total
number of available IP addresses from all the DHCP objects
belonging to the DHCP Microsoft Server versus the total
number of all IP addresses in all of the DHCP objects on the
DHCP Microsoft Server.
dhcp_utilization_status: A string describing the utilization
level of DHCP objects that belong to the DHCP Microsoft
Server.
dynamic_hosts: The total number of DHCP leases issued for the
DHCP objects on the DHCP Microsoft Server.
last_sync_ts: Timestamp of the last synchronization attempt
login_name: The login name of the DHCP Microsoft Server.
login_password: The login password of the DHCP Microsoft Server.
network_view: Network view to update
next_sync_control: Defines what control to apply on the DHCP
server
read_only: Whether Microsoft server is read only
server_name: Microsoft server address
static_hosts: The number of static DHCP addresses configured in
DHCP objects that belong to the DHCP Microsoft Server.
status: Status of the Microsoft DHCP Service
status_detail: Detailed status of the DHCP status
status_last_updated: Timestamp of the last update
supports_failover: Flag indicating if the DHCP supports Failover
synchronization_interval: The minimum number of minutes between
two synchronizations.
total_hosts: The total number of DHCP addresses configured in
DHCP objects that belong to the DHCP Microsoft Server.
use_login: Use flag for: login_name , login_password
use_synchronization_interval: Use flag for:
synchronization_interval
"""
_infoblox_type = 'msserver:dhcp'
_fields = ['address', 'comment', 'dhcp_utilization',
'dhcp_utilization_status', 'dynamic_hosts', 'last_sync_ts',
'login_name', 'login_password', 'network_view',
'next_sync_control', 'read_only', 'server_name', 'static_hosts',
'status', 'status_detail', 'status_last_updated',
'supports_failover', 'synchronization_interval', 'total_hosts',
'use_login', 'use_synchronization_interval']
_search_for_update_fields = ['address']
_updateable_search_fields = []
_all_searchable_fields = ['address']
_return_fields = ['address']
_remap = {}
_shadow_fields = ['_ref']
class MsserverDns(InfobloxObject):
""" MsserverDns: Microsoft Server DNS properties object.
Corresponds to WAPI object 'msserver:dns'
This object represents a subset of the Microsoft Server DNS
properties.
Attributes:
address: The address or FQDN of the DNS Microsoft Server.
enable_dns_reports_sync: Determines if synchronization of DNS
reporting data from the Microsoft server is enabled or not.
login_name: The login name of the DNS Microsoft Server.
login_password: The login password of the DNS Microsoft Server.
synchronization_interval: The minimum number of minutes between
two synchronizations.
use_enable_dns_reports_sync: Use flag for:
enable_dns_reports_sync
use_login: Use flag for: login_name , login_password
use_synchronization_interval: Use flag for:
synchronization_interval
"""
_infoblox_type = 'msserver:dns'
_fields = ['address', 'enable_dns_reports_sync', 'login_name',
'login_password', 'synchronization_interval',
'use_enable_dns_reports_sync', 'use_login',
'use_synchronization_interval']
_search_for_update_fields = ['address']
_updateable_search_fields = []
_all_searchable_fields = ['address']
_return_fields = ['address']
_remap = {}
_shadow_fields = ['_ref']
class Mssuperscope(InfobloxObject):
""" Mssuperscope: Microsoft DHCP superscope object.
Corresponds to WAPI object 'mssuperscope'
This object represents a superscope feature of Microsoft DHCP
server. You can use a superscope to group and activate multiple
ranges via a single object.
Attributes:
comment: The superscope descriptive comment.
dhcp_utilization: The percentage of the total DHCP usage of the
ranges in the superscope.
dhcp_utilization_status: Utilization level of the DHCP range
objects that belong to the superscope.
disable: Determines whether the superscope is disabled.
dynamic_hosts: The total number of DHCP leases issued for the
DHCP range objects that belong to the superscope.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
high_water_mark: The percentage value for DHCP range usage after
which an alarm will be active.
high_water_mark_reset: The percentage value for DHCP range usage
after which an alarm will be reset.
low_water_mark: The percentage value for DHCP range usage below
which an alarm will be active.
low_water_mark_reset: The percentage value for DHCP range usage
below which an alarm will be reset.
name: The name of the Microsoft DHCP superscope.
network_view: The name of the network view in which the
superscope resides.
ranges: The list of DHCP ranges that are associated with the
superscope.
static_hosts: The number of static DHCP addresses configured in
DHCP range objects that belong to the superscope.
total_hosts: The total number of DHCP addresses configured in
DHCP range objects that belong to the superscope.
"""
_infoblox_type = 'mssuperscope'
_fields = ['comment', 'dhcp_utilization', 'dhcp_utilization_status',
'disable', 'dynamic_hosts', 'extattrs', 'high_water_mark',
'high_water_mark_reset', 'low_water_mark',
'low_water_mark_reset', 'name', 'network_view', 'ranges',
'static_hosts', 'total_hosts']
_search_for_update_fields = ['name', 'network_view']
_updateable_search_fields = ['comment', 'name', 'network_view']
_all_searchable_fields = ['comment', 'name', 'network_view']
_return_fields = ['disable', 'extattrs', 'name', 'network_view']
_remap = {}
_shadow_fields = ['_ref']
class Namedacl(InfobloxObject):
""" Namedacl: Named ACL object.
Corresponds to WAPI object 'namedacl'
A named ACL (Access Control List) is a list of IPv4/IPv6 addresses,
networks, TSIG-based anonymous access controls, and other named
ACLs, to which you can grant or deny permission for operations such
as dynamic DNS updates or zone transfers.
Attributes:
access_list: The access control list of IPv4/IPv6 addresses,
networks, TSIG-based anonymous access controls, and other
named ACLs.
comment: Comment for the named ACL; maximum 256 characters.
exploded_access_list: The exploded access list for the named
ACL. This list displays all the access control entries in a
named ACL and its nested named ACLs, if applicable.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
name: The name of the named ACL.
"""
_infoblox_type = 'namedacl'
_fields = ['access_list', 'comment', 'exploded_access_list', 'extattrs',
'name']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'access_list': Addressac.from_dict,
'exploded_access_list': Addressac.from_dict,
}
def validate_acl_items(self, *args, **kwargs):
return self._call_func("validate_acl_items", *args, **kwargs)
class Natgroup(InfobloxObject):
""" Natgroup: Network Address Translation group object.
Corresponds to WAPI object 'natgroup'
NAT groups are necessary if the Grid master is behind a NAT device
and there are members behind both side of the NAT device. Any member
on the same side as the master goes into the same NAT group as the
master and uses its interface address for Grid communication. Grid
members on the other side of that NAT device do not go into the same
NAT group as the master and use the master's NAT address for Grid
communication.
Attributes:
comment: The NAT group descriptive comment.
name: The name of a NAT group object.
"""
_infoblox_type = 'natgroup'
_fields = ['comment', 'name']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'name']
_remap = {}
_shadow_fields = ['_ref']
class NetworkDiscovery(InfobloxObject):
""" NetworkDiscovery: Network discovery object.
Corresponds to WAPI object 'network_discovery'
This object can be used to control the network discovery process.
Attributes:
"""
_infoblox_type = 'network_discovery'
_fields = []
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = []
_remap = {}
_shadow_fields = ['_ref']
def clear_discovery_data(self, *args, **kwargs):
return self._call_func("clear_discovery_data", *args, **kwargs)
class Networkuser(InfobloxObject):
""" Networkuser: Network User object.
Corresponds to WAPI object 'networkuser'
The DHCP Network User object provides information about Active
Directory users such as user session for a specific IP address,
domain, login and logout timestamps.
Attributes:
address: The IPv4 Address or IPv6 Address of the Network User.
address_object: The reference of the IPAM IPv4Address or
IPv6Address object describing the address of the Network
User.
data_source: The Network User data source.
data_source_ip: The Network User data source IPv4 Address or
IPv6 Address or FQDN address.
domainname: The domain name of the Network User.
first_seen_time: The first seen timestamp of the Network User.
guid: The group identifier of the Network User.
last_seen_time: The last seen timestamp of the Network User.
last_updated_time: The last updated timestamp of the Network
User.
logon_id: The logon identifier of the Network User.
logout_time: The logout timestamp of the Network User.
name: The name of the Network User.
network: The reference to the network to which the Network User
belongs.
network_view: The name of the network view in which this Network
User resides.
user_status: The status of the Network User.
"""
_infoblox_type = 'networkuser'
_fields = ['address', 'address_object', 'data_source', 'data_source_ip',
'domainname', 'first_seen_time', 'guid', 'last_seen_time',
'last_updated_time', 'logon_id', 'logout_time', 'name',
'network', 'network_view', 'user_status']
_search_for_update_fields = ['address', 'domainname', 'name',
'network_view', 'user_status']
_updateable_search_fields = ['address', 'domainname', 'guid', 'logon_id',
'name', 'network_view']
_all_searchable_fields = ['address', 'domainname', 'guid', 'logon_id',
'name', 'network_view', 'user_status']
_return_fields = ['address', 'domainname', 'name', 'network_view',
'user_status']
_remap = {}
_shadow_fields = ['_ref']
class NetworkView(InfobloxObject):
""" NetworkView: DHCP NetworkView object.
Corresponds to WAPI object 'networkview'
A network view is a single routing domain with its own networks and
shared networks. A network view can contain both IPv4 and IPv6
networks. All networks must belong to a network view.
Attributes:
associated_dns_views: The list of DNS views associated with this
network view.
associated_members: The list of members associated with a
network view.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the network view; maximum 256 characters.
ddns_dns_view: DNS views that will receive the updates if you
enable the appliance to send updates to Grid members.
ddns_zone_primaries: An array of Ddns Zone Primary structs that
lists the information of primary zone to wich DDNS updates
should be sent.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
internal_forward_zones: The list of linked authoritative DNS
zones.
is_default: The NIOS appliance provides one default network
view. You can rename the default view and change its
settings, but you cannot delete it. There must always be at
least one network view in the appliance.
mgm_private: This field controls whether this object is
synchronized with the Multi-Grid Master. If this field is
set to True, objects are not synchronized.
ms_ad_user_data: The Microsoft Active Directory user related
information.
name: Name of the network view.
remote_forward_zones: The list of forward-mapping zones to which
the DHCP server sends the updates.
remote_reverse_zones: The list of reverse-mapping zones to which
the DHCP server sends the updates.
"""
_infoblox_type = 'networkview'
_fields = ['associated_dns_views', 'associated_members', 'cloud_info',
'comment', 'ddns_dns_view', 'ddns_zone_primaries', 'extattrs',
'internal_forward_zones', 'is_default', 'mgm_private',
'ms_ad_user_data', 'name', 'remote_forward_zones',
'remote_reverse_zones']
_search_for_update_fields = ['is_default', 'name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'is_default', 'name']
_return_fields = ['comment', 'extattrs', 'is_default', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'associated_members': NetworkviewAssocmember.from_dict,
'ddns_zone_primaries': Dhcpddns.from_dict,
'remote_forward_zones': Remoteddnszone.from_dict,
'remote_reverse_zones': Remoteddnszone.from_dict,
}
class NotificationRestEndpoint(InfobloxObject):
""" NotificationRestEndpoint: The notification RESTful endpoint
object.
Corresponds to WAPI object 'notification:rest:endpoint'
The notification REST endpoint object represents settings of
particular REST API endpoint.
Attributes:
client_certificate_subject: The client certificate subject of a
notification REST endpoint.
client_certificate_token: The token returned by the uploadinit
function call in object fileop for a notification REST
endpoit client certificate.
client_certificate_valid_from: The timestamp when client
certificate for a notification REST endpoint was created.
client_certificate_valid_to: The timestamp when client
certificate for a notification REST endpoint expires.
comment: The comment of a notification REST endpoint.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
log_level: The log level for a notification REST endpoint.
name: The name of a notification REST endpoint.
outbound_member_type: The outbound member which will generate an
event.
outbound_members: The list of members for outbound events.
password: The password of the user that can log into a
notification REST endpoint.
server_cert_validation: The server certificate validation type.
sync_disabled: Determines if the sync process is disabled for a
notification REST endpoint.
template_instance: The notification REST template instance. The
parameters of REST API endpoint template instance are
prohibited to change.
timeout: The timeout of session management (in seconds).
uri: The URI of a notification REST endpoint.
username: The username of the user that can log into a
notification REST endpoint.
vendor_identifier: The vendor identifier.
wapi_user_name: The user name for WAPI integration.
wapi_user_password: The user password for WAPI integration.
"""
_infoblox_type = 'notification:rest:endpoint'
_fields = ['client_certificate_subject', 'client_certificate_token',
'client_certificate_valid_from', 'client_certificate_valid_to',
'comment', 'extattrs', 'log_level', 'name',
'outbound_member_type', 'outbound_members', 'password',
'server_cert_validation', 'sync_disabled', 'template_instance',
'timeout', 'uri', 'username', 'vendor_identifier',
'wapi_user_name', 'wapi_user_password']
_search_for_update_fields = ['name', 'outbound_member_type', 'uri']
_updateable_search_fields = ['log_level', 'name', 'outbound_member_type',
'uri', 'vendor_identifier']
_all_searchable_fields = ['log_level', 'name', 'outbound_member_type',
'uri', 'vendor_identifier']
_return_fields = ['extattrs', 'name', 'outbound_member_type', 'uri']
_remap = {}
_shadow_fields = ['_ref']
def clear_outbound_worker_log(self, *args, **kwargs):
return self._call_func("clear_outbound_worker_log", *args, **kwargs)
def test_connection(self, *args, **kwargs):
return self._call_func("test_connection", *args, **kwargs)
class NotificationRestTemplate(InfobloxObject):
""" NotificationRestTemplate: The notification REST template object.
Corresponds to WAPI object 'notification:rest:template'
The notification REST template object represents settings of
particular REST API template.
Attributes:
action_name: The action name.
added_on: The time stamp when a template was added.
comment: The comment for this REST API template.
content: The JSON formatted content of a template. The data
passed by content creates parameters for a template.
event_type: The event type.
name: The name of a notification REST template.
outbound_type: The outbound type for the template.
parameters: The notification REST template parameters.
template_type: The template type.
vendor_identifier: The vendor identifier.
"""
_infoblox_type = 'notification:rest:template'
_fields = ['action_name', 'added_on', 'comment', 'content', 'event_type',
'name', 'outbound_type', 'parameters', 'template_type',
'vendor_identifier']
_search_for_update_fields = ['name']
_updateable_search_fields = ['name']
_all_searchable_fields = ['name', 'outbound_type']
_return_fields = ['content', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'parameters': NotificationRestTemplateparameter.from_dict,
}
class NotificationRule(InfobloxObject):
""" NotificationRule: Notification rule object.
Corresponds to WAPI object 'notification:rule'
Notification rule specifies the server to which this rule is
applicable, certain conditions (i.e. triggers), and the action to be
taken when the rule is hit. It also specifies where this rule engine
is configured to be run.
Attributes:
all_members: Determines whether the notification rule is applied
on all members or not. When this is set to False, the
notification rule is applied only on selected_members.
comment: The notification rule descriptive comment.
disable: Determines whether a notification rule is disabled or
not. When this is set to False, the notification rule is
enabled.
enable_event_deduplication: Determines whether the notification
rule for event deduplication is enabled. Note that to enable
event deduplication, you must set at least one deduplication
field.
enable_event_deduplication_log: Determines whether the
notification rule for the event deduplication syslog is
enabled.
event_deduplication_fields: The list of fields that must be used
in the notification rule for event deduplication.
event_deduplication_lookback_period: The lookback period for the
notification rule for event deduplication.
event_priority: Event priority.
event_type: The notification rule event type.
expression_list: The notification rule expression list.
name: The notification rule name.
notification_action: The notification rule action is applied if
expression list evaluates to True.
notification_target: The notification target.
publish_settings: The publish settings.
scheduled_event: Schedule setting that must be specified if
event_type is SCHEDULE.
selected_members: The list of the members on which the
notification rule is applied.
template_instance: The notification REST template instance.
use_publish_settings: Use flag for: publish_settings
"""
_infoblox_type = 'notification:rule'
_fields = ['all_members', 'comment', 'disable',
'enable_event_deduplication', 'enable_event_deduplication_log',
'event_deduplication_fields',
'event_deduplication_lookback_period', 'event_priority',
'event_type', 'expression_list', 'name', 'notification_action',
'notification_target', 'publish_settings', 'scheduled_event',
'selected_members', 'template_instance', 'use_publish_settings']
_search_for_update_fields = ['event_type', 'name', 'notification_action',
'notification_target']
_updateable_search_fields = ['comment', 'event_priority', 'event_type',
'notification_action', 'notification_target']
_all_searchable_fields = ['comment', 'event_priority', 'event_type',
'name', 'notification_action',
'notification_target']
_return_fields = ['event_type', 'name', 'notification_action',
'notification_target']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'expression_list': NotificationRuleexpressionop.from_dict,
}
def trigger_outbound(self, *args, **kwargs):
return self._call_func("trigger_outbound", *args, **kwargs)
class Nsgroup(InfobloxObject):
""" Nsgroup: DNS name server group object.
Corresponds to WAPI object 'nsgroup'
A name server group is a collection of one or more primary DNS
servers and one or more secondary DNS servers. Grouping a commonly
used set of primary and secondary DNS servers together simplifies
zone creation, allowing you to specify a single name server group
instead of specifying multiple name servers individually.
Attributes:
comment: Comment for the name server group; maximum 256
characters.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
external_primaries: The list of external primary servers.
external_secondaries: The list of external secondary servers.
grid_primary: The grid primary servers for this group.
grid_secondaries: The list with Grid members that are secondary
servers for this group.
is_grid_default: Determines if this name server group is the
Grid default.
is_multimaster: Determines if the "multiple DNS primaries"
feature is enabled for the group.
name: The name of this name server group.
use_external_primary: This flag controls whether the group is
using an external primary. Note that modification of this
field requires passing values for "grid_secondaries" and
"external_primaries".
"""
_infoblox_type = 'nsgroup'
_fields = ['comment', 'extattrs', 'external_primaries',
'external_secondaries', 'grid_primary', 'grid_secondaries',
'is_grid_default', 'is_multimaster', 'name',
'use_external_primary']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'external_primaries': Extserver.from_dict,
'external_secondaries': Extserver.from_dict,
'grid_primary': Memberserver.from_dict,
'grid_secondaries': Memberserver.from_dict,
}
class NsgroupDelegation(InfobloxObject):
""" NsgroupDelegation: NS group delegation object.
Corresponds to WAPI object 'nsgroup:delegation'
The NS group delegation object provides delegation servers
configuration for delegated zones. When you configure a name server
group, you can now create a set of external name servers as a
delegation name server group and assign it to delegated zones.
Specifying a single delegation name server group instead of
configuring multiple name servers individually for each delegated
zones can significantly reduce configuration efforts.
Attributes:
comment: The comment for the delegated NS group.
delegate_to: The list of delegated servers for the delegated NS
group.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
name: The name of the delegated NS group.
"""
_infoblox_type = 'nsgroup:delegation'
_fields = ['comment', 'delegate_to', 'extattrs', 'name']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['delegate_to', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'delegate_to': Extserver.from_dict,
}
class NsgroupForwardingmember(InfobloxObject):
""" NsgroupForwardingmember: Forwarding Member Name Server Group
object.
Corresponds to WAPI object 'nsgroup:forwardingmember'
The Forwarding Member Name Server Group provides forwarding servers
configuration for forward zones.
Attributes:
comment: Comment for the Forwarding Member Name Server Group;
maximum 256 characters.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
forwarding_servers: The list of forwarding member servers.
name: The name of the Forwarding Member Name Server Group.
"""
_infoblox_type = 'nsgroup:forwardingmember'
_fields = ['comment', 'extattrs', 'forwarding_servers', 'name']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['extattrs', 'forwarding_servers', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'forwarding_servers': Forwardingmemberserver.from_dict,
}
class NsgroupForwardstubserver(InfobloxObject):
""" NsgroupForwardstubserver: Forward Stub Server Name Server Group
object.
Corresponds to WAPI object 'nsgroup:forwardstubserver'
The Forward Stub Server Name Server Group allows configuring
external servers for Forward Zone and Stub Zone.
Attributes:
comment: Comment for the Forward Stub Server Name Server Group;
maximum 256 characters.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
external_servers: The list of external servers.
name: The name of this Forward Stub Server Name Server Group.
"""
_infoblox_type = 'nsgroup:forwardstubserver'
_fields = ['comment', 'extattrs', 'external_servers', 'name']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['extattrs', 'external_servers', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'external_servers': Extserver.from_dict,
}
class NsgroupStubmember(InfobloxObject):
""" NsgroupStubmember: Stub Member Name Server Group object.
Corresponds to WAPI object 'nsgroup:stubmember'
The Stub Member Name Server Group provides stub servers
configuration for stub zones.
Attributes:
comment: Comment for the Stub Member Name Server Group; maximum
256 characters.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
name: The name of the Stub Member Name Server Group.
stub_members: The Grid member servers of this stub zone.Note
that the lead/stealth/grid_replicate/
preferred_primaries/override_preferred_primaries fields of
the struct will be ignored when set in this field.
"""
_infoblox_type = 'nsgroup:stubmember'
_fields = ['comment', 'extattrs', 'name', 'stub_members']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'stub_members': Memberserver.from_dict,
}
class Orderedranges(InfobloxObject):
""" Orderedranges: Ordered DHCP ranges object.
Corresponds to WAPI object 'orderedranges'
An ordered DHCP ranges object contains an ordered list of DHCP range
objects that belong to a network.
Note that DHCP range object that have server association type set to
'NONE' are excluded from ordered DHCP ranges object.
Attributes:
network: The reference to the network that contains ranges.
ranges: The ordered list of references to ranges.
"""
_infoblox_type = 'orderedranges'
_fields = ['network', 'ranges']
_search_for_update_fields = ['network']
_updateable_search_fields = []
_all_searchable_fields = ['network']
_return_fields = ['network', 'ranges']
_remap = {}
_shadow_fields = ['_ref']
class Orderedresponsepolicyzones(InfobloxObject):
""" Orderedresponsepolicyzones: Ordered Response Policy Zones
object.
Corresponds to WAPI object 'orderedresponsepolicyzones'
An ordered list of Response Policy Zones in a DNS view. Server will
reject zones that are disabled or zones without primary name server
assigned.
Attributes:
rp_zones: An ordered list of Response Policy Zone names.
view: The DNS View name.
"""
_infoblox_type = 'orderedresponsepolicyzones'
_fields = ['rp_zones', 'view']
_search_for_update_fields = ['view']
_updateable_search_fields = ['view']
_all_searchable_fields = ['view']
_return_fields = ['view']
_remap = {}
_shadow_fields = ['_ref']
class OutboundCloudclient(InfobloxObject):
""" OutboundCloudclient: OutBoundCloudClient object.
Corresponds to WAPI object 'outbound:cloudclient'
You can use the outbound Cloud Client object to configure the
detection and authentication of domains in the Cloud, and then apply
them to on-premises DNS firewall RPZ zones within a configurable
time frame.
Attributes:
enable: Determines whether the OutBound Cloud Client is enabled.
grid_member: The Grid member where our outbound is running.
interval: The time interval (in seconds) for requesting newly
detected domains by the Infoblox Outbound Cloud Client and
applying them to the list of configured RPZs.
outbound_cloud_client_events: List of event types to request
"""
_infoblox_type = 'outbound:cloudclient'
_fields = ['enable', 'grid_member', 'interval',
'outbound_cloud_client_events']
_search_for_update_fields = []
_updateable_search_fields = ['grid_member']
_all_searchable_fields = ['grid_member']
_return_fields = ['enable', 'interval']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'outbound_cloud_client_events': OutboundCloudclientEvent.from_dict,
}
class ParentalcontrolAvp(InfobloxObject):
""" ParentalcontrolAvp: The parental control AVP object.
Corresponds to WAPI object 'parentalcontrol:avp'
The accounting attribute value pair object is used to extract
accounting information from accounting protocols logs.
Attributes:
comment: The comment for the AVP.
domain_types: The list of domains applicable to AVP.
is_restricted: Determines if AVP is restricted to domains.
name: The name of AVP.
type: The type of AVP as per RFC 2865/2866.
user_defined: Determines if AVP was defined by user.
value_type: The type of value.
vendor_id: The vendor ID as per RFC 2865/2866.
vendor_type: The vendor type as per RFC 2865/2866.
"""
_infoblox_type = 'parentalcontrol:avp'
_fields = ['comment', 'domain_types', 'is_restricted', 'name', 'type',
'user_defined', 'value_type', 'vendor_id', 'vendor_type']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name', 'vendor_id', 'vendor_type']
_all_searchable_fields = ['comment', 'name', 'vendor_id', 'vendor_type']
_return_fields = ['name', 'type', 'value_type']
_remap = {}
_shadow_fields = ['_ref']
class ParentalcontrolBlockingpolicy(InfobloxObject):
""" ParentalcontrolBlockingpolicy: Parental control blocking policy
object.
Corresponds to WAPI object 'parentalcontrol:blockingpolicy'
This object represents a set of parental control properties for
blocking policy.
Attributes:
name: The name of the blocking policy.
value: The 32 bit hex value of the blocking policy.
"""
_infoblox_type = 'parentalcontrol:blockingpolicy'
_fields = ['name', 'value']
_search_for_update_fields = ['name', 'value']
_updateable_search_fields = ['name', 'value']
_all_searchable_fields = ['name', 'value']
_return_fields = ['name', 'value']
_remap = {}
_shadow_fields = ['_ref']
class ParentalcontrolSubscriber(InfobloxObject):
""" ParentalcontrolSubscriber: The parental control subscriber
object.
Corresponds to WAPI object 'parentalcontrol:subscriber'
The parental control subscriber properties contains user defined
RADIUS subscriber information which will be used by DNS/RPZ for
reporting and logging violations.
Attributes:
alt_subscriber_id: The name of AVP to be used as an alternate
subscriber ID for fixed lines.
alt_subscriber_id_regexp: A character string to control aspects
of rewriting of the fields.
alt_subscriber_id_subexpression: The subexpression indicates
which subexpression to extract. If zero, then the text
matching the entire regular expression is extracted. If non-
zero, then the regex must contain at least that many sub-
expression groups. It takes values from 0 to 8.
ancillaries: The list of ordered AVP Ancillary Fields.
cat_acctname: Category content account name using the
categorization service.
cat_password: Category content account password to access the
categorization service.
cat_update_frequency: Category content updates every number of
hours.
category_url: Category content vendor url to download category
data from and upload feedback to, configure for parental
control.
enable_mgmt_only_nas: Determines if NAS RADIUS traffic is
accepted over MGMT only.
enable_parental_control: Determines if parental control is
enabled.
interim_accounting_interval: The time for collector to be fully
populated.Valid values are from 1 to 65535.
ip_anchors: The ordered list of IP Anchors AVPs. The list
content cannot be changed, but the order of elements.
ip_space_disc_regexp: A character string to control aspects of
rewriting of the fields.
ip_space_disc_subexpression: The subexpression indicates which
subexpression to extract. If zero, then the text matching
the entire regular expression is extracted. If non-zero,
then the regex must contain at least that many sub-
expression groups. It takes values from 0 to 8.
ip_space_discriminator: The name of AVP to be used as IP address
discriminator.
local_id: The name of AVP to be used as local ID.
local_id_regexp: A character string to control aspects of
rewriting of the fields.
local_id_subexpression: The subexpression indicates which
subexpression to extract. If zero, then the text matching
the entire regular expression is extracted. If non-zero,
then the regex must contain at least that many sub-
expression groups. It takes values from 0 to 8.
log_guest_lookups:
nas_context_info: NAS contextual information AVP.
pc_zone_name: The SOA to store parental control records.
proxy_password: Proxy server password used for authentication.
proxy_url: Proxy url to download category data from and upload
feedback to, configure for parental control. The default
value 'None' is no longer valid as it match url regex
pattern "^http|https://". The new default value does not get
saved in database, but rather used for comparision with
object created in unit test cases.
proxy_username: Proxy server username used for authentication.
subscriber_id: The name of AVP to be used as a subscriber.
subscriber_id_regexp: A character string to control aspects of
rewriting of the fields.
subscriber_id_subexpression: The subexpression indicates which
subexpression to extract. If zero, then the text matching
the entire regular expression is extracted. If non-zero,
then the regex must contain at least that many sub-
expression groups. It takes values from 0 to 8.
"""
_infoblox_type = 'parentalcontrol:subscriber'
_fields = ['alt_subscriber_id', 'alt_subscriber_id_regexp',
'alt_subscriber_id_subexpression', 'ancillaries',
'cat_acctname', 'cat_password', 'cat_update_frequency',
'category_url', 'enable_mgmt_only_nas',
'enable_parental_control', 'interim_accounting_interval',
'ip_anchors', 'ip_space_disc_regexp',
'ip_space_disc_subexpression', 'ip_space_discriminator',
'local_id', 'local_id_regexp', 'local_id_subexpression',
'log_guest_lookups', 'nas_context_info', 'pc_zone_name',
'proxy_password', 'proxy_url', 'proxy_username',
'subscriber_id', 'subscriber_id_regexp',
'subscriber_id_subexpression']
_search_for_update_fields = ['alt_subscriber_id', 'local_id',
'subscriber_id']
_updateable_search_fields = ['alt_subscriber_id', 'local_id',
'subscriber_id']
_all_searchable_fields = ['alt_subscriber_id', 'local_id', 'subscriber_id']
_return_fields = ['alt_subscriber_id', 'local_id', 'subscriber_id']
_remap = {}
_shadow_fields = ['_ref']
class ParentalcontrolSubscriberrecord(InfobloxObject):
""" ParentalcontrolSubscriberrecord: Parental control subscriber
record object.
Corresponds to WAPI object 'parentalcontrol:subscriberrecord'
This object represents a set of parental control properties for
subscriber record.
Attributes:
accounting_session_id: accounting_session_id
alt_ip_addr: alt_ip_addr
ans0: ans0
ans1: ans1
ans2: ans2
ans3: ans3
ans4: ans4
black_list: black_list
bwflag: bwflag
dynamic_category_policy: dynamic_category_policy
flags: flags
ip_addr: ip_addr
ipsd: ipsd
localid: localid
nas_contextual: nas_contextual
parental_control_policy: parental_control_policy
prefix: prefix
proxy_all: proxy_all
site: site
subscriber_id: subscriber_id
subscriber_secure_policy: subscriber_secure_policy
unknown_category_policy: unknown_category_policy
white_list: white_list
wpc_category_policy: wpc_category_policy
"""
_infoblox_type = 'parentalcontrol:subscriberrecord'
_fields = ['accounting_session_id', 'alt_ip_addr', 'ans0', 'ans1', 'ans2',
'ans3', 'ans4', 'black_list', 'bwflag',
'dynamic_category_policy', 'flags', 'ip_addr', 'ipsd',
'localid', 'nas_contextual', 'parental_control_policy',
'prefix', 'proxy_all', 'site', 'subscriber_id',
'subscriber_secure_policy', 'unknown_category_policy',
'white_list', 'wpc_category_policy']
_search_for_update_fields = ['ip_addr', 'ipsd', 'localid', 'prefix',
'site', 'subscriber_id']
_updateable_search_fields = ['ip_addr', 'ipsd', 'localid', 'prefix',
'site', 'subscriber_id']
_all_searchable_fields = ['ip_addr', 'ipsd', 'localid', 'prefix', 'site',
'subscriber_id']
_return_fields = ['accounting_session_id', 'ip_addr', 'ipsd', 'localid',
'prefix', 'site', 'subscriber_id']
_remap = {}
_shadow_fields = ['_ref']
class ParentalcontrolSubscribersite(InfobloxObject):
""" ParentalcontrolSubscribersite: Subscriber site parental control
properties object.
Corresponds to WAPI object 'parentalcontrol:subscribersite'
This object represents a set of parental control properties for
subscriber site.
Attributes:
abss: The list of ABS for the site.
block_size: The size of the Deterministic NAT block-size.
blocking_ipv4_vip1: The IPv4 Address of the blocking server.
blocking_ipv4_vip2: The IPv4 Address of the blocking server.
blocking_ipv6_vip1: The IPv6 Address of the blocking server.
blocking_ipv6_vip2: The IPv6 Address of the blocking server.
comment: The human readable comment for the site.
dca_sub_bw_list: Enable/disable the DCA subscriber B/W list
support.
dca_sub_query_count: Enable/disable the DCA subscriber query
count.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
first_port: The start of the first Deterministic block.
maximum_subscribers: The max number of subscribers for the site.
It is used to configure the cache size.
members: The list of members for the site.
msps: The list of MSP for the site.
name: The name of the site.
nas_gateways: The list of accounting log servers.
nas_port: The port number to reach the collector.
proxy_rpz_passthru: Enables Proxy RPZ PASSTGHRU.
spms: The list of SPM for the site.
stop_anycast: Stop the anycast service when the subscriber
service is in the interim state.
strict_nat: Restrict subscriber cache entries to NATed clients.
"""
_infoblox_type = 'parentalcontrol:subscribersite'
_fields = ['abss', 'block_size', 'blocking_ipv4_vip1',
'blocking_ipv4_vip2', 'blocking_ipv6_vip1',
'blocking_ipv6_vip2', 'comment', 'dca_sub_bw_list',
'dca_sub_query_count', 'extattrs', 'first_port',
'maximum_subscribers', 'members', 'msps', 'name',
'nas_gateways', 'nas_port', 'proxy_rpz_passthru', 'spms',
'stop_anycast', 'strict_nat']
_search_for_update_fields = ['name']
_updateable_search_fields = ['blocking_ipv4_vip1', 'blocking_ipv4_vip2',
'blocking_ipv6_vip1', 'blocking_ipv6_vip2',
'comment']
_all_searchable_fields = ['blocking_ipv4_vip1', 'blocking_ipv4_vip2',
'blocking_ipv6_vip1', 'blocking_ipv6_vip2',
'comment', 'name']
_return_fields = ['block_size', 'dca_sub_bw_list', 'dca_sub_query_count',
'extattrs', 'first_port', 'name', 'stop_anycast',
'strict_nat']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'abss': ParentalcontrolAbs.from_dict,
'members': ParentalcontrolSitemember.from_dict,
'msps': ParentalcontrolMsp.from_dict,
'nas_gateways': ParentalcontrolNasgateway.from_dict,
'spms': ParentalcontrolSpm.from_dict,
}
class Permission(InfobloxObject):
""" Permission: Permissions object.
Corresponds to WAPI object 'permission'
Limited-access admin groups can access certain DHCP resources only
if their administrative permissions are defined. By default, the
appliance denies access when a limited-access admin group does not
have defined permissions. You can grant admin groups read-only or
read/write permission, or deny access by using this object.
Attributes:
group: The name of the admin group this permission applies to.
object: A reference to a WAPI object, which will be the object
this permission applies to.
permission: The type of permission.
resource_type: The type of resource this permission applies to.
If 'object' is set, the permission is going to apply to
child objects of the specified type, for example if 'object'
was set to an authoritative zone reference and
'resource_type' was set to 'A', the permission would apply
to A Resource Records within the specified zone.
role: The name of the role this permission applies to.
"""
_infoblox_type = 'permission'
_fields = ['group', 'object', 'permission', 'resource_type', 'role']
_search_for_update_fields = ['group', 'permission', 'resource_type',
'role']
_updateable_search_fields = ['group', 'object', 'permission',
'resource_type', 'role']
_all_searchable_fields = ['group', 'object', 'permission', 'resource_type',
'role']
_return_fields = ['group', 'permission', 'resource_type', 'role']
_remap = {}
_shadow_fields = ['_ref']
class PxgridEndpoint(InfobloxObject):
""" PxgridEndpoint: The PXGrid endpoint object.
Corresponds to WAPI object 'pxgrid:endpoint'
The pxgrid endpoint object represents the settings of a particular
PXGRID endpoint.
Attributes:
address: The pxgrid endpoint IPv4 Address or IPv6 Address or
Fully-Qualified Domain Name (FQDN)
client_certificate_subject: The Cisco ISE client certificate
subject.
client_certificate_token: The token returned by the uploadinit
function call in object fileop for Cisco ISE client
certificate.
client_certificate_valid_from: The pxgrid endpoint client
certificate valid from.
client_certificate_valid_to: The pxgrid endpoint client
certificate valid to.
comment: The Cisco ISE endpoint descriptive comment.
disable: Determines whether a Cisco ISE endpoint is disabled or
not. When this is set to False, the Cisco ISE endpoint is
enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
log_level: The log level for a notification pxgrid endpoint.
name: The name of the pxgrid endpoint.
network_view: The pxgrid network view name.
outbound_member_type: The outbound member that will generate
events.
outbound_members: The list of members for outbound events.
publish_settings: The Cisco ISE publish settings.
subscribe_settings: The Cisco ISE subscribe settings.
template_instance: The Pxgrid template instance. You cannot
change the parameters of the pxgrid endpoint template
instance.
timeout: The timeout of session management (in seconds).
vendor_identifier: The vendor identifier.
wapi_user_name: The user name for WAPI integration.
wapi_user_password: The user password for WAPI integration.
"""
_infoblox_type = 'pxgrid:endpoint'
_fields = ['address', 'client_certificate_subject',
'client_certificate_token', 'client_certificate_valid_from',
'client_certificate_valid_to', 'comment', 'disable', 'extattrs',
'log_level', 'name', 'network_view', 'outbound_member_type',
'outbound_members', 'publish_settings', 'subscribe_settings',
'template_instance', 'timeout', 'vendor_identifier',
'wapi_user_name', 'wapi_user_password']
_search_for_update_fields = ['address', 'name', 'outbound_member_type']
_updateable_search_fields = ['address', 'comment', 'log_level', 'name',
'network_view', 'outbound_member_type',
'vendor_identifier']
_all_searchable_fields = ['address', 'comment', 'log_level', 'name',
'network_view', 'outbound_member_type',
'vendor_identifier']
_return_fields = ['address', 'disable', 'extattrs', 'name',
'outbound_member_type']
_remap = {}
_shadow_fields = ['_ref']
def test_connection(self, *args, **kwargs):
return self._call_func("test_connection", *args, **kwargs)
class RadiusAuthservice(InfobloxObject):
""" RadiusAuthservice: The RADIUS authentication service object.
Corresponds to WAPI object 'radius:authservice'
RADIUS provides authentication, accounting, and authorization
functions.
The NIOS appliance supports authentication using the following
RADIUS servers: FreeRADIUS, Microsoft, Cisco, and Funk.
When NIOS authenticates administrators against RADIUS servers, NIOS
acts similarly to a network access server (NAS), which is a RADIUS
client that sends authentication and accounting requests to a RADIUS
server.
To configure NIOS to use one or more RADIUS server groups to
authenticate administrators, do the following: 1. Configure at least
one RADIUS authentication server group (authentication service) 2.
Define admin groups for the admins that are authenticated by the
RADIUS servers and specify their privileges and settings 3. Add the
RADIUS server groups and the admin groups that match those on RADIUS
server to authentication policy.
Attributes:
acct_retries: The number of times to attempt to contact an
accounting RADIUS server.
acct_timeout: The number of seconds to wait for a response from
the RADIUS server.
auth_retries: The number of times to attempt to contact an
authentication RADIUS server.
auth_timeout: The number of seconds to wait for a response from
the RADIUS server.
cache_ttl: The TTL of cached authentication data in seconds.
comment: The RADIUS descriptive comment.
disable: Determines whether the RADIUS authentication service is
disabled.
enable_cache: Determines whether the authentication cache is
enabled.
mode: The way to contact the RADIUS server.
name: The RADIUS authentication service name.
recovery_interval: The time period to wait before retrying a
server that has been marked as down.
servers: The ordered list of RADIUS authentication servers.
"""
_infoblox_type = 'radius:authservice'
_fields = ['acct_retries', 'acct_timeout', 'auth_retries', 'auth_timeout',
'cache_ttl', 'comment', 'disable', 'enable_cache', 'mode',
'name', 'recovery_interval', 'servers']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'mode', 'name']
_all_searchable_fields = ['comment', 'mode', 'name']
_return_fields = ['comment', 'disable', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'servers': RadiusServer.from_dict,
}
def check_radius_server_settings(self, *args, **kwargs):
return self._call_func("check_radius_server_settings", *args, **kwargs)
class ARecordBase(InfobloxObject):
@classmethod
def get_v4_class(cls):
return ARecord
@classmethod
def get_v6_class(cls):
return AAAARecord
class ARecord(ARecordBase):
""" ARecord: DNS A record object.
Corresponds to WAPI object 'record:a'
An A (address) record maps a domain name to an IPv4 address. To
define a specific name-to-address mapping, add an A record to a
previously defined authoritative forward-mapping zone.
On DELETE request, the boolean argument remove_associated_ptr
indicates whether the associated PTR records should be removed while
deleting the specified A record. The PTR record will be removed only
if "Enable PTR record removal for A/AAAA records" is enabled in Grid
DNS properties.
Attributes:
aws_rte53_record_info: Aws Route 53 record information.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the record; maximum 256 characters.
creation_time: The time of the record creation in Epoch seconds
format.
creator: The record creator.Note that changing creator from or
to 'SYSTEM' value is not allowed.
ddns_principal: The GSS-TSIG principal that owns this record.
ddns_protected: Determines if the DDNS updates for this record
are allowed or not.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
discovered_data: The discovered data for this A record.
dns_name: The name for an A record in punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
forbid_reclamation: Determines if the reclamation is allowed for
the record or not.
ipv4addr: The IPv4 Address of the record.
last_queried: The time of the last DNS query in Epoch seconds
format.
ms_ad_user_data: The Microsoft Active Directory user related
information.
name: Name for A record in FQDN format. This value can be in
unicode format.
reclaimable: Determines if the record is reclaimable or not.
shared_record_group: The name of the shared record group in
which the record resides. This field exists only on
db_objects if this record is a shared record.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS view in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:a'
_fields = ['aws_rte53_record_info', 'cloud_info', 'comment',
'creation_time', 'creator', 'ddns_principal', 'ddns_protected',
'disable', 'discovered_data', 'dns_name', 'extattrs',
'forbid_reclamation', 'ipv4addr', 'last_queried',
'ms_ad_user_data', 'name', 'reclaimable',
'remove_associated_ptr', 'shared_record_group', 'ttl',
'use_ttl', 'view', 'zone']
_search_for_update_fields = ['ipv4addr', 'name', 'view']
_updateable_search_fields = ['comment', 'creator', 'ddns_principal',
'ipv4addr', 'name']
_all_searchable_fields = ['comment', 'creator', 'ddns_principal',
'ipv4addr', 'name', 'reclaimable', 'view',
'zone']
_return_fields = ['extattrs', 'ipv4addr', 'name', 'view']
_remap = {'ip': 'ipv4addr'}
_shadow_fields = ['_ref', 'ip']
_ip_version = 4
class AAAARecord(ARecordBase):
""" AAAARecord: DNS AAAA record object.
Corresponds to WAPI object 'record:aaaa'
An AAAA (address) record maps a domain name to an IPv6 address. To
define a specific name-to-address mapping, add an AAAA record to a
previously defined authoritative forward-mapping zone.
On DELETE request, the boolean argument remove_associated_ptr
indicates whether the associated PTR records should be removed while
deleting the specified AAAA record. The PTR record will be removed
only if "Enable PTR record removal for A/AAAA records" is enabled in
Grid DNS properties.
Attributes:
aws_rte53_record_info: Aws Route 53 record information.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the record; maximum 256 characters.
creation_time: The time of the record creation in Epoch seconds
format.
creator: The record creator.Note that changing creator from or
to 'SYSTEM' value is not allowed.
ddns_principal: The GSS-TSIG principal that owns this record.
ddns_protected: Determines if the DDNS updates for this record
are allowed or not.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
discovered_data: The discovered data for this AAAA record.
dns_name: The name for an AAAA record in punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
forbid_reclamation: Determines if the reclamation is allowed for
the record or not.
ipv6addr: The IPv6 Address of the record.
last_queried: The time of the last DNS query in Epoch seconds
format.
ms_ad_user_data: The Microsoft Active Directory user related
information.
name: Name for the AAAA record in FQDN format. This value can be
in unicode format.
reclaimable: Determines if the record is reclaimable or not.
shared_record_group: The name of the shared record group in
which the record resides. This field exists only on
db_objects if this record is a shared record.
ttl: The Time To Live (TTL) value for the record. A 32-bit
unsigned integer that represents the duration, in seconds,
for which the record is valid (cached). Zero indicates that
the record should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS view in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:aaaa'
_fields = ['aws_rte53_record_info', 'cloud_info', 'comment',
'creation_time', 'creator', 'ddns_principal', 'ddns_protected',
'disable', 'discovered_data', 'dns_name', 'extattrs',
'forbid_reclamation', 'ipv6addr', 'last_queried',
'ms_ad_user_data', 'name', 'reclaimable',
'remove_associated_ptr', 'shared_record_group', 'ttl',
'use_ttl', 'view', 'zone']
_search_for_update_fields = ['ipv6addr', 'name', 'view']
_updateable_search_fields = ['comment', 'creator', 'ddns_principal',
'ipv6addr', 'name']
_all_searchable_fields = ['comment', 'creator', 'ddns_principal',
'ipv6addr', 'name', 'reclaimable', 'view',
'zone']
_return_fields = ['extattrs', 'ipv6addr', 'name', 'view']
_remap = {'ip': 'ipv6addr'}
_shadow_fields = ['_ref', 'ip']
_ip_version = 6
class AliasRecord(InfobloxObject):
""" AliasRecord: DNS Alias record object.
Corresponds to WAPI object 'record:alias'
Alias resource record allows you to create typed aliases for
standard DNS resource records which are resolved dynamically by an
authoritative server. Unlike CNAME Alias can be created in the zone
apex.
Attributes:
aws_rte53_record_info: Aws Route 53 record information.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the record; maximum 256 characters.
creator: The record creator.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
dns_name: The name for an Alias record in punycode format.
dns_target_name: Target name in punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
last_queried: The time of the last DNS query in Epoch seconds
format.
name: The name for an Alias record in FQDN format. This value
can be in unicode format. Regular expression search is not
supported for unicode values.
target_name: Target name in FQDN format. This value can be in
unicode format.
target_type: Target type.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:alias'
_fields = ['aws_rte53_record_info', 'cloud_info', 'comment', 'creator',
'disable', 'dns_name', 'dns_target_name', 'extattrs',
'last_queried', 'name', 'target_name', 'target_type', 'ttl',
'use_ttl', 'view', 'zone']
_search_for_update_fields = ['name', 'target_name', 'target_type', 'view']
_updateable_search_fields = ['comment', 'name', 'target_name',
'target_type', 'view']
_all_searchable_fields = ['comment', 'name', 'target_name', 'target_type',
'view', 'zone']
_return_fields = ['extattrs', 'name', 'target_name', 'target_type', 'view']
_remap = {}
_shadow_fields = ['_ref']
class CaaRecord(InfobloxObject):
""" CaaRecord: DNS CAA record object.
Corresponds to WAPI object 'record:caa'
The Certification Authority Authorization (CAA) DNS resource record
(RR) is used to specify which certificate authorities (CAs) are
allowed to issue certificates for a domain. For further details see
RFC-6844.
Attributes:
ca_flag: Flag of CAA record.
ca_tag: Tag of CAA record.
ca_value: Value of CAA record
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the record; maximum 256 characters.
creation_time: The creation time of the record.
creator: The record creator. Note that changing creator from or
to 'SYSTEM' value is not allowed.
ddns_principal: The GSS-TSIG principal that owns this record.
ddns_protected: Determines if the DDNS updates for this record
are allowed or not.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
dns_name: The name of the CAA record in punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
forbid_reclamation: Determines if the reclamation is allowed for
the record or not.
last_queried: The time of the last DNS query in Epoch seconds
format.
name: The CAA record name in FQDN format. This value can be in
unicode format.
reclaimable: Determines if the record is reclaimable or not.
ttl: The Time to Live (TTL) value for the record. A 32-bit
unsigned integer that represents the duration, in seconds,
for which the record is valid (cached). Zero indicates that
the record should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS view in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:caa'
_fields = ['ca_flag', 'ca_tag', 'ca_value', 'cloud_info', 'comment',
'creation_time', 'creator', 'ddns_principal', 'ddns_protected',
'disable', 'dns_name', 'extattrs', 'forbid_reclamation',
'last_queried', 'name', 'reclaimable', 'ttl', 'use_ttl', 'view',
'zone']
_search_for_update_fields = ['name', 'view']
_updateable_search_fields = ['ca_flag', 'ca_tag', 'ca_value', 'comment',
'creator', 'ddns_principal', 'name', 'view']
_all_searchable_fields = ['ca_flag', 'ca_tag', 'ca_value', 'comment',
'creator', 'ddns_principal', 'name',
'reclaimable', 'view', 'zone']
_return_fields = ['extattrs', 'name', 'view']
_remap = {}
_shadow_fields = ['_ref']
class CNAMERecord(InfobloxObject):
""" CNAMERecord: DNS CNAME record object.
Corresponds to WAPI object 'record:cname'
A CNAME record maps an alias to a canonical name. You can use CNAME
records in both forward- and IPv4 reverse-mapping zones to serve two
different purposes. (At this time, you cannot use CNAME records with
IPv6 reverse-mapping zones.)
In a forward-mapping zone, a CNAME record maps an alias to a
canonical (or official) name. CNAME records are often more
convenient to use than canonical names because they can be shorter
or more descriptive.
Attributes:
aws_rte53_record_info: Aws Route 53 record information.
canonical: Canonical name in FQDN format. This value can be in
unicode format.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the record; maximum 256 characters.
creation_time: The time of the record creation in Epoch seconds
format.
creator: The record creator.Note that changing creator from or
to 'SYSTEM' value is not allowed.
ddns_principal: The GSS-TSIG principal that owns this record.
ddns_protected: Determines if the DDNS updates for this record
are allowed or not.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
dns_canonical: Canonical name in punycode format.
dns_name: The name for the CNAME record in punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
forbid_reclamation: Determines if the reclamation is allowed for
the record or not.
last_queried: The time of the last DNS query in Epoch seconds
format.
name: The name for a CNAME record in FQDN format. This value can
be in unicode format. Regular expression search is not
supported for unicode values.
reclaimable: Determines if the record is reclaimable or not.
shared_record_group: The name of the shared record group in
which the record resides. This field exists only on
db_objects if this record is a shared record.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS view in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:cname'
_fields = ['aws_rte53_record_info', 'canonical', 'cloud_info', 'comment',
'creation_time', 'creator', 'ddns_principal', 'ddns_protected',
'disable', 'dns_canonical', 'dns_name', 'extattrs',
'forbid_reclamation', 'last_queried', 'name', 'reclaimable',
'shared_record_group', 'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['canonical', 'name', 'view']
_updateable_search_fields = ['canonical', 'comment', 'creator',
'ddns_principal', 'name', 'view']
_all_searchable_fields = ['canonical', 'comment', 'creator',
'ddns_principal', 'name', 'reclaimable', 'view',
'zone']
_return_fields = ['canonical', 'extattrs', 'name', 'view']
_remap = {}
_shadow_fields = ['_ref']
class DhcidRecord(InfobloxObject):
""" DhcidRecord: DNS DHCID record object.
Corresponds to WAPI object 'record:dhcid'
The DHCID DNS resource record (RR) is used to associate the DNS
domain names with the DHCP clients using the domain names.
Attributes:
creation_time: The creation time of the record.
creator: The record creator.
dhcid: The Base64 encoded DHCP client information.
dns_name: The name for the DHCID record in punycode format.
name: The name of the DHCID record in FQDN format.
ttl: The Time To Live (TTL) value for the record. A 32-bit
unsigned integer that represents the duration, in seconds,
for which the record is valid (cached). Zero indicates that
the record should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS view in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:dhcid'
_fields = ['creation_time', 'creator', 'dhcid', 'dns_name', 'name', 'ttl',
'use_ttl', 'view', 'zone']
_search_for_update_fields = ['name', 'view']
_updateable_search_fields = []
_all_searchable_fields = ['creator', 'dhcid', 'name', 'view', 'zone']
_return_fields = ['name', 'view']
_remap = {}
_shadow_fields = ['_ref']
class DnameRecord(InfobloxObject):
""" DnameRecord: DNS DNAME record object.
Corresponds to WAPI object 'record:dname'
A DNAME record maps all the names in one domain to those in another
domain, essentially substituting one domain name suffix with the
other.
Attributes:
cloud_info: The structure containing all cloud API related
information for this object.
comment: The comment for the record.
creation_time: The time of the record creation in Epoch seconds
format.
creator: The record creator.
ddns_principal: The GSS-TSIG principal that owns this record.
ddns_protected: Determines if the DDNS updates for this record
are allowed.
disable: Determines if the record is disabled.
dns_name: Name of a DNS DNAME record in punycode format.
dns_target: The target domain name of the DNS DNAME record in
punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
forbid_reclamation: Determines if reclamation is allowed for the
record.
last_queried: The time of the last DNS query in Epoch seconds
format.
name: The name of the DNS DNAME record in FQDN format.
reclaimable: Determines if the record is reclaimable.
shared_record_group: The name of the shared record group in
which the record resides. This field exists only on
db_objects if this record is a shared record.
target: The target domain name of the DNS DNAME record in FQDN
format.
ttl: Time To Live (TTL) value for the record. A 32-bit unsigned
integer that represents the duration, in seconds, that the
record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides, for
example "external".
zone: The name of the zone in which the record resides. For
example: "zone.com". If a view is not specified when
searching by zone, the default view is used.
"""
_infoblox_type = 'record:dname'
_fields = ['cloud_info', 'comment', 'creation_time', 'creator',
'ddns_principal', 'ddns_protected', 'disable', 'dns_name',
'dns_target', 'extattrs', 'forbid_reclamation', 'last_queried',
'name', 'reclaimable', 'shared_record_group', 'target', 'ttl',
'use_ttl', 'view', 'zone']
_search_for_update_fields = ['name', 'target', 'view']
_updateable_search_fields = ['comment', 'creator', 'ddns_principal',
'name', 'target']
_all_searchable_fields = ['comment', 'creator', 'ddns_principal', 'name',
'reclaimable', 'target', 'view', 'zone']
_return_fields = ['extattrs', 'name', 'target', 'view']
_remap = {}
_shadow_fields = ['_ref']
class DnskeyRecord(InfobloxObject):
""" DnskeyRecord: DNS DNSKEY record object.
Corresponds to WAPI object 'record:dnskey'
The DNSKEY resource record stores public keys for the DNSSEC
authentication process. The DNSKEY records are generated
automatically when the corresponding authoritative zone is signed.
The DNSKEY resource record object is read-only.
The DNSKEY resource record is defined in RFC 4034.
Attributes:
algorithm: The public key encryption algorithm of a DNSKEY
Record object.
comment: The comment for the record.
creation_time: The creation time of the record.
creator: The record creator.
dns_name: Name of a DNSKEY record in punycode format.
flags: The flags field is a 16-bit unsigned integer. Currently,
only two bits of this value are used: the least significant
bit and bit 7. The other bits are reserved for future use
and must be zero. If bit 7 is set to 1, the key is a DNS
zone key. Otherwise, the key is not a zone key and cannot be
used to verify zone data. The least significant bit
indicates "secure entry point property". If it is not zero,
the key is a key signing key (KSK type). Otherwise, the key
type is ZSK.
key_tag: The key tag identifying the public key of a DNSKEY
Record object.
last_queried: The time of the last DNS query in Epoch seconds
format.
name: The name of the DNSKEY record in FQDN format. It has to be
the same as the zone, where the record resides.
public_key: The public key. The format of the returned value
depends on the key algorithm.
ttl: The Time To Live (TTL) value for the record. A 32-bit
unsigned integer that represents the duration, in seconds,
for which the record is valid (cached). Zero indicates that
the record should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:dnskey'
_fields = ['algorithm', 'comment', 'creation_time', 'creator', 'dns_name',
'flags', 'key_tag', 'last_queried', 'name', 'public_key', 'ttl',
'use_ttl', 'view', 'zone']
_search_for_update_fields = ['name', 'view']
_updateable_search_fields = []
_all_searchable_fields = ['algorithm', 'comment', 'creator', 'flags',
'key_tag', 'name', 'public_key', 'view', 'zone']
_return_fields = ['name', 'view']
_remap = {}
_shadow_fields = ['_ref']
class DsRecord(InfobloxObject):
""" DsRecord: DNS DS record object.
Corresponds to WAPI object 'record:ds'
The DS key record is a part of the DNS security extension records.
The DS RR contains a hash of a child zone's KSK and can be used as a
trust anchor in some security-aware resolvers and to create a secure
delegation point for a signed subzone in DNS servers. It is used to
authorize the DNSKEY records of the child zone and thus to establish
the DNSSEC chain of trust.
The DS resource record is defined in RFC 4034.
The DS resource records are automatically generated upon the signing
of the child zone of an authoritative zone residing on the
appliance.
Attributes:
algorithm: The algorithm of the DNSKEY RR to which this DS RR
refers. It uses the same algorithm values and types as the
corresponding DNSKEY RR.
cloud_info: Structure containing all cloud API related
information for this object.
comment: The comment for the record.
creation_time: The creation time of the record.
creator: Creator of the record.
digest: The digest of the DNSKEY resource record that is stored
in a DS Record object.
digest_type: The algorithm used to construct the digest.
dns_name: The name for the DS record in punycode format.
key_tag: The key tag value that is used to determine which key
to use to verify signatures.
last_queried: The time of the last DNS query in Epoch seconds
format.
name: The name of the DNS DS record in FQDN format.
ttl: The Time To Live (TTL) value for the record. A 32-bit
unsigned integer that represents the duration, in seconds,
for which the record is valid (cached). Zero indicates that
the record should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:ds'
_fields = ['algorithm', 'cloud_info', 'comment', 'creation_time',
'creator', 'digest', 'digest_type', 'dns_name', 'key_tag',
'last_queried', 'name', 'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['name', 'view']
_updateable_search_fields = []
_all_searchable_fields = ['algorithm', 'comment', 'creator', 'digest_type',
'key_tag', 'name', 'view', 'zone']
_return_fields = ['name', 'view']
_remap = {}
_shadow_fields = ['_ref']
class DtclbdnRecord(InfobloxObject):
""" DtclbdnRecord: DTC LBDN object.
Corresponds to WAPI object 'record:dtclbdn'
Load Balanced Domain Name (LBDN) is a Load balanced domain name
record type, which is served by Infoblox Name Servers. LBDN is a
qualified domain name associated with a specific service such as
ftp.abc.com or www.abc.com. A LBDN record must be associated to a
zone for which Infoblox is authoritative for. User may assign
multiple "Resource Pools" to a LBDN record. User may also assign one
or more DNS Distribution (Load balancing) methods an LBDN record.
User must not be able to create multiple LBDNs for the same name.
Attributes:
comment: The comment for the DTC LBDN record object; maximum 256
characters.
disable: Determines whether the DTC LBDN is disabled or not.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
last_queried: The time of the last DNS query in Epoch seconds
format.
lbdn: The DTC LBDN object.
name: The display name of the DTC LBDN record.
pattern: An FQDN pattern, LBDN wildcards can be used.
view: The name of the DNS View in which the record resides.
zone: The name of the zone in which the record resides.
"""
_infoblox_type = 'record:dtclbdn'
_fields = ['comment', 'disable', 'extattrs', 'last_queried', 'lbdn',
'name', 'pattern', 'view', 'zone']
_search_for_update_fields = ['name', 'view', 'zone']
_updateable_search_fields = []
_all_searchable_fields = ['comment', 'disable', 'name', 'pattern', 'view',
'zone']
_return_fields = ['comment', 'extattrs', 'name', 'view', 'zone']
_remap = {}
_shadow_fields = ['_ref']
class HostRecord(InfobloxObject):
@classmethod
def get_v4_class(cls):
return HostRecordV4
@classmethod
def get_v6_class(cls):
return HostRecordV6
class HostRecordV4(HostRecord):
""" HostRecordV4: DNS Host record object.
Corresponds to WAPI object 'record:host'
A host record defines attributes for a node, such as the name-to-
address and address-to-name mapping. This alleviates having to
specify an A record and a PTR record separately for the same node. A
host can also define aliases and DHCP fixed address nodes. The zone
must be created first before adding a host record for the zone.
Attributes:
aliases: This is a list of aliases for the host. The aliases
must be in FQDN format. This value can be in unicode format.
allow_telnet: This field controls whether the credential is used
for both the Telnet and SSH credentials. If set to False,
the credential is used only for SSH.
cli_credentials: The CLI credentials for the host record.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the record; maximum 256 characters.
configure_for_dns: When configure_for_dns is false, the host
does not have parent zone information.
creation_time: The time of the record creation in Epoch seconds
format.
ddns_protected: Determines if the DDNS updates for this record
are allowed or not.
device_description: The description of the device.
device_location: The location of the device.
device_type: The type of the device.
device_vendor: The vendor of the device.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
disable_discovery: Determines if the discovery for the record is
disabled or not. False means that the discovery is enabled.
dns_aliases: The list of aliases for the host in punycode
format.
dns_name: The name for a host record in punycode format.
enable_immediate_discovery: Determines if the discovery for the
record should be immediately enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
ipv4addrs: This is a list of IPv4 Addresses for the host.
ipv6addrs: This is a list of IPv6 Addresses for the host.
last_queried: The time of the last DNS query in Epoch seconds
format.
ms_ad_user_data: The Microsoft Active Directory user related
information.
name: The host name in FQDN format This value can be in unicode
format. Regular expression search is not supported for
unicode values.
network_view: The name of the network view in which the host
record resides.
restart_if_needed: Restarts the member service.
rrset_order: The value of this field specifies the order in
which resource record sets are returned.The possible values
are "cyclic", "random" and "fixed".
snmp3_credential: The SNMPv3 credential for a host record.
snmp_credential: The SNMPv1 or SNMPv2 credential for a host
record.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_cli_credentials: If set to true, the CLI credential will
override member-level settings.
use_snmp3_credential: Determines if the SNMPv3 credential should
be used for the record.
use_snmp_credential: If set to true, the SNMP credential will
override member-level settings.
use_ttl: Use flag for: ttl
view: The name of the DNS view in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:host'
_fields = ['aliases', 'allow_telnet', 'cli_credentials', 'cloud_info',
'comment', 'configure_for_dns', 'creation_time',
'ddns_protected', 'device_description', 'device_location',
'device_type', 'device_vendor', 'disable', 'disable_discovery',
'dns_aliases', 'dns_name', 'enable_immediate_discovery',
'extattrs', 'ipv4addrs', 'last_queried', 'ms_ad_user_data',
'name', 'network_view', 'restart_if_needed', 'rrset_order',
'snmp3_credential', 'snmp_credential', 'ttl',
'use_cli_credentials', 'use_snmp3_credential',
'use_snmp_credential', 'use_ttl', 'view', 'zone', 'mac']
_search_for_update_fields = ['name', 'view', 'mac', 'ipv4addr']
_updateable_search_fields = ['comment', 'device_description',
'device_location', 'device_type',
'device_vendor', 'name', 'view']
_all_searchable_fields = ['comment', 'device_description',
'device_location', 'device_type',
'device_vendor', 'name', 'network_view', 'view',
'zone', 'mac', 'ipv4addr']
_return_fields = ['extattrs', 'ipv4addrs', 'name', 'view', 'aliases']
_remap = {'ip': 'ipv4addrs', 'ips': 'ipv4addrs'}
_shadow_fields = ['_ref', 'ipv4addr']
_ip_version = 4
def _ip_setter(self, ipaddr_name, ipaddrs_name, ips):
"""Setter for ip fields
Accept as input string or list of IP instances.
String case:
only ipvXaddr is going to be filled, that is enough to perform
host record search using ip
List of IP instances case:
ipvXaddrs is going to be filled with ips content,
so create can be issues, since fully prepared IP objects in place.
ipXaddr is also filled to be able perform search on NIOS
and verify that no such host record exists yet.
"""
if isinstance(ips, six.string_types):
setattr(self, ipaddr_name, ips)
elif isinstance(ips, (list, tuple)) and isinstance(ips[0], IP):
setattr(self, ipaddr_name, ips[0].ip)
setattr(self, ipaddrs_name, ips)
elif isinstance(ips, IP):
setattr(self, ipaddr_name, ips.ip)
setattr(self, ipaddrs_name, [ips])
elif ips is None:
setattr(self, ipaddr_name, None)
setattr(self, ipaddrs_name, None)
else:
raise ValueError(
"Invalid format of ip passed in: %s."
"Should be string or list of NIOS IP objects." % ips)
@property
def ipv4addrs(self):
""":meta private:"""
return self._ipv4addrs
@ipv4addrs.setter
def ipv4addrs(self, ips):
"""Setter for ipv4addrs/ipv4addr"""
self._ip_setter('ipv4addr', '_ipv4addrs', ips)
@staticmethod
def _build_ip(ips):
if not ips:
raise ib_ex.HostRecordNotPresent()
ip = ips[0]['ipv4addr']
if not ib_utils.is_valid_ip(ip):
raise ib_ex.InfobloxInvalidIp(ip=ip)
return [IPv4.from_dict(ip_addr) for ip_addr in ips]
_custom_field_processing = {
'cli_credentials': DiscoveryClicredential.from_dict,
'ipv4addrs': _build_ip.__func__,
}
class HostRecordV6(HostRecord):
""" HostRecordV6: DNS Host record object.
Corresponds to WAPI object 'record:host'
A host record defines attributes for a node, such as the name-to-
address and address-to-name mapping. This alleviates having to
specify an A record and a PTR record separately for the same node. A
host can also define aliases and DHCP fixed address nodes. The zone
must be created first before adding a host record for the zone.
Attributes:
aliases: This is a list of aliases for the host. The aliases
must be in FQDN format. This value can be in unicode format.
allow_telnet: This field controls whether the credential is used
for both the Telnet and SSH credentials. If set to False,
the credential is used only for SSH.
cli_credentials: The CLI credentials for the host record.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the record; maximum 256 characters.
configure_for_dns: When configure_for_dns is false, the host
does not have parent zone information.
creation_time: The time of the record creation in Epoch seconds
format.
ddns_protected: Determines if the DDNS updates for this record
are allowed or not.
device_description: The description of the device.
device_location: The location of the device.
device_type: The type of the device.
device_vendor: The vendor of the device.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
disable_discovery: Determines if the discovery for the record is
disabled or not. False means that the discovery is enabled.
dns_aliases: The list of aliases for the host in punycode
format.
dns_name: The name for a host record in punycode format.
enable_immediate_discovery: Determines if the discovery for the
record should be immediately enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
ipv4addrs: This is a list of IPv4 Addresses for the host.
ipv6addrs: This is a list of IPv6 Addresses for the host.
last_queried: The time of the last DNS query in Epoch seconds
format.
ms_ad_user_data: The Microsoft Active Directory user related
information.
name: The host name in FQDN format This value can be in unicode
format. Regular expression search is not supported for
unicode values.
network_view: The name of the network view in which the host
record resides.
restart_if_needed: Restarts the member service.
rrset_order: The value of this field specifies the order in
which resource record sets are returned.The possible values
are "cyclic", "random" and "fixed".
snmp3_credential: The SNMPv3 credential for a host record.
snmp_credential: The SNMPv1 or SNMPv2 credential for a host
record.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_cli_credentials: If set to true, the CLI credential will
override member-level settings.
use_snmp3_credential: Determines if the SNMPv3 credential should
be used for the record.
use_snmp_credential: If set to true, the SNMP credential will
override member-level settings.
use_ttl: Use flag for: ttl
view: The name of the DNS view in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:host'
_fields = ['aliases', 'allow_telnet', 'cli_credentials', 'cloud_info',
'comment', 'configure_for_dns', 'creation_time',
'ddns_protected', 'device_description', 'device_location',
'device_type', 'device_vendor', 'disable', 'disable_discovery',
'dns_aliases', 'dns_name', 'enable_immediate_discovery',
'extattrs', 'ipv6addrs', 'last_queried', 'ms_ad_user_data',
'name', 'network_view', 'restart_if_needed', 'rrset_order',
'snmp3_credential', 'snmp_credential', 'ttl',
'use_cli_credentials', 'use_snmp3_credential',
'use_snmp_credential', 'use_ttl', 'view', 'zone', 'mac']
_search_for_update_fields = ['name', 'view', 'mac', 'ipv6addr']
_updateable_search_fields = ['comment', 'device_description',
'device_location', 'device_type',
'device_vendor', 'name', 'view']
_all_searchable_fields = ['comment', 'device_description',
'device_location', 'device_type',
'device_vendor', 'name', 'network_view', 'view',
'zone', 'mac', 'ipv6addr']
_return_fields = ['extattrs', 'ipv6addrs', 'name', 'view', 'aliases']
_remap = {'ip': 'ipv6addrs', 'ips': 'ipv6addrs'}
_shadow_fields = ['_ref', 'ipv6addr']
_ip_version = 6
def _ip_setter(self, ipaddr_name, ipaddrs_name, ips):
"""Setter for ip fields
Accept as input string or list of IP instances.
String case:
only ipvXaddr is going to be filled, that is enough to perform
host record search using ip
List of IP instances case:
ipvXaddrs is going to be filled with ips content,
so create can be issues, since fully prepared IP objects in place.
ipXaddr is also filled to be able perform search on NIOS
and verify that no such host record exists yet.
"""
if isinstance(ips, six.string_types):
setattr(self, ipaddr_name, ips)
elif isinstance(ips, (list, tuple)) and isinstance(ips[0], IP):
setattr(self, ipaddr_name, ips[0].ip)
setattr(self, ipaddrs_name, ips)
elif isinstance(ips, IP):
setattr(self, ipaddr_name, ips.ip)
setattr(self, ipaddrs_name, [ips])
elif ips is None:
setattr(self, ipaddr_name, None)
setattr(self, ipaddrs_name, None)
else:
raise ValueError(
"Invalid format of ip passed in: %s."
"Should be string or list of NIOS IP objects." % ips)
@property
def ipv6addrs(self):
""":meta private:"""
return self._ipv6addrs
@ipv6addrs.setter
def ipv6addrs(self, ips):
"""Setter for ipv6addrs/ipv6addr"""
self._ip_setter('ipv6addr', '_ipv6addrs', ips)
@staticmethod
def _build_ip(ips):
if not ips:
raise ib_ex.HostRecordNotPresent()
ip = ips[0]['ipv6addr']
if not ib_utils.is_valid_ip(ip):
raise ib_ex.InfobloxInvalidIp(ip=ip)
return [IPv6.from_dict(ip_addr) for ip_addr in ips]
_custom_field_processing = {
'cli_credentials': DiscoveryClicredential.from_dict,
'ipv6addrs': _build_ip.__func__,
}
class IPv4HostAddress(InfobloxObject):
""" IPv4HostAddress: IPv4 Host address object.
Corresponds to WAPI object 'record:host_ipv4addr'
A Host Address is an object used to specify addresses in the
record.host object .
Fields other than ipv4addr, host and configure_for_dhcp are returned
only when configure_for_dhcp is true.
Attributes:
bootfile: The name of the boot file the client must download.
bootserver: The IP address or hostname of the boot file server
where the boot file is stored.
configure_for_dhcp: Set this to True to enable the DHCP
configuration for this host address.
deny_bootp: Set this to True to disable the BOOTP settings and
deny BOOTP boot requests.
discover_now_status: The discovery status of this Host Address.
discovered_data: The discovered data for this Host Address.
enable_pxe_lease_time: Set this to True if you want the DHCP
server to use a different lease time for PXE clients. You
can specify the duration of time it takes a host to connect
to a boot server, such as a TFTP server, and download the
file it needs to boot. For example, set a longer lease time
if the client downloads an OS (operating system) or
configuration file, or set a shorter lease time if the
client downloads only configuration changes. Enter the lease
time for the preboot execution environment for hosts to boot
remotely from a server.
host: The host to which the host address belongs, in FQDN
format. It is only present when the host address object is
not returned as part of a host.
ignore_client_requested_options: If this field is set to false,
the appliance returns all DHCP options the client is
eligible to receive, rather than only the list of options
the client has requested.
ipv4addr: The IPv4 Address of the host.
is_invalid_mac: This flag reflects whether the MAC address for
this host address is invalid.
last_queried: The time of the last DNS query in Epoch seconds
format.
logic_filter_rules: This field contains the logic filters to be
applied on the this host address.This list corresponds to
the match rules that are written to the dhcpd configuration
file.
mac: The MAC address for this host address.
match_client: Set this to 'MAC_ADDRESS' to assign the IP address
to the selected host, provided that the MAC address of the
requesting host matches the MAC address that you specify in
the field.Set this to 'RESERVED' to reserve this particular
IP address for future use, or if the IP address is
statically configured on a system (the Infoblox server does
not assign the address from a DHCP request).
ms_ad_user_data: The Microsoft Active Directory user related
information.
network: The network of the host address, in FQDN/CIDR format.
network_view: The name of the network view in which the host
address resides.
nextserver: The name in FQDN format and/or IPv4 Address of the
next server that the host needs to boot.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
pxe_lease_time: The lease time for PXE clients, see
enable_pxe_lease_time for more information.
reserved_interface: The reference to the reserved interface to
which the device belongs.
use_bootfile: Use flag for: bootfile
use_bootserver: Use flag for: bootserver
use_deny_bootp: Use flag for: deny_bootp
use_for_ea_inheritance: Set this to True when using this host
address for EA inheritance.
use_ignore_client_requested_options: Use flag for:
ignore_client_requested_options
use_logic_filter_rules: Use flag for: logic_filter_rules
use_nextserver: Use flag for: nextserver
use_options: Use flag for: options
use_pxe_lease_time: Use flag for: pxe_lease_time
"""
_infoblox_type = 'record:host_ipv4addr'
_fields = ['bootfile', 'bootserver', 'configure_for_dhcp', 'deny_bootp',
'discover_now_status', 'discovered_data',
'enable_pxe_lease_time', 'host',
'ignore_client_requested_options', 'ipv4addr', 'is_invalid_mac',
'last_queried', 'logic_filter_rules', 'mac', 'match_client',
'ms_ad_user_data', 'network', 'network_view', 'nextserver',
'options', 'pxe_lease_time', 'reserved_interface',
'use_bootfile', 'use_bootserver', 'use_deny_bootp',
'use_for_ea_inheritance', 'use_ignore_client_requested_options',
'use_logic_filter_rules', 'use_nextserver', 'use_options',
'use_pxe_lease_time']
_search_for_update_fields = ['ipv4addr', 'mac']
_updateable_search_fields = ['ipv4addr', 'mac']
_all_searchable_fields = ['ipv4addr', 'mac', 'network_view']
_return_fields = ['configure_for_dhcp', 'host', 'ipv4addr', 'mac']
_remap = {'ip': 'ipv4addr'}
_shadow_fields = ['_ref', 'ip']
_custom_field_processing = {
'logic_filter_rules': Logicfilterrule.from_dict,
'options': DhcpOption.from_dict,
}
class IPv6HostAddress(InfobloxObject):
""" IPv6HostAddress: IPv6 Host address object.
Corresponds to WAPI object 'record:host_ipv6addr'
An IPv6 host address is an object used to specify addresses in the
record.host object .
Fields other than ipv6addr, host and configure_for_dhcp are returned
only when configure_for_dhcp is set to True.
Attributes:
address_type: Type of the DHCP IPv6 Host Address object.
configure_for_dhcp: Set this to True to enable the DHCP
configuration for this IPv6 host address.
discover_now_status: The discovery status of this IPv6 Host
Address.
discovered_data: The discovered data for this host address.
domain_name: Use this method to set or retrieve the domain_name
value of the DHCP IPv6 Host Address object.
domain_name_servers: The IPv6 addresses of DNS recursive name
servers to which the DHCP client can send name resolution
requests. The DHCP server includes this information in the
DNS Recursive Name Server option in Advertise, Rebind,
Information-Request, and Reply messages.
duid: DHCPv6 Unique Identifier (DUID) of the address object.
host: The host to which the IPv6 host address belongs, in FQDN
format. It is only present when the host address object is
not returned as part of a host.
ipv6addr: The IPv6 Address prefix of the DHCP IPv6 Host Address
object.
ipv6prefix: The IPv6 Address prefix of the DHCP IPv6 Host
Address object.
ipv6prefix_bits: Prefix bits of the DHCP IPv6 Host Address
object.
last_queried: The time of the last DNS query in Epoch seconds
format.
logic_filter_rules: This field contains the logic filters to be
applied on the this host address.This list corresponds to
the match rules that are written to the dhcpd configuration
file.
match_client: Set this to 'DUID' to assign the IP address to the
selected host, provided that the DUID of the requesting host
matches the DUID that you specify in the field.Set this to
'RESERVED' to reserve this particular IP address for future
use, or if the IP address is statically configured on a
system (the Infoblox server does not assign the address from
a DHCP request).
ms_ad_user_data: The Microsoft Active Directory user related
information.
network: The network of the host address, in FQDN/CIDR format.
network_view: The name of the network view in which the host
address resides.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
preferred_lifetime: Use this method to set or retrieve the
preferred lifetime value of the DHCP IPv6 Host Address
object.
reserved_interface: The reference to the reserved interface to
which the device belongs.
use_domain_name: Use flag for: domain_name
use_domain_name_servers: Use flag for: domain_name_servers
use_for_ea_inheritance: Set this to True when using this host
address for EA inheritance.
use_logic_filter_rules: Use flag for: logic_filter_rules
use_options: Use flag for: options
use_preferred_lifetime: Use flag for: preferred_lifetime
use_valid_lifetime: Use flag for: valid_lifetime
valid_lifetime: Use this method to set or retrieve the valid
lifetime value of the DHCP IPv6 Host Address object.
"""
_infoblox_type = 'record:host_ipv6addr'
_fields = ['address_type', 'configure_for_dhcp', 'discover_now_status',
'discovered_data', 'domain_name', 'domain_name_servers', 'duid',
'host', 'ipv6addr', 'ipv6prefix', 'ipv6prefix_bits',
'last_queried', 'logic_filter_rules', 'match_client',
'ms_ad_user_data', 'network', 'network_view', 'options',
'preferred_lifetime', 'reserved_interface', 'use_domain_name',
'use_domain_name_servers', 'use_for_ea_inheritance',
'use_logic_filter_rules', 'use_options',
'use_preferred_lifetime', 'use_valid_lifetime',
'valid_lifetime']
_search_for_update_fields = ['duid', 'ipv6addr']
_updateable_search_fields = ['duid', 'ipv6addr', 'ipv6prefix',
'ipv6prefix_bits']
_all_searchable_fields = ['duid', 'ipv6addr', 'ipv6prefix',
'ipv6prefix_bits', 'network_view']
_return_fields = ['configure_for_dhcp', 'duid', 'host', 'ipv6addr']
_remap = {'ip': 'ipv6addr'}
_shadow_fields = ['_ref', 'ip']
_custom_field_processing = {
'logic_filter_rules': Logicfilterrule.from_dict,
'options': DhcpOption.from_dict,
}
class MXRecord(InfobloxObject):
""" MXRecord: DNS MX record object.
Corresponds to WAPI object 'record:mx'
An MX (mail exchanger) record maps a domain name to a mail
exchanger. A mail exchanger is a server that either delivers or
forwards mail. You can specify one or more mail exchangers for a
zone, as well as the preference for using each mail exchanger. A
standard MX record applies to a particular domain or subdomain.
Attributes:
aws_rte53_record_info: Aws Route 53 record information.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the record; maximum 256 characters.
creation_time: The time of the record creation in Epoch seconds
format.
creator: The record creator.Note that changing creator from or
to 'SYSTEM' value is not allowed.
ddns_principal: The GSS-TSIG principal that owns this record.
ddns_protected: Determines if the DDNS updates for this record
are allowed or not.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
dns_mail_exchanger: The Mail exchanger name in punycode format.
dns_name: The name for a MX record in punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
forbid_reclamation: Determines if the reclamation is allowed for
the record or not.
last_queried: The time of the last DNS query in Epoch seconds
format.
mail_exchanger: Mail exchanger name in FQDN format. This value
can be in unicode format.
name: Name for the MX record in FQDN format. This value can be
in unicode format.
preference: Preference value, 0 to 65535 (inclusive) in 32-bit
unsigned integer format.
reclaimable: Determines if the record is reclaimable or not.
shared_record_group: The name of the shared record group in
which the record resides. This field exists only on
db_objects if this record is a shared record.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS view in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:mx'
_fields = ['aws_rte53_record_info', 'cloud_info', 'comment',
'creation_time', 'creator', 'ddns_principal', 'ddns_protected',
'disable', 'dns_mail_exchanger', 'dns_name', 'extattrs',
'forbid_reclamation', 'last_queried', 'mail_exchanger', 'name',
'preference', 'reclaimable', 'shared_record_group', 'ttl',
'use_ttl', 'view', 'zone']
_search_for_update_fields = ['mail_exchanger', 'name', 'preference',
'view']
_updateable_search_fields = ['comment', 'creator', 'ddns_principal',
'mail_exchanger', 'name', 'preference',
'view']
_all_searchable_fields = ['comment', 'creator', 'ddns_principal',
'mail_exchanger', 'name', 'preference',
'reclaimable', 'view', 'zone']
_return_fields = ['extattrs', 'mail_exchanger', 'name', 'preference',
'view']
_remap = {}
_shadow_fields = ['_ref']
class NaptrRecord(InfobloxObject):
""" NaptrRecord: DNS NAPTR record object.
Corresponds to WAPI object 'record:naptr'
A DNS NAPTR object represents a Naming Authority Pointer (NAPTR)
resource record. This resource record specifies a regular
expression-based rewrite rule that, when applied to an existing
string, produces a new domain name or URI.
Attributes:
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the record; maximum 256 characters.
creation_time: The time of the record creation in Epoch seconds
format.
creator: The record creator.Note that changing creator from or
to 'SYSTEM' value is not allowed.
ddns_principal: The GSS-TSIG principal that owns this record.
ddns_protected: Determines if the DDNS updates for this record
are allowed or not.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
dns_name: The name of the NAPTR record in punycode format.
dns_replacement: The replacement field of the NAPTR record in
punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
flags: The flags used to control the interpretation of the
fields for an NAPTR record object. Supported values for the
flags field are "U", "S", "P" and "A".
forbid_reclamation: Determines if the reclamation is allowed for
the record or not.
last_queried: The time of the last DNS query in Epoch seconds
format.
name: The name of the NAPTR record in FQDN format. This value
can be in unicode format.
order: The order parameter of the NAPTR records. This parameter
specifies the order in which the NAPTR rules are applied
when multiple rules are present. Valid values are from 0 to
65535 (inclusive), in 32-bit unsigned integer format.
preference: The preference of the NAPTR record. The preference
field determines the order NAPTR records are processed when
multiple records with the same order parameter are present.
Valid values are from 0 to 65535 (inclusive), in 32-bit
unsigned integer format.
reclaimable: Determines if the record is reclaimable or not.
regexp: The regular expression-based rewriting rule of the NAPTR
record. This should be a POSIX compliant regular expression,
including the substitution rule and flags. Refer to RFC 2915
for the field syntax details.
replacement: The replacement field of the NAPTR record object.
For nonterminal NAPTR records, this field specifies the next
domain name to look up. This value can be in unicode format.
services: The services field of the NAPTR record object; maximum
128 characters. The services field contains protocol and
service identifiers, such as "http+E2U" or "SIPS+D2T".
ttl: The Time to Live (TTL) value for the NAPTR record. A 32-bit
unsigned integer that represents the duration, in seconds,
for which the record is valid (cached). Zero indicates that
the record should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS view in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:naptr'
_fields = ['cloud_info', 'comment', 'creation_time', 'creator',
'ddns_principal', 'ddns_protected', 'disable', 'dns_name',
'dns_replacement', 'extattrs', 'flags', 'forbid_reclamation',
'last_queried', 'name', 'order', 'preference', 'reclaimable',
'regexp', 'replacement', 'services', 'ttl', 'use_ttl', 'view',
'zone']
_search_for_update_fields = ['name', 'order', 'preference', 'replacement',
'services', 'view']
_updateable_search_fields = ['comment', 'creator', 'ddns_principal',
'flags', 'name', 'order', 'preference',
'replacement', 'services']
_all_searchable_fields = ['comment', 'creator', 'ddns_principal', 'flags',
'name', 'order', 'preference', 'reclaimable',
'replacement', 'services', 'view', 'zone']
_return_fields = ['extattrs', 'name', 'order', 'preference', 'regexp',
'replacement', 'services', 'view']
_remap = {}
_shadow_fields = ['_ref']
class NsRecord(InfobloxObject):
""" NsRecord: DNS NS record object.
Corresponds to WAPI object 'record:ns'
A DNS NS record identifies an authoritative DNS server for a domain.
Each authoritative DNS server must have an NS record. The appliance
automatically creates an NS record when you assign a grid member as
the primary server for a zone. You can manually create NS records
for other zones.
Attributes:
addresses: The list of zone name servers.
cloud_info: Structure containing all cloud API related
information for this object.
creator: The record creator.
dns_name: The name of the NS record in punycode format.
last_queried: The time of the last DNS query in Epoch seconds
format.
ms_delegation_name: The MS delegation point name.
name: The name of the NS record in FQDN format. This value can
be in unicode format.
nameserver: The domain name of an authoritative server for the
redirected zone.
policy: The host name policy for the record.
view: The name of the DNS view in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:ns'
_fields = ['addresses', 'cloud_info', 'creator', 'dns_name',
'last_queried', 'ms_delegation_name', 'name', 'nameserver',
'policy', 'view', 'zone']
_search_for_update_fields = ['name', 'nameserver', 'view']
_updateable_search_fields = ['nameserver']
_all_searchable_fields = ['creator', 'name', 'nameserver', 'view', 'zone']
_return_fields = ['name', 'nameserver', 'view']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'addresses': Zonenameserver.from_dict,
}
class NsecRecord(InfobloxObject):
""" NsecRecord: DNS NSEC record object.
Corresponds to WAPI object 'record:nsec'
NSEC resource record is one of the resource records included in the
DNS security extension mechanism (DNSSEC). This record is used to
provide authenticated denial of existence of a resource record in
response to a resolver query.
NSEC resource records are defined in RFC 4034.
NSEC records are automatically generated upon the signing of an
authoritative zone.
The name part of a DNS NSEC object reference has the following
components:
The name of the record.
The name of the view.
Example: record:nsec/ZG5zLmJpsaG9zdA:us.example.com/default.external
Attributes:
cloud_info: Structure containing all cloud API related
information for this object.
creation_time: Time that the record was created.
creator: Creator of the record.
dns_name: Name for an NSEC record in punycode format.
dns_next_owner_name: Name of the next owner in punycode format.
last_queried: The time of the last DNS query in Epoch seconds
format.
name: The name of the NSEC record in FQDN format.
next_owner_name: Name of the next owner that has authoritative
data or that contains a delegation point NS record.
rrset_types: The RRSet types that exist at the original owner
name of the NSEC RR.
ttl: The Time To Live (TTL) value for the record. A 32-bit
unsigned integer that represents the duration, in seconds,
for which the record is valid (cached). Zero indicates that
the record should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:nsec'
_fields = ['cloud_info', 'creation_time', 'creator', 'dns_name',
'dns_next_owner_name', 'last_queried', 'name',
'next_owner_name', 'rrset_types', 'ttl', 'use_ttl', 'view',
'zone']
_search_for_update_fields = ['name', 'view']
_updateable_search_fields = []
_all_searchable_fields = ['creator', 'name', 'next_owner_name', 'view',
'zone']
_return_fields = ['name', 'view']
_remap = {}
_shadow_fields = ['_ref']
class Nsec3Record(InfobloxObject):
""" Nsec3Record: DNS NSEC3 record object.
Corresponds to WAPI object 'record:nsec3'
When a name server receives a request for a domain name that does
not exist in a zone, the name server sends an authenticated negative
response in the form of an NSEC or NSEC3 RR. NSEC and NSEC3 records
contain the next secure domain name in a zone and list the RR types
present at the NSEC or NSEC3 RR's owner name. The difference between
an NSEC and NSEC3 RRs is that the owner name in an NSEC3 RR is a
cryptographic hash of the original owner name prepended to the name
of the zone. NSEC3 RRs protect against zone enumeration.
NSEC3 resource record is desribed in RFC 5155.
NSEC3 records are automatically generated during signing of the
corresponding zone.
The name part of a DNS NSEC3 object reference has the following
components:
The name of the record.
The name of the view.
Example:
record:nsec3/ZG5zLmJpsaG9zdA:us.example.com/default.external
Attributes:
algorithm: The hash algorithm that was used.
cloud_info: Structure containing all cloud API related
information for this object.
creation_time: The creation time of the record.
creator: Creator of the record.
dns_name: Name for an NSEC3 record in punycode format.
flags: The set of 8 one-bit flags, of which only one flag, the
Opt-Out flag, is defined by RFC 5155. The Opt-Out flag
indicates whether the NSEC3 record covers unsigned
delegations.
iterations: The number of times the hash function was performed.
last_queried: The time of the last DNS query in Epoch seconds
format.
name: The name of the NSEC3 record in FQDN format.
next_owner_name: The hashed next owner name that has
authoritative data or that contains a delegation point NS
record.
rrset_types: The RRSet types that exist at the original owner
name of the NSEC3 RR.
salt: A series of case-insensitive hexadecimal digits. It is
appended to the original owner name as protection against
pre-calculated dictionary attacks. A new salt value is
generated when ZSK rolls over. You can control the period of
the rollover. For random salt values, the selected length is
between one and 15 octets.
ttl: The Time To Live (TTL) value for the record. A 32-bit
unsigned integer that represents the duration, in seconds,
for which the record is valid (cached). Zero indicates that
the record should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:nsec3'
_fields = ['algorithm', 'cloud_info', 'creation_time', 'creator',
'dns_name', 'flags', 'iterations', 'last_queried', 'name',
'next_owner_name', 'rrset_types', 'salt', 'ttl', 'use_ttl',
'view', 'zone']
_search_for_update_fields = ['name', 'view']
_updateable_search_fields = []
_all_searchable_fields = ['algorithm', 'creator', 'flags', 'iterations',
'name', 'view', 'zone']
_return_fields = ['name', 'view']
_remap = {}
_shadow_fields = ['_ref']
class Nsec3ParamRecord(InfobloxObject):
""" Nsec3ParamRecord: DNS NSEC3 record object.
Corresponds to WAPI object 'record:nsec3param'
An authoritative DNS server uses NSEC3PARAM RRs to determine which
NSEC3 records it includes in its negative responses. An NSEC3PARAM
RR contains the parameters that an authoritative server needs to
calculate hashed owner names. As stated in RFC 5155, the presence of
an NSEC3PARAM RR at a zone apex indicates that the specified
parameters may be used by authoritative servers to choose an
appropriate set of NSEC3 RRs for negative responses.
The NSEC3PARAM resource record is desribed in RFC 5155.
The NSEC3PARAM record is generated automatically upon the signing of
the corresponding zone.
The name part of a DNS NSEC3PARAM object reference has the following
components:
The name of the record.
The name of the view.
Example:
record:nsec3param/ZG5zLmJpsaG9zdA:us.example.com/default.external
Attributes:
algorithm: The hash algorithm that was used.
cloud_info: Structure containing all cloud API related
information for this object.
creation_time: The creation time of the record.
creator: Creator of the record.
dns_name: Name for an NSEC3PARAM record in punycode format.
flags: The set of 8 one-bit flags, of which only one flag, the
Opt-Out flag, is defined by RFC 5155. The Opt-Out flag
indicates whether the NSEC3 record covers unsigned
delegations.
iterations: The number of times the hash function was performed.
last_queried: The time of the last DNS query in Epoch seconds
format.
name: The name of the NSEC3PARAM record in FQDN format. It has
to be the same as the zone, where the record resides.
salt: A series of case-insensitive hexadecimal digits. It is
appended to the original owner name as protection against
pre-calculated dictionary attacks. A new salt value is
generated when the ZSK rolls over, for which the user can
control the period. For a random salt value, the selected
length is between one and 15 octets.
ttl: The Time To Live (TTL) value for the record. A 32-bit
unsigned integer that represents the duration, in seconds,
for which the record is valid (cached). Zero indicates that
the record should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:nsec3param'
_fields = ['algorithm', 'cloud_info', 'creation_time', 'creator',
'dns_name', 'flags', 'iterations', 'last_queried', 'name',
'salt', 'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['name', 'view']
_updateable_search_fields = []
_all_searchable_fields = ['algorithm', 'creator', 'flags', 'iterations',
'name', 'view', 'zone']
_return_fields = ['name', 'view']
_remap = {}
_shadow_fields = ['_ref']
class PtrRecord(InfobloxObject):
@classmethod
def get_v4_class(cls):
return PtrRecordV4
@classmethod
def get_v6_class(cls):
return PtrRecordV6
class PtrRecordV4(PtrRecord):
""" PtrRecordV4: DNS PTR record object.
Corresponds to WAPI object 'record:ptr'
In a forward-mapping zone, a PTR (pointer) record maps a domain name
to another domain name. In a reverse-mapping zone, a PTR (pointer)
record maps an address to a domain name. To define a specific
address-to-name mapping, add a PTR record to a previously defined
authoritative reverse-mapping zone.
Attributes:
aws_rte53_record_info: Aws Route 53 record information.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the record; maximum 256 characters.
creation_time: The time of the record creation in Epoch seconds
format.
creator: The record creator.Note that changing creator from or
to 'SYSTEM' value is not allowed.
ddns_principal: The GSS-TSIG principal that owns this record.
ddns_protected: Determines if the DDNS updates for this record
are allowed or not.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
discovered_data: The discovered data for this PTR record.
dns_name: The name for a DNS PTR record in punycode format.
dns_ptrdname: The domain name of the DNS PTR record in punycode
format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
forbid_reclamation: Determines if the reclamation is allowed for
the record or not.
ipv4addr: The IPv4 Address of the record.
ipv6addr: The IPv6 Address of the record.
last_queried: The time of the last DNS query in Epoch seconds
format.
ms_ad_user_data: The Microsoft Active Directory user related
information.
name: The name of the DNS PTR record in FQDN format.
ptrdname: The domain name of the DNS PTR record in FQDN format.
reclaimable: Determines if the record is reclaimable or not.
shared_record_group: The name of the shared record group in
which the record resides. This field exists only on
db_objects if this record is a shared record.
ttl: Time To Live (TTL) value for the record. A 32-bit unsigned
integer that represents the duration, in seconds, that the
record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: Name of the DNS View in which the record resides, for
example "external".
zone: The name of the zone in which the record resides. For
example: "zone.com".If a view is not specified when
searching by zone, the default view is used.
"""
_infoblox_type = 'record:ptr'
_fields = ['aws_rte53_record_info', 'cloud_info', 'comment',
'creation_time', 'creator', 'ddns_principal', 'ddns_protected',
'disable', 'discovered_data', 'dns_name', 'dns_ptrdname',
'extattrs', 'forbid_reclamation', 'ipv4addr', 'last_queried',
'ms_ad_user_data', 'name', 'ptrdname', 'reclaimable',
'shared_record_group', 'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['ptrdname', 'view', 'ipv4addr']
_updateable_search_fields = ['comment', 'creator', 'ddns_principal',
'ipv4addr', 'name', 'ptrdname']
_all_searchable_fields = ['comment', 'creator', 'ddns_principal',
'ipv4addr', 'name', 'ptrdname', 'reclaimable',
'view', 'zone']
_return_fields = ['extattrs', 'ptrdname', 'view', 'ipv4addr']
_remap = {'ip': 'ipv4addr'}
_shadow_fields = ['_ref', 'ipv4addr']
_ip_version = 4
class PtrRecordV6(PtrRecord):
""" PtrRecordV6: DNS PTR record object.
Corresponds to WAPI object 'record:ptr'
In a forward-mapping zone, a PTR (pointer) record maps a domain name
to another domain name. In a reverse-mapping zone, a PTR (pointer)
record maps an address to a domain name. To define a specific
address-to-name mapping, add a PTR record to a previously defined
authoritative reverse-mapping zone.
Attributes:
aws_rte53_record_info: Aws Route 53 record information.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the record; maximum 256 characters.
creation_time: The time of the record creation in Epoch seconds
format.
creator: The record creator.Note that changing creator from or
to 'SYSTEM' value is not allowed.
ddns_principal: The GSS-TSIG principal that owns this record.
ddns_protected: Determines if the DDNS updates for this record
are allowed or not.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
discovered_data: The discovered data for this PTR record.
dns_name: The name for a DNS PTR record in punycode format.
dns_ptrdname: The domain name of the DNS PTR record in punycode
format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
forbid_reclamation: Determines if the reclamation is allowed for
the record or not.
ipv4addr: The IPv4 Address of the record.
ipv6addr: The IPv6 Address of the record.
last_queried: The time of the last DNS query in Epoch seconds
format.
ms_ad_user_data: The Microsoft Active Directory user related
information.
name: The name of the DNS PTR record in FQDN format.
ptrdname: The domain name of the DNS PTR record in FQDN format.
reclaimable: Determines if the record is reclaimable or not.
shared_record_group: The name of the shared record group in
which the record resides. This field exists only on
db_objects if this record is a shared record.
ttl: Time To Live (TTL) value for the record. A 32-bit unsigned
integer that represents the duration, in seconds, that the
record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: Name of the DNS View in which the record resides, for
example "external".
zone: The name of the zone in which the record resides. For
example: "zone.com".If a view is not specified when
searching by zone, the default view is used.
"""
_infoblox_type = 'record:ptr'
_fields = ['aws_rte53_record_info', 'cloud_info', 'comment',
'creation_time', 'creator', 'ddns_principal', 'ddns_protected',
'disable', 'discovered_data', 'dns_name', 'dns_ptrdname',
'extattrs', 'forbid_reclamation', 'ipv6addr', 'last_queried',
'ms_ad_user_data', 'name', 'ptrdname', 'reclaimable',
'shared_record_group', 'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['ptrdname', 'view', 'ipv6addr']
_updateable_search_fields = ['comment', 'creator', 'ddns_principal',
'ipv6addr', 'name', 'ptrdname']
_all_searchable_fields = ['comment', 'creator', 'ddns_principal',
'ipv6addr', 'name', 'ptrdname', 'reclaimable',
'view', 'zone']
_return_fields = ['extattrs', 'ptrdname', 'view', 'ipv6addr']
_remap = {'ip': 'ipv6addr'}
_shadow_fields = ['_ref', 'ipv6addr']
_ip_version = 6
class RpzARecord(InfobloxObject):
""" RpzARecord: Response Policy Zone Substitute A Record Rule
object.
Corresponds to WAPI object 'record:rpz:a'
An RPZ Substitute (A Record) Rule maps a domain name to a substitute
IPv4 address. To define a specific name-to-address mapping, add an
Substitute (A Record) Rule to a previously defined Response Policy
Zone.
This record represents the substitution rule for DNS A records.
Attributes:
comment: The comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
ipv4addr: The IPv4 Address of the substitute rule.
name: The name for a record in FQDN format. This value cannot be
in unicode format.
rp_zone: The name of a response policy zone in which the record
resides.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:rpz:a'
_fields = ['comment', 'disable', 'extattrs', 'ipv4addr', 'name', 'rp_zone',
'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['ipv4addr', 'name', 'view']
_updateable_search_fields = ['comment', 'ipv4addr', 'name', 'view']
_all_searchable_fields = ['comment', 'ipv4addr', 'name', 'view', 'zone']
_return_fields = ['extattrs', 'ipv4addr', 'name', 'view']
_remap = {}
_shadow_fields = ['_ref']
class RpzAIpaddressRecord(InfobloxObject):
""" RpzAIpaddressRecord: Response Policy Zone Substitute IPv4
Address Rule object.
Corresponds to WAPI object 'record:rpz:a:ipaddress'
An RPZ AIpAddress is an Substitute (IPv4 Address) Rule that maps an
IP address represented by a host name to a substitute IPv4 address.
To define a specific address-to-address mapping, add an Substitute
(IPv4 Address) Rule to a previously defined Response Policy Zone.
This record represents the substitution rule for IP trigger policy.
It matches IP addresses that would otherwise appear in A record in
the "answer" section of DNS response.
You should use this object to create IP address substitution rules
instead usage CNAMEIpAddress object.
Attributes:
comment: The comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
ipv4addr: The IPv4 Address of the substitute rule.
name: The name for a record in FQDN format. This value cannot be
in unicode format.
rp_zone: The name of a response policy zone in which the record
resides.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:rpz:a:ipaddress'
_fields = ['comment', 'disable', 'extattrs', 'ipv4addr', 'name', 'rp_zone',
'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['ipv4addr', 'name', 'view']
_updateable_search_fields = ['comment', 'ipv4addr', 'name', 'view']
_all_searchable_fields = ['comment', 'ipv4addr', 'name', 'view', 'zone']
_return_fields = ['extattrs', 'ipv4addr', 'name', 'view']
_remap = {}
_shadow_fields = ['_ref']
class RpzAaaaRecord(InfobloxObject):
""" RpzAaaaRecord: Response Policy Zone Substitute AAAA Record Rule
object.
Corresponds to WAPI object 'record:rpz:aaaa'
An RPZ Substitute (AAAA Record) Rule, maps a domain name to a
substitute IPv6 address. To define a specific name-to-address
mapping, add an Substitute (AAAA Record) Rule to a previously
defined Response Policy Zone.
This record represents the substitution rule for DNS AAAA records.
Attributes:
comment: The comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
ipv6addr: The IPv6 Address of the substitute rule.
name: The name for a record in FQDN format. This value cannot be
in unicode format.
rp_zone: The name of a response policy zone in which the record
resides.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:rpz:aaaa'
_fields = ['comment', 'disable', 'extattrs', 'ipv6addr', 'name', 'rp_zone',
'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['ipv6addr', 'name', 'view']
_updateable_search_fields = ['comment', 'ipv6addr', 'name', 'view']
_all_searchable_fields = ['comment', 'ipv6addr', 'name', 'view', 'zone']
_return_fields = ['extattrs', 'ipv6addr', 'name', 'view']
_remap = {}
_shadow_fields = ['_ref']
class RpzAaaaIpaddressRecord(InfobloxObject):
""" RpzAaaaIpaddressRecord: Response Policy Zone Substitute IPv6
Address Rule object.
Corresponds to WAPI object 'record:rpz:aaaa:ipaddress'
An RPZ Substitute (IPv6 Address) Rule maps an IP address represented
by a host name to a substitute IPv6 address. To define a specific
address-to-address mapping, add an RPZ Substitute (IPv6 Address)
Rule to a previously defined Response Policy Zone.
This record represents the substitution rule for IP trigger policy.
It matches IP addresses that would otherwise appear in AAAA record
in the "answer" section of DNS response.
You should use this object to create IP address substitution rules
instead usage CNAMEIpAddress object.
Attributes:
comment: The comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
ipv6addr: The IPv6 Address of the substitute rule.
name: The name for a record in FQDN format. This value cannot be
in unicode format.
rp_zone: The name of a response policy zone in which the record
resides.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:rpz:aaaa:ipaddress'
_fields = ['comment', 'disable', 'extattrs', 'ipv6addr', 'name', 'rp_zone',
'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['ipv6addr', 'name', 'view']
_updateable_search_fields = ['comment', 'ipv6addr', 'name', 'view']
_all_searchable_fields = ['comment', 'ipv6addr', 'name', 'view', 'zone']
_return_fields = ['extattrs', 'ipv6addr', 'name', 'view']
_remap = {}
_shadow_fields = ['_ref']
class RpzCnameRecord(InfobloxObject):
""" RpzCnameRecord: DNS Response Policy Zone CNAME record object.
Corresponds to WAPI object 'record:rpz:cname'
An RPZ CNAME record represents different RPZ rules, depending on the
value of the canonical name. The intention of this object is to
support QNAME Trigger policy. The QNAME policy trigger applies to
requested domain names (QNAME). This record represents Passthru
Domain Name Rule, Block Domain Name (No Such Domain) Rule, Block
Domain Name (No Data) Rule and Substitute (Domain Name) Rule.
If canonical name is empty, it is a Block Domain Name (No Such
Domain) Rule.
If canonical name is asterisk, it is a Block Domain Name (No Data)
Rule.
If canonical name is the same as record name, it is a Passthru
Domain Name Rule. If name of object starts with wildcard you must
specify special value 'infoblox-passthru' in canonical name in order
to create Wildcard Passthru Domain Name Rule, for more details
please see the Infoblox Administrator Guide.
If canonical name is not Block Domain Name (No Such Domain) Rule,
Block Domain Name (No Data) Rule, or Passthru Domain Name Rule, it
is a substitution rule.
Attributes:
canonical: The canonical name in FQDN format. This value can be
in unicode format.
comment: The comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
name: The name for a record in FQDN format. This value cannot be
in unicode format.
rp_zone: The name of a response policy zone in which the record
resides.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:rpz:cname'
_fields = ['canonical', 'comment', 'disable', 'extattrs', 'name',
'rp_zone', 'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['canonical', 'name', 'view']
_updateable_search_fields = ['canonical', 'comment', 'name', 'view']
_all_searchable_fields = ['canonical', 'comment', 'name', 'view', 'zone']
_return_fields = ['canonical', 'extattrs', 'name', 'view']
_remap = {}
_shadow_fields = ['_ref']
class RpzCnameClientipaddressRecord(InfobloxObject):
""" RpzCnameClientipaddressRecord: DNS RPZ CNAMEClientIpAddress
record object.
Corresponds to WAPI object 'record:rpz:cname:clientipaddress'
A DNS RPZ CNAMEClientIpAddress record represents different RPZ
rules, depending on the value of the canonical name. This record
represents Passthru IP Address Rule, Block IP Address (No Such
Domain) Rule, Block IP Address (No Data) Rule.
This record represents the IP trigger policy. It matches IP
addresses that would otherwise appear in A and AAAA records in the
"answer" section of a DNS response.
If canonical name is empty, it is a Block IP Address (No Such
Domain) Rule.
If canonical name is an asterisk, it is a Block IP Address (No Data)
Rule.
If canonical name is equal to 'rpz-passthru', it is a Passthru IP
Address Rule.
You cannot create Substitute (IPv4/IPv6 Address) Rule for this
record see the record.rpz.a.ipaddress object or the
record.rpz.aaaa.ipaddress object for details.
Attributes:
canonical: The canonical name in FQDN format. This value can be
in unicode format.
comment: The comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
is_ipv4: Indicates whether the record is an IPv4 record. If the
return value is "true", it is an IPv4 record. Ohterwise, it
is an IPv6 record.
name: The name for a record in FQDN format. This value cannot be
in unicode format.
rp_zone: The name of a response policy zone in which the record
resides.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:rpz:cname:clientipaddress'
_fields = ['canonical', 'comment', 'disable', 'extattrs', 'is_ipv4',
'name', 'rp_zone', 'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['canonical', 'name', 'view']
_updateable_search_fields = ['canonical', 'comment', 'name', 'view']
_all_searchable_fields = ['canonical', 'comment', 'name', 'view', 'zone']
_return_fields = ['canonical', 'extattrs', 'name', 'view']
_remap = {}
_shadow_fields = ['_ref']
class RpzCnameClientipaddressdnRecord(InfobloxObject):
""" RpzCnameClientipaddressdnRecord: Substitute Domain Name Based on
Client IP Address rule object.
Corresponds to WAPI object 'record:rpz:cname:clientipaddressdn'
A DNS Substitute Domain Name (Based on Client IP Address) rule
represents different Response Policy Zone (RPZ) rules, depending on
the value of the canonical name.
This rule represents Substitute (Domain Name) Rule.
Attributes:
canonical: The canonical name in FQDN format. This value can be
in unicode format.
comment: The comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
is_ipv4: Indicates whether the record is an IPv4 record. If the
return value is "true", it is an IPv4 record. Ohterwise, it
is an IPv6 record.
name: The name for a record in FQDN format. This value cannot be
in unicode format.
rp_zone: The name of a response policy zone in which the record
resides.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:rpz:cname:clientipaddressdn'
_fields = ['canonical', 'comment', 'disable', 'extattrs', 'is_ipv4',
'name', 'rp_zone', 'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['canonical', 'name', 'view']
_updateable_search_fields = ['canonical', 'comment', 'name', 'view']
_all_searchable_fields = ['canonical', 'comment', 'name', 'view', 'zone']
_return_fields = ['canonical', 'extattrs', 'name', 'view']
_remap = {}
_shadow_fields = ['_ref']
class RpzCnameIpaddressRecord(InfobloxObject):
""" RpzCnameIpaddressRecord: DNS RPZ CNAMEIpAddress record object.
Corresponds to WAPI object 'record:rpz:cname:ipaddress'
A DNS RPZ CNAMEIpAddress record represents different RPZ rules,
depending on the value of the canonical name. This record represents
Passthru IP Address Rule, Block IP Address (No Such Domain) Rule,
Block IP Address (No Data) Rule.
This record represents IP trigger policy. It matches IP addresses
that would otherwise appear in A and AAAA records in the "answer"
section of DNS response.
If canonical name is empty, it is a Block IP Address (No Such
Domain) Rule.
If canonical name is an asterisk, it is a Block IP Address (No Data)
Rule.
If canonical name is the same as host name, it is a Passthru IP
Address Rule.
You cannot create Substitute (IPv4/IPv6 Address) Rule for this
record see AIpAddress or AAAAIpAddress for details.
Attributes:
canonical: The canonical name in FQDN format. This value can be
in unicode format.
comment: The comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
is_ipv4: Indicates whether the record is an IPv4 record. If the
return value is "true", it is an IPv4 record. Ohterwise, it
is an IPv6 record.
name: The name for a record in FQDN format. This value cannot be
in unicode format.
rp_zone: The name of a response policy zone in which the record
resides.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:rpz:cname:ipaddress'
_fields = ['canonical', 'comment', 'disable', 'extattrs', 'is_ipv4',
'name', 'rp_zone', 'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['canonical', 'name', 'view']
_updateable_search_fields = ['canonical', 'comment', 'name', 'view']
_all_searchable_fields = ['canonical', 'comment', 'name', 'view', 'zone']
_return_fields = ['canonical', 'extattrs', 'name', 'view']
_remap = {}
_shadow_fields = ['_ref']
class RpzCnameIpaddressdnRecord(InfobloxObject):
""" RpzCnameIpaddressdnRecord: Substitute Domain Name Based on IP
Address rule object.
Corresponds to WAPI object 'record:rpz:cname:ipaddressdn'
A DNS Substitute Domain Name (Based on IP Address) rule represents
different Response Policy Zone (RPZ) rules, depending on the value
of the canonical name.
This rule represents Substitute (Domain Name) Rule.
Attributes:
canonical: The canonical name in FQDN format. This value can be
in unicode format.
comment: The comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
is_ipv4: Indicates whether the record is an IPv4 record. If the
return value is "true", it is an IPv4 record. Ohterwise, it
is an IPv6 record.
name: The name for a record in FQDN format. This value cannot be
in unicode format.
rp_zone: The name of a response policy zone in which the record
resides.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:rpz:cname:ipaddressdn'
_fields = ['canonical', 'comment', 'disable', 'extattrs', 'is_ipv4',
'name', 'rp_zone', 'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['canonical', 'name', 'view']
_updateable_search_fields = ['canonical', 'comment', 'name', 'view']
_all_searchable_fields = ['canonical', 'comment', 'name', 'view', 'zone']
_return_fields = ['canonical', 'extattrs', 'name', 'view']
_remap = {}
_shadow_fields = ['_ref']
class RpzMxRecord(InfobloxObject):
""" RpzMxRecord: Response Policy Zone Substitute MX Record Rule
object.
Corresponds to WAPI object 'record:rpz:mx'
An RPZ Substitute (MX Record) Rule maps a domain name to a mail
exchanger. A mail exchanger is a server that either delivers or
forwards mail.
This record represents the substitution rule for DNS MX records.
Attributes:
comment: The comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
mail_exchanger: Mail exchanger name in FQDN format. This value
can be in unicode format.
name: The name for a record in FQDN format. This value cannot be
in unicode format.
preference: Preference value, 0 to 65535 (inclusive) in 32-bit
unsigned integer format.
rp_zone: The name of a response policy zone in which the record
resides.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:rpz:mx'
_fields = ['comment', 'disable', 'extattrs', 'mail_exchanger', 'name',
'preference', 'rp_zone', 'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['mail_exchanger', 'name', 'preference',
'view']
_updateable_search_fields = ['comment', 'mail_exchanger', 'name',
'preference', 'view']
_all_searchable_fields = ['comment', 'mail_exchanger', 'name',
'preference', 'view', 'zone']
_return_fields = ['extattrs', 'mail_exchanger', 'name', 'preference',
'view']
_remap = {}
_shadow_fields = ['_ref']
class RpzNaptrRecord(InfobloxObject):
""" RpzNaptrRecord: Response Policy Zone Substitute NAPTR Record
Rule object.
Corresponds to WAPI object 'record:rpz:naptr'
An RPZ Substitute (NAPTR Record) Rule object represents the
substitution rule for DNS Naming Authority Pointer (NAPTR) records.
This rule specifies a regular expression-based rewrite rule that,
when applied to an existing string, produces a new domain name or
URI.
Attributes:
comment: The comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
flags: The flags used to control the interpretation of the
fields for a Substitute (NAPTR Record) Rule object.
Supported values for the flags field are "U", "S", "P" and
"A".
last_queried: The time of the last DNS query in Epoch seconds
format.
name: The name for a record in FQDN format. This value cannot be
in unicode format.
order: The order parameter of the Substitute (NAPTR Record) Rule
records. This parameter specifies the order in which the
NAPTR rules are applied when multiple rules are present.
Valid values are from 0 to 65535 (inclusive), in 32-bit
unsigned integer format.
preference: The preference of the Substitute (NAPTR Record) Rule
record. The preference field determines the order NAPTR
records are processed when multiple records with the same
order parameter are present. Valid values are from 0 to
65535 (inclusive), in 32-bit unsigned integer format.
regexp: The regular expression-based rewriting rule of the
Substitute (NAPTR Record) Rule record. This should be a
POSIX compliant regular expression, including the
substitution rule and flags. Refer to RFC 2915 for the field
syntax details.
replacement: The replacement field of the Substitute (NAPTR
Record) Rule object. For nonterminal NAPTR records, this
field specifies the next domain name to look up. This value
can be in unicode format.
rp_zone: The name of a response policy zone in which the record
resides.
services: The services field of the Substitute (NAPTR Record)
Rule object; maximum 128 characters. The services field
contains protocol and service identifiers, such as
"http+E2U" or "SIPS+D2T".
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:rpz:naptr'
_fields = ['comment', 'disable', 'extattrs', 'flags', 'last_queried',
'name', 'order', 'preference', 'regexp', 'replacement',
'rp_zone', 'services', 'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['name', 'order', 'preference', 'replacement',
'services', 'view']
_updateable_search_fields = ['comment', 'flags', 'name', 'order',
'preference', 'replacement', 'services',
'view']
_all_searchable_fields = ['comment', 'flags', 'name', 'order',
'preference', 'replacement', 'services', 'view',
'zone']
_return_fields = ['extattrs', 'name', 'order', 'preference', 'regexp',
'replacement', 'services', 'view']
_remap = {}
_shadow_fields = ['_ref']
class RpzPtrRecord(InfobloxObject):
@classmethod
def get_v4_class(cls):
return RpzPtrRecordV4
@classmethod
def get_v6_class(cls):
return RpzPtrRecordV6
class RpzPtrRecordV4(RpzPtrRecord):
""" RpzPtrRecordV4: Response Policy Zone Substitute PTR Record Rule
object.
Corresponds to WAPI object 'record:rpz:ptr'
An RPZ Substitute (PTR Record) Rule object represents a Pointer
(PTR) resource record. To define a specific address-to-name mapping,
add an RPZ Substitute (PTR Record) Rule to a previously defined
Response Policy Zone.
This record represents the substitution rule for DNS PTR records.
Attributes:
comment: The comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
ipv4addr: The IPv4 Address of the substitute rule.
ipv6addr: The IPv6 Address of the substitute rule.
name: The name of the RPZ Substitute (PTR Record) Rule object in
FQDN format.
ptrdname: The domain name of the RPZ Substitute (PTR Record)
Rule object in FQDN format.
rp_zone: The name of a response policy zone in which the record
resides.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:rpz:ptr'
_fields = ['comment', 'disable', 'extattrs', 'ipv4addr', 'name',
'ptrdname', 'rp_zone', 'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['ptrdname', 'view', 'ipv4addr']
_updateable_search_fields = ['comment', 'ipv4addr', 'name', 'ptrdname',
'view']
_all_searchable_fields = ['comment', 'ipv4addr', 'name', 'ptrdname',
'view', 'zone']
_return_fields = ['extattrs', 'ptrdname', 'view', 'ipv4addr']
_remap = {'ip': 'ipv4addr'}
_shadow_fields = ['_ref', 'ipv4addr']
_ip_version = 4
class RpzPtrRecordV6(RpzPtrRecord):
""" RpzPtrRecordV6: Response Policy Zone Substitute PTR Record Rule
object.
Corresponds to WAPI object 'record:rpz:ptr'
An RPZ Substitute (PTR Record) Rule object represents a Pointer
(PTR) resource record. To define a specific address-to-name mapping,
add an RPZ Substitute (PTR Record) Rule to a previously defined
Response Policy Zone.
This record represents the substitution rule for DNS PTR records.
Attributes:
comment: The comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
ipv4addr: The IPv4 Address of the substitute rule.
ipv6addr: The IPv6 Address of the substitute rule.
name: The name of the RPZ Substitute (PTR Record) Rule object in
FQDN format.
ptrdname: The domain name of the RPZ Substitute (PTR Record)
Rule object in FQDN format.
rp_zone: The name of a response policy zone in which the record
resides.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:rpz:ptr'
_fields = ['comment', 'disable', 'extattrs', 'ipv6addr', 'name',
'ptrdname', 'rp_zone', 'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['ptrdname', 'view', 'ipv6addr']
_updateable_search_fields = ['comment', 'ipv6addr', 'name', 'ptrdname',
'view']
_all_searchable_fields = ['comment', 'ipv6addr', 'name', 'ptrdname',
'view', 'zone']
_return_fields = ['extattrs', 'ptrdname', 'view', 'ipv6addr']
_remap = {'ip': 'ipv6addr'}
_shadow_fields = ['_ref', 'ipv6addr']
_ip_version = 6
class RpzSrvRecord(InfobloxObject):
""" RpzSrvRecord: Response Policy Zone Substitute SRV Record Rule
object.
Corresponds to WAPI object 'record:rpz:srv'
An RPZ Substitute (SRV Record) Rule object represents the
substitution rule for DNS SRV records.
Attributes:
comment: The comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
name: The name for a record in FQDN format. This value cannot be
in unicode format.
port: The port of the Substitute (SRV Record) Rule. Valid values
are from 0 to 65535 (inclusive), in 32-bit unsigned integer
format.
priority: The priority of the Substitute (SRV Record) Rule.
Valid values are from 0 to 65535 (inclusive), in 32-bit
unsigned integer format.
rp_zone: The name of a response policy zone in which the record
resides.
target: The target of the Substitute (SRV Record) Rule in FQDN
format. This value can be in unicode format.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
weight: The weight of the Substitute (SRV Record) Rule. Valid
values are from 0 to 65535 (inclusive), in 32-bit unsigned
integer format.
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:rpz:srv'
_fields = ['comment', 'disable', 'extattrs', 'name', 'port', 'priority',
'rp_zone', 'target', 'ttl', 'use_ttl', 'view', 'weight', 'zone']
_search_for_update_fields = ['name', 'port', 'priority', 'target', 'view',
'weight']
_updateable_search_fields = ['comment', 'name', 'port', 'priority',
'target', 'view', 'weight']
_all_searchable_fields = ['comment', 'name', 'port', 'priority', 'target',
'view', 'weight', 'zone']
_return_fields = ['extattrs', 'name', 'port', 'priority', 'target', 'view',
'weight']
_remap = {}
_shadow_fields = ['_ref']
class RpzTxtRecord(InfobloxObject):
""" RpzTxtRecord: Response Policy Zone Substitute TXT Record Rule
object.
Corresponds to WAPI object 'record:rpz:txt'
An RPZ Substitute (TXT Record) Rule object represents the
substitution rule for DNS TXT records.
Attributes:
comment: The comment for the record; maximum 256 characters.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
name: The name for a record in FQDN format. This value cannot be
in unicode format.
rp_zone: The name of a response policy zone in which the record
resides.
text: Text associated with the record. It can contain up to 255
bytes per substring, up to a total of 512 bytes. To enter
leading, trailing, or embedded spaces in the text, add
quotes around the text to preserve the spaces.
ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
integer that represents the duration, in seconds, for which
the record is valid (cached). Zero indicates that the record
should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:rpz:txt'
_fields = ['comment', 'disable', 'extattrs', 'name', 'rp_zone', 'text',
'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['name', 'text', 'view']
_updateable_search_fields = ['comment', 'name', 'text', 'view']
_all_searchable_fields = ['comment', 'name', 'text', 'view', 'zone']
_return_fields = ['extattrs', 'name', 'text', 'view']
_remap = {}
_shadow_fields = ['_ref']
class RrsigRecord(InfobloxObject):
""" RrsigRecord: DNS RRSIG record object.
Corresponds to WAPI object 'record:rrsig'
RRSIG records are one of the resource records in DNSSEC. These
records store digital signatures of resource record sets (RRsets).
Digital signatures are used to authenticate data that is in the
signed RRsets.
A signed zone has multiple RRsets, one for each record type and
owner name. (The owner is the domain name of the RRset.) When an
authoritative name server uses the private key of the ZSK pair to
sign each RRset in a zone, the digital signature on each RRset is
stored in an RRSIG record. Therefore, a signed zone contains an
RRSIG record for each RRset.
RRSIG resource records are defined in RFC 4034.
RRSIG records are automatically generated upon the signing of an
authoritative zone.
The name part of a DNS RRSIG object reference has the following
components:
The name of the record.
The name of the view.
Example:
record:rrsig/ZG5zLmJpsaG9zdA:us.example.com/default.external
Attributes:
algorithm: The cryptographic algorithm that was used to create
the signature. It uses the same algorithm types as the
DNSKEY record indicated in the key tag field.
cloud_info: Structure containing all cloud API related
information for this object.
creation_time: The creation time of the record.
creator: The record creator.
dns_name: Name for an RRSIG record in punycode format.
dns_signer_name: The domain name, in punycode format, of the
zone that contains the signed RRset.
expiration_time: The expiry time of an RRSIG record in Epoch
seconds format.
inception_time: The inception time of an RRSIG record in Epoch
seconds format.
key_tag: The key tag value of the DNSKEY RR that validates the
signature.
labels: The number of labels in the name of the RRset signed
with the RRSIG object.
last_queried: The time of the last DNS query in Epoch seconds
format.
name: The name of the RRSIG record in FQDN format.
original_ttl: The TTL value of the RRset covered by the RRSIG
record.
signature: The Base64 encoded cryptographic signature that
covers the RRSIG RDATA of the RRSIG Record object.
signer_name: The domain name of the zone in FQDN format that
contains the signed RRset.
ttl: The Time To Live (TTL) value for the record. A 32-bit
unsigned integer that represents the duration, in seconds,
for which the record is valid (cached). Zero indicates that
the record should not be cached.
type_covered: The RR type covered by the RRSIG record.
use_ttl: Use flag for: ttl
view: The name of the DNS View in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:rrsig'
_fields = ['algorithm', 'cloud_info', 'creation_time', 'creator',
'dns_name', 'dns_signer_name', 'expiration_time',
'inception_time', 'key_tag', 'labels', 'last_queried', 'name',
'original_ttl', 'signature', 'signer_name', 'ttl',
'type_covered', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['name', 'view']
_updateable_search_fields = []
_all_searchable_fields = ['algorithm', 'creator', 'key_tag', 'labels',
'name', 'original_ttl', 'signer_name',
'type_covered', 'view', 'zone']
_return_fields = ['name', 'view']
_remap = {}
_shadow_fields = ['_ref']
class SRVRecord(InfobloxObject):
""" SRVRecord: DNS SRV record object.
Corresponds to WAPI object 'record:srv'
A DNS SRV object represents an SRV resource record, which is also
known as a service record. An SRV record provides information on
available services.
Attributes:
aws_rte53_record_info: Aws Route 53 record information.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the record; maximum 256 characters.
creation_time: The time of the record creation in Epoch seconds
format.
creator: The record creator.Note that changing creator from or
to 'SYSTEM' value is not allowed.
ddns_principal: The GSS-TSIG principal that owns this record.
ddns_protected: Determines if the DDNS updates for this record
are allowed or not.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
dns_name: The name for an SRV record in punycode format.
dns_target: The name for a SRV record in punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
forbid_reclamation: Determines if the reclamation is allowed for
the record or not.
last_queried: The time of the last DNS query in Epoch seconds
format.
name: A name in FQDN format. This value can be in unicode
format.
port: The port of the SRV record. Valid values are from 0 to
65535 (inclusive), in 32-bit unsigned integer format.
priority: The priority of the SRV record. Valid values are from
0 to 65535 (inclusive), in 32-bit unsigned integer format.
reclaimable: Determines if the record is reclaimable or not.
shared_record_group: The name of the shared record group in
which the record resides. This field exists only on
db_objects if this record is a shared record.
target: The target of the SRV record in FQDN format. This value
can be in unicode format.
ttl: The Time to Live (TTL) value for the record. A 32-bit
unsigned integer that represents the duration, in seconds,
for which the record is valid (cached). Zero indicates that
the record should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS view in which the record resides.
Example: "external".
weight: The weight of the SRV record. Valid values are from 0 to
65535 (inclusive), in 32-bit unsigned integer format.
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:srv'
_fields = ['aws_rte53_record_info', 'cloud_info', 'comment',
'creation_time', 'creator', 'ddns_principal', 'ddns_protected',
'disable', 'dns_name', 'dns_target', 'extattrs',
'forbid_reclamation', 'last_queried', 'name', 'port',
'priority', 'reclaimable', 'shared_record_group', 'target',
'ttl', 'use_ttl', 'view', 'weight', 'zone']
_search_for_update_fields = ['name', 'port', 'priority', 'target', 'view',
'weight']
_updateable_search_fields = ['comment', 'creator', 'ddns_principal',
'name', 'port', 'priority', 'target',
'weight']
_all_searchable_fields = ['comment', 'creator', 'ddns_principal', 'name',
'port', 'priority', 'reclaimable', 'target',
'view', 'weight', 'zone']
_return_fields = ['extattrs', 'name', 'port', 'priority', 'target', 'view',
'weight']
_remap = {}
_shadow_fields = ['_ref']
class TlsaRecord(InfobloxObject):
""" TlsaRecord: DNS TLSA record object.
Corresponds to WAPI object 'record:tlsa'
The TLSA DNS resource record (RR) is used to associate a TLS server
certificate or public key with the domain name where the record is
found, thus forming a 'TLSA certificate association'. For further
details see RFC-6698. Note that you must specify only one view for
the attribute 'views'.
Attributes:
certificate_data: Hex dump of either raw data for matching type
0, or the hash of the raw data for matching types 1 and 2.
certificate_usage: Specifies the provided association that will
be used to match the certificate presented in the TLS
handshake. Based on RFC-6698.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the record; maximum 256 characters.
creator: The record creator. Note that changing creator from or
to 'SYSTEM' value is not allowed.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
dns_name: The name of the TLSA record in punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
last_queried: The time of the last DNS query in Epoch seconds
format.
matched_type: Specifies how the certificate association is
presented. Based on RFC-6698.
name: The TLSA record name in FQDN format. This value can be in
unicode format.
selector: Specifies which part of the TLS certificate presented
by the server will be matched against the association data.
Based on RFC-6698.
ttl: The Time to Live (TTL) value for the record. A 32-bit
unsigned integer that represents the duration, in seconds,
for which the record is valid (cached). Zero indicates that
the record should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS view in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:tlsa'
_fields = ['certificate_data', 'certificate_usage', 'cloud_info',
'comment', 'creator', 'disable', 'dns_name', 'extattrs',
'last_queried', 'matched_type', 'name', 'selector', 'ttl',
'use_ttl', 'view', 'zone']
_search_for_update_fields = ['name', 'view']
_updateable_search_fields = ['comment', 'creator', 'name', 'view']
_all_searchable_fields = ['comment', 'creator', 'name', 'view', 'zone']
_return_fields = ['extattrs', 'name', 'view']
_remap = {}
_shadow_fields = ['_ref']
class TXTRecord(InfobloxObject):
""" TXTRecord: DNS TXT record object.
Corresponds to WAPI object 'record:txt'
A TXT (text record) record contains supplemental information for a
host. For example, if you have a sales server that serves only North
America, you can create a text record stating this fact. You can
create more than one text record for a domain name.
Attributes:
aws_rte53_record_info: Aws Route 53 record information.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the record; maximum 256 characters.
creation_time: The time of the record creation in Epoch seconds
format.
creator: The record creator.Note that changing creator from or
to 'SYSTEM' value is not allowed.
ddns_principal: The GSS-TSIG principal that owns this record.
ddns_protected: Determines if the DDNS updates for this record
are allowed or not.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
dns_name: The name for a TXT record in punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
forbid_reclamation: Determines if the reclamation is allowed for
the record or not.
last_queried: The time of the last DNS query in Epoch seconds
format.
name: Name for the TXT record in FQDN format. This value can be
in unicode format.
reclaimable: Determines if the record is reclaimable or not.
shared_record_group: The name of the shared record group in
which the record resides. This field exists only on
db_objects if this record is a shared record.
text: Text associated with the record. It can contain up to 255
bytes per substring, up to a total of 512 bytes. To enter
leading, trailing, or embedded spaces in the text, add
quotes around the text to preserve the spaces.
ttl: The Time To Live (TTL) value for the record. A 32-bit
unsigned integer that represents the duration, in seconds,
for which the record is valid (cached). Zero indicates that
the record should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS view in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:txt'
_fields = ['aws_rte53_record_info', 'cloud_info', 'comment',
'creation_time', 'creator', 'ddns_principal', 'ddns_protected',
'disable', 'dns_name', 'extattrs', 'forbid_reclamation',
'last_queried', 'name', 'reclaimable', 'shared_record_group',
'text', 'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['name', 'view']
_updateable_search_fields = ['comment', 'creator', 'ddns_principal',
'name', 'text', 'view']
_all_searchable_fields = ['comment', 'creator', 'ddns_principal', 'name',
'reclaimable', 'text', 'view', 'zone']
_return_fields = ['extattrs', 'name', 'text', 'view']
_remap = {}
_shadow_fields = ['_ref']
class UnknownRecord(InfobloxObject):
""" UnknownRecord: DNS UNKNOWN record object.
Corresponds to WAPI object 'record:unknown'
An "RR of unknown type" is an RR whose RDATA format is not known to
the DNS implementation at hand, and whose type is not an assigned
QTYPE or Meta-TYPE as specified in 2929] nor within the range
reserved in that section for assignment only to QTYPEs and Meta-
TYPEs. The purpose of the Unknown resource record is to allow future
DNS implementations to handle new RR types transparently. For
further details see RFC-3597.
Attributes:
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the record; maximum 256 characters.
creator: The record creator. Note that changing creator from or
to 'SYSTEM' value is not allowed.
disable: Determines if the record is disabled or not. False
means that the record is enabled.
display_rdata: Standard textual representation of the RDATA.
dns_name: The name of the unknown record in punycode format.
enable_host_name_policy: Determines if host name policy is
applicable for the record.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
last_queried: The time of the last DNS query in Epoch seconds
format.
name: The Unknown record name in FQDN format. This value can be
in unicode format.
policy: The host name policy for the record.
record_type: Specifies type of unknown resource record.
subfield_values: The list of rdata subfield values of unknown
resource record.
ttl: The Time to Live (TTL) value for the record. A 32-bit
unsigned integer that represents the duration, in seconds,
for which the record is valid (cached). Zero indicates that
the record should not be cached.
use_ttl: Use flag for: ttl
view: The name of the DNS view in which the record resides.
Example: "external".
zone: The name of the zone in which the record resides. Example:
"zone.com". If a view is not specified when searching by
zone, the default view is used.
"""
_infoblox_type = 'record:unknown'
_fields = ['cloud_info', 'comment', 'creator', 'disable', 'display_rdata',
'dns_name', 'enable_host_name_policy', 'extattrs',
'last_queried', 'name', 'policy', 'record_type',
'subfield_values', 'ttl', 'use_ttl', 'view', 'zone']
_search_for_update_fields = ['name', 'view']
_updateable_search_fields = ['comment', 'creator', 'name', 'record_type',
'subfield_values', 'view']
_all_searchable_fields = ['comment', 'creator', 'display_rdata', 'name',
'record_type', 'subfield_values', 'view', 'zone']
_return_fields = ['extattrs', 'name', 'view']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'subfield_values': Rdatasubfield.from_dict,
}
class Recordnamepolicy(InfobloxObject):
""" Recordnamepolicy: Record name policy object.
Corresponds to WAPI object 'recordnamepolicy'
You can enforce naming policy for the hostnames of A, AAAA, Host,
MX, NS and bulk host records based on user-defined or default
patterns. For MX and NS records, the hostname restrictions apply to
the text in the RDATA field of the resource record name. Records
that you created before you enabled the hostname checking policy
need not to comply with the hostname restriction that you specify.
The record name policy object contains configuration of the regular
expression hostnames should comply with.
Attributes:
is_default: Determines whether the record name policy is Grid
default.
name: The name of the record name policy object.
pre_defined: Determines whether the record name policy is a
predefined one.
regex: The POSIX regular expression the record names should
match in order to comply with the record name policy.
"""
_infoblox_type = 'recordnamepolicy'
_fields = ['is_default', 'name', 'pre_defined', 'regex']
_search_for_update_fields = ['name']
_updateable_search_fields = ['name']
_all_searchable_fields = ['name']
_return_fields = ['is_default', 'name', 'regex']
_remap = {}
_shadow_fields = ['_ref']
class Restartservicestatus(InfobloxObject):
""" Restartservicestatus: Restart service status object.
Corresponds to WAPI object 'restartservicestatus'
This object represents the service status. Use the the
requestrestartservicestatus function call in object grid or the
requestrestartservicestatus function call in object member to
refresh the status.
Attributes:
dhcp_status: The status of the DHCP service.
dns_status: The status of the DNS service.
member: The name of this Grid member in FQDN format.
reporting_status: The status of the reporting service.
"""
_infoblox_type = 'restartservicestatus'
_fields = ['dhcp_status', 'dns_status', 'member', 'reporting_status']
_search_for_update_fields = ['member']
_updateable_search_fields = []
_all_searchable_fields = ['member']
_return_fields = ['dhcp_status', 'dns_status', 'member',
'reporting_status']
_remap = {}
_shadow_fields = ['_ref']
class Rir(InfobloxObject):
""" Rir: Regional Internet Registry object.
Corresponds to WAPI object 'rir'
An RIR is an entity that manages the Internet number resources,
which include IP addresses and autonomous system numbers, within a
specific region of the world. RIRs use SWIP (Shared WHOIS Project)
or RWhois (Referral WHOIS) servers to provide address allocation
information for IP address blocks. Typically, an RIR determines the
address blocks to be allocated for specific organizations (typically
ISPs), while an ISP manages the allocated address blocks, associated
organizations and corresponding RIR registrations. An organization
can determine when to request for more address data with their RIRs
every few months.
The RIR object is used to configure Infoblox Grid communication
settings to send registration update to RIPE (Reseaux IP Europeens)
database as often as RIR data is updated on NIOS.
Attributes:
communication_mode: The communication mode for RIR.
email: The e-mail address for RIR.
name: The name of RIR.
url: The WebAPI URL for RIR.
use_email: Use flag for: email
use_url: Use flag for: url
"""
_infoblox_type = 'rir'
_fields = ['communication_mode', 'email', 'name', 'url', 'use_email',
'use_url']
_search_for_update_fields = ['name']
_updateable_search_fields = ['name']
_all_searchable_fields = ['name']
_return_fields = ['communication_mode', 'email', 'name', 'url']
_remap = {}
_shadow_fields = ['_ref']
class RirOrganization(InfobloxObject):
""" RirOrganization: Regional Internet Registry organization object.
Corresponds to WAPI object 'rir:organization'
An RIR organization provides information about an entity that has
registered a network resource in the RIPE database. This entity can
be a company (such as an ISP), a nonprofit group, or an individual.
You can add RIR organizations defined in the RIPE database and start
managing their data through NIOS.
Attributes:
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
id: The RIR organization identifier.
maintainer: The RIR organization maintainer.
name: The RIR organization name.
password: The password for the maintainer of RIR organization.
rir: The RIR associated with RIR organization.
sender_email: The sender e-mail address for RIR organization.
"""
_infoblox_type = 'rir:organization'
_fields = ['extattrs', 'id', 'maintainer', 'name', 'password', 'rir',
'sender_email']
_search_for_update_fields = ['id', 'maintainer', 'name', 'rir',
'sender_email']
_updateable_search_fields = ['id', 'maintainer', 'name', 'rir',
'sender_email']
_all_searchable_fields = ['id', 'maintainer', 'name', 'rir',
'sender_email']
_return_fields = ['extattrs', 'id', 'maintainer', 'name', 'rir',
'sender_email']
_remap = {}
_shadow_fields = ['_ref']
class DHCPRoamingHost(InfobloxObject):
""" DHCPRoamingHost: DHCP Roaming Host object.
Corresponds to WAPI object 'roaminghost'
A roaming host is a specific host that a DHCP server always assigns
when a lease request comes from a particular MAC address of the
client.
Attributes:
address_type: The address type for this roaming host.
bootfile: The bootfile name for the roaming host. You can
configure the DHCP server to support clients that use the
boot file name option in their DHCPREQUEST messages.
bootserver: The boot server address for the roaming host. You
can specify the name and/or IP address of the boot server
that the host needs to boot.The boot server IPv4 Address or
name in FQDN format.
client_identifier_prepend_zero: This field controls whether
there is a prepend for the dhcp-client-identifier of a
roaming host.
comment: Comment for the roaming host; maximum 256 characters.
ddns_domainname: The DDNS domain name for this roaming host.
ddns_hostname: The DDNS host name for this roaming host.
deny_bootp: If set to true, BOOTP settings are disabled and
BOOTP requests will be denied.
dhcp_client_identifier: The DHCP client ID for the roaming host.
disable: Determines whether a roaming host is disabled or not.
When this is set to False, the roaming host is enabled.
enable_ddns: The dynamic DNS updates flag of the roaming host
object. If set to True, the DHCP server sends DDNS updates
to DNS servers in the same Grid, and to external DNS
servers.
enable_pxe_lease_time: Set this to True if you want the DHCP
server to use a different lease time for PXE clients.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
force_roaming_hostname: Set this to True to use the roaming host
name as its ddns_hostname.
ignore_dhcp_option_list_request: If this field is set to False,
the appliance returns all the DHCP options the client is
eligible to receive, rather than only the list of options
the client has requested.
ipv6_client_hostname: The client hostname of a DHCP roaming host
object. This field specifies the host name that the DHCP
client sends to the Infoblox appliance using DHCP option 12.
ipv6_ddns_domainname: The IPv6 DDNS domain name for this roaming
host.
ipv6_ddns_hostname: The IPv6 DDNS host name for this roaming
host.
ipv6_domain_name: The IPv6 domain name for this roaming host.
ipv6_domain_name_servers: The IPv6 addresses of DNS recursive
name servers to which the DHCP client can send name
resolution requests. The DHCP server includes this
information in the DNS Recursive Name Server option in
Advertise, Rebind, Information-Request, and Reply messages.
ipv6_duid: The DUID value for this roaming host.
ipv6_enable_ddns: Set this to True to enable IPv6 DDNS.
ipv6_force_roaming_hostname: Set this to True to use the roaming
host name as its ddns_hostname.
ipv6_match_option: The identification method for an IPv6 or
mixed IPv4/IPv6 roaming host. Currently, the only supported
value for this field is "DUID", which corresponds to
identification by DHCPv6 unique ID.
ipv6_options: An array of DHCP option structs that lists the
DHCP options associated with the object.
ipv6_template: If set on creation, the roaming host will be
created according to the values specified in the named IPv6
roaming host template.
mac: The MAC address for this roaming host.
match_client: The match-client value for this roaming host.
Valid values are:"MAC_ADDRESS": The fixed IP address is
leased to the matching MAC address."CLIENT_ID": The fixed IP
address is leased to the matching DHCP client identifier.
name: The name of this roaming host.
network_view: The name of the network view in which this roaming
host resides.
nextserver: The name in FQDN and/or IPv4 Address format of the
next server that the host needs to boot.
options: An array of DHCP option structs that lists the DHCP
options associated with the object.
preferred_lifetime: The preferred lifetime value for this
roaming host object.
pxe_lease_time: The PXE lease time value for this roaming host
object. Some hosts use PXE (Preboot Execution Environment)
to boot remotely from a server. To better manage your IP
resources, set a different lease time for PXE boot requests.
You can configure the DHCP server to allocate an IP address
with a shorter lease time to hosts that send PXE boot
requests, so IP addresses are not leased longer than
necessary.A 32-bit unsigned integer that represents the
duration, in seconds, for which the update is cached. Zero
indicates that the update is not cached.
template: If set on creation, the roaming host will be created
according to the values specified in the named template.
use_bootfile: Use flag for: bootfile
use_bootserver: Use flag for: bootserver
use_ddns_domainname: Use flag for: ddns_domainname
use_deny_bootp: Use flag for: deny_bootp
use_enable_ddns: Use flag for: enable_ddns
use_ignore_dhcp_option_list_request: Use flag for:
ignore_dhcp_option_list_request
use_ipv6_ddns_domainname: Use flag for: ipv6_ddns_domainname
use_ipv6_domain_name: Use flag for: ipv6_domain_name
use_ipv6_domain_name_servers: Use flag for:
ipv6_domain_name_servers
use_ipv6_enable_ddns: Use flag for: ipv6_enable_ddns
use_ipv6_options: Use flag for: ipv6_options
use_nextserver: Use flag for: nextserver
use_options: Use flag for: options
use_preferred_lifetime: Use flag for: preferred_lifetime
use_pxe_lease_time: Use flag for: pxe_lease_time
use_valid_lifetime: Use flag for: valid_lifetime
valid_lifetime: The valid lifetime value for this roaming host
object.
"""
_infoblox_type = 'roaminghost'
_fields = ['address_type', 'bootfile', 'bootserver',
'client_identifier_prepend_zero', 'comment', 'ddns_domainname',
'ddns_hostname', 'deny_bootp', 'dhcp_client_identifier',
'disable', 'enable_ddns', 'enable_pxe_lease_time', 'extattrs',
'force_roaming_hostname', 'ignore_dhcp_option_list_request',
'ipv6_client_hostname', 'ipv6_ddns_domainname',
'ipv6_ddns_hostname', 'ipv6_domain_name',
'ipv6_domain_name_servers', 'ipv6_duid', 'ipv6_enable_ddns',
'ipv6_force_roaming_hostname', 'ipv6_match_option',
'ipv6_options', 'ipv6_template', 'mac', 'match_client', 'name',
'network_view', 'nextserver', 'options', 'preferred_lifetime',
'pxe_lease_time', 'template', 'use_bootfile', 'use_bootserver',
'use_ddns_domainname', 'use_deny_bootp', 'use_enable_ddns',
'use_ignore_dhcp_option_list_request',
'use_ipv6_ddns_domainname', 'use_ipv6_domain_name',
'use_ipv6_domain_name_servers', 'use_ipv6_enable_ddns',
'use_ipv6_options', 'use_nextserver', 'use_options',
'use_preferred_lifetime', 'use_pxe_lease_time',
'use_valid_lifetime', 'valid_lifetime']
_search_for_update_fields = ['address_type', 'name', 'network_view']
_updateable_search_fields = ['address_type', 'comment',
'dhcp_client_identifier', 'ipv6_duid',
'ipv6_match_option', 'mac', 'match_client',
'name', 'network_view']
_all_searchable_fields = ['address_type', 'comment',
'dhcp_client_identifier', 'ipv6_duid',
'ipv6_match_option', 'mac', 'match_client',
'name', 'network_view']
_return_fields = ['address_type', 'extattrs', 'name', 'network_view']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'ipv6_options': DhcpOption.from_dict,
'options': DhcpOption.from_dict,
}
class Ruleset(InfobloxObject):
""" Ruleset: DNS Ruleset object.
Corresponds to WAPI object 'ruleset'
Represents a Ruleset object, which is a collection of rules that is
used to match domain names.
Attributes:
comment: Descriptive comment about the Ruleset object.
disabled: The flag that indicates if the Ruleset object is
disabled.
name: The name of this Ruleset object.
nxdomain_rules: The list of Rules assigned to this Ruleset
object. Rules can be set only when the Ruleset type is set
to "NXDOMAIN".
type: The type of this Ruleset object.
"""
_infoblox_type = 'ruleset'
_fields = ['comment', 'disabled', 'name', 'nxdomain_rules', 'type']
_search_for_update_fields = ['disabled', 'name', 'type']
_updateable_search_fields = ['comment', 'disabled', 'name', 'type']
_all_searchable_fields = ['comment', 'disabled', 'name', 'type']
_return_fields = ['comment', 'disabled', 'name', 'type']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'nxdomain_rules': Nxdomainrule.from_dict,
}
class SamlAuthservice(InfobloxObject):
""" SamlAuthservice: SAML authentication service object.
Corresponds to WAPI object 'saml:authservice'
This object represents SAML authentication service.
Attributes:
comment: The descriptive comment for the SAML authentication
service.
idp: The SAML Identity Provider to use for authentication.
name: The name of the SAML authentication service.
session_timeout: The session timeout in seconds.
"""
_infoblox_type = 'saml:authservice'
_fields = ['comment', 'idp', 'name', 'session_timeout']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['name']
_remap = {}
_shadow_fields = ['_ref']
class Scavengingtask(InfobloxObject):
""" Scavengingtask: DNS scavenging task object.
Corresponds to WAPI object 'scavengingtask'
The DNS scavenging task object provides information on scavenging
process state.
Attributes:
action: The scavenging action.
associated_object: The reference to the object associated with
the scavenging task.
end_time: The scavenging process end time.
processed_records: The number of processed during scavenging
resource records.
reclaimable_records: The number of resource records that are
allowed to be reclaimed during the scavenging process.
reclaimed_records: The number of reclaimed during the scavenging
process resource records.
start_time: The scavenging process start time.
status: The scavenging process status. This is a read-only
attribute.
"""
_infoblox_type = 'scavengingtask'
_fields = ['action', 'associated_object', 'end_time', 'processed_records',
'reclaimable_records', 'reclaimed_records', 'start_time',
'status']
_search_for_update_fields = ['action', 'associated_object', 'status']
_updateable_search_fields = []
_all_searchable_fields = ['action', 'associated_object', 'status']
_return_fields = ['action', 'associated_object', 'status']
_remap = {}
_shadow_fields = ['_ref']
class Scheduledtask(InfobloxObject):
""" Scheduledtask: Scheduled Task object.
Corresponds to WAPI object 'scheduledtask'
This object represents a scheduled task.
Attributes:
approval_status: The approval status of the task.
approver: The approver of the task.
approver_comment: The comment specified by the approver of the
task.
automatic_restart: Indicates whether there will be an automatic
restart when the appliance executes the task.
changed_objects: A list of objects that are affected by the
task.
dependent_tasks: If this scheduled task has dependent tasks,
their references will be returned in this field.
execute_now: If this field is set to True the specified task
will be executed immediately.
execution_details: Messages generated by the execution of the
scheduled task after its completion.
execution_details_type: The type of details generated by the
execution of the scheduled task after its completion.
execution_status: The execution status of the task.
execution_time: The time when the appliance executed the task.
is_network_insight_task: Indicates whether this is a Network
Insight scheduled task.
member: The member where this task was created.
predecessor_task: If this scheduled task has a predecessor task
set, its reference will be returned in this field.
re_execute_task: If set to True, if the scheduled task is a
Network Insight task and it failed, a new task will be
cloned from this task and re-executed.
scheduled_time: The time when the task is scheduled to occur.
submit_time: The time when the task was submitted.
submitter: The submitter of the task.
submitter_comment: The comment specified by the submitter of the
task.
task_id: The task ID.
task_type: The task type.
ticket_number: The task ticket number.
"""
_infoblox_type = 'scheduledtask'
_fields = ['approval_status', 'approver', 'approver_comment',
'automatic_restart', 'changed_objects', 'dependent_tasks',
'execute_now', 'execution_details', 'execution_details_type',
'execution_status', 'execution_time', 'is_network_insight_task',
'member', 'predecessor_task', 're_execute_task',
'scheduled_time', 'submit_time', 'submitter',
'submitter_comment', 'task_id', 'task_type', 'ticket_number']
_search_for_update_fields = ['approval_status', 'execution_status',
'task_id']
_updateable_search_fields = ['approval_status', 'scheduled_time']
_all_searchable_fields = ['approval_status', 'approver',
'execution_status', 'execution_time', 'member',
'scheduled_time', 'submit_time', 'submitter',
'task_id']
_return_fields = ['approval_status', 'execution_status', 'task_id']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'changed_objects': Changedobject.from_dict,
}
class Search(InfobloxObject):
""" Search: Search object.
Corresponds to WAPI object 'search'
The search object is used to perform global searches for multiple
object types in the database. This object contains only search
parameters and returns objects that match the search criteria. The
returned objects are base objects for the respective object types.
Search is the only allowed operation for search objects.
NOTE: Only one of the following can be used each time: 'address',
'mac_address', 'duid' or 'fqdn'.
Attributes:
"""
_infoblox_type = 'search'
_fields = []
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = []
_remap = {}
_shadow_fields = ['_ref']
class ASharedRecordBase(InfobloxObject):
@classmethod
def get_v4_class(cls):
return ASharedRecord
@classmethod
def get_v6_class(cls):
return AAAASharedRecord
class ASharedRecord(ASharedRecordBase):
""" ASharedRecord: DNS Shared A record object.
Corresponds to WAPI object 'sharedrecord:a'
A shared A (address) record is similar to a regular A record. It
maps a domain name to an IPv4 address. The difference is that a
shared A record should be added to a shared record group. If the
shared record group is associated with other zones, the shared A
record is shared among these zones.
Attributes:
comment: Comment for this shared record; maximum 256 characters.
disable: Determines if this shared record is disabled or not.
False means that the record is enabled.
dns_name: The name for this shared record in punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
ipv4addr: The IPv4 Address of the shared record.
name: Name for this shared record. This value can be in unicode
format.
shared_record_group: The name of the shared record group in
which the record resides.
ttl: The Time To Live (TTL) value for this shared record. A
32-bit unsigned integer that represents the duration, in
seconds, for which the shared record is valid (cached). Zero
indicates that the shared record should not be cached.
use_ttl: Use flag for: ttl
"""
_infoblox_type = 'sharedrecord:a'
_fields = ['comment', 'disable', 'dns_name', 'extattrs', 'ipv4addr',
'name', 'shared_record_group', 'ttl', 'use_ttl']
_search_for_update_fields = ['ipv4addr', 'name']
_updateable_search_fields = ['comment', 'ipv4addr', 'name']
_all_searchable_fields = ['comment', 'ipv4addr', 'name']
_return_fields = ['extattrs', 'ipv4addr', 'name', 'shared_record_group']
_remap = {}
_shadow_fields = ['_ref']
_ip_version = 4
class AAAASharedRecord(ASharedRecordBase):
""" AAAASharedRecord: DNS Shared AAAA record object.
Corresponds to WAPI object 'sharedrecord:aaaa'
A shared AAAA (address) record is similar to a regular AAAA record.
It maps a domain name to an IPv6 address. The difference is that a
shared AAAA record should be added to a shared record group. If the
shared record group is associated with other zones, the shared AAAA
record is shared among these zones.
Attributes:
comment: Comment for this shared record; maximum 256 characters.
disable: Determines if this shared record is disabled or not.
False means that the record is enabled.
dns_name: The name for this shared record in punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
ipv6addr: The IPv6 Address of the shared record.
name: Name for this shared record. This value can be in unicode
format.
shared_record_group: The name of the shared record group in
which the record resides.
ttl: The Time To Live (TTL) value for this shared record. A
32-bit unsigned integer that represents the duration, in
seconds, for which the shared record is valid (cached). Zero
indicates that the shared record should not be cached.
use_ttl: Use flag for: ttl
"""
_infoblox_type = 'sharedrecord:aaaa'
_fields = ['comment', 'disable', 'dns_name', 'extattrs', 'ipv6addr',
'name', 'shared_record_group', 'ttl', 'use_ttl']
_search_for_update_fields = ['ipv6addr', 'name']
_updateable_search_fields = ['comment', 'ipv6addr', 'name']
_all_searchable_fields = ['comment', 'ipv6addr', 'name']
_return_fields = ['extattrs', 'ipv6addr', 'name', 'shared_record_group']
_remap = {}
_shadow_fields = ['_ref']
_ip_version = 6
class CNAMESharedRecord(InfobloxObject):
""" CNAMESharedRecord: DNS Shared CNAME record object.
Corresponds to WAPI object 'sharedrecord:cname'
A shared CNAME (canonical name) record is similar to a regular CNAME
record. The difference is that a shared CNAME record should be added
to a shared record group. If the shared record group is associated
with other zones, the shared CNAME record is shared among these
zones.
Attributes:
canonical: Canonical name in FQDN format. This value can be in
unicode format.
comment: Comment for this shared record; maximum 256 characters.
disable: Determines if this shared record is disabled or not.
False means that the record is enabled.
dns_canonical: Canonical name in punycode format.
dns_name: The name for this shared record in punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
name: Name for this shared record. This value can be in unicode
format.
shared_record_group: The name of the shared record group in
which the record resides.
ttl: The Time To Live (TTL) value for this shared record. A
32-bit unsigned integer that represents the duration, in
seconds, for which the shared record is valid (cached). Zero
indicates that the shared record should not be cached.
use_ttl: Use flag for: ttl
"""
_infoblox_type = 'sharedrecord:cname'
_fields = ['canonical', 'comment', 'disable', 'dns_canonical', 'dns_name',
'extattrs', 'name', 'shared_record_group', 'ttl', 'use_ttl']
_search_for_update_fields = ['canonical', 'name']
_updateable_search_fields = ['canonical', 'comment', 'name']
_all_searchable_fields = ['canonical', 'comment', 'name']
_return_fields = ['canonical', 'extattrs', 'name', 'shared_record_group']
_remap = {}
_shadow_fields = ['_ref']
class MXSharedRecord(InfobloxObject):
""" MXSharedRecord: DNS Shared MX record object.
Corresponds to WAPI object 'sharedrecord:mx'
A shared MX (mail exchanger) record is similar to a regular MX
record. It maps a domain name to a mail exchanger. The difference is
that a shared MX record should be added to a shared record group. If
the shared record group is associated with other zones, the shared
MX record is shared among these zones.
Attributes:
comment: Comment for this shared record; maximum 256 characters.
disable: Determines if this shared record is disabled or not.
False means that the record is enabled.
dns_mail_exchanger: The name of the mail exchanger in punycode
format.
dns_name: The name for this shared record in punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
mail_exchanger: The name of the mail exchanger in FQDN format.
This value can be in unicode format.
name: Name for this shared record. This value can be in unicode
format.
preference: The preference value. Valid values are from 0 to
65535 (inclusive), in 32-bit unsigned integer format.
shared_record_group: The name of the shared record group in
which the record resides.
ttl: The Time To Live (TTL) value for this shared record. A
32-bit unsigned integer that represents the duration, in
seconds, for which the shared record is valid (cached). Zero
indicates that the shared record should not be cached.
use_ttl: Use flag for: ttl
"""
_infoblox_type = 'sharedrecord:mx'
_fields = ['comment', 'disable', 'dns_mail_exchanger', 'dns_name',
'extattrs', 'mail_exchanger', 'name', 'preference',
'shared_record_group', 'ttl', 'use_ttl']
_search_for_update_fields = ['mail_exchanger', 'name', 'preference']
_updateable_search_fields = ['comment', 'mail_exchanger', 'name',
'preference']
_all_searchable_fields = ['comment', 'mail_exchanger', 'name',
'preference']
_return_fields = ['extattrs', 'mail_exchanger', 'name', 'preference',
'shared_record_group']
_remap = {}
_shadow_fields = ['_ref']
class SRVSharedRecord(InfobloxObject):
""" SRVSharedRecord: DNS Shared SRV record object.
Corresponds to WAPI object 'sharedrecord:srv'
A shared SRV (service) record is similar to a regular SRV record. It
provides information about available services. The difference is
that a shared SRV record should be added to a shared record group.
If the shared record group is associated with other zones, the
shared SRV record is shared among these zones.
Attributes:
comment: Comment for this shared record; maximum 256 characters.
disable: Determines if this shared record is disabled or not.
False means that the record is enabled.
dns_name: The name for this shared record in punycode format.
dns_target: The name for a shared SRV record in punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
name: Name for this shared record. This value can be in unicode
format.
port: The port of the shared SRV record. Valid values are from 0
to 65535 (inclusive), in 32-bit unsigned integer format.
priority: The priority of the shared SRV record. Valid values
are from 0 to 65535 (inclusive), in 32-bit unsigned integer
format.
shared_record_group: The name of the shared record group in
which the record resides.
target: The target of the shared SRV record in FQDN format. This
value can be in unicode format.
ttl: The Time To Live (TTL) value for this shared record. A
32-bit unsigned integer that represents the duration, in
seconds, for which the shared record is valid (cached). Zero
indicates that the shared record should not be cached.
use_ttl: Use flag for: ttl
weight: The weight of the shared SRV record. Valid values are
from 0 to 65535 (inclusive), in 32-bit unsigned integer
format.
"""
_infoblox_type = 'sharedrecord:srv'
_fields = ['comment', 'disable', 'dns_name', 'dns_target', 'extattrs',
'name', 'port', 'priority', 'shared_record_group', 'target',
'ttl', 'use_ttl', 'weight']
_search_for_update_fields = ['name', 'port', 'priority', 'target',
'weight']
_updateable_search_fields = ['comment', 'name', 'port', 'priority',
'target', 'weight']
_all_searchable_fields = ['comment', 'name', 'port', 'priority', 'target',
'weight']
_return_fields = ['extattrs', 'name', 'port', 'priority',
'shared_record_group', 'target', 'weight']
_remap = {}
_shadow_fields = ['_ref']
class TXTSharedRecord(InfobloxObject):
""" TXTSharedRecord: DNS Shared TXT record object.
Corresponds to WAPI object 'sharedrecord:txt'
A shared TXT (text) record is similar to a regular TXT record. It
contains supplemental information for a host. SPF (Sender Policy
Framework) records are specialized TXT records that identify the
servers that send mail from a domain. The difference is that a
shared TXT record should be added to a shared record group. If the
shared record group is associated with other zones, the shared TXT
record is shared among these zones.
Attributes:
comment: Comment for this shared record; maximum 256 characters.
disable: Determines if this shared record is disabled or not.
False means that the record is enabled.
dns_name: The name for this shared record in punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
name: Name for this shared record. This value can be in unicode
format.
shared_record_group: The name of the shared record group in
which the record resides.
text: Text associated with the shared record. It can contain up
to 255 bytes per substring and up a total of 512 bytes. To
enter leading, trailing or embedded spaces in the text, add
quotes (" ") around the text to preserve the spaces.
ttl: The Time To Live (TTL) value for this shared record. A
32-bit unsigned integer that represents the duration, in
seconds, for which the shared record is valid (cached). Zero
indicates that the shared record should not be cached.
use_ttl: Use flag for: ttl
"""
_infoblox_type = 'sharedrecord:txt'
_fields = ['comment', 'disable', 'dns_name', 'extattrs', 'name',
'shared_record_group', 'text', 'ttl', 'use_ttl']
_search_for_update_fields = ['name', 'text']
_updateable_search_fields = ['comment', 'name', 'text']
_all_searchable_fields = ['comment', 'name', 'text']
_return_fields = ['extattrs', 'name', 'shared_record_group', 'text']
_remap = {}
_shadow_fields = ['_ref']
class Sharedrecordgroup(InfobloxObject):
""" Sharedrecordgroup: DNS Shared Record Group object.
Corresponds to WAPI object 'sharedrecordgroup'
A shared record group (SRG) is created to contain DNS shared records
and share them between different zones. For example, if a group of
DNS records needs to be in three different zones, you can include
the records in a shared record group and assign the group to the
three zones. For more information about shared record groups and
shared records, please refer to Infoblox Administrator Guide.
Attributes:
comment: The descriptive comment of this shared record group.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
name: The name of this shared record group.
record_name_policy: The record name policy of this shared record
group.
use_record_name_policy: Use flag for: record_name_policy
zone_associations: The list of zones associated with this shared
record group.
"""
_infoblox_type = 'sharedrecordgroup'
_fields = ['comment', 'extattrs', 'name', 'record_name_policy',
'use_record_name_policy', 'zone_associations']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
class SmartfolderChildren(InfobloxObject):
""" SmartfolderChildren: Smart Folder children object.
Corresponds to WAPI object 'smartfolder:children'
The Smart Folder children object is used to read the objects that
are associated with either a Smart Folder (global or personal) or a
set of queries that users can make without saving a Smart Folder
object on the appliance.
The Smart Folder children object can be used for both "filtering"
and "grouping" the results of Smart Folder associated objects.
Attributes:
resource: The object retuned by the Smart Folder query.
value: The value returned by the Smart Folder query.
value_type: The type of the returned value.
"""
_infoblox_type = 'smartfolder:children'
_fields = ['resource', 'value', 'value_type']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = ['resource', 'value', 'value_type']
_remap = {}
_shadow_fields = ['_ref']
class SmartfolderGlobal(InfobloxObject):
""" SmartfolderGlobal: Global Smart Folder object.
Corresponds to WAPI object 'smartfolder:global'
Smart Folders are used to organize your core network services data.
Depending on your administrative roles and business needs, you can
filter your data object types, names, extensible attributes and
discovered data and then place the filtered results in a Smart
Folder.
The global Smart Folders are created to be shared among
administrators.
Attributes:
comment: The global Smart Folder descriptive comment.
group_bys: Global Smart Folder grouping rules.
name: The global Smart Folder name.
query_items: The global Smart Folder filter queries.
"""
_infoblox_type = 'smartfolder:global'
_fields = ['comment', 'group_bys', 'name', 'query_items']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'group_bys': SmartfolderGroupby.from_dict,
'query_items': SmartfolderQueryitem.from_dict,
}
def save_as(self, *args, **kwargs):
return self._call_func("save_as", *args, **kwargs)
class SmartfolderPersonal(InfobloxObject):
""" SmartfolderPersonal: Personal Smart Folder object.
Corresponds to WAPI object 'smartfolder:personal'
Smart Folders are used to organize your core network services data.
Depending on your administrative roles and business needs, you can
filter your data object types, names, extensible attributes and
discovered data and then place the filtered results in a Smart
Folder.
The personal Smart Folder is used to Smart Folders available only to
a administrator that have created the Smart Folder.
Attributes:
comment: The personal Smart Folder descriptive comment.
group_bys: The personal Smart Folder groupping rules.
is_shortcut: Determines whether the personal Smart Folder is a
shortcut.
name: The personal Smart Folder name.
query_items: The personal Smart Folder filter queries.
"""
_infoblox_type = 'smartfolder:personal'
_fields = ['comment', 'group_bys', 'is_shortcut', 'name', 'query_items']
_search_for_update_fields = ['is_shortcut', 'name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'is_shortcut', 'name']
_return_fields = ['comment', 'is_shortcut', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'group_bys': SmartfolderGroupby.from_dict,
'query_items': SmartfolderQueryitem.from_dict,
}
def save_as(self, *args, **kwargs):
return self._call_func("save_as", *args, **kwargs)
class Snmpuser(InfobloxObject):
""" Snmpuser: SNMP user object.
Corresponds to WAPI object 'snmpuser'
This object contains information related to SNMPv3 users.
Attributes:
authentication_password: Determines an authentication password
for the user. This is a write-only attribute.
authentication_protocol: The authentication protocol to be used
for this user.
comment: A descriptive comment for the SNMPv3 User.
disable: Determines if SNMPv3 user is disabled or not.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
name: The name of the user.
privacy_password: Determines a password for the privacy
protocol.
privacy_protocol: The privacy protocol to be used for this user.
"""
_infoblox_type = 'snmpuser'
_fields = ['authentication_password', 'authentication_protocol', 'comment',
'disable', 'extattrs', 'name', 'privacy_password',
'privacy_protocol']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
class Superhost(InfobloxObject):
""" Superhost: SuperHost object.
Corresponds to WAPI object 'superhost'
The collection of correlated IPAM records which is related to single
device.
Attributes:
comment: The comment for Super Host.
delete_associated_objects: True if we have to delete all
DNS/DHCP associated objects with Super Host, false by
default.
dhcp_associated_objects: A list of DHCP objects refs which are
associated with Super Host.
disabled: Disable all DNS/DHCP associated objects with Super
Host if True, False by default.
dns_associated_objects: A list of object refs of the DNS
resource records which are associated with Super Host.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
name: Name of the Superhost.
"""
_infoblox_type = 'superhost'
_fields = ['comment', 'delete_associated_objects',
'dhcp_associated_objects', 'disabled', 'dns_associated_objects',
'extattrs', 'name']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'disabled', 'name']
_all_searchable_fields = ['comment', 'disabled', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
class Superhostchild(InfobloxObject):
""" Superhostchild: Super Host Child object.
Corresponds to WAPI object 'superhostchild'
The superhostchild object is a read-only synthetic object used to
retrieve records assigned to superhost.
Since this is a synthetic object, it supports reading only by
specifying search parameters, not by reference.
Attributes:
associated_object: The record object, if supported by the WAPI.
Otherwise, the value is "None".
comment: The record comment.
creation_timestamp: Time at which DNS RR was created.
data: Specific data of DNS/DHCP records.
disabled: True if the child DNS/DHCP object is disabled.
name: Name of the associated DNS/DHCP object.
network_view: The name of the network view in which this network
record resides.
parent: Name of the Super Host object in which record resides.
record_parent: Name of a parent zone/network.
type: The record type. When searching for an unspecified record
type, the search is performed for all records.
view: Name of the DNS View in which the record resides.
"""
_infoblox_type = 'superhostchild'
_fields = ['associated_object', 'comment', 'creation_timestamp', 'data',
'disabled', 'name', 'network_view', 'parent', 'record_parent',
'type', 'view']
_search_for_update_fields = ['data', 'name', 'network_view', 'parent',
'record_parent', 'type', 'view']
_updateable_search_fields = []
_all_searchable_fields = ['comment', 'creation_timestamp', 'data', 'name',
'network_view', 'parent', 'record_parent',
'type', 'view']
_return_fields = ['comment', 'data', 'name', 'network_view', 'parent',
'record_parent', 'type', 'view']
_remap = {}
_shadow_fields = ['_ref']
class SyslogEndpoint(InfobloxObject):
""" SyslogEndpoint: The syslog endpoint object.
Corresponds to WAPI object 'syslog:endpoint'
The name part of the syslog:endpoint object reference has the
following components:
The name of an endpoint.
Example: syslog:endpoint/b25lLmVuZHBvaW50JDMzOQ:wintermute
Attributes:
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
log_level: The log level for a notification REST endpoint.
name: The name of a Syslog endpoint.
outbound_member_type: The outbound member that will generate
events.
outbound_members: The list of members for outbound events.
syslog_servers: List of syslog servers
template_instance: The Syslog template instance. You cannot
change the parameters of the Syslog endpoint template
instance.
timeout: The timeout of session management (in seconds).
vendor_identifier: The vendor identifier.
wapi_user_name: The user name for WAPI integration.
wapi_user_password: The user password for WAPI integration.
"""
_infoblox_type = 'syslog:endpoint'
_fields = ['extattrs', 'log_level', 'name', 'outbound_member_type',
'outbound_members', 'syslog_servers', 'template_instance',
'timeout', 'vendor_identifier', 'wapi_user_name',
'wapi_user_password']
_search_for_update_fields = ['name', 'outbound_member_type']
_updateable_search_fields = ['log_level', 'name', 'outbound_member_type',
'vendor_identifier']
_all_searchable_fields = ['log_level', 'name', 'outbound_member_type',
'vendor_identifier']
_return_fields = ['extattrs', 'name', 'outbound_member_type']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'syslog_servers': SyslogEndpointServers.from_dict,
}
def test_syslog_connection(self, *args, **kwargs):
return self._call_func("test_syslog_connection", *args, **kwargs)
class TacacsplusAuthservice(InfobloxObject):
""" TacacsplusAuthservice: The TACACS+ authentication service
object.
Corresponds to WAPI object 'tacacsplus:authservice'
This object is used to supply configuration for TACACS+
authentication service.
Attributes:
acct_retries: The number of the accounting retries before giving
up and moving on to the next server.
acct_timeout: The accounting retry period in milliseconds.
auth_retries: The number of the authentication/authorization
retries before giving up and moving on to the next server.
auth_timeout: The authentication/authorization timeout period in
milliseconds.
comment: The TACACS+ authentication service descriptive comment.
disable: Determines whether the TACACS+ authentication service
object is disabled.
name: The TACACS+ authentication service name.
servers: The list of the TACACS+ servers used for
authentication.
"""
_infoblox_type = 'tacacsplus:authservice'
_fields = ['acct_retries', 'acct_timeout', 'auth_retries', 'auth_timeout',
'comment', 'disable', 'name', 'servers']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'disable', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'servers': TacacsplusServer.from_dict,
}
def check_tacacsplus_server_settings(self, *args, **kwargs):
return self._call_func("check_tacacsplus_server_settings", *args,
**kwargs)
class Taxii(InfobloxObject):
""" Taxii: Taxii Member object.
Corresponds to WAPI object 'taxii'
The Taxii Member object provides information about Taxii service
configuration such as the start/stop flag and RPZ (Response Policy
Zone) configuration.
Attributes:
enable_service: Indicates whether the Taxii service is running
on the given member or not.
ipv4addr: The IPv4 Address of the Grid member.
ipv6addr: The IPv6 Address of the Grid member.
name: The name of the Taxii Member.
taxii_rpz_config: Taxii service RPZ configuration list.
"""
_infoblox_type = 'taxii'
_fields = ['enable_service', 'ipv4addr', 'ipv6addr', 'name',
'taxii_rpz_config']
_search_for_update_fields = ['ipv4addr', 'ipv6addr', 'name']
_updateable_search_fields = []
_all_searchable_fields = ['ipv4addr', 'ipv6addr', 'name']
_return_fields = ['ipv4addr', 'ipv6addr', 'name']
_remap = {}
_shadow_fields = ['_ref', 'ip']
@property
def ip(self):
if hasattr(self, '_ip'):
return str(self._ip)
# This object represents both ipv4 and ipv6 objects, so it doesn't need
# versioned object for that. Just set v4 or v6 field in addition
# to setting shadow field 'ip' itself.
@ip.setter
def ip(self, ip):
self._ip = ip
if ib_utils.determine_ip_version(ip) == 6:
if 'ipv6addr' not in self._fields:
raise ib_ex.InfobloxInvalidIp(ip=ip)
self.ipv6addr = ip
else:
if 'ipv4addr' not in self._fields:
raise ib_ex.InfobloxInvalidIp(ip=ip)
self.ipv4addr = ip
_custom_field_processing = {
'taxii_rpz_config': TaxiiRpzconfig.from_dict,
}
class Tftpfiledir(InfobloxObject):
""" Tftpfiledir: TFTP file or directory object.
Corresponds to WAPI object 'tftpfiledir'
The TFTP file/directory object provides facilities for creating a
directory structure for file distribution, modifying the directory
name and permission, creating virtual TFTP root directories, and
browsing the contents of the directories.
Attributes:
directory: The path to the directory that contains file or
subdirectory.
is_synced_to_gm: Determines whether the TFTP entity is
synchronized to Grid Master.
last_modify: The time when the file or directory was last
modified.
name: The TFTP directory or file name.
type: The type of TFTP file system entity (directory or file).
vtftp_dir_members: The replication members with TFTP client
addresses where this virtual folder is applicable.
"""
_infoblox_type = 'tftpfiledir'
_fields = ['directory', 'is_synced_to_gm', 'last_modify', 'name', 'type',
'vtftp_dir_members']
_search_for_update_fields = ['directory', 'name', 'type']
_updateable_search_fields = ['name']
_all_searchable_fields = ['directory', 'name', 'type']
_return_fields = ['directory', 'name', 'type']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'vtftp_dir_members': Vtftpdirmember.from_dict,
}
class ThreatanalyticsAnalyticsWhitelist(InfobloxObject):
""" ThreatanalyticsAnalyticsWhitelist: Threat analytics whitelist
object.
Corresponds to WAPI object 'threatanalytics:analytics_whitelist'
The threat analytics whitelist object contains trusted domains on
which NIOS allows DNS traffic.
Attributes:
version: Whitelist version string.
"""
_infoblox_type = 'threatanalytics:analytics_whitelist'
_fields = ['version']
_search_for_update_fields = ['version']
_updateable_search_fields = []
_all_searchable_fields = ['version']
_return_fields = ['version']
_remap = {}
_shadow_fields = ['_ref']
class ThreatanalyticsModuleset(InfobloxObject):
""" ThreatanalyticsModuleset: Threat analytics module set object.
Corresponds to WAPI object 'threatanalytics:moduleset'
The threat analytics module set represents the installation or
update of module information.
Attributes:
version: The version number of the threat analytics module set.
"""
_infoblox_type = 'threatanalytics:moduleset'
_fields = ['version']
_search_for_update_fields = ['version']
_updateable_search_fields = []
_all_searchable_fields = ['version']
_return_fields = ['version']
_remap = {}
_shadow_fields = ['_ref']
class ThreatanalyticsWhitelist(InfobloxObject):
""" ThreatanalyticsWhitelist: Threat analytics whitelist object.
Corresponds to WAPI object 'threatanalytics:whitelist'
The threat analytics whitelist object contains trusted domains on
which NIOS allows DNS traffic.
Attributes:
comment: The descriptive comment for the threat analytics
whitelist.
disable: Determines whether the threat analytics whitelist is
disabled.
fqdn: The FQDN of the threat analytics whitelist.
type: The type of the threat analytics whitelist.
"""
_infoblox_type = 'threatanalytics:whitelist'
_fields = ['comment', 'disable', 'fqdn', 'type']
_search_for_update_fields = ['fqdn']
_updateable_search_fields = ['comment', 'fqdn']
_all_searchable_fields = ['comment', 'fqdn', 'type']
_return_fields = ['comment', 'disable', 'fqdn']
_remap = {}
_shadow_fields = ['_ref']
class ThreatinsightCloudclient(InfobloxObject):
""" ThreatinsightCloudclient: Threat Insight Cloud Client object.
Corresponds to WAPI object 'threatinsight:cloudclient'
You can use the Threat Insight Cloud Client object to configure the
detection and authentication of domains in the Cloud, and then apply
them to on-premises DNS firewall RPZ zones within a configurable
time frame.
Attributes:
blacklist_rpz_list: The RPZs to which you apply newly detected
domains through the Infoblox Threat Insight Cloud Client.
enable: Determines whether the Threat Insight in Cloud Client is
enabled.
force_refresh: Force a refresh if at least one RPZ is
configured.
interval: The time interval (in seconds) for requesting newly
detected domains by the Infoblox Threat Insight Cloud Client
and applying them to the list of configured RPZs.
"""
_infoblox_type = 'threatinsight:cloudclient'
_fields = ['blacklist_rpz_list', 'enable', 'force_refresh', 'interval']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = ['enable', 'interval']
_remap = {}
_shadow_fields = ['_ref']
class ThreatprotectionGridRule(InfobloxObject):
""" ThreatprotectionGridRule: Threat protection custom rule object.
Corresponds to WAPI object 'threatprotection:grid:rule'
This object provides information about the threat protection custom
rule settings.
Attributes:
allowed_actions: The list of allowed actions of the custom rule.
category: The rule category the custom rule assigned to.
comment: The human readable comment for the custom rule.
config: The rule config of the template.
description: The description of the custom rule.
disabled: Determines if the custom rule is disabled.
is_factory_reset_enabled: Determines if factory reset is enabled
for the custom rule.
name: The name of the rule custom rule concatenated with its
rule config parameters.
ruleset: The version of the ruleset the custom rule assigned to.
sid: The Rule ID.
template: The threat protection rule template used to create
this rule.
type: The type of the custom rule.
"""
_infoblox_type = 'threatprotection:grid:rule'
_fields = ['allowed_actions', 'category', 'comment', 'config',
'description', 'disabled', 'is_factory_reset_enabled', 'name',
'ruleset', 'sid', 'template', 'type']
_search_for_update_fields = ['name', 'ruleset', 'sid']
_updateable_search_fields = ['comment', 'template']
_all_searchable_fields = ['category', 'comment', 'description', 'name',
'ruleset', 'sid', 'template', 'type']
_return_fields = ['name', 'ruleset', 'sid']
_remap = {}
_shadow_fields = ['_ref']
class ThreatprotectionProfile(InfobloxObject):
""" ThreatprotectionProfile: The Threat Protection profile object.
Corresponds to WAPI object 'threatprotection:profile'
The Threat Protection profile object facilitates configuring groups
of Threat Protection members that have similar traffic properties. A
member can be either associated with a Threat Protection profile or
inherit the ruleset from the Grid or override the ruleset
individually at the member level.
Attributes:
comment: The comment for the Threat Protection profile.
current_ruleset: The current Threat Protection profile ruleset.
disable_multiple_dns_tcp_request: Determines if multiple BIND
responses via TCP connection are disabled.
events_per_second_per_rule: The number of events logged per
second per rule.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
members: The list of members that are associated with the
profile.
name: The name of the Threat Protection profile.
source_member: The source member. It can be used only during the
create operation for cloning a profile from an existing
member.
source_profile: The source profile. It can be used only during
the create operation for cloning a profile from an existing
profile.
use_current_ruleset: Use flag for: current_ruleset
use_disable_multiple_dns_tcp_request: Use flag for:
disable_multiple_dns_tcp_request
use_events_per_second_per_rule: Use flag for:
events_per_second_per_rule
"""
_infoblox_type = 'threatprotection:profile'
_fields = ['comment', 'current_ruleset',
'disable_multiple_dns_tcp_request',
'events_per_second_per_rule', 'extattrs', 'members', 'name',
'source_member', 'source_profile', 'use_current_ruleset',
'use_disable_multiple_dns_tcp_request',
'use_events_per_second_per_rule']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'current_ruleset',
'disable_multiple_dns_tcp_request',
'events_per_second_per_rule', 'name']
_all_searchable_fields = ['comment', 'current_ruleset',
'disable_multiple_dns_tcp_request',
'events_per_second_per_rule', 'name']
_return_fields = ['comment', 'extattrs', 'name']
_remap = {}
_shadow_fields = ['_ref']
class ThreatprotectionProfileRule(InfobloxObject):
""" ThreatprotectionProfileRule: Threat Protection Profile Rule
object.
Corresponds to WAPI object 'threatprotection:profile:rule'
This object provides information about the Threat protection profile
rule settings.
Attributes:
config: The threat protection rule configuration.
disable: Determines if the rule is enabled or not for the
profile.
profile: The name of the Threat protection profile.
rule: The rule object name.
sid: The snort rule ID.
use_config: Use flag for: config
use_disable: Use flag for: disable
"""
_infoblox_type = 'threatprotection:profile:rule'
_fields = ['config', 'disable', 'profile', 'rule', 'sid', 'use_config',
'use_disable']
_search_for_update_fields = ['profile', 'rule']
_updateable_search_fields = []
_all_searchable_fields = ['profile', 'rule', 'sid']
_return_fields = ['profile', 'rule']
_remap = {}
_shadow_fields = ['_ref']
class ThreatprotectionRule(InfobloxObject):
""" ThreatprotectionRule: Member Threat Protection Rule object.
Corresponds to WAPI object 'threatprotection:rule'
This object provides information about the member Threat protection
rule settings.
Attributes:
config: The threat protection rule configuration.
disable: Determines if the rule is enabled or not for the
member.
member: The name of the Threat protection member.
rule: The rule object name.
sid: The Rule ID.
use_config: Use flag for: config
use_disable: Use flag for: disable
"""
_infoblox_type = 'threatprotection:rule'
_fields = ['config', 'disable', 'member', 'rule', 'sid', 'use_config',
'use_disable']
_search_for_update_fields = ['member', 'rule']
_updateable_search_fields = []
_all_searchable_fields = ['member', 'rule', 'sid']
_return_fields = ['member', 'rule']
_remap = {}
_shadow_fields = ['_ref']
class ThreatprotectionRulecategory(InfobloxObject):
""" ThreatprotectionRulecategory: Threat protection rule category
object.
Corresponds to WAPI object 'threatprotection:rulecategory'
This object provides information about the threat protection rule
category settings.
Attributes:
is_factory_reset_enabled: Determines if factory reset is enabled
for this rule category.
name: The name of the rule category.
ruleset: The version of the ruleset the category assigned to.
"""
_infoblox_type = 'threatprotection:rulecategory'
_fields = ['is_factory_reset_enabled', 'name', 'ruleset']
_search_for_update_fields = ['name', 'ruleset']
_updateable_search_fields = []
_all_searchable_fields = ['name', 'ruleset']
_return_fields = ['name', 'ruleset']
_remap = {}
_shadow_fields = ['_ref']
class ThreatprotectionRuleset(InfobloxObject):
""" ThreatprotectionRuleset: The Grid threat protection ruleset
object.
Corresponds to WAPI object 'threatprotection:ruleset'
This object represent the Grid protection ruleset information.
Attributes:
add_type: Determines the way the ruleset was added.
added_time: The time when the ruleset was added.
comment: The human readable comment for the ruleset.
do_not_delete: Determines if the ruleset will not be deleted
during upgrade.
is_factory_reset_enabled: Determines if factory reset is enabled
for this ruleset.
used_by: The users of the ruleset.
version: The ruleset version.
"""
_infoblox_type = 'threatprotection:ruleset'
_fields = ['add_type', 'added_time', 'comment', 'do_not_delete',
'is_factory_reset_enabled', 'used_by', 'version']
_search_for_update_fields = ['add_type', 'version']
_updateable_search_fields = ['comment']
_all_searchable_fields = ['add_type', 'comment', 'version']
_return_fields = ['add_type', 'version']
_remap = {}
_shadow_fields = ['_ref']
class ThreatprotectionRuletemplate(InfobloxObject):
""" ThreatprotectionRuletemplate: Threat protection rule template
object.
Corresponds to WAPI object 'threatprotection:ruletemplate'
This object provides information about the threat protection rule
template settings.
Attributes:
allowed_actions: The list of allowed actions of rhe rule
template.
category: The rule category this template assigned to.
default_config: The rule config of this template.
description: The description of the rule template.
name: The name of the rule template.
ruleset: The version of the ruleset the template assigned to.
sid: The Rule ID.
"""
_infoblox_type = 'threatprotection:ruletemplate'
_fields = ['allowed_actions', 'category', 'default_config', 'description',
'name', 'ruleset', 'sid']
_search_for_update_fields = ['name', 'ruleset', 'sid']
_updateable_search_fields = []
_all_searchable_fields = ['category', 'description', 'name', 'ruleset',
'sid']
_return_fields = ['name', 'ruleset', 'sid']
_remap = {}
_shadow_fields = ['_ref']
class ThreatprotectionStatistics(InfobloxObject):
""" ThreatprotectionStatistics: Threat protection statistics object.
Corresponds to WAPI object 'threatprotection:statistics'
This object provides information about the threat protection
statistics.
Attributes:
member: The Grid member name to get threat protection
statistics. If nothing is specified then event statistics is
returned for the Grid.
stat_infos: The list of event statistical information for the
Grid or particular members.
"""
_infoblox_type = 'threatprotection:statistics'
_fields = ['member', 'stat_infos']
_search_for_update_fields = ['member']
_updateable_search_fields = []
_all_searchable_fields = ['member']
_return_fields = ['member', 'stat_infos']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'stat_infos': ThreatprotectionStatinfo.from_dict,
}
class Upgradegroup(InfobloxObject):
""" Upgradegroup: Upgrade group object.
Corresponds to WAPI object 'upgradegroup'
To minimize the impact of Grid upgrades on system operations, you
can organize members into upgrade groups and schedule their software
distributions. The upgrade group object provides configuration of
upgrade and software distribution for members included in the
upgrade group.
Attributes:
comment: The upgrade group descriptive comment.
distribution_dependent_group: The distribution dependent group
name.
distribution_policy: The distribution scheduling policy.
distribution_time: The time of the next scheduled distribution.
members: The upgrade group members.
name: The upgrade group name.
time_zone: The time zone for scheduling operations.
upgrade_dependent_group: The upgrade dependent group name.
upgrade_policy: The upgrade scheduling policy.
upgrade_time: The time of the next scheduled upgrade.
"""
_infoblox_type = 'upgradegroup'
_fields = ['comment', 'distribution_dependent_group',
'distribution_policy', 'distribution_time', 'members', 'name',
'time_zone', 'upgrade_dependent_group', 'upgrade_policy',
'upgrade_time']
_search_for_update_fields = ['name']
_updateable_search_fields = ['comment', 'name']
_all_searchable_fields = ['comment', 'name']
_return_fields = ['comment', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'members': UpgradegroupMember.from_dict,
}
class Upgradeschedule(InfobloxObject):
""" Upgradeschedule: Upgrade schedule object.
Corresponds to WAPI object 'upgradeschedule'
You can schedule lite and full upgrades for certain NIOS versions.
When you schedule an upgrade, you schedule the upgrade for the Grid
Master and the upgrade groups, including the Default group. The Grid
Master must always upgrade before the upgrade groups.
The upgrade schedule object provides configuration of the scheduled
upgrade, activation of the latest upgrade, as well as date and time
settings for the upgrade.
Attributes:
active: Determines whether the upgrade schedule is active.
start_time: The start time of the upgrade.
time_zone: The time zone for upgrade start time.
upgrade_groups: The upgrade groups scheduling settings.
"""
_infoblox_type = 'upgradeschedule'
_fields = ['active', 'start_time', 'time_zone', 'upgrade_groups']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = ['active', 'start_time', 'time_zone']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'upgrade_groups': UpgradegroupSchedule.from_dict,
}
class Upgradestatus(InfobloxObject):
""" Upgradestatus: The upgrade status object.
Corresponds to WAPI object 'upgradestatus'
The Upgrade Status object is used to view the upgrade status of
Infoblox Grid elements.
Attributes:
allow_distribution: Determines if distribution is allowed for
the Grid.
allow_distribution_scheduling: Determines if distribution
scheduling is allowed.
allow_upgrade: Determines if upgrade is allowed for the Grid.
allow_upgrade_cancel: Determines if the Grid is allowed to
cancel an upgrade.
allow_upgrade_pause: Determines if the Grid is allowed to pause
an upgrade.
allow_upgrade_resume: Determines if the Grid is allowed to
resume an upgrade.
allow_upgrade_scheduling: Determine if the Grid is allowed to
schedule an upgrade.
allow_upgrade_test: Determines if the Grid is allowed to test an
upgrade.
allow_upload: Determine if the Grid is allowed to upload a
build.
alternate_version: The alternative version.
comment: Comment in readable format for an upgrade group a or
virtual node.
current_version: The current version.
current_version_summary: Current version summary for the 'type'
requested. This field can be requested for the Grid, a
certain group that has virtual nodes as subelements, or for
the overall group status.
distribution_schedule_active: Determines if the distribution
schedule is active for the Grid.
distribution_schedule_time: The Grid master distribution
schedule time.
distribution_state: The current state of distribution process.
distribution_version: The version that is distributed.
distribution_version_summary: Distribution version summary for
the 'type' requested. This field can be requested for the
Grid, a certain group that has virtual nodes as subelements,
or for the overall group status.
element_status: The status of a certain element with regards to
the type requested.
grid_state: The state of the Grid.
group_state: The state of a group.
ha_status: Status of the HA pair.
hotfixes: The list of hotfixes.
ipv4_address: The IPv4 Address of virtual node or physical one.
ipv6_address: The IPv6 Address of virtual node or physical one.
member: Member that participates in the upgrade process.
message: The Grid message.
pnode_role: Status of the physical node in the HA pair.
reverted: Determines if the upgrade process is reverted.
status_time: The status time.
status_value: Status of a certain group, virtual node or
physical node.
status_value_update_time: Timestamp of when the status was
updated.
steps: The list of upgrade process steps.
steps_completed: The number of steps done.
steps_total: Total number steps in the upgrade process.
subelement_type: The type of subelements to be requested. If
'type' is 'GROUP', or 'VNODE', then 'upgrade_group' or
'member' should have proper values for an operation to
return data specific for the values passed. Otherwise,
overall data is returned for every group or physical node.
subelements_completed: Number of subelements that have
accomplished an upgrade.
subelements_status: The upgrade process information of
subelements.
subelements_total: Number of subelements number in a certain
group, virtual node, or the Grid.
type: The type of upper level elements to be requested.
upgrade_group: Upgrade group that participates in the upgrade
process.
upgrade_schedule_active: Determines if the upgrade schedule is
active.
upgrade_state: The upgrade state of the Grid.
upgrade_test_status: The upgrade test status of the Grid.
upload_version: The version that is uploaded.
upload_version_summary: Upload version summary for the 'type'
requested. This field can be requested for the Grid, a
certain group that has virtual nodes as subelements, or
overall group status.
"""
_infoblox_type = 'upgradestatus'
_fields = ['allow_distribution', 'allow_distribution_scheduling',
'allow_upgrade', 'allow_upgrade_cancel', 'allow_upgrade_pause',
'allow_upgrade_resume', 'allow_upgrade_scheduling',
'allow_upgrade_test', 'allow_upload', 'alternate_version',
'comment', 'current_version', 'current_version_summary',
'distribution_schedule_active', 'distribution_schedule_time',
'distribution_state', 'distribution_version',
'distribution_version_summary', 'element_status', 'grid_state',
'group_state', 'ha_status', 'hotfixes', 'ipv4_address',
'ipv6_address', 'member', 'message', 'pnode_role', 'reverted',
'status_time', 'status_value', 'status_value_update_time',
'steps', 'steps_completed', 'steps_total', 'subelement_type',
'subelements_completed', 'subelements_status',
'subelements_total', 'type', 'upgrade_group',
'upgrade_schedule_active', 'upgrade_state',
'upgrade_test_status', 'upload_version',
'upload_version_summary']
_search_for_update_fields = ['member', 'type', 'upgrade_group']
_updateable_search_fields = []
_all_searchable_fields = ['member', 'subelement_type', 'type',
'upgrade_group']
_return_fields = ['alternate_version', 'comment', 'current_version',
'distribution_version', 'element_status', 'grid_state',
'group_state', 'ha_status', 'hotfixes', 'ipv4_address',
'ipv6_address', 'member', 'message', 'pnode_role',
'reverted', 'status_value', 'status_value_update_time',
'steps', 'steps_completed', 'steps_total', 'type',
'upgrade_group', 'upgrade_state', 'upgrade_test_status',
'upload_version']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'hotfixes': Hotfix.from_dict,
'steps': Upgradestep.from_dict,
}
class Userprofile(InfobloxObject):
""" Userprofile: User profile object.
Corresponds to WAPI object 'userprofile'
The user profile of the admin who has logged in.
Attributes:
active_dashboard_type: Determines the active dashboard type.
admin_group: The Admin Group object to which the admin belongs.
An admin user can belong to only one admin group at a time.
days_to_expire: The number of days left before the admin's
password expires.
email: The email address of the admin.
global_search_on_ea: Determines if extensible attribute values
will be returned by global search or not.
global_search_on_ni_data: Determines if global search will
search for network insight devices and interfaces or not.
grid_admin_groups: List of Admin Group objects that the current
user is mapped to.
last_login: The timestamp when the admin last logged in.
lb_tree_nodes_at_gen_level: Determines how many nodes are
displayed at generation levels.
lb_tree_nodes_at_last_level: Determines how many nodes are
displayed at the last level.
max_count_widgets: The maximum count of widgets that can be
added to one dashboard.
name: The admin name.
old_password: The current password that will be replaced by a
new password. To change a password in the database, you must
provide both the current and new password values. This is a
write-only attribute.
password: The new password of the admin. To change a password in
the database, you must provide both the current and new
password values. This is a write-only attribute.
table_size: The number of lines of data a table or a single list
view can contain.
time_zone: The time zone of the admin user.
use_time_zone: Use flag for: time_zone
user_type: The admin type.
"""
_infoblox_type = 'userprofile'
_fields = ['active_dashboard_type', 'admin_group', 'days_to_expire',
'email', 'global_search_on_ea', 'global_search_on_ni_data',
'grid_admin_groups', 'last_login', 'lb_tree_nodes_at_gen_level',
'lb_tree_nodes_at_last_level', 'max_count_widgets', 'name',
'old_password', 'password', 'table_size', 'time_zone',
'use_time_zone', 'user_type']
_search_for_update_fields = []
_updateable_search_fields = []
_all_searchable_fields = []
_return_fields = ['name']
_remap = {}
_shadow_fields = ['_ref']
class Vdiscoverytask(InfobloxObject):
""" Vdiscoverytask: Discovery task object.
Corresponds to WAPI object 'vdiscoverytask'
This object represents vDiscovery Task.
Attributes:
allow_unsecured_connection: Allow unsecured connection over
HTTPS and bypass validation of the remote SSL certificate.
auto_consolidate_cloud_ea: Whether to insert or update cloud EAs
with discovery data.
auto_consolidate_managed_tenant: Whether to replace managed
tenant with discovery tenant data.
auto_consolidate_managed_vm: Whether to replace managed virtual
machine with discovery vm data.
auto_create_dns_hostname_template: Template string used to
generate host name.
auto_create_dns_record: Control whether to create or update DNS
record using discovered data.
auto_create_dns_record_type: Indicates the type of record to
create if the auto create DNS record is enabled.
comment: Comment on the task.
credentials_type: Credentials type used for connecting to the
cloud management platform.
dns_view_private_ip: The DNS view name for private IPs.
dns_view_public_ip: The DNS view name for public IPs.
domain_name: The name of the domain to use with keystone v3.
driver_type: Type of discovery driver.
enabled: Whether to enabled the cloud discovery or not.
fqdn_or_ip: FQDN or IP of the cloud management platform.
identity_version: Identity service version.
last_run: Timestamp of last run.
member: Member on which cloud discovery will be run.
merge_data: Whether to replace the old data with new or not.
name: Name of this cloud discovery task. Uniquely identify a
task.
password: Password used for connecting to the cloud management
platform.
port: Connection port used for connecting to the cloud
management platform.
private_network_view: Network view for private IPs.
private_network_view_mapping_policy: Mapping policy for the
network view for private IPs in discovery data.
protocol: Connection protocol used for connecting to the cloud
management platform.
public_network_view: Network view for public IPs.
public_network_view_mapping_policy: Mapping policy for the
network view for public IPs in discovery data.
scheduled_run: Schedule setting for cloud discovery task.
service_account_file: The service_account_file for GCP.
state: Current state of this task.
state_msg: State message of the complete discovery process.
update_dns_view_private_ip: If set to true, the appliance uses a
specific DNS view for private IPs.
update_dns_view_public_ip: If set to true, the appliance uses a
specific DNS view for public IPs.
update_metadata: Whether to update metadata as a result of this
network discovery.
use_identity: If set true, all keystone connection will use
"/identity" endpoint and port value will be ignored.
username: Username used for connecting to the cloud management
platform.
"""
_infoblox_type = 'vdiscoverytask'
_fields = ['allow_unsecured_connection', 'auto_consolidate_cloud_ea',
'auto_consolidate_managed_tenant',
'auto_consolidate_managed_vm',
'auto_create_dns_hostname_template', 'auto_create_dns_record',
'auto_create_dns_record_type', 'comment', 'credentials_type',
'dns_view_private_ip', 'dns_view_public_ip', 'domain_name',
'driver_type', 'enabled', 'fqdn_or_ip', 'identity_version',
'last_run', 'member', 'merge_data', 'name', 'password', 'port',
'private_network_view', 'private_network_view_mapping_policy',
'protocol', 'public_network_view',
'public_network_view_mapping_policy', 'scheduled_run',
'service_account_file', 'state', 'state_msg',
'update_dns_view_private_ip', 'update_dns_view_public_ip',
'update_metadata', 'use_identity', 'username']
_search_for_update_fields = ['name', 'state']
_updateable_search_fields = ['dns_view_private_ip', 'dns_view_public_ip',
'domain_name', 'driver_type', 'enabled',
'fqdn_or_ip', 'identity_version', 'member',
'name', 'port', 'private_network_view',
'private_network_view_mapping_policy',
'protocol', 'public_network_view',
'public_network_view_mapping_policy',
'service_account_file',
'update_dns_view_private_ip',
'update_dns_view_public_ip', 'use_identity',
'username']
_all_searchable_fields = ['dns_view_private_ip', 'dns_view_public_ip',
'domain_name', 'driver_type', 'enabled',
'fqdn_or_ip', 'identity_version', 'member',
'name', 'port', 'private_network_view',
'private_network_view_mapping_policy',
'protocol', 'public_network_view',
'public_network_view_mapping_policy',
'service_account_file', 'state',
'update_dns_view_private_ip',
'update_dns_view_public_ip', 'use_identity',
'username']
_return_fields = ['name', 'state']
_remap = {}
_shadow_fields = ['_ref']
def vdiscovery_control(self, *args, **kwargs):
return self._call_func("vdiscovery_control", *args, **kwargs)
class DNSView(InfobloxObject):
""" DNSView: DNS View object.
Corresponds to WAPI object 'view'
DNS views provide the ability to serve one version of DNS data to
one set of clients and another version to another set of clients.
With DNS views, the appliance can provide a different answer to the
same query, depending on the source of the query.
Attributes:
blacklist_action: The action to perform when a domain name
matches the pattern defined in a rule that is specified by
the blacklist_ruleset method. Valid values are "REDIRECT" or
"REFUSE". The default value is "REFUSE".
blacklist_log_query: The flag that indicates whether blacklist
redirection queries are logged. Specify "true" to enable
logging, or "false" to disable it. The default value is
"false".
blacklist_redirect_addresses: The array of IP addresses the
appliance includes in the response it sends in place of a
blacklisted IP address.
blacklist_redirect_ttl: The Time To Live (TTL) value of the
synthetic DNS responses resulted from blacklist redirection.
The TTL value is a 32-bit unsigned integer that represents
the TTL in seconds.
blacklist_rulesets: The name of the Ruleset object assigned at
the Grid level for blacklist redirection.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the DNS view; maximum 64 characters.
custom_root_name_servers: The list of customized root name
servers. You can either select and use Internet root name
servers or specify custom root name servers by providing a
host name and IP address to which the Infoblox appliance can
send queries. Include the specified parameter to set the
attribute value. Omit the parameter to retrieve the
attribute value.
ddns_force_creation_timestamp_update: Defines whether creation
timestamp of RR should be updated ' when DDNS update happens
even if there is no change to ' the RR.
ddns_principal_group: The DDNS Principal cluster group name.
ddns_principal_tracking: The flag that indicates whether the
DDNS principal track is enabled or disabled.
ddns_restrict_patterns: The flag that indicates whether an
option to restrict DDNS update request based on FQDN
patterns is enabled or disabled.
ddns_restrict_patterns_list: The unordered list of restriction
patterns for an option of to restrict DDNS updates based on
FQDN patterns.
ddns_restrict_protected: The flag that indicates whether an
option to restrict DDNS update request to protected resource
records is enabled or disabled.
ddns_restrict_secure: The flag that indicates whether DDNS
update request for principal other than target resource
record's principal is restricted.
ddns_restrict_static: The flag that indicates whether an option
to restrict DDNS update request to resource records which
are marked as 'STATIC' is enabled or disabled.
disable: Determines if the DNS view is disabled or not. When
this is set to False, the DNS view is enabled.
dns64_enabled: Determines if the DNS64 s enabled or not.
dns64_groups: The list of DNS64 synthesis groups associated with
this DNS view.
dnssec_enabled: Determines if the DNS security extension is
enabled or not.
dnssec_expired_signatures_enabled: Determines if the DNS
security extension accepts expired signatures or not.
dnssec_negative_trust_anchors: A list of zones for which the
server does not perform DNSSEC validation.
dnssec_trusted_keys: The list of trusted keys for the DNS
security extension.
dnssec_validation_enabled: Determines if the DNS security
validation is enabled or not.
edns_udp_size: Advertises the EDNS0 buffer size to the upstream
server. The value should be between 512 and 4096 bytes. The
recommended value is between 512 and 1220 bytes.
enable_blacklist: Determines if the blacklist in a DNS view is
enabled or not.
enable_fixed_rrset_order_fqdns: Determines if the fixed RRset
order FQDN is enabled or not.
enable_match_recursive_only: Determines if the 'match-recursive-
only' option in a DNS view is enabled or not.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
filter_aaaa: The type of AAAA filtering for this DNS view
object.
filter_aaaa_list: Applies AAAA filtering to a named ACL, or to a
list of IPv4/IPv6 addresses and networks from which queries
are received. This field does not allow TSIG keys.
fixed_rrset_order_fqdns: The fixed RRset order FQDN. If this
field does not contain an empty value, the appliance will
automatically set the enable_fixed_rrset_order_fqdns field
to 'true', unless the same request sets the enable field to
'false'.
forward_only: Determines if this DNS view sends queries to
forwarders only or not. When the value is True, queries are
sent to forwarders only, and not to other internal or
Internet root servers.
forwarders: The list of forwarders for the DNS view. A forwarder
is a name server to which other name servers first send
their off-site queries. The forwarder builds up a cache of
information, avoiding the need for other name servers to
send queries off-site.
is_default: The NIOS appliance provides one default DNS view.
You can rename the default view and change its settings, but
you cannot delete it. There must always be at least one DNS
view in the appliance.
lame_ttl: The number of seconds to cache lame delegations or
lame servers.
last_queried_acl: Determines last queried ACL for the specified
IPv4 or IPv6 addresses and networks in scavenging settings.
match_clients: A list of forwarders for the match clients. This
list specifies a named ACL, or a list of IPv4/IPv6
addresses, networks, TSIG keys of clients that are allowed
or denied access to the DNS view.
match_destinations: A list of forwarders for the match
destinations. This list specifies a name ACL, or a list of
IPv4/IPv6 addresses, networks, TSIG keys of clients that are
allowed or denied access to the DNS view.
max_cache_ttl: The maximum number of seconds to cache ordinary
(positive) answers.
max_ncache_ttl: The maximum number of seconds to cache negative
(NXDOMAIN) answers.
max_udp_size: The value is used by authoritative DNS servers to
never send DNS responses larger than the configured value.
The value should be between 512 and 4096 bytes. The
recommended value is between 512 and 1220 bytes.
name: Name of the DNS view.
network_view: The name of the network view object associated
with this DNS view.
notify_delay: The number of seconds of delay the notify messages
are sent to secondaries.
nxdomain_log_query: The flag that indicates whether NXDOMAIN
redirection queries are logged. Specify "true" to enable
logging, or "false" to disable it. The default value is
"false".
nxdomain_redirect: Determines if NXDOMAIN redirection in a DNS
view is enabled or not.
nxdomain_redirect_addresses: The array with IPv4 addresses the
appliance includes in the response it sends in place of an
NXDOMAIN response.
nxdomain_redirect_addresses_v6: The array with IPv6 addresses
the appliance includes in the response it sends in place of
an NXDOMAIN response.
nxdomain_redirect_ttl: The Time To Live (TTL) value of the
synthetic DNS responses resulted from NXDOMAIN redirection.
The TTL value is a 32-bit unsigned integer that represents
the TTL in seconds.
nxdomain_rulesets: The names of the Ruleset objects assigned at
the grid level for NXDOMAIN redirection.
recursion: Determines if recursion is enabled or not.
response_rate_limiting: The response rate limiting settings for
the DNS View.
root_name_server_type: Determines the type of root name servers.
rpz_drop_ip_rule_enabled: Enables the appliance to ignore RPZ-IP
triggers with prefix lengths less than the specified minimum
prefix length.
rpz_drop_ip_rule_min_prefix_length_ipv4: The minimum prefix
length for IPv4 RPZ-IP triggers. The appliance ignores RPZ-
IP triggers with prefix lengths less than the specified
minimum IPv4 prefix length.
rpz_drop_ip_rule_min_prefix_length_ipv6: The minimum prefix
length for IPv6 RPZ-IP triggers. The appliance ignores RPZ-
IP triggers with prefix lengths less than the specified
minimum IPv6 prefix length.
rpz_qname_wait_recurse: The flag that indicates whether
recursive RPZ lookups are enabled.
scavenging_settings: The scavenging settings.
sortlist: A sort list that determines the order of IP addresses
in responses sent to DNS queries.
use_blacklist: Use flag for: blacklist_action ,
blacklist_log_query, blacklist_redirect_addresses,
blacklist_redirect_ttl, blacklist_rulesets, enable_blacklist
use_ddns_force_creation_timestamp_update: Use flag for:
ddns_force_creation_timestamp_update
use_ddns_patterns_restriction: Use flag for:
ddns_restrict_patterns_list , ddns_restrict_patterns
use_ddns_principal_security: Use flag for: ddns_restrict_secure
, ddns_principal_tracking, ddns_principal_group
use_ddns_restrict_protected: Use flag for:
ddns_restrict_protected
use_ddns_restrict_static: Use flag for: ddns_restrict_static
use_dns64: Use flag for: dns64_enabled , dns64_groups
use_dnssec: Use flag for: dnssec_enabled ,
dnssec_expired_signatures_enabled,
dnssec_validation_enabled, dnssec_trusted_keys
use_edns_udp_size: Use flag for: edns_udp_size
use_filter_aaaa: Use flag for: filter_aaaa , filter_aaaa_list
use_fixed_rrset_order_fqdns: Use flag for:
fixed_rrset_order_fqdns , enable_fixed_rrset_order_fqdns
use_forwarders: Use flag for: forwarders , forward_only
use_lame_ttl: Use flag for: lame_ttl
use_max_cache_ttl: Use flag for: max_cache_ttl
use_max_ncache_ttl: Use flag for: max_ncache_ttl
use_max_udp_size: Use flag for: max_udp_size
use_nxdomain_redirect: Use flag for: nxdomain_redirect ,
nxdomain_redirect_addresses, nxdomain_redirect_addresses_v6,
nxdomain_redirect_ttl, nxdomain_log_query, nxdomain_rulesets
use_recursion: Use flag for: recursion
use_response_rate_limiting: Use flag for: response_rate_limiting
use_root_name_server: Use flag for: custom_root_name_servers ,
root_name_server_type
use_rpz_drop_ip_rule: Use flag for: rpz_drop_ip_rule_enabled ,
rpz_drop_ip_rule_min_prefix_length_ipv4,
rpz_drop_ip_rule_min_prefix_length_ipv6
use_rpz_qname_wait_recurse: Use flag for: rpz_qname_wait_recurse
use_scavenging_settings: Use flag for: scavenging_settings ,
last_queried_acl
use_sortlist: Use flag for: sortlist
"""
_infoblox_type = 'view'
_fields = ['blacklist_action', 'blacklist_log_query',
'blacklist_redirect_addresses', 'blacklist_redirect_ttl',
'blacklist_rulesets', 'cloud_info', 'comment',
'custom_root_name_servers',
'ddns_force_creation_timestamp_update', 'ddns_principal_group',
'ddns_principal_tracking', 'ddns_restrict_patterns',
'ddns_restrict_patterns_list', 'ddns_restrict_protected',
'ddns_restrict_secure', 'ddns_restrict_static', 'disable',
'dns64_enabled', 'dns64_groups', 'dnssec_enabled',
'dnssec_expired_signatures_enabled',
'dnssec_negative_trust_anchors', 'dnssec_trusted_keys',
'dnssec_validation_enabled', 'edns_udp_size',
'enable_blacklist', 'enable_fixed_rrset_order_fqdns',
'enable_match_recursive_only', 'extattrs', 'filter_aaaa',
'filter_aaaa_list', 'fixed_rrset_order_fqdns', 'forward_only',
'forwarders', 'is_default', 'lame_ttl', 'last_queried_acl',
'match_clients', 'match_destinations', 'max_cache_ttl',
'max_ncache_ttl', 'max_udp_size', 'name', 'network_view',
'notify_delay', 'nxdomain_log_query', 'nxdomain_redirect',
'nxdomain_redirect_addresses', 'nxdomain_redirect_addresses_v6',
'nxdomain_redirect_ttl', 'nxdomain_rulesets', 'recursion',
'response_rate_limiting', 'root_name_server_type',
'rpz_drop_ip_rule_enabled',
'rpz_drop_ip_rule_min_prefix_length_ipv4',
'rpz_drop_ip_rule_min_prefix_length_ipv6',
'rpz_qname_wait_recurse', 'scavenging_settings', 'sortlist',
'use_blacklist', 'use_ddns_force_creation_timestamp_update',
'use_ddns_patterns_restriction', 'use_ddns_principal_security',
'use_ddns_restrict_protected', 'use_ddns_restrict_static',
'use_dns64', 'use_dnssec', 'use_edns_udp_size',
'use_filter_aaaa', 'use_fixed_rrset_order_fqdns',
'use_forwarders', 'use_lame_ttl', 'use_max_cache_ttl',
'use_max_ncache_ttl', 'use_max_udp_size',
'use_nxdomain_redirect', 'use_recursion',
'use_response_rate_limiting', 'use_root_name_server',
'use_rpz_drop_ip_rule', 'use_rpz_qname_wait_recurse',
'use_scavenging_settings', 'use_sortlist']
_search_for_update_fields = ['is_default', 'name', 'network_view']
_updateable_search_fields = ['blacklist_action', 'blacklist_log_query',
'comment', 'dns64_enabled', 'dnssec_enabled',
'dnssec_expired_signatures_enabled',
'dnssec_validation_enabled',
'enable_blacklist', 'filter_aaaa',
'forward_only', 'name', 'network_view',
'nxdomain_log_query', 'nxdomain_redirect',
'recursion', 'root_name_server_type']
_all_searchable_fields = ['blacklist_action', 'blacklist_log_query',
'comment', 'dns64_enabled', 'dnssec_enabled',
'dnssec_expired_signatures_enabled',
'dnssec_validation_enabled', 'enable_blacklist',
'filter_aaaa', 'forward_only', 'is_default',
'name', 'network_view', 'nxdomain_log_query',
'nxdomain_redirect', 'recursion',
'root_name_server_type']
_return_fields = ['comment', 'extattrs', 'is_default', 'name']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'custom_root_name_servers': Extserver.from_dict,
'dnssec_trusted_keys': Dnssectrustedkey.from_dict,
'filter_aaaa_list': Addressac.from_dict,
'fixed_rrset_order_fqdns': GridDnsFixedrrsetorderfqdn.from_dict,
'last_queried_acl': Addressac.from_dict,
'match_clients': Addressac.from_dict,
'match_destinations': Addressac.from_dict,
'sortlist': Sortlist.from_dict,
}
def run_scavenging(self, *args, **kwargs):
return self._call_func("run_scavenging", *args, **kwargs)
class Vlan(InfobloxObject):
""" Vlan: VLAN object.
Corresponds to WAPI object 'vlan'
Attributes:
assigned_to: List of objects VLAN is assigned to.
comment: A descriptive comment for this VLAN.
contact: Contact information for person/team managing or using
VLAN.
department: Department where VLAN is used.
description: Description for the VLAN object, may be potentially
used for longer VLAN names.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
id: VLAN ID value.
name: Name of the VLAN.
parent: The VLAN View or VLAN Range to which this VLAN belongs.
reserved: When set VLAN can only be assigned to IPAM object
manually.
status: Status of VLAN object. Can be Assigned, Unassigned,
Reserved.
"""
_infoblox_type = 'vlan'
_fields = ['assigned_to', 'comment', 'contact', 'department',
'description', 'extattrs', 'id', 'name', 'parent', 'reserved',
'status']
_search_for_update_fields = ['id', 'name', 'parent']
_updateable_search_fields = ['comment', 'contact', 'department',
'description', 'id', 'name', 'parent',
'reserved']
_all_searchable_fields = ['assigned_to', 'comment', 'contact',
'department', 'description', 'id', 'name',
'parent', 'reserved', 'status']
_return_fields = ['extattrs', 'id', 'name', 'parent']
_remap = {}
_shadow_fields = ['_ref']
class Vlanrange(InfobloxObject):
""" Vlanrange: VLAN Range object.
Corresponds to WAPI object 'vlanrange'
Attributes:
comment: A descriptive comment for this VLAN Range.
end_vlan_id: End ID for VLAN Range.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
name: Name of the VLAN Range.
pre_create_vlan: If set on creation VLAN objects will be created
once VLAN Range created.
start_vlan_id: Start ID for VLAN Range.
vlan_name_prefix: If set on creation prefix string will be used
for VLAN name.
vlan_view: The VLAN View to which this VLAN Range belongs.
"""
_infoblox_type = 'vlanrange'
_fields = ['comment', 'delete_vlans', 'end_vlan_id', 'extattrs', 'name',
'pre_create_vlan', 'start_vlan_id', 'vlan_name_prefix',
'vlan_view']
_search_for_update_fields = ['end_vlan_id', 'name', 'start_vlan_id',
'vlan_view']
_updateable_search_fields = ['comment', 'end_vlan_id', 'name',
'start_vlan_id', 'vlan_view']
_all_searchable_fields = ['comment', 'end_vlan_id', 'name',
'start_vlan_id', 'vlan_view']
_return_fields = ['end_vlan_id', 'extattrs', 'name', 'start_vlan_id',
'vlan_view']
_remap = {}
_shadow_fields = ['_ref']
def next_available_vlan_id(self, *args, **kwargs):
return self._call_func("next_available_vlan_id", *args, **kwargs)
class Vlanview(InfobloxObject):
""" Vlanview: VLAN View object.
Corresponds to WAPI object 'vlanview'
Attributes:
allow_range_overlapping: When set to true VLAN Ranges under VLAN
View can have overlapping ID.
comment: A descriptive comment for this VLAN View.
end_vlan_id: End ID for VLAN View.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
name: Name of the VLAN View.
pre_create_vlan: If set on creation VLAN objects will be created
once VLAN View created.
start_vlan_id: Start ID for VLAN View.
vlan_name_prefix: If set on creation prefix string will be used
for VLAN name.
"""
_infoblox_type = 'vlanview'
_fields = ['allow_range_overlapping', 'comment', 'end_vlan_id', 'extattrs',
'name', 'pre_create_vlan', 'start_vlan_id', 'vlan_name_prefix']
_search_for_update_fields = ['end_vlan_id', 'name', 'start_vlan_id']
_updateable_search_fields = ['allow_range_overlapping', 'comment',
'end_vlan_id', 'name', 'start_vlan_id']
_all_searchable_fields = ['allow_range_overlapping', 'comment',
'end_vlan_id', 'name', 'start_vlan_id']
_return_fields = ['end_vlan_id', 'extattrs', 'name', 'start_vlan_id']
_remap = {}
_shadow_fields = ['_ref']
def next_available_vlan_id(self, *args, **kwargs):
return self._call_func("next_available_vlan_id", *args, **kwargs)
class DNSZone(InfobloxObject):
""" DNSZone: DNS Authoritative Zone object.
Corresponds to WAPI object 'zone_auth'
An authoritative zone is a zone for which the local (primary or
secondary) server references its own data when responding to
queries. The local server is authoritative for the data in this zone
and responds to queries for this data without referencing another
server.
If operating in a Cloud API environment and if the zone is in a
delegated network view, grid_primary is a required field.
There are two types of authoritative zones:
Forwarding-mapping: An authoritative forward-mapping zone is an area
of domain name space for which one or more name servers have the
responsibility to respond authoritatively to name-to-address
queries.
Reverse-mapping: A reverse-mapping zone is an area or network space
for which one or more name servers have the responsibility to
respond to address-to-name queries.
Attributes:
address: The IP address of the server that is serving this zone.
allow_active_dir: This field allows the zone to receive GSS-TSIG
authenticated DDNS updates from DHCP clients and servers in
an AD domain.Note that addresses specified in this field
ignore the permission set in the struct which will be set to
'ALLOW'.
allow_fixed_rrset_order: The flag that allows to enable or
disable fixed RRset ordering for authoritative forward-
mapping zones.
allow_gss_tsig_for_underscore_zone: The flag that allows DHCP
clients to perform GSS-TSIG signed updates for underscore
zones.
allow_gss_tsig_zone_updates: The flag that enables or disables
the zone for GSS-TSIG updates.
allow_query: Determines whether DNS queries are allowed from a
named ACL, or from a list of IPv4/IPv6 addresses, networks,
and TSIG keys for the hosts.
allow_transfer: Determines whether zone transfers are allowed
from a named ACL, or from a list of IPv4/IPv6 addresses,
networks, and TSIG keys for the hosts.
allow_update: Determines whether dynamic DNS updates are allowed
from a named ACL, or from a list of IPv4/IPv6 addresses,
networks, and TSIG keys for the hosts.
allow_update_forwarding: The list with IP addresses, networks or
TSIG keys for clients, from which forwarded dynamic updates
are allowed.
aws_rte53_zone_info: Additional information for Route53 zone.
cloud_info: Structure containing all cloud API related
information for this object.
comment: Comment for the zone; maximum 256 characters.
copy_xfer_to_notify: If this flag is set to True then copy
allowed IPs from Allow Transfer to Also Notify.
create_ptr_for_bulk_hosts: Determines if PTR records are created
for hosts automatically, if necessary, when the zone data is
imported. This field is meaningful only when import_from is
set.
create_ptr_for_hosts: Determines if PTR records are created for
hosts automatically, if necessary, when the zone data is
imported. This field is meaningful only when import_from is
set.
create_underscore_zones: Determines whether automatic creation
of subzones is enabled or not.
ddns_force_creation_timestamp_update: Defines whether creation
timestamp of RR should be updated ' when DDNS update happens
even if there is no change to ' the RR.
ddns_principal_group: The DDNS Principal cluster group name.
ddns_principal_tracking: The flag that indicates whether the
DDNS principal track is enabled or disabled.
ddns_restrict_patterns: The flag that indicates whether an
option to restrict DDNS update request based on FQDN
patterns is enabled or disabled.
ddns_restrict_patterns_list: The unordered list of restriction
patterns for an option of to restrict DDNS updates based on
FQDN patterns.
ddns_restrict_protected: The flag that indicates whether an
option to restrict DDNS update request to protected resource
records is enabled or disabled.
ddns_restrict_secure: The flag that indicates whether DDNS
update request for principal other than target resource
record's principal is restricted.
ddns_restrict_static: The flag that indicates whether an option
to restrict DDNS update request to resource records which
are marked as 'STATIC' is enabled or disabled.
disable: Determines whether a zone is disabled or not. When this
is set to False, the zone is enabled.
disable_forwarding: Determines whether the name servers that
host the zone should forward queries (ended with the domain
name of the zone) to any configured forwarders.
display_domain: The displayed name of the DNS zone.
dns_fqdn: The name of this DNS zone in punycode format. For a
reverse zone, this is in "address/cidr" format. For other
zones, this is in FQDN format in punycode format.
dns_integrity_enable: If this is set to True, DNS integrity
check is enabled for this zone.
dns_integrity_frequency: The frequency, in seconds, of DNS
integrity checks for this zone.
dns_integrity_member: The Grid member that performs DNS
integrity checks for this zone.
dns_integrity_verbose_logging: If this is set to True, more
information is logged for DNS integrity checks for this
zone.
dns_soa_email: The SOA email for the zone in punycode format.
dnssec_key_params: This structure contains the DNSSEC key
parameters for this zone.
dnssec_keys: A list of DNSSEC keys for the zone.
dnssec_ksk_rollover_date: The rollover date for the Key Signing
Key.
dnssec_zsk_rollover_date: The rollover date for the Zone Signing
Key.
do_host_abstraction: Determines if hosts and bulk hosts are
automatically created when the zone data is imported. This
field is meaningful only when import_from is set.
effective_check_names_policy: The value of the check names
policy, which indicates the action the appliance takes when
it encounters host names that do not comply with the Strict
Hostname Checking policy. This value applies only if the
host name restriction policy is set to "Strict Hostname
Checking".
effective_record_name_policy: The selected hostname policy for
records under this zone.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
external_primaries: The list of external primary servers.
external_secondaries: The list of external secondary servers.
fqdn: The name of this DNS zone. For a reverse zone, this is in
"address/cidr" format. For other zones, this is in FQDN
format. This value can be in unicode format.Note that for a
reverse zone, the corresponding zone_format value should be
set.
grid_primary: The grid primary servers for this zone.
grid_primary_shared_with_ms_parent_delegation: Determines if the
server is duplicated with parent delegation.
grid_secondaries: The list with Grid members that are secondary
servers for this zone.
import_from: The IP address of the Infoblox appliance from which
zone data is imported. Setting this address to
'255.255.255.255' and do_host_abstraction to 'true' will
create Host records from A records in this zone without
importing zone data.
is_dnssec_enabled: This flag is set to True if DNSSEC is enabled
for the zone.
is_dnssec_signed: Determines if the zone is DNSSEC signed.
is_multimaster: Determines if multi-master DNS is enabled for
the zone.
last_queried: The time the zone was last queried on.
last_queried_acl: Determines last queried ACL for the specified
IPv4 or IPv6 addresses and networks in scavenging settings.
locked: If you enable this flag, other administrators cannot
make conflicting changes. This is for administration
purposes only. The zone will continue to serve DNS data even
when it is locked.
locked_by: The name of a superuser or the administrator who
locked this zone.
mask_prefix: IPv4 Netmask or IPv6 prefix for this zone.
member_soa_mnames: The list of per-member SOA MNAME information.
member_soa_serials: The list of per-member SOA serial
information.
ms_ad_integrated: The flag that determines whether Active
Directory is integrated or not. This field is valid only
when ms_managed is "STUB", "AUTH_PRIMARY", or "AUTH_BOTH".
ms_allow_transfer: The list of DNS clients that are allowed to
perform zone transfers from a Microsoft DNS server.This
setting applies only to zones with Microsoft DNS servers
that are either primary or secondary servers. This setting
does not inherit any value from the Grid or from any member
that defines an allow_transfer value. This setting does not
apply to any grid member. Use the allow_transfer field to
control which DNS clients are allowed to perform zone
transfers on Grid members.
ms_allow_transfer_mode: Determines which DNS clients are allowed
to perform zone transfers from a Microsoft DNS server.Valid
values are:"ADDRESS_AC", to use ms_allow_transfer field for
specifying IP addresses, networks and Transaction Signature
(TSIG) keys for clients that are allowed to do zone
transfers."ANY", to allow any client."ANY_NS", to allow only
the nameservers listed in this zone."NONE", to deny all zone
transfer requests.
ms_dc_ns_record_creation: The list of domain controllers that
are allowed to create NS records for authoritative zones.
ms_ddns_mode: Determines whether an Active Directory-integrated
zone with a Microsoft DNS server as primary allows dynamic
updates. Valid values are:"SECURE" if the zone allows secure
updates only."NONE" if the zone forbids dynamic
updates."ANY" if the zone accepts both secure and nonsecure
updates.This field is valid only if ms_managed is either
"AUTH_PRIMARY" or "AUTH_BOTH". If the flag ms_ad_integrated
is false, the value "SECURE" is not allowed.
ms_managed: The flag that indicates whether the zone is assigned
to a Microsoft DNS server. This flag returns the
authoritative name server type of the Microsoft DNS server.
Valid values are:"NONE" if the zone is not assigned to any
Microsoft DNS server."STUB" if the zone is assigned to a
Microsoft DNS server as a stub zone."AUTH_PRIMARY" if only
the primary server of the zone is a Microsoft DNS
server."AUTH_SECONDARY" if only the secondary server of the
zone is a Microsoft DNS server."AUTH_BOTH" if both the
primary and secondary servers of the zone are Microsoft DNS
servers.
ms_primaries: The list with the Microsoft DNS servers that are
primary servers for the zone. Although a zone typically has
just one primary name server, you can specify up to ten
independent servers for a single zone.
ms_read_only: Determines if a Grid member manages the zone
served by a Microsoft DNS server in read-only mode. This
flag is true when a Grid member manages the zone in read-
only mode, false otherwise.When the zone has the
ms_read_only flag set to True, no changes can be made to
this zone.
ms_secondaries: The list with the Microsoft DNS servers that are
secondary servers for the zone.
ms_sync_disabled: This flag controls whether this zone is
synchronized with Microsoft DNS servers.
ms_sync_master_name: The name of MS synchronization master for
this zone.
network_associations: The list with the associated
network/network container information.
network_view: The name of the network view in which this zone
resides.
notify_delay: The number of seconds in delay with which notify
messages are sent to secondaries.
ns_group: The name server group that serves DNS for this zone.
parent: The parent zone of this zone.Note that when searching
for reverse zones, the "in-addr.arpa" notation should be
used.
prefix: The RFC2317 prefix value of this DNS zone.Use this field
only when the netmask is greater than 24 bits; that is, for
a mask between 25 and 31 bits. Enter a prefix, such as the
name of the allocated address block. The prefix can be
alphanumeric characters, such as 128/26 , 128-189 , or
sub-B.
primary_type: The type of the primary server.
record_name_policy: The hostname policy for records under this
zone.
records_monitored: Determines if this zone is also monitoring
resource records.
restart_if_needed: Restarts the member service.
rr_not_queried_enabled_time: The time data collection for Not
Queried Resource Record was enabled for this zone.
scavenging_settings: The scavenging settings.
set_soa_serial_number: The serial number in the SOA record
incrementally changes every time the record is modified. The
Infoblox appliance allows you to change the serial number
(in the SOA record) for the primary server so it is higher
than the secondary server, thereby ensuring zone transfers
come from the primary server (as they should). To change the
serial number you need to set a new value at
"soa_serial_number" and pass "set_soa_serial_number" as
True.
soa_default_ttl: The Time to Live (TTL) value of the SOA record
of this zone. This value is the number of seconds that data
is cached.
soa_email: The SOA email value for this zone. This value can be
in unicode format.
soa_expire: This setting defines the amount of time, in seconds,
after which the secondary server stops giving out answers
about the zone because the zone data is too old to be
useful. The default is one week.
soa_negative_ttl: The negative Time to Live (TTL) value of the
SOA of the zone indicates how long a secondary server can
cache data for "Does Not Respond" responses.
soa_refresh: This indicates the interval at which a secondary
server sends a message to the primary server for a zone to
check that its data is current, and retrieve fresh data if
it is not.
soa_retry: This indicates how long a secondary server must wait
before attempting to recontact the primary server after a
connection failure between the two servers occurs.
soa_serial_number: The serial number in the SOA record
incrementally changes every time the record is modified. The
Infoblox appliance allows you to change the serial number
(in the SOA record) for the primary server so it is higher
than the secondary server, thereby ensuring zone transfers
come from the primary server (as they should). To change the
serial number you need to set a new value at
"soa_serial_number" and pass "set_soa_serial_number" as
True.
srgs: The associated shared record groups of a DNS zone.If a
shared record group is associated with a zone, then all
shared records in a shared record group will be shared in
the zone.
update_forwarding: Use this field to allow or deny dynamic DNS
updates that are forwarded from specific IPv4/IPv6
addresses, networks, or a named ACL. You can also provide
TSIG keys for clients that are allowed or denied to perform
zone updates. This setting overrides the member-level
setting.
use_allow_active_dir: Use flag for: allow_active_dir
use_allow_query: Use flag for: allow_query
use_allow_transfer: Use flag for: allow_transfer
use_allow_update: Use flag for: allow_update
use_allow_update_forwarding: Use flag for:
allow_update_forwarding
use_check_names_policy: Apply policy to dynamic updates and
inbound zone transfers (This value applies only if the host
name restriction policy is set to "Strict Hostname
Checking".)
use_copy_xfer_to_notify: Use flag for: copy_xfer_to_notify
use_ddns_force_creation_timestamp_update: Use flag for:
ddns_force_creation_timestamp_update
use_ddns_patterns_restriction: Use flag for:
ddns_restrict_patterns_list , ddns_restrict_patterns
use_ddns_principal_security: Use flag for: ddns_restrict_secure
, ddns_principal_tracking, ddns_principal_group
use_ddns_restrict_protected: Use flag for:
ddns_restrict_protected
use_ddns_restrict_static: Use flag for: ddns_restrict_static
use_dnssec_key_params: Use flag for: dnssec_key_params
use_external_primary: This flag controls whether the zone is
using an external primary.
use_grid_zone_timer: Use flag for: soa_default_ttl , soa_expire,
soa_negative_ttl, soa_refresh, soa_retry
use_import_from: Use flag for: import_from
use_notify_delay: Use flag for: notify_delay
use_record_name_policy: Use flag for: record_name_policy
use_scavenging_settings: Use flag for: scavenging_settings ,
last_queried_acl
use_soa_email: Use flag for: soa_email
using_srg_associations: This is true if the zone is associated
with a shared record group.
view: The name of the DNS view in which the zone resides.
Example "external".
zone_format: Determines the format of this zone.
zone_not_queried_enabled_time: The time when "DNS Zones Last
Queried" was turned on for this zone.
"""
_infoblox_type = 'zone_auth'
_fields = ['address', 'allow_active_dir', 'allow_fixed_rrset_order',
'allow_gss_tsig_for_underscore_zone',
'allow_gss_tsig_zone_updates', 'allow_query', 'allow_transfer',
'allow_update', 'allow_update_forwarding',
'aws_rte53_zone_info', 'cloud_info', 'comment',
'copy_xfer_to_notify', 'create_ptr_for_bulk_hosts',
'create_ptr_for_hosts', 'create_underscore_zones',
'ddns_force_creation_timestamp_update', 'ddns_principal_group',
'ddns_principal_tracking', 'ddns_restrict_patterns',
'ddns_restrict_patterns_list', 'ddns_restrict_protected',
'ddns_restrict_secure', 'ddns_restrict_static', 'disable',
'disable_forwarding', 'display_domain', 'dns_fqdn',
'dns_integrity_enable', 'dns_integrity_frequency',
'dns_integrity_member', 'dns_integrity_verbose_logging',
'dns_soa_email', 'dnssec_key_params', 'dnssec_keys',
'dnssec_ksk_rollover_date', 'dnssec_zsk_rollover_date',
'do_host_abstraction', 'effective_check_names_policy',
'effective_record_name_policy', 'extattrs',
'external_primaries', 'external_secondaries', 'fqdn',
'grid_primary', 'grid_primary_shared_with_ms_parent_delegation',
'grid_secondaries', 'import_from', 'is_dnssec_enabled',
'is_dnssec_signed', 'is_multimaster', 'last_queried',
'last_queried_acl', 'locked', 'locked_by', 'mask_prefix',
'member_soa_mnames', 'member_soa_serials', 'ms_ad_integrated',
'ms_allow_transfer', 'ms_allow_transfer_mode',
'ms_dc_ns_record_creation', 'ms_ddns_mode', 'ms_managed',
'ms_primaries', 'ms_read_only', 'ms_secondaries',
'ms_sync_disabled', 'ms_sync_master_name',
'network_associations', 'network_view', 'notify_delay',
'ns_group', 'parent', 'prefix', 'primary_type',
'record_name_policy', 'records_monitored', 'restart_if_needed',
'rr_not_queried_enabled_time', 'scavenging_settings',
'set_soa_serial_number', 'soa_default_ttl', 'soa_email',
'soa_expire', 'soa_negative_ttl', 'soa_refresh', 'soa_retry',
'soa_serial_number', 'srgs', 'update_forwarding',
'use_allow_active_dir', 'use_allow_query', 'use_allow_transfer',
'use_allow_update', 'use_allow_update_forwarding',
'use_check_names_policy', 'use_copy_xfer_to_notify',
'use_ddns_force_creation_timestamp_update',
'use_ddns_patterns_restriction', 'use_ddns_principal_security',
'use_ddns_restrict_protected', 'use_ddns_restrict_static',
'use_dnssec_key_params', 'use_external_primary',
'use_grid_zone_timer', 'use_import_from', 'use_notify_delay',
'use_record_name_policy', 'use_scavenging_settings',
'use_soa_email', 'using_srg_associations', 'view',
'zone_format', 'zone_not_queried_enabled_time']
_search_for_update_fields = ['fqdn', 'view']
_updateable_search_fields = ['comment', 'view']
_all_searchable_fields = ['comment', 'dnssec_ksk_rollover_date',
'dnssec_zsk_rollover_date', 'fqdn', 'parent',
'view', 'zone_format']
_return_fields = ['extattrs', 'fqdn', 'view', 'ns_group', 'prefix',
'grid_primary', 'grid_secondaries']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'allow_active_dir': Addressac.from_dict,
'allow_query': Addressac.from_dict,
'allow_transfer': Addressac.from_dict,
'allow_update': Addressac.from_dict,
'dnssec_keys': Dnsseckey.from_dict,
'external_primaries': Extserver.from_dict,
'external_secondaries': Extserver.from_dict,
'grid_primary': Memberserver.from_dict,
'grid_secondaries': Memberserver.from_dict,
'last_queried_acl': Addressac.from_dict,
'member_soa_mnames': GridmemberSoamname.from_dict,
'member_soa_serials': GridmemberSoaserial.from_dict,
'ms_allow_transfer': Addressac.from_dict,
'ms_dc_ns_record_creation': MsserverDcnsrecordcreation.from_dict,
'ms_primaries': Msdnsserver.from_dict,
'ms_secondaries': Msdnsserver.from_dict,
'update_forwarding': Addressac.from_dict,
}
def copyzonerecords(self, *args, **kwargs):
return self._call_func("copyzonerecords", *args, **kwargs)
def dnssec_export(self, *args, **kwargs):
return self._call_func("dnssec_export", *args, **kwargs)
def dnssec_get_zone_keys(self, *args, **kwargs):
return self._call_func("dnssec_get_zone_keys", *args, **kwargs)
def dnssec_operation(self, *args, **kwargs):
return self._call_func("dnssec_operation", *args, **kwargs)
def dnssec_set_zone_keys(self, *args, **kwargs):
return self._call_func("dnssec_set_zone_keys", *args, **kwargs)
def dnssecgetkskrollover(self, *args, **kwargs):
return self._call_func("dnssecgetkskrollover", *args, **kwargs)
def execute_dns_parent_check(self, *args, **kwargs):
return self._call_func("execute_dns_parent_check", *args, **kwargs)
def lock_unlock_zone(self, *args, **kwargs):
return self._call_func("lock_unlock_zone", *args, **kwargs)
def run_scavenging(self, *args, **kwargs):
return self._call_func("run_scavenging", *args, **kwargs)
class ZoneAuthDiscrepancy(InfobloxObject):
""" ZoneAuthDiscrepancy: Zone discrepancy information object.
Corresponds to WAPI object 'zone_auth_discrepancy'
This object contains information about discrepancies found when
performing a DNS integrity check for a zone.
Attributes:
description: Information about the discrepancy.
severity: The severity of the discrepancy reported.
timestamp: The time when the DNS integrity check was last run
for this zone.
zone: The reference of the zone during a search. Otherwise, this
is the zone object of the zone to which the discrepancy
refers.
"""
_infoblox_type = 'zone_auth_discrepancy'
_fields = ['description', 'severity', 'timestamp', 'zone']
_search_for_update_fields = ['severity', 'zone']
_updateable_search_fields = []
_all_searchable_fields = ['severity', 'zone']
_return_fields = ['description', 'severity', 'timestamp', 'zone']
_remap = {}
_shadow_fields = ['_ref']
class DNSZoneDelegated(InfobloxObject):
""" DNSZoneDelegated: DNS Delegated Zone object.
Corresponds to WAPI object 'zone_delegated'
Instead of a local name server, remote name servers (which the local
server knows) maintain delegated zone data. When the local name
server receives a query for a delegated zone, it either responds
with the NS record for the delegated zone server (if recursion is
disabled on the local server) or it queries the delegated zone
server on behalf of the resolver (if recursion is enabled).
You can delegate a zone to one or more remote name servers, which
are typically the authoritative primary and secondary servers for
the zone. If recursion is enabled on the local name server, it
queries multiple delegated name servers based on their round-trip
times.
Attributes:
address: The IP address of the server that is serving this zone.
comment: Comment for the zone; maximum 256 characters.
delegate_to: This provides information for the remote name
server that maintains data for the delegated zone. The
Infoblox appliance redirects queries for data for the
delegated zone to this remote name server.
delegated_ttl: You can specify the Time to Live (TTL) values of
auto-generated NS and glue records for a delegated zone.
This value is the number of seconds that data is cached.
disable: Determines whether a zone is disabled or not. When this
is set to False, the zone is enabled.
display_domain: The displayed name of the DNS zone.
dns_fqdn: The name of this DNS zone in punycode format. For a
reverse zone, this is in "address/cidr" format. For other
zones, this is in FQDN format in punycode format.
enable_rfc2317_exclusion: This flag controls whether automatic
generation of RFC 2317 CNAMEs for delegated reverse zones
overwrite existing PTR records. The default behavior is to
overwrite all the existing records in the range; this
corresponds to "allow_ptr_creation_in_parent" set to False.
However, when this flag is set to True the existing PTR
records are not overwritten.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
fqdn: The name of this DNS zone. For a reverse zone, this is in
"address/cidr" format. For other zones, this is in FQDN
format. This value can be in unicode format.Note that for a
reverse zone, the corresponding zone_format value should be
set.
locked: If you enable this flag, other administrators cannot
make conflicting changes. This is for administration
purposes only. The zone will continue to serve DNS data even
when it is locked.
locked_by: The name of a superuser or the administrator who
locked this zone.
mask_prefix: IPv4 Netmask or IPv6 prefix for this zone.
ms_ad_integrated: The flag that determines whether Active
Directory is integrated or not. This field is valid only
when ms_managed is "STUB", "AUTH_PRIMARY", or "AUTH_BOTH".
ms_ddns_mode: Determines whether an Active Directory-integrated
zone with a Microsoft DNS server as primary allows dynamic
updates. Valid values are:"SECURE" if the zone allows secure
updates only."NONE" if the zone forbids dynamic
updates."ANY" if the zone accepts both secure and nonsecure
updates.This field is valid only if ms_managed is either
"AUTH_PRIMARY" or "AUTH_BOTH". If the flag ms_ad_integrated
is false, the value "SECURE" is not allowed.
ms_managed: The flag that indicates whether the zone is assigned
to a Microsoft DNS server. This flag returns the
authoritative name server type of the Microsoft DNS server.
Valid values are:"NONE" if the zone is not assigned to any
Microsoft DNS server."STUB" if the zone is assigned to a
Microsoft DNS server as a stub zone."AUTH_PRIMARY" if only
the primary server of the zone is a Microsoft DNS
server."AUTH_SECONDARY" if only the secondary server of the
zone is a Microsoft DNS server."AUTH_BOTH" if both the
primary and secondary servers of the zone are Microsoft DNS
servers.
ms_read_only: Determines if a Grid member manages the zone
served by a Microsoft DNS server in read-only mode. This
flag is true when a Grid member manages the zone in read-
only mode, false otherwise.When the zone has the
ms_read_only flag set to True, no changes can be made to
this zone.
ms_sync_master_name: The name of MS synchronization master for
this zone.
ns_group: The delegation NS group bound with delegated zone.
parent: The parent zone of this zone.Note that when searching
for reverse zones, the "in-addr.arpa" notation should be
used.
prefix: The RFC2317 prefix value of this DNS zone.Use this field
only when the netmask is greater than 24 bits; that is, for
a mask between 25 and 31 bits. Enter a prefix, such as the
name of the allocated address block. The prefix can be
alphanumeric characters, such as 128/26 , 128-189 , or
sub-B.
use_delegated_ttl: Use flag for: delegated_ttl
using_srg_associations: This is true if the zone is associated
with a shared record group.
view: The name of the DNS view in which the zone resides.
Example "external".
zone_format: Determines the format of this zone.
"""
_infoblox_type = 'zone_delegated'
_fields = ['address', 'comment', 'delegate_to', 'delegated_ttl', 'disable',
'display_domain', 'dns_fqdn', 'enable_rfc2317_exclusion',
'extattrs', 'fqdn', 'locked', 'locked_by', 'mask_prefix',
'ms_ad_integrated', 'ms_ddns_mode', 'ms_managed',
'ms_read_only', 'ms_sync_master_name', 'ns_group', 'parent',
'prefix', 'use_delegated_ttl', 'using_srg_associations', 'view',
'zone_format']
_search_for_update_fields = ['fqdn', 'view']
_updateable_search_fields = ['comment', 'view']
_all_searchable_fields = ['comment', 'fqdn', 'parent', 'view',
'zone_format']
_return_fields = ['delegate_to', 'extattrs', 'fqdn', 'view']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'delegate_to': Extserver.from_dict,
}
def lock_unlock_zone(self, *args, **kwargs):
return self._call_func("lock_unlock_zone", *args, **kwargs)
class DNSZoneForward(InfobloxObject):
""" DNSZoneForward: DNS Forward Zone object.
Corresponds to WAPI object 'zone_forward'
When you want to forward queries for data in a particular zone,
define the zone as a forward zone and specify one or more name
servers that can resolve queries for the zone. For example, define a
forward zone so that the NIOS appliance forwards queries about a
partners internal site to a name server, which the partner hosts,
configured just for other partners to access.
Attributes:
address: The IP address of the server that is serving this zone.
comment: Comment for the zone; maximum 256 characters.
disable: Determines whether a zone is disabled or not. When this
is set to False, the zone is enabled.
disable_ns_generation: Determines whether a auto-generation of
NS records in parent zone is disabled or not. When this is
set to False, the auto-generation is enabled.
display_domain: The displayed name of the DNS zone.
dns_fqdn: The name of this DNS zone in punycode format. For a
reverse zone, this is in "address/cidr" format. For other
zones, this is in FQDN format in punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
external_ns_group: A forward stub server name server group.
forward_to: The information for the remote name servers to which
you want the Infoblox appliance to forward queries for a
specified domain name.
forwarders_only: Determines if the appliance sends queries to
forwarders only, and not to other internal or Internet root
servers.
forwarding_servers: The information for the Grid members to
which you want the Infoblox appliance to forward queries for
a specified domain name.
fqdn: The name of this DNS zone. For a reverse zone, this is in
"address/cidr" format. For other zones, this is in FQDN
format. This value can be in unicode format.Note that for a
reverse zone, the corresponding zone_format value should be
set.
locked: If you enable this flag, other administrators cannot
make conflicting changes. This is for administration
purposes only. The zone will continue to serve DNS data even
when it is locked.
locked_by: The name of a superuser or the administrator who
locked this zone.
mask_prefix: IPv4 Netmask or IPv6 prefix for this zone.
ms_ad_integrated: The flag that determines whether Active
Directory is integrated or not. This field is valid only
when ms_managed is "STUB", "AUTH_PRIMARY", or "AUTH_BOTH".
ms_ddns_mode: Determines whether an Active Directory-integrated
zone with a Microsoft DNS server as primary allows dynamic
updates. Valid values are:"SECURE" if the zone allows secure
updates only."NONE" if the zone forbids dynamic
updates."ANY" if the zone accepts both secure and nonsecure
updates.This field is valid only if ms_managed is either
"AUTH_PRIMARY" or "AUTH_BOTH". If the flag ms_ad_integrated
is false, the value "SECURE" is not allowed.
ms_managed: The flag that indicates whether the zone is assigned
to a Microsoft DNS server. This flag returns the
authoritative name server type of the Microsoft DNS server.
Valid values are:"NONE" if the zone is not assigned to any
Microsoft DNS server."STUB" if the zone is assigned to a
Microsoft DNS server as a stub zone."AUTH_PRIMARY" if only
the primary server of the zone is a Microsoft DNS
server."AUTH_SECONDARY" if only the secondary server of the
zone is a Microsoft DNS server."AUTH_BOTH" if both the
primary and secondary servers of the zone are Microsoft DNS
servers.
ms_read_only: Determines if a Grid member manages the zone
served by a Microsoft DNS server in read-only mode. This
flag is true when a Grid member manages the zone in read-
only mode, false otherwise.When the zone has the
ms_read_only flag set to True, no changes can be made to
this zone.
ms_sync_master_name: The name of MS synchronization master for
this zone.
ns_group: A forwarding member name server group.
parent: The parent zone of this zone.Note that when searching
for reverse zones, the "in-addr.arpa" notation should be
used.
prefix: The RFC2317 prefix value of this DNS zone.Use this field
only when the netmask is greater than 24 bits; that is, for
a mask between 25 and 31 bits. Enter a prefix, such as the
name of the allocated address block. The prefix can be
alphanumeric characters, such as 128/26 , 128-189 , or
sub-B.
using_srg_associations: This is true if the zone is associated
with a shared record group.
view: The name of the DNS view in which the zone resides.
Example "external".
zone_format: Determines the format of this zone.
"""
_infoblox_type = 'zone_forward'
_fields = ['address', 'comment', 'disable', 'disable_ns_generation',
'display_domain', 'dns_fqdn', 'extattrs', 'external_ns_group',
'forward_to', 'forwarders_only', 'forwarding_servers', 'fqdn',
'locked', 'locked_by', 'mask_prefix', 'ms_ad_integrated',
'ms_ddns_mode', 'ms_managed', 'ms_read_only',
'ms_sync_master_name', 'ns_group', 'parent', 'prefix',
'using_srg_associations', 'view', 'zone_format']
_search_for_update_fields = ['fqdn', 'view']
_updateable_search_fields = ['comment', 'view']
_all_searchable_fields = ['comment', 'fqdn', 'parent', 'view',
'zone_format']
_return_fields = ['extattrs', 'forward_to', 'fqdn', 'view']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'forward_to': Extserver.from_dict,
'forwarding_servers': Forwardingmemberserver.from_dict,
}
def lock_unlock_zone(self, *args, **kwargs):
return self._call_func("lock_unlock_zone", *args, **kwargs)
class ZoneRp(InfobloxObject):
""" ZoneRp: DNS Response Policy Zone object.
Corresponds to WAPI object 'zone_rp'
DNS RPZs (Response Policy Zones), a technology developed by ISC
(Internet System Consortium) for allowing reputable sources to
dynamically communicate domain name reputation so you can implement
policy controls for DNS lookups. You can configure RPZs and define
RPZ rules to block DNS resolution for malicious or unauthorized
domain names, or redirect clients to a walled garden by substituting
responses. You can assign actions to RPZ rules. For example, abc.com
can have an action of pass thru or substitute (domain) with the
domain xyz.com. You can also configure a Grid member to act as a
lead secondary that receives RPZ updates from external reputation
sources and redistributes the updates to other Grid members.
Attributes:
address: The IP address of the server that is serving this zone.
comment: Comment for the zone; maximum 256 characters.
disable: Determines whether a zone is disabled or not. When this
is set to False, the zone is enabled.
display_domain: The displayed name of the DNS zone.
dns_soa_email: The SOA email for the zone in punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
external_primaries: The list of external primary servers.
external_secondaries: The list of external secondary servers.
fireeye_rule_mapping: Rules to map fireeye alerts.
fqdn: The name of this DNS zone in FQDN format.
grid_primary: The grid primary servers for this zone.
grid_secondaries: The list with Grid members that are secondary
servers for this zone.
locked: If you enable this flag, other administrators cannot
make conflicting changes. This is for administration
purposes only. The zone will continue to serve DNS data even
when it is locked.
locked_by: The name of a superuser or the administrator who
locked this zone.
log_rpz: Determines whether RPZ logging enabled or not at zone
level. When this is set to False, the logging is disabled.
mask_prefix: IPv4 Netmask or IPv6 prefix for this zone.
member_soa_mnames: The list of per-member SOA MNAME information.
member_soa_serials: The list of per-member SOA serial
information.
network_view: The name of the network view in which this zone
resides.
ns_group: The name server group that serves DNS for this zone.
parent: The parent zone of this zone.Note that when searching
for reverse zones, the "in-addr.arpa" notation should be
used.
prefix: The RFC2317 prefix value of this DNS zone.Use this field
only when the netmask is greater than 24 bits; that is, for
a mask between 25 and 31 bits. Enter a prefix, such as the
name of the allocated address block. The prefix can be
alphanumeric characters, such as 128/26 , 128-189 , or
sub-B.
primary_type: The type of the primary server.
record_name_policy: The hostname policy for records under this
zone.
rpz_drop_ip_rule_enabled: Enables the appliance to ignore RPZ-IP
triggers with prefix lengths less than the specified minimum
prefix length.
rpz_drop_ip_rule_min_prefix_length_ipv4: The minimum prefix
length for IPv4 RPZ-IP triggers. The appliance ignores RPZ-
IP triggers with prefix lengths less than the specified
minimum IPv4 prefix length.
rpz_drop_ip_rule_min_prefix_length_ipv6: The minimum prefix
length for IPv6 RPZ-IP triggers. The appliance ignores RPZ-
IP triggers with prefix lengths less than the specified
minimum IPv6 prefix length.
rpz_last_updated_time: The timestamp of the last update for zone
data.
rpz_policy: The response policy zone override policy.
rpz_priority: The priority of this response policy zone.
rpz_priority_end: This number is for UI to identify the end of
qualified zone list.
rpz_severity: The severity of this response policy zone.
rpz_type: The type of rpz zone.
set_soa_serial_number: The serial number in the SOA record
incrementally changes every time the record is modified. The
Infoblox appliance allows you to change the serial number
(in the SOA record) for the primary server so it is higher
than the secondary server, thereby ensuring zone transfers
come from the primary server (as they should). To change the
serial number you need to set a new value at
"soa_serial_number" and pass "set_soa_serial_number" as
True.
soa_default_ttl: The Time to Live (TTL) value of the SOA record
of this zone. This value is the number of seconds that data
is cached.
soa_email: The SOA email value for this zone. This value can be
in unicode format.
soa_expire: This setting defines the amount of time, in seconds,
after which the secondary server stops giving out answers
about the zone because the zone data is too old to be
useful. The default is one week.
soa_negative_ttl: The negative Time to Live (TTL) value of the
SOA of the zone indicates how long a secondary server can
cache data for "Does Not Respond" responses.
soa_refresh: This indicates the interval at which a secondary
server sends a message to the primary server for a zone to
check that its data is current, and retrieve fresh data if
it is not.
soa_retry: This indicates how long a secondary server must wait
before attempting to recontact the primary server after a
connection failure between the two servers occurs.
soa_serial_number: The serial number in the SOA record
incrementally changes every time the record is modified. The
Infoblox appliance allows you to change the serial number
(in the SOA record) for the primary server so it is higher
than the secondary server, thereby ensuring zone transfers
come from the primary server (as they should). To change the
serial number you need to set a new value at
"soa_serial_number" and pass "set_soa_serial_number" as
True.
substitute_name: The canonical name of redirect target in
substitute policy of response policy zone.
use_external_primary: This flag controls whether the zone is
using an external primary.
use_grid_zone_timer: Use flag for: soa_default_ttl , soa_expire,
soa_negative_ttl, soa_refresh, soa_retry
use_log_rpz: Use flag for: log_rpz
use_record_name_policy: Use flag for: record_name_policy
use_rpz_drop_ip_rule: Use flag for: rpz_drop_ip_rule_enabled ,
rpz_drop_ip_rule_min_prefix_length_ipv4,
rpz_drop_ip_rule_min_prefix_length_ipv6
use_soa_email: Use flag for: soa_email
view: The name of the DNS view in which the zone resides.
Example "external".
"""
_infoblox_type = 'zone_rp'
_fields = ['address', 'comment', 'disable', 'display_domain',
'dns_soa_email', 'extattrs', 'external_primaries',
'external_secondaries', 'fireeye_rule_mapping', 'fqdn',
'grid_primary', 'grid_secondaries', 'locked', 'locked_by',
'log_rpz', 'mask_prefix', 'member_soa_mnames',
'member_soa_serials', 'network_view', 'ns_group', 'parent',
'prefix', 'primary_type', 'record_name_policy',
'rpz_drop_ip_rule_enabled',
'rpz_drop_ip_rule_min_prefix_length_ipv4',
'rpz_drop_ip_rule_min_prefix_length_ipv6',
'rpz_last_updated_time', 'rpz_policy', 'rpz_priority',
'rpz_priority_end', 'rpz_severity', 'rpz_type',
'set_soa_serial_number', 'soa_default_ttl', 'soa_email',
'soa_expire', 'soa_negative_ttl', 'soa_refresh', 'soa_retry',
'soa_serial_number', 'substitute_name', 'use_external_primary',
'use_grid_zone_timer', 'use_log_rpz', 'use_record_name_policy',
'use_rpz_drop_ip_rule', 'use_soa_email', 'view']
_search_for_update_fields = ['fqdn', 'view']
_updateable_search_fields = ['comment', 'view']
_all_searchable_fields = ['comment', 'fqdn', 'parent', 'view']
_return_fields = ['extattrs', 'fqdn', 'view']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'external_primaries': Extserver.from_dict,
'external_secondaries': Extserver.from_dict,
'grid_primary': Memberserver.from_dict,
'grid_secondaries': Memberserver.from_dict,
'member_soa_mnames': GridmemberSoamname.from_dict,
'member_soa_serials': GridmemberSoaserial.from_dict,
}
def copy_rpz_records(self, *args, **kwargs):
return self._call_func("copy_rpz_records", *args, **kwargs)
def lock_unlock_zone(self, *args, **kwargs):
return self._call_func("lock_unlock_zone", *args, **kwargs)
class ZoneStub(InfobloxObject):
""" ZoneStub: DNS Stub Zone object.
Corresponds to WAPI object 'zone_stub'
A stub zone contains records that identify the authoritative name
servers in the zone. It does not contain resource records for
resolving IP addresses to hosts in the zone. Instead, it contains
the following records:
SOA (Start of Authority) record of the zone
NS (name server) records at the apex of the stub zone
A (Address) records that map the name servers to their IP addresses
Stub zones, like secondary zones, obtain their records from other
name servers. Their records are read only; therefore, administrators
do not manually add, remove, or modify the records.
Stub zone records are also periodically refreshed, just like
secondary zone records. However, secondary name servers contain a
complete copy of the zone data on the primary server. Therefore,
zone transfers from a primary server to a secondary server, or
between secondary servers, can increase CPU usage and consume
excessive bandwidth. A name server hosting a stub zone maintains a
much smaller set of records; therefore, updates are less CPU
intensive and consume less bandwidth. When a name server hosting a
stub zone receives a query for a domain name that it determines is
in the stub zone, the name server uses the records in the stub zone
to locate the correct name server to query, eliminating the need to
query the root server.
Attributes:
address: The IP address of the server that is serving this zone.
comment: Comment for the zone; maximum 256 characters.
disable: Determines whether a zone is disabled or not. When this
is set to False, the zone is enabled.
disable_forwarding: Determines if the name servers that host the
zone should not forward queries that end with the domain
name of the zone to any configured forwarders.
display_domain: The displayed name of the DNS zone.
dns_fqdn: The name of this DNS zone in punycode format. For a
reverse zone, this is in "address/cidr" format. For other
zones, this is in FQDN format in punycode format.
extattrs: Extensible attributes associated with the object.For
valid values for extensible attributes, see the following
information.
external_ns_group: A forward stub server name server group.
fqdn: The name of this DNS zone. For a reverse zone, this is in
"address/cidr" format. For other zones, this is in FQDN
format. This value can be in unicode format.Note that for a
reverse zone, the corresponding zone_format value should be
set.
locked: If you enable this flag, other administrators cannot
make conflicting changes. This is for administration
purposes only. The zone will continue to serve DNS data even
when it is locked.
locked_by: The name of a superuser or the administrator who
locked this zone.
mask_prefix: IPv4 Netmask or IPv6 prefix for this zone.
ms_ad_integrated: The flag that determines whether Active
Directory is integrated or not. This field is valid only
when ms_managed is "STUB", "AUTH_PRIMARY", or "AUTH_BOTH".
ms_ddns_mode: Determines whether an Active Directory-integrated
zone with a Microsoft DNS server as primary allows dynamic
updates. Valid values are:"SECURE" if the zone allows secure
updates only."NONE" if the zone forbids dynamic
updates."ANY" if the zone accepts both secure and nonsecure
updates.This field is valid only if ms_managed is either
"AUTH_PRIMARY" or "AUTH_BOTH". If the flag ms_ad_integrated
is false, the value "SECURE" is not allowed.
ms_managed: The flag that indicates whether the zone is assigned
to a Microsoft DNS server. This flag returns the
authoritative name server type of the Microsoft DNS server.
Valid values are:"NONE" if the zone is not assigned to any
Microsoft DNS server."STUB" if the zone is assigned to a
Microsoft DNS server as a stub zone."AUTH_PRIMARY" if only
the primary server of the zone is a Microsoft DNS
server."AUTH_SECONDARY" if only the secondary server of the
zone is a Microsoft DNS server."AUTH_BOTH" if both the
primary and secondary servers of the zone are Microsoft DNS
servers.
ms_read_only: Determines if a Grid member manages the zone
served by a Microsoft DNS server in read-only mode. This
flag is true when a Grid member manages the zone in read-
only mode, false otherwise.When the zone has the
ms_read_only flag set to True, no changes can be made to
this zone.
ms_sync_master_name: The name of MS synchronization master for
this zone.
ns_group: A stub member name server group.
parent: The parent zone of this zone.Note that when searching
for reverse zones, the "in-addr.arpa" notation should be
used.
prefix: The RFC2317 prefix value of this DNS zone.Use this field
only when the netmask is greater than 24 bits; that is, for
a mask between 25 and 31 bits. Enter a prefix, such as the
name of the allocated address block. The prefix can be
alphanumeric characters, such as 128/26 , 128-189 , or
sub-B.
soa_email: The SOA email for the zone. This value can be in
unicode format.
soa_expire: This setting defines the amount of time, in seconds,
after which the secondary server stops giving out answers
about the zone because the zone data is too old to be
useful.
soa_mname: The SOA mname value for this zone. The Infoblox
appliance allows you to change the name of the primary
server on the SOA record that is automatically created when
you initially configure a zone. Use this method to change
the name of the primary server on the SOA record. For
example, you may want to hide the primary server for a zone.
If your device is named dns1.zone.tld, and for security
reasons, you want to show a secondary server called
dns2.zone.tld as the primary server. To do so, you would go
to dns1.zone.tld zone (being the true primary) and change
the primary server on the SOA to dns2.zone.tld to hide the
true identity of the real primary server. This value can be
in unicode format.
soa_negative_ttl: The negative Time to Live (TTL) value of the
SOA of the zone indicates how long a secondary server can
cache data for "Does Not Respond" responses.
soa_refresh: This indicates the interval at which a secondary
server sends a message to the primary server for a zone to
check that its data is current, and retrieve fresh data if
it is not.
soa_retry: This indicates how long a secondary server must wait
before attempting to recontact the primary server after a
connection failure between the two servers occurs.
soa_serial_number: The serial number in the SOA record
incrementally changes every time the record is modified. The
Infoblox appliance allows you to change the serial number
(in the SOA record) for the primary server so it is higher
than the secondary server, thereby ensuring zone transfers
come from the primary server.
stub_from: The primary servers (masters) of this stub zone.
stub_members: The Grid member servers of this stub zone.Note
that the lead/stealth/grid_replicate/
preferred_primaries/override_preferred_primaries fields of
the struct will be ignored when set in this field.
stub_msservers: The Microsoft DNS servers of this stub zone.Note
that the stealth field of the struct will be ignored when
set in this field.
using_srg_associations: This is true if the zone is associated
with a shared record group.
view: The name of the DNS view in which the zone resides.
Example "external".
zone_format: Determines the format of this zone.
"""
_infoblox_type = 'zone_stub'
_fields = ['address', 'comment', 'disable', 'disable_forwarding',
'display_domain', 'dns_fqdn', 'extattrs', 'external_ns_group',
'fqdn', 'locked', 'locked_by', 'mask_prefix',
'ms_ad_integrated', 'ms_ddns_mode', 'ms_managed',
'ms_read_only', 'ms_sync_master_name', 'ns_group', 'parent',
'prefix', 'soa_email', 'soa_expire', 'soa_mname',
'soa_negative_ttl', 'soa_refresh', 'soa_retry',
'soa_serial_number', 'stub_from', 'stub_members',
'stub_msservers', 'using_srg_associations', 'view',
'zone_format']
_search_for_update_fields = ['fqdn', 'view']
_updateable_search_fields = ['comment', 'view']
_all_searchable_fields = ['comment', 'fqdn', 'parent', 'view',
'zone_format']
_return_fields = ['extattrs', 'fqdn', 'stub_from', 'view']
_remap = {}
_shadow_fields = ['_ref']
_custom_field_processing = {
'stub_from': Extserver.from_dict,
'stub_members': Memberserver.from_dict,
'stub_msservers': Msdnsserver.from_dict,
}
def lock_unlock_zone(self, *args, **kwargs):
return self._call_func("lock_unlock_zone", *args, **kwargs)
|