teracyhq-incubator / teracy-dev-core

teracy-dev-core extension
MIT License
1 stars 6 forks source link

should have consistent and intuitive config for forwarded_port network config #61

Closed hoatle closed 5 years ago

hoatle commented 5 years ago

currently supported config:

nodes:
  - _id: "core-0"
    vm:
      networks:
        - _id: entry-fwd-port
          type: forwarded_port
          forwarded_ports:
            - _id: entry-fwd-port-0
              guest: 80
              host: 8080
            - _id: entry-fwd-port-1
              guest: 81
              host: 8081

we should deprecate the above config and use this config instead:

nodes:
  - _id: "core-0"
    vm:
      networks:
        - _id: entry-fwd-port-0
          type: forwarded_port
          guest: 80
          host: 8080
        - _id: entry-fwd-port-1
          type: forwarded_port
          guest: 81
          host: 8081