{#
  (C) 2022 - ntop.org
  This template is used by the `Host Details - Packets` page inside the `Host Details`.    
#}


<div id="host-details-ports">
  <page-host-details-ports
  :page_csrf="page_csrf"
  :url_params="url_params">
  </page-host-details-ports>
</div>
  
<script type="text/javascript">  
  const pageCsrf = "{{ ntop.getRandomCSRFValue() }}";
  const url_params = {
    host: "{{ host_ip }}",
    vlan: "{{ vlan }}",
    ifid: "{{ ifid }}",
  }
  
  function start_vue() {
    let vue_options = {
      components: {	  
        'page-host-details-ports': ntopVue.PageHostDetailsPorts,
      },
      /**
      * First method called when the component is created.
      */
      created() { },
      mounted() {
      },
      data() {
        return {
          page_csrf: pageCsrf,
          url_params: url_params,
        };
      },
      methods: { },
    };
    const _vue = ntopVue.Vue.createApp(vue_options);
    const vue_app = _vue.mount('#host-details-ports');
    return vue_app;
  }

  /* ******************************************************* */

  $(function () {
    // initialize script table
    start_vue();
  });
</script>

