Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in swapping vlans across interface in MX device #6

Open
Jainpriyal opened this issue Nov 18, 2014 · 0 comments
Open

Error in swapping vlans across interface in MX device #6

Jainpriyal opened this issue Nov 18, 2014 · 0 comments

Comments

@Jainpriyal
Copy link

Initially I configured two interface ge-0/0/0 and ge-0/0/1 part of Red vlan(vlan-d 510) and Blue vlan (vlan id 520)

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

[edit interfaces ge-0/0/0]
+   flexible-vlan-tagging;
+   encapsulation flexible-ethernet-services;
+   unit 0 {
+       description "l2-interface ge-0/0/0 part of Red vlan";
+       family bridge {
+           interface-mode trunk;
+           vlan-id-list 510;
+       }
+   }
[edit interfaces ge-0/0/1]
+   flexible-vlan-tagging;
+   encapsulation flexible-ethernet-services;
+   unit 0 {
+       description "l2-interface ge-0/0/1 part of Blue vlan";
+       family bridge {
+           interface-mode trunk;
+           vlan-id-list 520;
+       }
+   }

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

When I am swapping interface across vlans it is giving error, Could not evaluate: Unknown VLAN by tag-id: 520 !

% puppet agent --test
Info: Retrieving pluginfacts
Info: Retrieving plugin
ldapname is deprecated and will be removed in a future version
Info: Caching catalog for choc-mx240-b.englab.juniper.net
Info: Applying configuration version '1416298463'
Error: /Stage[main]/Main/Netdev_l2_interface[ge-0/0/1]: Could not evaluate: Unknown VLAN by tag-id: 520 !
Notice: /Stage[main]/Main/Netdev_l2_interface[ge-0/0/0]/description: description changed 'l2-interface ge-0/0/0 part of Red vlan' to 'l2-interface ge-0/0/0 after swapping is part of Blue Vlan'
Notice: /Stage[main]/Main/Netdev_l2_interface[ge-0/0/0]/tagged_vlans: tagged_vlans changed '[Red]' to '[Blue]'
Info: JUNOS: Committing 1 changes.
Notice: JUNOS: 

[edit interfaces ge-0/0/0 unit 0]
-    description "l2-interface ge-0/0/0 part of Red vlan";
+    description "l2-interface ge-0/0/0 after swapping is part of Blue Vlan";
[edit interfaces ge-0/0/0 unit 0 family bridge]
-      interface-mode trunk;
-      vlan-id-list 510;
+      interface-mode trunk;
+      vlan-id-list 520;

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

Swapping vlans across interface is working fine in other devices ( qfx, EX4200, EX4300)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant