Last active
March 5, 2019 13:09
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"routes": [ # Sorted with 'family', 'table-id' then 'destination' | |
{ | |
"status": "up", # Set 'absent' to remove routes | |
"family": "ipv4", | |
# When applying state, this could be ignored, will guss it out | |
# base on 'destination' format. | |
"table-name": "main", # Empty if no name attached | |
"table-id": 254, | |
"origin": "dhcp", # "static" or "dhcp" | |
"metric": 100, | |
"destination": "0.0.0.0/0", # Mandatory | |
"next-hop-iface": "eth0", # Mandatory | |
"next-hop-address": "192.0.2.1" | |
# ^ Empty on point-to-point link | |
}, | |
{ | |
"status": "up", # Set 'absent' to remove routes | |
"family": "ipv6", | |
# When applying state, this could be ignored, will guss it out | |
# base on 'destination' format. | |
"table-name": "main", # Empty if no name attached | |
"table-id": 254, | |
"origin": "ipv6-ra", # "static" or "ipv6-ra" | |
"metric": 100, | |
"destination": "::/0", # Mandatory | |
"next-hop-iface": "eth0", # Mandatory | |
"next-hop-address": "fe80::1" | |
}, | |
], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment