Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ospf: support setting path cost #367

Merged
merged 1 commit into from
Nov 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ ethernet_interfaces:
ipv6_access_group_out: < ipv6_access_list_name >
ospf_network_point_to_point: < true | false >
ospf_area: < ospf_area >
ospf_cost: < ospf_cost >
ospf_authentication: < none | simple | message-digest >
ospf_authentication_key: "< encrypted_password >"
ospf_message_digest_keys:
Expand Down Expand Up @@ -767,6 +768,7 @@ vlan_interfaces:
administrative_distance: < 1-255 >
ospf_network_point_to_point: < true | false >
ospf_area: < ospf_area >
ospf_cost: < ospf_cost >
ospf_authentication: < none | simple | message-digest >
ospf_authentication_key: "< encrypted_password >"
ospf_message_digest_keys:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ interface {{ ethernet_interface }}
{% if ethernet_interfaces[ethernet_interface].ospf_area is defined and ethernet_interfaces[ethernet_interface].ospf_area is not none %}
ip ospf area {{ ethernet_interfaces[ethernet_interface].ospf_area }}
{% endif %}
{% if ethernet_interfaces[ethernet_interface].ospf_cost is defined and ethernet_interfaces[ethernet_interface].ospf_cost is not none %}
ip ospf cost {{ ethernet_interfaces[ethernet_interface].ospf_cost }}
{% endif %}
{% if ethernet_interfaces[ethernet_interface].ospf_authentication is defined and ethernet_interfaces[ethernet_interface].ospf_authentication is not none %}
{% if ethernet_interfaces[ethernet_interface].ospf_authentication == "simple" %}
ip ospf authentication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ interface {{ vlan_interface }}
{% if vlan_interfaces[vlan_interface].ospf_area is defined and vlan_interfaces[vlan_interface].ospf_area is not none %}
ip ospf area {{ vlan_interfaces[vlan_interface].ospf_area }}
{% endif %}
{% if vlan_interfaces[vlan_interface].ospf_cost is defined and vlan_interfaces[vlan_interface].ospf_cost is not none %}
ip ospf cost {{ vlan_interfaces[vlan_interface].ospf_cost }}
{% endif %}
{% if vlan_interfaces[vlan_interface].ospf_authentication is defined and vlan_interfaces[vlan_interface].ospf_authentication is not none %}
{% if vlan_interfaces[vlan_interface].ospf_authentication == "simple" %}
ip ospf authentication
Expand Down