summaryrefslogtreecommitdiffstats
path: root/.gitignore
blob: f9900312e3fd4662e735f53ef8086322ccb49857 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
*~
.classpath
.project
.settings
target
*.iml
.idea
bin
xtend-gen
yang-gen-config
yang-gen-sal
target
.DS_Store
META-INF
maven-metadata-local.xml
*.log
.asciidoctor/
**/asciidoc/*.png
**/asciidoc/*.png.cache
# usused builders generated by yangtools
# FIXME uncomment after HC2VPP-61 is resolved
olor: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
/*
 * Copyright (c) 2020 Cisco and/or its affiliates.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at:
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

option version = "0.0.1";

typedef nat_timeouts
{
  u32 udp;
  u32 tcp_established;
  u32 tcp_transitory;
  u32 icmp;
};

enum nat_log_level : u8
{
  NAT_LOG_NONE = 0x00,
  NAT_LOG_ERROR = 0x01,
  NAT_LOG_WARNING = 0x02,
  NAT_LOG_NOTICE = 0x03,
  NAT_LOG_INFO = 0x04,
  NAT_LOG_DEBUG = 0x05,
};

enum nat_config_flags : u8
{
  NAT_IS_NONE = 0x00,
  NAT_IS_TWICE_NAT = 0x01,
  NAT_IS_SELF_TWICE_NAT = 0x02,
  NAT_IS_OUT2IN_ONLY = 0x04,
  NAT_IS_ADDR_ONLY = 0x08,
  NAT_IS_OUTSIDE = 0x10,
  NAT_IS_INSIDE = 0x20,
  NAT_IS_STATIC = 0x40,
  NAT_IS_EXT_HOST_VALID = 0x80,
};