From 9ebd4e4d5dd6908b1217bc0c4bb4194f70014a13 Mon Sep 17 00:00:00 2001
From: Alessandro Franceschi <al@example42.com>
Date: Sun, 26 Jul 2020 14:52:52 +0200
Subject: [PATCH] Added example for vlan interface configuration Fix #315

---
 manifests/interface.pp | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/manifests/interface.pp b/manifests/interface.pp
index b610c44..d9cae66 100644
--- a/manifests/interface.pp
+++ b/manifests/interface.pp
@@ -250,6 +250,16 @@
 #     parameter.The Red Hat Enterprise Linux (7 )installation program currently
 #     uses this to configure the layer mode (layer2) and the relative port
 #     number (portno) of qeth devices.
+#
+# @example Configure a vlan interface:
+#
+#    network::interface { 'ens18.252':
+#      method          => 'static',
+#      ipaddress       => '10.10.10.10',
+#      netmask         => '255.255.255.0',
+#      type            => 'vlan',
+#    }
+#
 define network::interface (
 
   $enable                = true,
-- 
GitLab