Debian Codegraph @

src/res/configlets/fwsm_os/vlan_subinterface_3_2

raw
1 ## -*- mode: shell-script; -*-
2 ##
3 ## To be able to make changes to the part of configuration created
4 ## from this configlet you need to copy this file to the directory
5 ## fwbuilder/configlets/pix_os/ in your home directory and modify it.
6 ## Double "##" comments are removed during processing but single "#"
7 ## comments are be retained and appear in the generated script. Empty
8 ## lines are removed as well.
9 ##
10 ## Configlets support simple macro language with these constructs:
11 ## {{$var}} is variable expansion
12 ## {{if var}} is conditional operator.
13 ##
14
15 {{if static_address}}
16
17 interface {{$interface_name}}
18 vlan {{$vlan_id}}
19 nameif {{$interface_label}}
20 {{if configure_interface_address}}
21 ip address {{$address}} {{$netmask}} {{if configure_standby_address}} standby {{$standby_address}} {{endif}}
22 {{endif}}
23 security-level {{$security_level}}
24 exit
25
26 {{endif}}
27
28
29
30 {{if dhcp_address}}
31
32 interface {{$interface_name}}
33 vlan {{$vlan_id}}
34 nameif {{$interface_label}}
35 {{if configure_interface_address}}
36 ip address dhcp setroute
37 {{endif}}
38 security-level {{$security_level}}
39 exit
40
41 {{endif}}
42