File: vpn_const.py

package info (click to toggle)
python-asusrouter 1.21.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,856 kB
  • sloc: python: 20,497; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 804 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""Constants for the VPN endpoint module."""

from asusrouter.tools.converters import safe_datetime, safe_int

MAP_OVPN_CLIENT = [
    ("REMOTE", "remote", None),
    ("Updated", "datetime", safe_datetime),
    ("TUN/TAP read bytes", "tun_tap_read", safe_int),
    ("TUN/TAP write bytes", "tun_tap_write", safe_int),
    ("TCP/UDP read bytes", "tcp_udp_read", safe_int),
    ("TCP/UDP write bytes", "tcp_udp_write", safe_int),
    ("Auth read bytes", "auth_read", safe_int),
    ("pre-compress bytes", "pre_compress", safe_int),
    ("post-compress bytes", "post_compress", safe_int),
    ("pre-decompress bytes", "pre_decompress", safe_int),
    ("post-decompress bytes", "post_decompress", safe_int),
]

MAP_OVPN_SERVER = [
    ("CLIENT_LIST", "client_list"),
    ("ROUTING_TABLE", "routing_table"),
]