puppet-module-network icon indicating copy to clipboard operation
puppet-module-network copied to clipboard

problem with vlan interface using network_interface resource

Open raskas opened this issue 15 years ago • 2 comments

When configuring a vlan interface, it complains that the interface does not exists. I expect it to be created.

The puppet config:

  network_config {
    "bond0.901":
      ensure    => present,
      exclusive => false,
      bootproto => "static",
      onboot    => "yes",
      ipaddr    => "172.18.91.71",
      netmask   => "255.255.255.0",
      vlan      => "yes";
  }
  network_interface {
    "bond0.901":
      state => "up";
  }

The error:

err: /Stage[main]//Node[nms-2]/Network_interface[bond0.901]: Could not evaluate: Network interface bond0.901 does not exist

raskas avatar Oct 03 '11 12:10 raskas

When the interface does not exists, this can be created with the vconfig command /sbin/vconfig add <interf> <vlanid>

raskas avatar Oct 03 '11 14:10 raskas

see my pull request

raskas avatar Oct 07 '11 15:10 raskas