access: add voice VLAN support
This commit is contained in:
		
							parent
							
								
									c3ff39fe72
								
							
						
					
					
						commit
						3caea81896
					
				
					 2 changed files with 20 additions and 1 deletions
				
			
		|  | @ -30,6 +30,11 @@ interface {{ iface.name }} | |||
| {% else %} | ||||
|  no switchport access vlan | ||||
| {% endif %} | ||||
| {% if voice_vlan is defined and not iface.mgmt_only %} | ||||
|  voice vlan enable | ||||
| {% else %} | ||||
|  no voice vlan enable | ||||
| {% endif %} | ||||
| 
 | ||||
| {%+ elif iface.mode and iface.mode.value == 'tagged' %} | ||||
|  switchport mode trunk | ||||
|  | @ -52,6 +57,17 @@ interface Vlan1 | |||
|  ip address {{ mgmt.ip | ipaddr('address') }} {{ mgmt.ip | ipaddr('netmask') }} | ||||
| {% endif %} | ||||
| 
 | ||||
| voice vlan mac-address 2C-3E-CF-00-00-00 FF-FF-FF-00-00-00 description Cisco | ||||
| voice vlan mac-address 3C-0E-23-00-00-00 FF-FF-FF-00-00-00 description Cisco | ||||
| voice vlan mac-address B8-38-61-00-00-00 FF-FF-FF-00-00-00 description Cisco | ||||
| voice vlan mac-address C4-14-3C-00-00-00 FF-FF-FF-00-00-00 description Cisco | ||||
| 
 | ||||
| {% if voice_vlan is defined %} | ||||
| voice vlan {{ voice_vlan }} | ||||
| {% else %} | ||||
| no voice vlan | ||||
| {% endif %} | ||||
| 
 | ||||
| snmp-server name {{ inventory_hostname }} | ||||
| 
 | ||||
| sntp enable | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue