Comment 1 for bug 1584045

Revision history for this message
Daniel Roesen (daniel-roesen) wrote :

Code in plugin looks OK for me regarding handoff of the parameter to Contrail (but I'm not a Puppet guy):

./deployment_scripts/puppet/modules/contrail/manifests/provision/control.pp

  exec { 'prov_control_bgp':
    command => "python /opt/contrail/utils/provision_control.py \
--api_server_ip ${contrail::contrail_mgmt_vip} --api_server_port 8082 \
--oper add --host_name ${::fqdn} --host_ip ${contrail::address} --router_asn ${contrail::asnum} \
--admin_user '${contrail::neutron_user}' --admin_tenant_name '${contrail::service_tenant}' --admin_password '${contrail::service_token}' \
&& touch /opt/contrail/prov_control_bgp-DONE",
    creates => '/opt/contrail/prov_control_bgp-DONE',
  }

AS number is taken from attributes and passed to /opt/contrail/utils/provision_control.py.
Guess we need to find out wether ${contrail::asnum} correctly contains the user-specified ASN,
or the default 64512.