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.
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': utils/provision _control. py \ :contrail_ mgmt_vip} --api_server_port 8082 \ :address} --router_asn ${contrail::asnum} \ :neutron_ user}' --admin_tenant_name '${contrail: :service_ tenant} ' --admin_password '${contrail: :service_ token}' \ prov_control_ bgp-DONE" , prov_control_ bgp-DONE' ,
command => "python /opt/contrail/
--api_server_ip ${contrail:
--oper add --host_name ${::fqdn} --host_ip ${contrail:
--admin_user '${contrail:
&& touch /opt/contrail/
creates => '/opt/contrail/
}
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.