code stringlengths 10 58.5k | file_path stringlengths 53 173 |
|---|---|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division
class IxiaError(RuntimeError):
''' Ixia error '''
TCL_NOT_FOUND = 1
HLTAPI_NOT_FOUND = 2
HLTAPI_NOT_PREPARED = 3
HLTAPI_NOT_INITED = 4
COMMAND_FAIL = 5,
WINREG_NOT_FOUND = 6
I... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiaerror.py_part1 |
import sys
import ixiautil
import uuid
from ixiaerror import IxiaError
from ixiautil import Logger
from ixiahlt import IxiaHlt
class IxiaNgpf(object):
'''
Python wrapper class over the NGPF commands
'''
def __init__(self, ixiahlt):
self.__logger = Logger('ixiangpf', print_timestamp=False)
... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiangpf.py_part1 |
The original file names are then replaced with the new locations from the server.
'''
server_file_args = {}
for (i, (k, v)) in enumerate(file_args.items()):
# add guid to the server file name
persistencePath = self.__ixn_call('getAttribute', '/globals', '-persiste... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiangpf.py_part2 |
import ixiangpf_commands.emulation_ovsdb_control
import ixiangpf_commands.emulation_ovsdb_info
import ixiangpf_commands.emulation_pcc_config
import ixiangpf_commands.emulation_pcc_control
import ixiangpf_commands.emulation_pcc_info
import ixiangpf_commands.emulation_pce_config
import ixiangpf_commands.emulation_pce_con... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiangpf.py_part3 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division
__version__ = '1.0'
| KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/__init__.py_part1 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division
import getpass
import itertools
import platform
import re
import sys
import xml.etree.ElementTree as ElementTree
from datetime import datetime
from ixiaerror import IxiaError
class Logger(object):
CAT_... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiautil.py_part1 |
from ixiahlt import IxiaHlt
def make_hltapi_fail(log):
return {'status': IxiaHlt.FAIL, 'log': log}
| KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiautil.py_part2 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division
import sys
import os
try:
import Tkinter as tkinter
except ImportError:
import tkinter
from ixiautil import Logger
class IxiaTcl(object):
'''
Python wrapper class over Tkinter tcl interp
... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiatcl.py_part1 |
for c in tcl_string:
if state == 0:
if c == '\\':
state = 1
elif c in invalid_chars:
if c == '{' and count == 1:
a = tcl_string.rfind('}')
if a == len(tcl_string)-1:
... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiatcl.py_part2 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division
import os
import os.path
import sys
from glob import glob
from ixiaerror import *
from ixiautil import *
try:
from Tkinter import TclError
except ImportError:
from tkinter import TclError
class Ix... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiahlt.py_part1 |
raise e
return keys
def __get_tcl_mejor_version(self):
tkinter_tcl_version = [int(i) for i in self.ixiatcl._eval('info patchlevel').split('.')]
if (tkinter_tcl_version[0], tkinter_tcl_version[1]) <= (8,5):
return '8.5'
else:
return '8.6'
... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiahlt.py_part2 |
{'name': 'traffic_stats', 'namespace': ixia_ns, 'parse_io': True},
{'name': 'get_nodrop_rate', 'namespace': ixia_ns, 'parse_io': True},
{'name': 'find_in_csv', 'namespace': ixia_ns, 'parse_io': True},
{'name': 'test_control', 'namespace': ixia_ns, 'parse_io': True},
... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiahlt.py_part3 |
{'name': 'emulation_bgp_info', 'namespace': ixia_ns, 'parse_io': True},
{'name': 'emulation_bgp_route_config', 'namespace': ixia_ns, 'parse_io': True},
{'name': 'emulation_cfm_config', 'namespace': ixia_ns, 'parse_io': True},
{'name': 'emulation_cfm_contro... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiahlt.py_part4 |
{'name': 'emulation_ospf_topology_route_config', 'namespace': ixia_ns, 'parse_io': True},
{'name': 'emulation_pbb_config', 'namespace': ixia_ns, 'parse_io': True},
{'name': 'emulation_pbb_control', 'namespace': ixia_ns, 'parse_io': True},
{'name': 'emulati... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiahlt.py_part5 |
{'name': 'fcoe_fwd_control', 'namespace': ixia_ns, 'parse_io': True},
{'name': 'fcoe_fwd_stats', 'namespace': ixia_ns, 'parse_io': True},
{'name': 'fcoe_fwd_globals_config', 'namespace': ixia_ns, 'parse_io': True},
{'name': 'fcoe_fwd_options_config', 'name... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiahlt.py_part6 |
# -*- coding: utf-8 -*-
import sys
from ixiaerror import IxiaError
from ixiangpf import IxiaNgpf
from ixiautil import PartialClass, make_hltapi_fail
class IxiaNgpf(PartialClass, IxiaNgpf):
def emulation_ldp_config(self, **kwargs):
r'''
#Procedure Header
Name:
emulation_ldp_config
Description:
... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiangpf_commands/emulation_ldp_config.py_part1 |
x [-target_name ALPHA]
x [-target_multiplier NUMERIC]
x [-target_auth_key ANY]
x [-initiate_targeted_hello CHOICES 0 1]
x [-target_auth_mode ... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiangpf_commands/emulation_ldp_config.py_part2 |
with the entire list of layer 2-3 parameters. Otherwise they will be
set to their default values.
-intf_ipv6_prefix_length
Prefix length on the interface.
-intf_ipv6_addr_step
Define interface IP address for multiple sessions.
Valid only for -mode create.
... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiangpf_commands/emulation_ldp_config.py_part3 |
x Valid only for -mode create.
x Gives the step for the gateway IP address.
x -graceful_restart_enable
x Will enable graceful restart (HA) on the LDP neighbor.
n -no_write
n This argument defined by Cisco is not supported for NGPF implementation.
x -reconnect_time
x (... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiangpf_commands/emulation_ldp_config.py_part4 |
x Version of LDP. When RFC 5036 is chosen, LDP version is version 1. When draft-pdutta-mpls-ldp-adj-capability-00 is chosen, LDP version is version 2
x -session_preference
x The transport connection preference of the LDP router that is conveyed in Dual-stack capability TLV included in LDP Hello mess... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiangpf_commands/emulation_ldp_config.py_part5 |
List of LDP routers created Please note that this key will be omitted if the current session or command were run with -return_detailed_handles 0.
key:handle value:List of LDP routers created Please note that this key will be omitted if the current session or command were run with ... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiangpf_commands/emulation_ldp_config.py_part6 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division
import sys
import ixiautil
from ixiahlt import IxiaHlt
from ixiangpf import IxiaNgpf
class IxiaNgpf(ixiautil.PartialClass, IxiaNgpf):
# TODO: set man and defaulted args, docstring
def cleanup_sess... | KeysightData/IxNetworkAPI9.30.2212.7PI/ixia/hlapi/9.30.2212.6/library/common/ixiangpf/python/ixiangpf_commands/cleanup_session.py_part1 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 3