swreg.inc.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?php
  2. # Globals
  3. define('LOGFILE', '/var/log/swreg.log');
  4. define('LOG_LEVEL', 7);
  5. define('TFTPBOOT', '/tftpboot');
  6. define('PORT_TMPL_DIR', TFTPBOOT . '/port-templates');
  7. define('VLAN_TMPL_DIR', TFTPBOOT . '/vlan-templates');
  8. define('DEVICE_TMPL_DIR', TFTPBOOT . '/device-templates');
  9. define('DEVICE_CONFIG_DIR', TFTPBOOT . '/device-configs');
  10. define('DEVICE_TMP_DIR', TFTPBOOT . '/device-tmp');
  11. define('PORT_PROFILE_DIR', TFTPBOOT . '/port-profiles');
  12. define('FPING_PROGRAM', '/usr/local/sbin/fping');
  13. # The MDFs are L3 domains.
  14. # MANDATORY!
  15. $MDFS = array(
  16. 'HILTON',
  17. 'HYATT',
  18. 'NODE',
  19. 'SDCC',
  20. );
  21. # List all PIDs or PID patterns here.
  22. # MANDATORY!
  23. $ZTP_PIDS = array(
  24. 'WS-C3560CG-8PC-S',
  25. 'WS-C3750X',
  26. );
  27. # Fill in each of these arrays based on the ZTP PIDs listed above.
  28. # MANDATORY!
  29. $IMG_VERS = array(
  30. 'WS-C3560CG-8PC-S' => '15.0(2)SE7',
  31. 'WS-C3750X' => '15.0(2)SE7',
  32. );
  33. $IMG_FILES = array(
  34. 'WS-C3560CG-8PC-S' => 'c3560c405ex-universalk9-mz.150-2.SE7.bin',
  35. 'WS-C3750X' => 'c3750e-universalk9-mz.150-2.SE7.bin',
  36. );
  37. $START_PORTS = array(
  38. 'WS-C3560CG-8PC-S' => '0/1',
  39. 'WS-C3750X' => '1/0/1',
  40. );
  41. $PORT_TYPES = array(
  42. 'WS-C3560CG-8PC-S' => 'GigabitEthernet',
  43. 'WS-C3750X' => 'GigabitEthernet',
  44. );
  45. $EEM_CONFIG_FILES = array(
  46. 'WS-C3560CG-8PC-S' => 'eem-config-3560cg.tmpl',
  47. 'WS-C3750X' => 'eem-config-3750x.tmpl',
  48. );
  49. # End PID arrays
  50. # Fill in VLAN mappings
  51. # VLAN macro will be the name with spaces turned to '_' and
  52. # all letters uppercase followed by _VLAN.
  53. # E.g., for NOC Device Mgmt, the macro will be
  54. # %%NOC_DEVICE_MGMT_VLAN%%
  55. # MANDATORY!
  56. $VLANS = array(
  57. 'NOC Device Mgmt' => '100',
  58. 'NOC Wired' => '110',
  59. 'Wireless AP' => '210',
  60. 'Voice TP' => '300',
  61. 'Video Surveillance' => '310',
  62. 'Speaker' => '350',
  63. 'CiscoTV' => '360',
  64. 'CiscoTV DMP' => '370',
  65. 'Session Capture' => '380',
  66. 'Cisco Store' => '390',
  67. 'Registration' => '400',
  68. 'Session Signage' => '420',
  69. 'Labs CCIE' => '500',
  70. 'Labs Testing Center' => '510',
  71. 'Labs Session Labs' => '520',
  72. 'DevNet' => '600',
  73. 'NOC Public' => '751',
  74. 'Registration Public' => '752',
  75. 'SDCC Public' => '753',
  76. 'Labs Public' => '754',
  77. 'CiscoTV Public' => '755',
  78. 'Cisco Campus Public' => '761',
  79. 'Wired NAT' => '2000',
  80. 'NODE Public' => '757',
  81. 'WoS Booths' => '550',
  82. 'WISP Labs' => '530',
  83. 'HILTON Public' => '758',
  84. 'HYATT Public' => '759',
  85. );
  86. # VLAN Overrides
  87. # Fill in any per-MDF VLAN override
  88. # OPTIONAL
  89. /*
  90. $VLAN_OVERRIDES = array(
  91. 'SDCC' => array(
  92. 'CiscoTV Public' => '756',
  93. ),
  94. 'NODE' => array(
  95. 'CiscoTV Public' => '762',
  96. ),
  97. );
  98. */
  99. # Custom Macros
  100. # Put any general custom macros and
  101. # their replacements here. They will
  102. # be converted to %%MACRO_NAME%% and replaced
  103. # in your configs.
  104. # OPTIONAL
  105. $CUSTOM_MACROS = array(
  106. 'MAX_MACS' => '10',
  107. );
  108. # MDF Overrides
  109. # Put macros here that will be replaced
  110. # based on the MDF location
  111. # OPTIONAL
  112. $MDF_OVERRIDES = array(
  113. 'NODE' => array(
  114. 'MAX_MACS' => '100',
  115. ),
  116. );
  117. ?>