Camphor Networks Platform API
camphor_api_test.py File Reference

Go to the source code of this file.

Namespaces

 camphor_api.camphor_api_test
 

Functions

def test1_simple_network ()
 Create a simple network connecting routers. More...
 
def test2_linear_topology ()
 Create a simple linear topology of SONiC Devices. More...
 
def test3_custom_topology ()
 Create a customized network topology. More...
 
def test4_circular_topology (int count=10)
 Create a simple circular topology of NXOS Devices. More...
 
def test5_device_for_analytics (int device_count=4, int network_count=2)
 Create a network with better management traffic capable devices. More...
 
def test6_multi_device_networks (int device_count=4, int network_count=4)
 Create a network with better management traffic capable devices. More...
 
def test7_camphor_topology_file ()
 Load a camphor network topology from an external yaml file. More...
 
def test8_small_datacenter ()
 Create a small data center network. More...
 
def test9_medium_datacenter ()
 Create a medium sized data center network. More...
 
def test10_large_datacenter ()
 Create a large sized data center network. More...
 
def test11_customized_datacenter ()
 Create a customized data center network. More...
 
def test12_ospf_basic (bool synchronize=False)
 Create a simple OSPF Topology of JUNOS Routers. More...
 
def test13_device_with_pci_passthrough (int device_count=4)
 Create devices with PCI Cards pass through from underlying host such as GPUs, NPUs and IPUs. More...
 
def test14_device_with_k8_pods (int device_count=int(environ.get('CAMPHOR_TEST_DEVICE_COUNT', '4')), int network_count=int(environ.get('CAMPHOR_TEST_NETWORK_COUNT', '4')), bool synchronize=environ.get('CAMPHOR_TEST_SYNCHRONIZE', '').upper()=='TRUE')
 Create a network of devices and verify wih K8. More...
 
def test15_device_pause (str name='router', int count=4)
 Pause devices. More...
 
def test16_device_resume (str name='router', int count=4)
 Resume devices. More...
 
def test17_device_shutdown (str name='router', int count=4)
 Shutdown devices. More...
 
def test18_device_restart (str name='router', int count=4)
 Restart devices. More...
 
def test19_device_recreate (str name='router', int count=4)
 Recreate devices. More...
 
def test20_device_pullconf (str name='router', int count=4)
 Pull Configuration from devices. More...
 
def test21_device_pushconf (str name='router', int count=4)
 Push Configuration to devices. More...
 
def test22_device_interface_link_down (str name='router', int count=4)
 Turn down interface link state. More...
 
def test23_device_interface_link_up (str name='router', int count=4)
 Turn up interface link state. More...
 
def test24_device_interface_admin_down (str name='router', int count=4)
 Turn down interface admin state. More...
 
def test25_device_interface_admin_up (str name='router', int count=4)
 Turn up interface admin state. More...
 
def test26_application_drawio ()
 Create application DrawIO Diagrams Editor. More...
 
def test27_application_grafana ()
 Create application Grafana Graphs Generator. More...
 
def test28_application_jenkins ()
 Create application Jenkins Jobs Manager. More...
 
def test29_application_jupyter_notebook ()
 Create application Jupyter Notebook for Easy Automation. More...
 
def test30_application_kibana ()
 Create application Elastic Search Based Kibana Logs Analyzer. More...
 
def test31_application_novnc ()
 Create application noVNC Remote Desktop for Ubuntu Linux. More...
 
def test32_application_opennms ()
 Create application OpenNMS Network Management Station. More...
 
def test33_application_suzieq ()
 Create application SuzieQ Network Analytics Manager, especially for Data Centers. More...
 
def test34_application_wordpress ()
 Create application WordPress WebSite Hosting Platform. More...
 
def test35_datacenter_cisco ()
 Load a cisco network topology from an external yaml file. More...
 
def test36_datacenter_convergeone ()
 Load a convergeone network topology from an external yaml file. More...
 
def test37_datacenter_aviz ()
 Load a aviz network topology from an external yaml file. More...
 
def test38_datacenter_augtera ()
 Load a augtera network topology from an external yaml file. More...
 
def test39_datacenter_junos ()
 Load a junos network topology from an external yaml file. More...
 
def test40_datacenter_arrcus ()
 Load a arrcus network topology from an external yaml file. More...
 
def test41_datacenter_arista ()
 Load a arista network topology from an external yaml file. More...
 
def test42_datacenter_sonic ()
 Load a sonic network topology from an external yaml file. More...
 
def test43_kubernetes_cluster1 (int masters=-1, int computes=3)
 Create a Kubernetes Cluster. More...
 
def test44_aviz_ones_controller_based_datacenter ()
 Create a Aviz-Ones-Controller driven Virtual Data Center. More...