ifstate 2.0.0rc5__tar.gz → 2.0.0rc6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/PKG-INFO +1 -1
  2. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/ifstate.egg-info/PKG-INFO +1 -1
  3. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/__init__.py +2 -2
  4. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/parser/base.py +1 -1
  5. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/sysctl/__init__.py +4 -1
  6. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/LICENSE +0 -0
  7. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/README.md +0 -0
  8. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/ifstate/__init__.py +0 -0
  9. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/ifstate/ifstate.py +0 -0
  10. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/ifstate/shell.py +0 -0
  11. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/ifstate/vrrp.py +0 -0
  12. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/ifstate.egg-info/SOURCES.txt +0 -0
  13. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/ifstate.egg-info/dependency_links.txt +0 -0
  14. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/ifstate.egg-info/entry_points.txt +0 -0
  15. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/ifstate.egg-info/requires.txt +0 -0
  16. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/ifstate.egg-info/top_level.txt +0 -0
  17. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/address/__init__.py +0 -0
  18. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/bpf/__init__.py +0 -0
  19. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/bpf/ctypes.py +0 -0
  20. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/bpf/map.py +0 -0
  21. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/brport/__init__.py +0 -0
  22. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/exception.py +0 -0
  23. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/fdb/__init__.py +0 -0
  24. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/hook/__init__.py +0 -0
  25. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/hook/wrapper.sh +0 -0
  26. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/link/__init__.py +0 -0
  27. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/link/base.py +0 -0
  28. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/link/dsa.py +0 -0
  29. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/link/physical.py +0 -0
  30. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/link/tun.py +0 -0
  31. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/link/veth.py +0 -0
  32. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/log.py +0 -0
  33. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/neighbour/__init__.py +0 -0
  34. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/netns/__init__.py +0 -0
  35. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/parser/__init__.py +0 -0
  36. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/parser/yaml.py +0 -0
  37. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/routing/__init__.py +0 -0
  38. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/schema/2/ifstate.conf.schema.json +0 -0
  39. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/tc/__init__.py +0 -0
  40. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/util.py +0 -0
  41. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/wireguard/__init__.py +0 -0
  42. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/libifstate/xdp/__init__.py +0 -0
  43. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/schema/2/ifstate.conf.schema.json +0 -0
  44. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/setup.cfg +0 -0
  45. {ifstate-2.0.0rc5 → ifstate-2.0.0rc6}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ifstate
3
- Version: 2.0.0rc5
3
+ Version: 2.0.0rc6
4
4
  Summary: Manage host interface settings in a declarative manner
5
5
  Home-page: https://ifstate.net/
6
6
  Author: Thomas Liske
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ifstate
3
- Version: 2.0.0rc5
3
+ Version: 2.0.0rc6
4
4
  Summary: Manage host interface settings in a declarative manner
5
5
  Home-page: https://ifstate.net/
6
6
  Author: Thomas Liske
@@ -54,7 +54,7 @@ import json
54
54
  import errno
55
55
  import logging
56
56
 
57
- __version__ = "2.0.0rc5"
57
+ __version__ = "2.0.0rc6"
58
58
 
59
59
  class IfState():
60
60
  def __init__(self):
@@ -90,7 +90,7 @@ class IfState():
90
90
  if self.features['schema']:
91
91
  # check config schema
92
92
  schema = json.loads(pkgutil.get_data(
93
- "libifstate", "../schema/{}/ifstate.conf.schema.json".format(__version__.split('.')[0])))
93
+ "libifstate", "schema/{}/ifstate.conf.schema.json".format(__version__.split('.')[0])))
94
94
  try:
95
95
  validate(ifstates, schema, format_checker=FormatChecker())
96
96
  except ValidationError as ex:
@@ -144,7 +144,7 @@ class Parser(ABC):
144
144
  return a
145
145
 
146
146
  def _update_lo(self, cfg):
147
- if 'interfaces' in cfg:
147
+ if 'interfaces' in cfg and isinstance(cfg['interfaces'], dict):
148
148
  if 'lo' in cfg['interfaces']:
149
149
  cfg['interfaces']['lo'] = self.merge(
150
150
  deepcopy(Parser._default_lo_link), cfg['interfaces']['lo'])
@@ -26,7 +26,10 @@ class Sysctl():
26
26
 
27
27
  def add(self, iface, sysctl):
28
28
  # deeply apply changes to the default/previously defined values
29
- self.sysctls[iface] = deep_update(self.sysctls[iface], sysctl)
29
+ if iface in self.sysctls:
30
+ self.sysctls[iface] = deep_update(self.sysctls[iface], sysctl)
31
+ else:
32
+ self.sysctls[iface] = sysctl
30
33
 
31
34
  def add_global(self, proto, sysctl):
32
35
  self.globals[proto] = sysctl
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes