diff options
author | Nisha Agarwal <agarwalnisha1980@gmail.com> | 2015-01-15 22:54:08 -0800 |
---|---|---|
committer | Nisha Agarwal <agarwalnisha1980@gmail.com> | 2015-02-20 01:40:05 -0800 |
commit | a52c96a83d524914082b55b0136a4b349e4ff2b4 (patch) | |
tree | 7e9b691b2cb2fa9b9ae4a4f5e7eee5b2a5cf0919 /ironic/drivers/modules/fake.py | |
parent | 20c79de1757329c0868968442b5e5e5dc2bedd55 (diff) | |
download | ironic-a52c96a83d524914082b55b0136a4b349e4ff2b4.tar.gz |
Add InspectInterface for node-introspection
Adds the InspectInterface to the base and fake driver.
Implements: blueprint ironic-node-properties-discovery
Change-Id: I103433c9e4aee7dfa3bcc049e469c812162e9ac6
Diffstat (limited to 'ironic/drivers/modules/fake.py')
-rw-r--r-- | ironic/drivers/modules/fake.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ironic/drivers/modules/fake.py b/ironic/drivers/modules/fake.py index 4451891a6..f256fc317 100644 --- a/ironic/drivers/modules/fake.py +++ b/ironic/drivers/modules/fake.py @@ -168,3 +168,17 @@ class FakeManagement(base.ManagementInterface): def get_sensors_data(self, task): return {} + + +class FakeInspect(base.InspectInterface): + + """Example implementation of a simple inspect interface.""" + + def get_properties(self): + return {} + + def validate(self, task): + pass + + def inspect_hardware(self, task): + pass |