]> git.proxmox.com Git - mirror_frr.git/commit
ospf6d: compute interface cost from its bandwidth
authorVincent Bernat <bernat@luffy.cx>
Wed, 24 Oct 2012 14:45:53 +0000 (14:45 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 21 Mar 2014 05:28:47 +0000 (06:28 +0100)
commitc19543b223d3b8463c048f346b8044589e0cce39
tree7da71baef36e7c7b4e628c645580f8cc18c1aabe
parent1db65fadf627637621c342b789b9a3604ca5fab5
ospf6d: compute interface cost from its bandwidth

Previously, the interface cost was a fixed default value that a user
was allowed to change with "ipv6 ospf6 cost XX". As what is done with
OSPFv2, we change this behaviour to compute the default interface cost
from the interface bandwidth.

The user can still force a cost with "ipv6 ospf6 cost XX". He can get
the default value with "no ipv6 ospf6 cost". Moreover, the default
cost value was 1. The cost is now computed from the bandwidth and a
default reference bandwidth of 100 MBps (as for OSPFv2). Since the
default bandwidth for an interface is 10 MBps, the "default" cost
becomes 10 instead of 1.

[DL: resolved conflict in ospf6d/ospf6_interface.c]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
doc/ospf6d.texi
ospf6d/README
ospf6d/ospf6_interface.c
ospf6d/ospf6_interface.h
ospf6d/ospf6_zebra.c