Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated LinuxBridge plugin to be able to retrieve address informations #103

Merged
merged 7 commits into from
Jun 14, 2019

Conversation

gabrik
Copy link
Contributor

@gabrik gabrik commented Jun 14, 2019

Updated the LinuxBridge plugin, now it is able looking at dnsmasq lease files to get information about ip addresses of a FDU.
LXD Plugin is already using this feature to retrieve network information about LXD containers.
This infomation can be retrieved using api.fdu.instance_info(<instance uuid>)

The return is a JSON like this:

{
   "fdu_uuid":"1e57bb0e-cb41-4b23-bca3-1fa761a83c02",
   "node":"a2d358aa-af2b-42cb-8d23-a89e88b97e5c",
   "uuid":"def296eb-558c-4cba-b35e-78774281e3be",
   "status":"RUN",
   "interfaces":[
      {
         "vintf_name":"eth0",
         "status":"CREATE",
         "if_type":"VIRTIO",
         "mac_address":"be:ef:be:ef:00:01",
         "cp_id":"2124768b-8304-420a-b6f6-4740cb12caf4"
      }
   ],
   "connection_points":[
      {
         "uuid":"2124768b-8304-420a-b6f6-4740cb12caf4",
         "status":"CREATE",
         "cp_uuid":"a47a8819-72e5-4b4e-86fd-fc30c9fda68b"
      }
   ],
   "hypervisor_info":{
      "network":[
         {
            "name":"eth0",
            "mac_address":"be:ef:be:ef:00:01",
            "address":"192.168.234.10"
         }
      ],
      "cpu":{
         "usage":1705533730
      },
      "memory":{
         "usage":3321856,
         "usage_peak":8728576,
         "swap_usage":0,
         "swap_usage_peak":0
      },
      "disk":{
         "root":{
            "usage":108544
         }
      },
      "processes":5,
      "pid":8895
   },
   "accelerators":{
      "fpga":[

      ],
      "gpu":[

      ]
   },
   "io_ports":[

   ]
}

This will help in #96

…entation on LXD plugin instance monitor

Signed-off-by: gabrik <gabriele.baldoni@gmail.com>
Signed-off-by: gabrik <gabriele.baldoni@gmail.com>
Signed-off-by: gabrik <gabriele.baldoni@gmail.com>
Signed-off-by: gabrik <gabriele.baldoni@gmail.com>
Signed-off-by: gabrik <gabriele.baldoni@gmail.com>
Signed-off-by: gabrik <gabriele.baldoni@gmail.com>
Signed-off-by: gabrik <gabriele.baldoni@gmail.com>
@gabrik gabrik merged commit 01e0a9b into eclipse-fog05:master Jun 14, 2019
gabrik added a commit that referenced this pull request Nov 26, 2020
#103)

* added eval for getting ip address from network plugin, initial implementation on LXD plugin instance monitor
Signed-off-by: gabrik <gabriele.baldoni@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant