In order to have a simple firewall feature using intents, we will create a simple topology that consists of two hosts and one OpenFlow switch. You can create commands using MAC addresses or endpoint groups.
Simple firewall with NIC
Getting ready
The ingredients of this recipe require an OpenFlow switch. If you don't have any, you can use a Mininet-VM with OvS installed. You can download Mininet-VM from the website https://github.com/mininet/mininet/wiki/Mininet-VM-Images. Any version should work.
The following recipe will be presented using a Mininet-VM with OvS 2.3.2.
The sample code for this recipe is available at:
https://github.com/jgoodyear/OpenDaylightCookbook/tree/master/chapter1