]>
git.proxmox.com Git - mirror_ifupdown2.git/blob - ifupdown2/ifupdownaddons/cache.py
3 # Copyright 2014-2017 Cumulus Networks, Inc. All rights reserved.
4 # Author: Roopa Prabhu, roopa@cumulusnetworks.com
8 class MSTPAttrsCache():
12 def get(cls
, bridgename
, default
=None):
13 if bridgename
in MSTPAttrsCache
.bridges
:
14 return MSTPAttrsCache
.bridges
[bridgename
]
19 def set(cls
, bridgename
, attrs
):
20 MSTPAttrsCache
.bridges
[bridgename
] = attrs
24 MSTPAttrsCache
.bridges
= {}