2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.protocol.bgp.flowspec;
10 public class SimpleFlowspecExtensionProviderContext {
15 public final int index;
26 public final int index;
33 private final SimpleFlowspecTypeRegistry flowspecTypeRegistries[][] = new SimpleFlowspecTypeRegistry[2][2];
35 public SimpleFlowspecExtensionProviderContext() {
36 for (AFI afi : AFI.values()) {
37 for (SAFI safi : SAFI.values()) {
38 this.flowspecTypeRegistries[afi.index][safi.index] = new SimpleFlowspecTypeRegistry();
43 public SimpleFlowspecTypeRegistry getFlowspecTypeRegistry(AFI afi, SAFI safi) {
44 return this.flowspecTypeRegistries[afi.index][safi.index];