|
|
@ -261,6 +261,10 @@ class Default(FactsBase):
|
|
|
|
self.facts['image'] = self.parse_image(data)
|
|
|
|
self.facts['image'] = self.parse_image(data)
|
|
|
|
self.facts['hostname'] = self.parse_hostname(data)
|
|
|
|
self.facts['hostname'] = self.parse_hostname(data)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data = self.run('show license host-id')
|
|
|
|
|
|
|
|
if data:
|
|
|
|
|
|
|
|
self.facts['license_hostid'] = self.parse_license_hostid(data)
|
|
|
|
|
|
|
|
|
|
|
|
def parse_version(self, data):
|
|
|
|
def parse_version(self, data):
|
|
|
|
match = re.search(r'\s+system:\s+version\s*(\S+)', data, re.M)
|
|
|
|
match = re.search(r'\s+system:\s+version\s*(\S+)', data, re.M)
|
|
|
|
if match:
|
|
|
|
if match:
|
|
|
@ -294,6 +298,11 @@ class Default(FactsBase):
|
|
|
|
if match:
|
|
|
|
if match:
|
|
|
|
return match.group(1)
|
|
|
|
return match.group(1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def parse_license_hostid(self, data):
|
|
|
|
|
|
|
|
match = re.search(r'License hostid: VDH=(.+)$', data, re.M)
|
|
|
|
|
|
|
|
if match:
|
|
|
|
|
|
|
|
return match.group(1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Config(FactsBase):
|
|
|
|
class Config(FactsBase):
|
|
|
|
|
|
|
|
|
|
|
|