Refactor NodeConfig methods for consistency in data access
- Renamed `l3interfaces` to `interfaces` and `vlaninterfaces` to `system` in the `NodeConfig` class to align with updated data structure. - This change enhances clarity and consistency in method naming, reflecting the underlying data model more accurately.
This commit is contained in:
@@ -38,8 +38,8 @@ class NodeConfig:
|
||||
def vlans(self):
|
||||
return self._parsed_data.vlans
|
||||
|
||||
def l3interfaces(self):
|
||||
return self._parsed_data.l3interfaces
|
||||
def interfaces(self):
|
||||
return self._parsed_data.interfaces
|
||||
|
||||
def vlaninterfaces(self):
|
||||
return self._parsed_data.vlaninterfaces
|
||||
def system(self):
|
||||
return self._parsed_data.system
|
||||
|
||||
Reference in New Issue
Block a user