2 * Copyright (c) 2016 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
9 package org.opendaylight.groupbasedpolicy.sxp_ise_adapter.impl;
11 import java.util.HashMap;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.groupbasedpolicy.sxp.integration.sxp.ise.adapter.model.rev160630.gbp.sxp.ise.adapter.IseSourceConfig;
16 * Purpose: keeper of {@link IseSourceConfig}, UUID-to-SGT map
18 * Unique identifier is tenant-id (expect 1 tenant = 1 ise-source)
20 public class IseContext {
22 private final IseSourceConfig iseSourceConfig;
23 private final Map<String, Integer> uuidToSgtMap;
27 * @param iseSourceConfig ise provider coordinates
29 public IseContext(final IseSourceConfig iseSourceConfig) {
30 this.iseSourceConfig = iseSourceConfig;
31 this.uuidToSgtMap = new HashMap<>();
35 * @return ise coordinates
37 public IseSourceConfig getIseSourceConfig() {
38 return iseSourceConfig;
42 * @return known UUID-to-SGT relations
44 public Map<String, Integer> getUuidToSgtMap() {