Set vpn-id/router-id metadata so it would not to override split-horizon bit
[netvirt.git] / vpnservice / natservice / natservice-impl / src / main / java / org / opendaylight / netvirt / natservice / internal / NatServiceCounters.java
1 /*
2  * Copyright (c) 2016 Hewlett-Packard Enterprise and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.netvirt.natservice.internal;
10
11 import org.opendaylight.infrautils.counters.api.OccurenceCounter;
12
13 public enum NatServiceCounters {
14     install_default_nat_flow, //
15     remove_default_nat_flow;
16
17     private OccurenceCounter counter;
18
19     private NatServiceCounters() {
20         counter = new OccurenceCounter(getClass().getSimpleName(), name(), name());
21     }
22
23     public void inc() {
24         counter.inc();
25     }
26 }