Example #1
0
    def create_dependencies(self, fw, state):
        state.management_profiles = []

        state.eth = testlib.get_available_interfaces(fw)[0]
        state.management_profiles = [
            network.ManagementProfile(testlib.random_name(), ping=bool(x))
            for x in range(2)
        ]
        for x in state.management_profiles:
            fw.add(x)

        state.management_profiles[0].create_similar()
Example #2
0
    def create_dependencies(self, fw, state):
        state.management_profiles = []

        state.eth = testlib.get_available_interfaces(fw)[0]
        state.management_profiles = [
            network.ManagementProfile(testlib.random_name(),
                                      ping=True,
                                      ssh=True,
                                      https=False) for x in range(2)
        ]
        for x in state.management_profiles:
            fw.add(x)
            x.create()
Example #3
0
    def create_dependencies(self, fw, state):
        state.management_profile = network.ManagementProfile(
            testlib.random_name(), ping=True)
        state.eth = None

        fw.add(state.management_profile)
        state.management_profile.create()

        state.eth = testlib.get_available_interfaces(fw)[0]
        state.parent = network.EthernetInterface(
            state.eth,
            'layer3',
            ip=testlib.random_ip('/24'),
        )
        fw.add(state.parent)
        state.parent.create()
Example #4
0
 def setup_state_obj(self, fw, state):
     state.obj = network.ManagementProfile(
         testlib.random_name(),
         ping=True,
         telnet=False,
         ssh=True,
         http=False,
         http_ocsp=True,
         https=False,
         snmp=True,
         response_pages=False,
         userid_service=True,
         userid_syslog_listener_ssl=False,
         userid_syslog_listener_udp=True,
         permitted_ip=['1.2.3.4', '5.6.7.8'],
     )
     fw.add(state.obj)