Skip to main content

Downloads PyPI PyPI versions GitHub Discussion Code style: Ruff Tests

Fake Network Operating Systems - FakeNOS

"Reality is merely an illusion, albeit a very persistent one."

~ Albert Einstein

FakeNOS created to simulate Network Operating Systems interactions.

Documentation

Why?

Crucial aspect of writing applications or scripts for Network Automation is testing, often testing done using physical or virtual instances of network appliances running certain version of Network Operating System (NOS). That approach, while gives best integration results, in many cases carries a lot of overhead to set up, run and tear down as well as putting significant burden on compute and storage resource utilization.

Other approach is to mock underlying libraries methods to fool applications under testing into believing that it is getting output from real devices. That approach works very well for unit testing, but fails to simulate such aspects as connection establishment and handling.

FakeNOS positions itself somewhere in the middle between full integration testing and testing that mocks device interactions. FakeNOS allows to create NOS plugins to produce pre-defined output to test applications behavior while running servers to establish connections with.

What?

FakeNOS can:

  • Run thousands of servers to stress test applications
  • Simulate Network Operating Systems Command Line Interface (CLI) interactions
  • Provide high-level API to create custom NOS plugins
  • Run in docker container to simplify integration with your infrastructure
  • Make use of FakeNOS CLI tool for quick run and prototype simulations
  • Work on Windows, macOS, and Linux across supported Python versions

How?

Send input and get the output - this is how we interact with many Network Operating Systems, FakeNOS allows to pre-define the output to sent in response to certain input commands, making it ideal for isolated feature testing.

FakeNOS is a micro-kernel framework that can be extended using plugins. The core is kept small and optimized while most of the functionality offloaded to plugins.

FakeNOS has these pluggable systems:

  • Server Plugins - plugins responsible for running various servers to connect with
  • Shell Plugins - plugins to simulate command line interface shell
  • NOS plugins - plugins to simulate Network Operating System commands

What not?

FakeNOS is a simulator, it does not emulate any of Network Control, Data or Management planes, it merely takes the commands as input and responds with predefined output.

FakeNOS inspired by and borrowed from

  • sshim - library for testing and debugging SSH automation clients
  • PythonSSHServerTutorial - tutorial on creating paramiko based SSH server
  • fake-switches - pluggable switch/router command-line simulator
  • ncs-netsim - tool to simulate a network of devices
  • cisshgo - concurrent SSH server to emulate network equipment for testing purposes
  • scrapli-replay - tools to enable easy testing of SSH programs and to create semi-interactive SSH servers

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fakenos-1.2.0.tar.gz (358.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fakenos-1.2.0-py3-none-any.whl (384.2 kB view details)

Uploaded Python 3

File details

Details for the file fakenos-1.2.0.tar.gz.

File metadata

  • Download URL: fakenos-1.2.0.tar.gz
  • Upload date:
  • Size: 358.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for fakenos-1.2.0.tar.gz
Algorithm Hash digest
SHA256 fe9236e798b47889f068db706e992dfb78937330bacb959d4f196b0ce7b7cbfe
MD5 55671eb6bdd2c54955a7875eb1fe2380
BLAKE2b-256 d6eca4d13a8df00d2d23396ef6967a01b93f76975bef2abbe964f46a6d6380ea

See more details on using hashes here.

File details

Details for the file fakenos-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: fakenos-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 384.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for fakenos-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1442797da35c3e79293b51336cc354cca50be4d4f1a403a23efc081d7c40cff
MD5 00c7e8171fa247854f4940f501aa4092
BLAKE2b-256 064689384d111c00068859338bd8fbb8897263003953b89a59b776dc8d725fe4

See more details on using hashes here.

Release history Release notifications | RSS feed

1.2.1

2 files

This release

1.2.0 This release

2 files

1.0.1

2 files

1.0.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page