diff options
| author | Vincent Bernat <bernat@luffy.cx> | 2012-10-24 14:45:54 +0000 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2014-03-21 06:28:48 +0100 | 
| commit | fd5006896fce2816244c1ef4cabc736279548538 (patch) | |
| tree | c9fb889019186c6aa7c800643f3ff1d9171a96a7 /ospf6d/ospf6_snmp.c | |
| parent | c19543b223d3b8463c048f346b8044589e0cce39 (diff) | |
ospf6d: add "auto-cost reference-bandwidth" command
This command allows the user to change to default reference bandwidth
for cost calculations. The default value is 100 Mbps. With a default
bandwidth of 10 MBps, the default cost becomes 10. Those values are
consistent with OSPFv2.
[DL: resolved conflicts in vty command additions & docs]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_snmp.c')
| -rw-r--r-- | ospf6d/ospf6_snmp.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/ospf6d/ospf6_snmp.c b/ospf6d/ospf6_snmp.c index 466039277c..4be8be04b1 100644 --- a/ospf6d/ospf6_snmp.c +++ b/ospf6d/ospf6_snmp.c @@ -488,7 +488,9 @@ ospfv3GeneralGroup (struct variable *v, oid *name, size_t *length,      case OSPFv3DEMANDEXTENSIONS:        return SNMP_INTEGER (0);	/* Not supported */      case OSPFv3REFERENCEBANDWIDTH: -      return SNMP_INTEGER (100000); +      if (ospf6) +        return SNMP_INTEGER (ospf6->ref_bandwidth); +      /* Otherwise, like for "not implemented". */      case OSPFv3RESTARTSUPPORT:      case OSPFv3RESTARTINTERVAL:      case OSPFv3RESTARTSTRICTLSACHECKING:  | 
