aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.terraform/1n_nmd/providers.tf
blob: 92ddb553e72de2984206fd63244c79e9e727c772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
provider "nomad" {
  address = var.nomad_provider_address
  alias   = "yul1"
  #  ca_file   = var.nomad_provider_ca_file
  #  cert_file = var.nomad_provider_cert_file
  #  key_file  = var.nomad_provider_key_file
}

provider "vault" {
  address         = "http://10.30.51.28:8200"
  skip_tls_verify = true
  token           = var.token
}
n class="p">{ vnet_main_t *vnm = vnet_get_main (); vnet_hw_interface_t *hw; mrvl_pp2_main_t *pp2 = &mrvl_pp2_main; vl_api_mrvl_pp2_delete_reply_t *rmp; mrvl_pp2_if_t *dif; int rv = 0; mp->sw_if_index = ntohl (mp->sw_if_index); hw = vnet_get_sup_hw_interface (vnm, mp->sw_if_index); if (hw == NULL || mrvl_pp2_device_class.index != hw->dev_class_index) { rv = VNET_API_ERROR_INVALID_SW_IF_INDEX; goto reply; } dif = pool_elt_at_index (pp2->interfaces, hw->dev_instance); mrvl_pp2_delete_if (dif); reply: REPLY_MACRO (VL_API_MRVL_PP2_DELETE_REPLY + pp2->msg_id_base); } #include <marvell/pp2/pp2.api.c> /* set up the API message handling tables */ clib_error_t * mrvl_pp2_plugin_api_hookup (vlib_main_t * vm) { mrvl_pp2_main_t *pp2 = &mrvl_pp2_main; /* ask for a correctly-sized block of API message decode slots */ pp2->msg_id_base = setup_message_id_table (); return 0; } /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */