Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o-firewall
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o-firewall
Commits
ab37b30b
Commit
ab37b30b
authored
Jul 12, 2018
by
chirac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configure les ip sur tous les vlans
parent
8a4212c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
templates/hp.tpl
templates/hp.tpl
+9
-9
No files found.
templates/hp.tpl
View file @
ab37b30b
...
@@ -43,17 +43,17 @@ vlan {{ id }}
...
@@ -43,17 +43,17 @@ vlan {{ id }}
{%- endif %}
{%- endif %}
{%- if vlan["ports_untagged"] %}
{%- if vlan["ports_untagged"] %}
untagged {{ vlan["ports_untagged"]|join(',') }}
untagged {{ vlan["ports_untagged"]|join(',') }}
{%- endif %}
{%- for ipv4, subnet in switch.interfaces_subnet.items() %}
{%- if subnet.0.vlan_id == id %}
ip address {{ ipv4 }}/{{ subnet.0.netmask_cidr }}
{%- endif %}
{%- endif %}
{%- if switch.subnet.0.vlan_id == id %}
{%- endfor %}
ip address {{ switch.ipv4 }}/{{ switch.subnet.0.netmask_cidr }}
{%- for ipv6, subnet6 in switch.interfaces6_subnet.items() %}
{%- else %}
{%- if subnet6.vlan_id == id %}
no ip address
ipv6 address {{ ipv6 }}/{{ subnet6.netmask_cidr }}
{%- endif %}
{%- if switch.subnet.0.vlan_id == id %}
ipv6 address {{ switch.ipv6 }}/{{ switch.subnet6.netmask_cidr }}
{%- else %}
no ipv6 enable
{%- endif %}
{%- endif %}
{%- endfor %}
{%- if id in additionals.igmp_vlans %}
{%- if id in additionals.igmp_vlans %}
ip igmp
ip igmp
no ip igmp querier
no ip igmp querier
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment