HostMachineIp.vue 868 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <page-list
  3. :list="list"
  4. :columns="columns" />
  5. </template>
  6. <script>
  7. export default {
  8. name: 'HostMachineip',
  9. props: {
  10. data: {
  11. type: Object,
  12. required: true,
  13. },
  14. },
  15. data () {
  16. return {
  17. list: this.$list.createList(this, {
  18. id: 'HostMachineipForNetworkSidePage',
  19. resource: 'baremetalnetworks',
  20. getParams: {
  21. details: true,
  22. with_meta: true,
  23. network_id: this.data.id,
  24. },
  25. }),
  26. columns: [
  27. {
  28. field: 'host',
  29. title: this.$t('network.text_70'),
  30. },
  31. {
  32. field: 'ip_addr',
  33. title: this.$t('network.text_213'),
  34. },
  35. {
  36. field: 'mac_addr',
  37. title: this.$t('network.text_228'),
  38. },
  39. ],
  40. }
  41. },
  42. created () {
  43. this.list.fetchData()
  44. },
  45. }
  46. </script>