| 1899 | { |
| 1900 | public: |
| 1901 | virtual void SetUp() |
| 1902 | { |
| 1903 | ContainerizerTest<MesosContainerizer>::SetUp(); |
| 1904 | |
| 1905 | // Guess the name of the public interface. |
| 1906 | Result<string> _eth0 = link::eth0(); |
| 1907 | ASSERT_SOME(_eth0) << "Failed to guess the name of the public interface"; |
| 1908 | |
| 1909 | eth0 = _eth0.get(); |
| 1910 | |
| 1911 | LOG(INFO) << "Using " << eth0 << " as the public interface"; |
| 1912 | |
| 1913 | // Guess the name of the loopback interface. |
| 1914 | Result<string> _lo = link::lo(); |
| 1915 | ASSERT_SOME(_lo) << "Failed to guess the name of the loopback interface"; |
| 1916 | |
| 1917 | lo = _lo.get(); |
| 1918 | |
| 1919 | LOG(INFO) << "Using " << lo << " as the loopback interface"; |
| 1920 | |
| 1921 | cleanup(eth0, lo); |
| 1922 | } |
| 1923 | |
| 1924 | virtual void TearDown() |
| 1925 | { |