Ejemplo n.º 1
0
def dhcp():
    return ss_100x_json()['data']['dhcp_enable'], \
           ss_100x_json()['data']['dhcp_vlan'], \
           ss_100x_json()['data']['dhcp_ip_start'], \
           ss_100x_json()['data']['dhcp_ip_end'], \
           cidr_to_netmask(ss_100x_json()['data']['dhcp_mask']), \
           ss_100x_json()['data']['dhcp_gw'], \
           ss_100x_json()['data']['dhcp_dns'], \
           str(ss_100x_json()['data']['dhcp_lease'])
Ejemplo n.º 2
0
def realtime_bw():
    return ss_100x_json()['data']['realtime_bw_codec'], \
           ss_100x_json()['data']['realtime_bw_threshold'], \
           ss_100x_json()['data']['realtime_bw_timeout']
Ejemplo n.º 3
0
def sntp():
    '''Нет mode'''
    return ss_100x_json()['data']['sntp_ip'], \
           ss_100x_json()['data']['sntp_vlan']
Ejemplo n.º 4
0
def rip():
    return ss_100x_json()['data']['rip_enable'], \
           ss_100x_json()['data']['rip_gateway_ip'], \
           ss_100x_json()['data']['rip_omit_down_stations'], \
           ss_100x_json()['data']['rip_couple_to_sm_alarms'], \
           ss_100x_json()['data']['rip_routes_cost']
Ejemplo n.º 5
0
def nat():
    '''Нет Port Forwarding'''
    return ss_100x_json()['data']['nat_enable'], \
           ss_100x_json()['data']['nat_external_ip'], \
           ss_100x_json()['data']['nat_internal_network'], \
           cidr_to_netmask(ss_100x_json()['data']['nat_internal_mask'])
Ejemplo n.º 6
0
def arp():
    return ss_100x_json()['data']['arp_timeout'], \
           ss_100x_json()['data']['arp_proxy_enable']
Ejemplo n.º 7
0
def multicast():
    return ss_100x_json()['data']['multicast_mode'], \
           ss_100x_json()['data']['multicast_timeout']
Ejemplo n.º 8
0
def tftp():
    return ss_100x_json()['data']['tftp_ip'], \
           ss_100x_json()['data']['tftp_vlan']
Ejemplo n.º 9
0
def snmp():
    return ss_100x_json()['data']['snmp_ip1'], \
           ss_100x_json()['data']['snmp_ip2'], \
           ss_100x_json()['data']['snmp_read'], \
           ss_100x_json()['data']['snmp_write']
Ejemplo n.º 10
0
def ip_screening():
    return ss_100x_json()['data']['ipscreen_enable']
Ejemplo n.º 11
0
def acceleration():
    return ss_100x_json()['data']['accel_enable'], \
           ss_100x_json()['data']['accel_svlan_from'], \
           ss_100x_json()['data']['accel_svlan_to'], \
           ss_100x_json()['data']['accel_mss'], \
           ss_100x_json()['data']['accel_max_tcp_window'], \
           ss_100x_json()['data']['accel_tcp_rcvwnd_update'], \
           ss_100x_json()['data']['accel_sessions'], \
           ss_100x_json()['data']['accel_buffers'], \
           ss_100x_json()['data']['accel_max_queue'], \
           ss_100x_json()['data']['accel_max_mod_queue'], \
           ss_100x_json()['data']['accel_retransmit_timeout'], \
           ss_100x_json()['data']['accel_retransmit_tries'], \
           ss_100x_json()['data']['accel_inactivity_timeout'], \
           ss_100x_json()['data']['accel_ack_period']
Ejemplo n.º 12
0
def dns():
    return ss_100x_json()['data']['dns_enable'], \
           ss_100x_json()['data']['dns_clear_timeout']
Ejemplo n.º 13
0
def encryption():
    '''Флаг aes v.34/v.35 работает только на прошивках 3.5'''
    return ss_100x_json()['data']['crypto_flags'], \
           ss_100x_json()['data']['crypto_key']