Juniper / puppet-netdev-stdlib-junos

Junos specific Provider code for "netdev_stdlib". Netdev is a vendor-neutral network abstraction framework developed by Juniper Networks and contributed freely to the DevOps community.
Apache License 2.0
25 stars 14 forks source link

Configuring one interface to be part of multiple vlans in access mode #8

Open Jainpriyal opened 9 years ago

Jainpriyal commented 9 years ago

When configuring one interface to be part of multiple vlans in access mode, then it should give error, but it is configuring first given Vlan with the interface and ignoring other vlans. It's not giving any kind of warning or error.

puppet code

netdev_l2_interface { "ge-0/0/0":
ensure => present,
active => true,
description => "l2-interface ge-0/0/0 part of multiple vlans in access port",
untagged_vlan => [Blue, Green, Yellow]
}

output

% puppet agent --test
Info: Retrieving pluginfacts
Info: Retrieving plugin
ldapname is deprecated and will be removed in a future version
Info: Caching catalog for router
Info: Applying configuration version '1416301028'
Notice: /Stage[main]/Main/Netdev_l2_interface[ge-0/0/0]/ensure: created
Info: JUNOS: Committing 1 changes.
Notice: JUNOS: 

[edit interfaces ge-0/0/0]
+    unit 0 {
+        description "l2-interface ge-0/0/0 part of multiple vlans in access port";
+        family bridge {
+            interface-mode access;
+            vlan-id 520;
+        }
+    }

Notice: JUNOS: OK: COMMIT success!
Notice: Finished catalog run in 2.71 seconds