123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <?php
- # Globals
- define('LOGFILE', '/var/log/swreg.log');
- define('LOG_LEVEL', 7);
- define('TFTPBOOT', '/tftpboot');
- define('PORT_TMPL_DIR', TFTPBOOT . '/port-templates');
- define('VLAN_TMPL_DIR', TFTPBOOT . '/vlan-templates');
- define('DEVICE_TMPL_DIR', TFTPBOOT . '/device-templates');
- define('DEVICE_CONFIG_DIR', TFTPBOOT . '/device-configs');
- define('DEVICE_TMP_DIR', TFTPBOOT . '/device-tmp');
- define('PORT_PROFILE_DIR', TFTPBOOT . '/port-profiles');
- define('FPING_PROGRAM', '/usr/local/sbin/fping');
- # The MDFs are L3 domains.
- # MANDATORY!
- $MDFS = array(
- 'HILTON',
- 'HYATT',
- 'NODE',
- 'SDCC',
- );
- # List all PIDs or PID patterns here.
- # MANDATORY!
- $ZTP_PIDS = array(
- 'WS-C3560CG-8PC-S',
- 'WS-C3750X',
- );
- # Fill in each of these arrays based on the ZTP PIDs listed above.
- # MANDATORY!
- $IMG_VERS = array(
- 'WS-C3560CG-8PC-S' => '15.0(2)SE7',
- 'WS-C3750X' => '15.0(2)SE7',
- );
- $IMG_FILES = array(
- 'WS-C3560CG-8PC-S' => 'c3560c405ex-universalk9-mz.150-2.SE7.bin',
- 'WS-C3750X' => 'c3750e-universalk9-mz.150-2.SE7.bin',
- );
- $START_PORTS = array(
- 'WS-C3560CG-8PC-S' => '0/1',
- 'WS-C3750X' => '1/0/1',
- );
- $PORT_TYPES = array(
- 'WS-C3560CG-8PC-S' => 'GigabitEthernet',
- 'WS-C3750X' => 'GigabitEthernet',
- );
- $EEM_CONFIG_FILES = array(
- 'WS-C3560CG-8PC-S' => 'eem-config-3560cg.tmpl',
- 'WS-C3750X' => 'eem-config-3750x.tmpl',
- );
- # End PID arrays
- # Fill in VLAN mappings
- # VLAN macro will be the name with spaces turned to '_' and
- # all letters uppercase followed by _VLAN.
- # E.g., for NOC Device Mgmt, the macro will be
- # %%NOC_DEVICE_MGMT_VLAN%%
- # MANDATORY!
- $VLANS = array(
- 'NOC Device Mgmt' => '100',
- 'NOC Wired' => '110',
- 'Wireless AP' => '210',
- 'Voice TP' => '300',
- 'Video Surveillance' => '310',
- 'Speaker' => '350',
- 'CiscoTV' => '360',
- 'CiscoTV DMP' => '370',
- 'Session Capture' => '380',
- 'Cisco Store' => '390',
- 'Registration' => '400',
- 'Session Signage' => '420',
- 'Labs CCIE' => '500',
- 'Labs Testing Center' => '510',
- 'Labs Session Labs' => '520',
- 'DevNet' => '600',
- 'NOC Public' => '751',
- 'Registration Public' => '752',
- 'SDCC Public' => '753',
- 'Labs Public' => '754',
- 'CiscoTV Public' => '755',
- 'Cisco Campus Public' => '761',
- 'Wired NAT' => '2000',
- 'NODE Public' => '757',
- 'WoS Booths' => '550',
- 'WISP Labs' => '530',
- 'HILTON Public' => '758',
- 'HYATT Public' => '759',
- );
- # VLAN Overrides
- # Fill in any per-MDF VLAN override
- # OPTIONAL
- /*
- $VLAN_OVERRIDES = array(
- 'SDCC' => array(
- 'CiscoTV Public' => '756',
- ),
- 'NODE' => array(
- 'CiscoTV Public' => '762',
- ),
- );
- */
- # Custom Macros
- # Put any general custom macros and
- # their replacements here. They will
- # be converted to %%MACRO_NAME%% and replaced
- # in your configs.
- # OPTIONAL
- $CUSTOM_MACROS = array(
- 'MAX_MACS' => '10',
- );
- # MDF Overrides
- # Put macros here that will be replaced
- # based on the MDF location
- # OPTIONAL
- $MDF_OVERRIDES = array(
- 'NODE' => array(
- 'MAX_MACS' => '100',
- ),
- );
- ?>
|