Search in sources :

Example 1 with LabelRegistry

use of org.opendaylight.protocol.rsvp.parser.spi.LabelRegistry in project bgpcep by opendaylight.

the class RSVPActivator method startImpl.

@Override
protected List<AutoCloseable> startImpl(final RSVPExtensionProviderContext context) {
    final List<AutoCloseable> regs = new ArrayList<>();
    registerLabelParsers(regs, context);
    final LabelRegistry labelReg = context.getLabelHandlerRegistry();
    registerRROParsers(regs, context, labelReg);
    registerXROParsers(regs, context);
    registerEROParsers(regs, context, labelReg);
    registerRsvpTEParsers(context);
    return regs;
}
Also used : LabelRegistry(org.opendaylight.protocol.rsvp.parser.spi.LabelRegistry) ArrayList(java.util.ArrayList)

Example 2 with LabelRegistry

use of org.opendaylight.protocol.rsvp.parser.spi.LabelRegistry in project bgpcep by opendaylight.

the class RSVPActivator method start.

@Override
public List<Registration> start(final RSVPExtensionProviderContext context) {
    final List<Registration> regs = new ArrayList<>();
    registerLabelParsers(regs, context);
    final LabelRegistry labelReg = context.getLabelHandlerRegistry();
    registerRROParsers(regs, context, labelReg);
    registerXROParsers(regs, context);
    registerEROParsers(regs, context, labelReg);
    registerRsvpTEParsers(context);
    return regs;
}
Also used : LabelRegistry(org.opendaylight.protocol.rsvp.parser.spi.LabelRegistry) Registration(org.opendaylight.yangtools.concepts.Registration) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)2 LabelRegistry (org.opendaylight.protocol.rsvp.parser.spi.LabelRegistry)2 Registration (org.opendaylight.yangtools.concepts.Registration)1