Test_Sysconfig_Route

Provides unit tests and examples for the Sysconfig_Route lens.

Augeas Tests

Sysconfig_Route.lns

test Sysconfig_Route.lns get "10.40.11.102/32 via 10.40.8.1\n10.1.8.0/24 via 10.40.8.254\n" = { "10.40.8.1" = "10.40.11.102/32" } { "10.40.8.254" = "10.1.8.0/24" }

Sysconfig_Route.lns

test Sysconfig_Route.lns get "10.40.11.102/32 via 10.40.8.1\n10.1.8.0/24 via 10.40.8.1\n" = { "10.40.8.1" = "10.40.11.102/32" } { "10.40.8.1" = "10.1.8.0/24" }
Parses /etc/sysconfig/network-scripts/route-${device}
test Sysconfig_Route.lns get "10.40.11.102/32 via 10.40.8.1\n10.1.8.0/24 via 10.40.8.254\n" = { "10.40.8.1" = "10.40.11.102/32" } { "10.40.8.254" = "10.1.8.0/24" }
Close