Server IP : 127.0.0.2 / Your IP : 18.217.178.138 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/augeas/lenses/dist/tests/ |
Upload File : |
module Test_interfaces = let conf ="# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface source /etc/network/interfaces.d/*.conf auto lo eth0 #foo allow-hotplug eth1 iface lo inet \ loopback mapping eth0 script /usr/local/sbin/map-scheme map HOME eth0-home map \ WORK eth0-work iface eth0-home inet static address 192.168.1.1 netmask 255.255.255.0 bridge_maxwait 0 # up flush-mail down Mambo #5 iface eth0-work inet dhcp allow-auto eth1 iface eth1 inet dhcp iface tap0 inet static vde2-switch - mapping eth1 # I like mapping ... # ... and I like comments script\ /usr/local/sbin/map-scheme iface bond0 inet dhcp bridge-ports eth2 eth3 eth4 iface br0 inet static bond-slaves eth5 eth6 address 10.0.0.1 netmask 255.0.0.0 source /etc/network.d/*.net.conf " test Interfaces.lns get conf = { "#comment" = "This file describes the network interfaces available on your system"} { "#comment" = "and how to activate them. For more information, see interfaces(5)." } { "#comment" = "The loopback network interface" } {} {"source" = "/etc/network/interfaces.d/*.conf"} {} { "auto" { "1" = "lo" } { "2" = "eth0" } { "3" = "#foo" } } { "allow-hotplug" { "1" = "eth1" } } { } { "iface" = "lo" { "family" = "inet"} { "method" = "loopback"} {} } { "mapping" = "eth0" { "script" = "/usr/local/sbin/map-scheme"} { "map" = "HOME eth0-home"} { "map" = "WORK eth0-work"} {} } { "iface" = "eth0-home" { "family" = "inet"} { "method" = "static"} {} { "address" = "192.168.1.1" } { "netmask" = "255.255.255.0" } { "bridge_maxwait" = "0" } { "#comment" = "up flush-mail" } { "down" = "Mambo #5" } {} } { "iface" = "eth0-work" { "family" = "inet"} { "method" = "dhcp"} {} } { "auto" { "1" = "eth1" } } { "iface" = "eth1" { "family" = "inet"} { "method" = "dhcp"} {} } { "iface" = "tap0" { "family" = "inet" } { "method" = "static" } { "vde2-switch" = "-" } {} } { "mapping" = "eth1" { "#comment" = "I like mapping ..." } { "#comment" = "... and I like comments" } {} { "script" = "/usr/local/sbin/map-scheme"} {} } { "iface" = "bond0" { "family" = "inet" } { "method" = "dhcp" } { "bridge-ports" { "1" = "eth2" } { "2" = "eth3" } { "3" = "eth4" } } {} } { "iface" = "br0" { "family" = "inet" } { "method" = "static" } { "bond-slaves" { "1" = "eth5" } { "2" = "eth6" } } { "address" = "10.0.0.1" } { "netmask" = "255.0.0.0" } {} } {"source" = "/etc/network.d/*.net.conf"} test Interfaces.lns put "" after set "/iface[1]" "eth0"; set "/iface[1]/family" "inet"; set "/iface[1]/method" "dhcp" = "iface eth0 inet dhcp\n" test Interfaces.lns put "" after set "/source[0]" "/etc/network/conf.d/*.conf" = "source /etc/network/conf.d/*.conf\n"