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):
|
def vlans(self):
|
||||||
return self._parsed_data.vlans
|
return self._parsed_data.vlans
|
||||||
|
|
||||||
def l3interfaces(self):
|
def interfaces(self):
|
||||||
return self._parsed_data.l3interfaces
|
return self._parsed_data.interfaces
|
||||||
|
|
||||||
def vlaninterfaces(self):
|
def system(self):
|
||||||
return self._parsed_data.vlaninterfaces
|
return self._parsed_data.system
|
||||||
|
|||||||
Reference in New Issue
Block a user