|
|
|
|
@@ -24,24 +24,24 @@ default_vlans = {
|
|
|
|
|
<group name="interfaces" default="default_interfaces">
|
|
|
|
|
/ip address
|
|
|
|
|
## not disabled and no comment
|
|
|
|
|
add address={{ ip | _start_ }}/{{ mask }} interface={{ interface }} network={{ network }}
|
|
|
|
|
add address={{ ip_address | _start_ }}/{{ mask }} interface={{ name }} network={{ network }}
|
|
|
|
|
## not disabled and comment with/without quotes
|
|
|
|
|
add address={{ ip | _start_ }}/{{ mask }} comment={{ comment | ORPHRASE | exclude("disabled=") | strip('"')}} interface={{ interface }} network={{ network }}
|
|
|
|
|
add address={{ ip_address | _start_ }}/{{ mask }} comment={{ description | ORPHRASE | exclude("disabled=") | strip('"')}} interface={{ name }} network={{ network }}
|
|
|
|
|
## disabled no comment
|
|
|
|
|
add address={{ ip | _start_ }}/{{ mask }} disabled={{ disabled | replace("yes","True") | strip('"')}} interface={{ interface }} network={{ network }}
|
|
|
|
|
add address={{ ip_address | _start_ }}/{{ mask }} disabled={{ disabled | replace("yes","True") | strip('"')}} interface={{ name }} network={{ network }}
|
|
|
|
|
## disabled with comment with/without quotes
|
|
|
|
|
add address={{ ip | _start_ }}/{{ mask }} comment={{ comment | ORPHRASE | exclude("disabled=") | strip('"') }} disabled={{ disabled }} interface={{ interface }} network={{ network }}
|
|
|
|
|
add address={{ ip_address | _start_ }}/{{ mask }} comment={{ description | ORPHRASE | exclude("disabled=") | strip('"') }} disabled={{ disabled }} interface={{ name }} network={{ network }}
|
|
|
|
|
</group>
|
|
|
|
|
|
|
|
|
|
<group name="vlans">
|
|
|
|
|
/interface vlan {{ _start_ }}
|
|
|
|
|
/interface vlan
|
|
|
|
|
## not disabled and no comment
|
|
|
|
|
add interface={{ interface }} name={{ name | ORPHRASE }} vlan-id={{ vlan_id }}
|
|
|
|
|
add interface={{ interface | _start_ }} name={{ name | ORPHRASE | strip('"') }} vlan-id={{ vlan_id }}
|
|
|
|
|
## not disabled and comment with/without quotes
|
|
|
|
|
add comment={{ comment | ORPHRASE | exclude("disabled=") | strip('"')}} interface={{ interface }} name={{ name | ORPHRASE }} vlan-id={{ vlan_id }}
|
|
|
|
|
add comment={{ comment | _start_ | ORPHRASE | exclude("disabled=") | strip('"')}} interface={{ interface }} name={{ name | ORPHRASE | strip('"') }} vlan-id={{ vlan_id }}
|
|
|
|
|
## disabled with comment with/without quotes
|
|
|
|
|
add comment={{ comment | ORPHRASE | exclude("disabled=") | strip('"')}} disabled={{ disabled }} interface={{ interface }} name={{ name | ORPHRASE }} vlan-id={{ vlan_id }}
|
|
|
|
|
add comment={{ comment | _start_ | ORPHRASE | exclude("disabled=") | strip('"')}} disabled={{ disabled | replace("yes","True") | strip('"') }} interface={{ interface }} name={{ name | ORPHRASE | strip('"') }} vlan-id={{ vlan_id }}
|
|
|
|
|
## disabled no comment
|
|
|
|
|
add interface={{ interface }} name={{ name | ORPHRASE }} vlan-id={{ vlan_id }} disabled={{ disabled }}
|
|
|
|
|
add interface={{ interface | _start_ }} name={{ name | ORPHRASE | strip('"') }} vlan-id={{ vlan_id }} disabled={{ disabled | replace("yes","True") | strip('"') }}
|
|
|
|
|
</group>
|
|
|
|
|
|
|
|
|
|
|