summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-14 20:29:05 +0100
committerChristian Breunig <christian@breunig.cc>2024-02-14 20:29:11 +0100
commit0eb4168aaec0ab3416d8b02eaa1be721b96ee7a8 (patch)
treea17ad90477eac402118236ad124a9d421f2a649f /src
parent6f490b48e7f9cd8d4da8207f70c1cf0f2a145f40 (diff)
downloadvyos-1x-0eb4168aaec0ab3416d8b02eaa1be721b96ee7a8.tar.gz
vyos-1x-0eb4168aaec0ab3416d8b02eaa1be721b96ee7a8.zip
eigrp: T2472: improve code for later tests
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/protocols_eigrp.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/conf_mode/protocols_eigrp.py b/src/conf_mode/protocols_eigrp.py
index 609b39065..c13e52a3d 100755
--- a/src/conf_mode/protocols_eigrp.py
+++ b/src/conf_mode/protocols_eigrp.py
@@ -19,6 +19,7 @@ from sys import argv
from vyos.config import Config
from vyos.configdict import dict_merge
+from vyos.configverify import verify_vrf
from vyos.template import render_to_string
from vyos import ConfigError
from vyos import frr
@@ -72,7 +73,14 @@ def get_config(config=None):
return eigrp
def verify(eigrp):
- pass
+ if not eigrp or 'deleted' in eigrp:
+ return
+
+ if 'system_as' not in eigrp:
+ raise ConfigError('EIGRP system-as must be defined!')
+
+ if 'vrf' in eigrp:
+ verify_vrf(eigrp)
def generate(eigrp):
if not eigrp or 'deleted' in eigrp: