Skip to content
Snippets Groups Projects
Device_OpenConfig_Template.py 1.07 KiB
Newer Older
  • Learn to ignore specific revisions
  • from common.tools.object_factory.Device import (
        json_device_connect_rules, json_device_id, json_device_packetrouter_disabled)
    
    DEVICE_OC_UUID     = 'DEV-UUID'   # populate the name of the device to test
    
    DEVICE_OC_ADDRESS  = '127.0.0.1'  # populate the Netconf Server IP address of the device to test
    
    DEVICE_OC_PORT     = 830          # populate the Netconf Server port of the device to test
    
    DEVICE_OC_USERNAME = 'username'   # populate the Netconf Server username of the device to test
    DEVICE_OC_PASSWORD = 'password'   # populate the Netconf Server password of the device to test
    DEVICE_OC_TIMEOUT  = 120
    
    DEVICE_OC_ID = json_device_id(DEVICE_OC_UUID)
    DEVICE_OC    = json_device_packetrouter_disabled(DEVICE_OC_UUID)
    
    DEVICE_OC_CONNECT_RULES = json_device_connect_rules(DEVICE_OC_ADDRESS, DEVICE_OC_PORT, {
        'username': DEVICE_OC_USERNAME,
        'password': DEVICE_OC_PASSWORD,
        'timeout' : DEVICE_OC_TIMEOUT,
    })
    
    
    DEVICE_OC_CONFIG_RULES   = []           # populate your configuration rules to test
    DEVICE_OC_DECONFIG_RULES = []           # populate your deconfiguration rules to test