# netd sample configuration
# See CONFIGURATION.md for detailed documentation

# Static routes
route {
    prefix = "10.0.0.0/24"
    nexthop = "192.168.1.1"
    distance = 1
}

route {
    prefix = "2001:db8::/32"
    nexthop = "fe80::1"
    distance = 1
}

# RIP configuration (requires FRR backend)
rip {
    enabled = false
    default-metric = 1
    distance = 120

    # Network interfaces (active by default)
    network = ["eth0"]

    # Passive interfaces (receive but don't send RIP updates)
    # passive = ["eth1"]

    # Static RIP neighbors
    # neighbor = ["192.168.1.1"]

    # Route redistribution
    redistribute = ["connected", "static"]

    # RIP timers
    timers {
        update = 30
        invalid = 180
        flush = 240
    }

    # Originate default route
    default-route = false

    # Debug options
    debug-events = false
    debug-packet = false
    debug-kernel = false

    # System commands to execute after config is applied
    # system = ["vtysh -c 'configure' -c 'router rip' -c 'debug rip events'"]
}
