Skip to content

Commit

Permalink
Fix OSPF management network IP address
Browse files Browse the repository at this point in the history
  • Loading branch information
maddn committed Aug 1, 2022
1 parent 48b9b99 commit 401e4ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/topology/templates/igp-template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@
</network>
<?if {../ospf/include-management-network='true'}?>
<?set-context-node {deref(current())/..}?>
<?set LAST_OCTET={substring-after(substring-after(substring-after(management-interface/ip-address, '.'), '.'), '.')}?>
<network>
<ip>{substring(management-interface/ip-address, 1, string-length(management-interface/ip-address)-string-length(id)-1)}.0</ip>
<ip>{substring(management-interface/ip-address, 1, string-length(management-interface/ip-address)-string-length($LAST_OCTET)-1)}.0</ip>
<mask>255.255.255.0</mask>
<area>0</area>
</network>
Expand Down

0 comments on commit 401e4ef

Please sign in to comment.