Closed sriharsha27 closed 10 years ago
Please verify if the issue is seen on latest version (1.0.2) of netdev_stdlib module.
Issue below command on Puppet master to upgrade module version.
[root@server ~]#puppet module upgrade juniper/netdev_stdlib_junos --version 1.0.2
Puppet is configuring flexible-vlan-tagging and encapsulation-ethernet-services for tagged interfaces. Also using puppet client configuration used vlan-id's instead of vlan-names.
However it configures interface-mode trunk and interface will be part of vlan created.
http://www.juniper.net/techpubs/en_US/junos-puppet1.0/topics/reference/scripting/automation-junos-puppet-netdev-resource-type-netdev-l2-interface.html
% puppet agent -t warning: iconv couldn't be loaded, which is required for UTF-8/UTF-16 conversions info: Retrieving plugin info: Loading facts in /var/home/puppet/.puppet/var/lib/facter/pe_version.rb info: Loading facts in /var/home/puppet/.puppet/var/lib/facter/facter_dot_d.rb info: Loading facts in /var/home/puppet/.puppet/var/lib/facter/root_home.rb info: Loading facts in /var/home/puppet/.puppet/var/lib/facter/puppet_vardir.rb info: Caching catalog for st-24q-p2b-07.englab.juniper.net info: Applying configuration version '1393286396' notice: /Stage[main]//Node[st-24q-p2b-07]/Netdev_vlan[Blue]/ensure: created notice: /Stage[main]//Node[st-24q-p2b-07]/Netdev_vlan[Red]/ensure: created notice: /Netdev_l2_interface[et-0/0/10]/ensure: created notice: /Stage[main]//Node[st-24q-p2b-07]/Netdev_vlan[Green]/ensure: created notice: /Netdev_l2_interface[et-0/0/11]/ensure: created info: JUNOS: Committing 5 changes. notice: JUNOS:
[edit]
rcmd: getaddrinfo: hostname nor servname provided, or not known rcmd: getaddrinfo: hostname nor servname provided, or not known rcmd: getaddrinfo: hostname nor servname provided, or not known rcmd: getaddrinfo: hostname nor servname provided, or not known err: JUNOS: ERROR: Configuration change
notice: Finished catalog run in 2.81 seconds % cli {master:0} puppet@st-24q-p2b-07> edit Entering configuration mode
{master:0}[edit] puppet@st-24q-p2b-07# show | compare rollback 1 [edit]
{master:0}[edit] puppet@st-24q-p2b-07# show interfaces et-0/0/10
Warning: statement ignored: unsupported platform (qfx5100-24q-2p)
flexible-vlan-tagging;
Warning: statement ignored: unsupported platform (qfx5100-24q-2p)
encapsulation flexible-ethernet-services; unit 0 { description "Created by Puppet"; family ethernet-switching { interface-mode trunk; vlan { members 131-132; } } }
puppet@st-24q-p2b-07> show vlans
Routing instance VLAN name Tag Interfaces default-switch Blue 132
et-0/0/10.0 default-switch Green 133
et-0/0/11.0 default-switch Red 131
et-0/0/10.0*
{master:0}