aboutsummaryrefslogtreecommitdiffstats
path: root/vicn/resource/ip/route.py
diff options
context:
space:
mode:
Diffstat (limited to 'vicn/resource/ip/route.py')
-rw-r--r--vicn/resource/ip/route.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/vicn/resource/ip/route.py b/vicn/resource/ip/route.py
index f073e426..b9f82960 100644
--- a/vicn/resource/ip/route.py
+++ b/vicn/resource/ip/route.py
@@ -16,7 +16,7 @@
# limitations under the License.
#
-from netmodel.model.type import String
+from netmodel.model.type import String, Integer
from vicn.resource.node import Node
from vicn.core.attribute import Attribute
from vicn.core.resource import Resource
@@ -27,6 +27,7 @@ class IPRoute(Resource):
ip_address = Attribute(String, mandatory = True)
interface = Attribute(Interface, mandatory = True)
gateway = Attribute(String)
+ ip_version = Attribute(Integer, default=4)
# FIXME Temp hack for VPP, migrate this to an ARP table resource
mac_address = Attribute(String)