# 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. import os import shutil import re from novaclient import client as nova_client import novaclient.v1_1.client as novaclient from SSHTestAgent import SSHTestAgent from CordTestUtils import * from CordTestUtils import log_test as log log.setLevel('INFO') class OnboardingServiceUtils(object): @classmethod def setUp(cls): pass @classmethod def tearDown(cls): pass ''' @method: get_nova_credentials_v2 @Description: Get nova credentials @params:
# import threading import sys import os import time import monotonic import random import logging logging.getLogger('scapy.runtime').setLevel(logging.ERROR) from scapy.all import * from McastTraffic import * from IGMP import * from OnosCtrl import OnosCtrl from CordTestUtils import log_test from nose.tools import * log_test.setLevel('DEBUG') conf.verb = 0 class IgmpChannel: IGMP_DST_MAC = "01:00:5e:00:01:01" IGMP_SRC_MAC = "5a:e1:ac:ec:4d:a1" IP_SRC = '1.2.3.4' IP_DST = '224.0.1.1' igmp_eth = Ether(dst=IGMP_DST_MAC, src=IGMP_SRC_MAC, type=ETH_P_IP) igmp_ip = IP(dst=IP_DST, src=IP_SRC) ssm_list = [] def __init__(self,
import noseTlsAuthHolder as tlsAuthHolder from scapy_ssl_tls.ssl_tls import * from scapy_ssl_tls.ssl_tls_crypto import * from tls_cert import Key from socket import * from CordTestServer import cord_test_radius_restart import struct import scapy from nose.tools import * from CordTestBase import CordTester from CordContainer import * from CordTestUtils import log_test import re import time log_test.setLevel('INFO') def bytes_to_num(data): try: return int(data.encode('hex'), 16) except: print('Exception') return -1 class TLSAuthTest(EapolPacket, CordTester): tlsStateTable = Enumeration( "TLSStateTable", ("ST_EAP_SETUP", "ST_EAP_START", "ST_EAP_ID_REQ", "ST_EAP_TLS_HELLO_REQ", "ST_EAP_TLS_CERT_REQ",