<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Network Chaos NG Scenarios on Krkn</title><link>https://deploy-preview-247--krkn-chaos.netlify.app/docs/scenarios/network-chaos-ng-scenarios/</link><description>Recent content in Network Chaos NG Scenarios on Krkn</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 16 Jul 2025 16:11:24 +0200</lastBuildDate><atom:link href="https://deploy-preview-247--krkn-chaos.netlify.app/docs/scenarios/network-chaos-ng-scenarios/index.xml" rel="self" type="application/rss+xml"/><item><title>Network Chaos API</title><link>https://deploy-preview-247--krkn-chaos.netlify.app/docs/scenarios/network-chaos-ng-scenarios/network-chaos-ng-scenario-api/</link><pubDate>Thu, 05 Jan 2017 00:00:00 +0000</pubDate><guid>https://deploy-preview-247--krkn-chaos.netlify.app/docs/scenarios/network-chaos-ng-scenarios/network-chaos-ng-scenario-api/</guid><description>&lt;h2 id="abstractnetworkchaosmodule-abstract-module-class">
 &lt;code>AbstractNetworkChaosModule&lt;/code> abstract module class
 &lt;a class="td-heading-self-link" href="#abstractnetworkchaosmodule-abstract-module-class" aria-label="Heading self-link">&lt;/a>
&lt;/h2>
&lt;p>All the plugins must implement the &lt;code>AbstractNetworkChaosModule&lt;/code> abstract class in order to be instantiated and ran by the Netwok Chaos NG plugin.
This abstract class implements two main abstract methods:&lt;/p>
&lt;ul>
&lt;li>&lt;code>run(self, target: str, kubecli: KrknTelemetryOpenshift, error_queue: queue.Queue = None)&lt;/code> is the entrypoint for each Network Chaos module.
If the module is configured to be run in parallel &lt;code>error_queue&lt;/code> must not be None
&lt;ul>
&lt;li>&lt;code>target&lt;/code>: param is the name of the resource (Pod, Node etc.) that will be targeted by the scenario&lt;/li>
&lt;li>&lt;code>kubecli&lt;/code>: the &lt;code>KrknTelemetryOpenshift&lt;/code> needed by the scenario to access to the krkn-lib methods&lt;/li>
&lt;li>&lt;code>error_queue&lt;/code>: a queue that will be used by the plugin to push the errors raised during the execution of parallel modules&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;code>get_config(self) -&amp;gt; (NetworkChaosScenarioType, BaseNetworkChaosConfig)&lt;/code> returns the common subset of settings shared by all the scenarios &lt;code>BaseNetworkChaosConfig&lt;/code> and the type of Network Chaos Scenario that is running (Pod Scenario or Node Scenario)&lt;/li>
&lt;/ul>
&lt;h2 id="basenetworkchaosconfig-base-module-configuration">
 &lt;code>BaseNetworkChaosConfig&lt;/code> base module configuration
 &lt;a class="td-heading-self-link" href="#basenetworkchaosconfig-base-module-configuration" aria-label="Heading self-link">&lt;/a>
&lt;/h2>
&lt;p>Is the base class that contains the common parameters shared by all the Network Chaos NG modules.&lt;/p></description></item></channel></rss>