Skip to content

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

@Jainpriyal

Description

@Jainpriyal

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions